From 354d6a3da48ed94ff9bdcbf96e29afa21274441b Mon Sep 17 00:00:00 2001 From: winrid Date: Thu, 18 Jun 2026 21:53:40 -0700 Subject: [PATCH 1/8] Regenerate SDK: add Moderation API + stable response types Regenerated the cpp-restsdk client and markdown docs from the updated OpenAPI spec (mirrors fastcomments-sdk@4.0.0). - New Moderation API: 43 moderator-dashboard endpoints (ModerationApi class), covering comment moderation (list/count/ids/search/logs/export), moderation actions (remove/restore, flag/un-flag, review/spam/approval status, set text, votes, reopen/close thread), bans (ban/undo, pre-ban + bulk summaries, ban status/preferences, banned-user counts), badges & trust (award/remove badge, manual badges, get/set trust factor, user internal profile). All accept an sso query param. - BREAKING: response types are now the real success type. Previously every endpoint returned an X | APIError union that produced arbitrary wrapper types (e.g. *_200_response). Now each operation returns its success type directly and APIError is a default error response. Shapes are unchanged. --- client/.openapi-generator/FILES | 396 +- client/.openapi-generator/VERSION | 2 +- client/README.md | 4 +- client/include/FastCommentsClient/AnyType.h | 2 +- client/include/FastCommentsClient/ApiClient.h | 2 +- .../FastCommentsClient/ApiConfiguration.h | 2 +- .../include/FastCommentsClient/ApiException.h | 2 +- .../include/FastCommentsClient/HttpContent.h | 2 +- client/include/FastCommentsClient/IHttpBody.h | 2 +- client/include/FastCommentsClient/JsonBody.h | 2 +- client/include/FastCommentsClient/ModelBase.h | 3 +- .../FastCommentsClient/MultipartFormData.h | 2 +- client/include/FastCommentsClient/Object.h | 2 +- .../FastCommentsClient/api/DefaultApi.h | 354 +- .../FastCommentsClient/api/ModerationApi.h | 715 + .../FastCommentsClient/api/PublicApi.h | 401 +- .../FastCommentsClient/model/APIAuditLog.h | 12 +- .../model/APIBanUserChangeLog.h | 103 + .../model/APIBanUserChangedValues.h | 170 + .../FastCommentsClient/model/APIBannedUser.h | 170 + .../model/APIBannedUserWithMultiMatchInfo.h | 141 + .../FastCommentsClient/model/APIComment.h | 87 +- .../FastCommentsClient/model/APICommentBase.h | 87 +- .../model/APICommentBase_meta.h | 21 +- .../model/APICommentCommonBannedUser.h | 130 + .../model/APICreateUserBadgeResponse.h | 3 +- .../model/APIDomainConfiguration.h | 21 +- .../model/APIEmptyResponse.h | 3 +- .../model/APIEmptySuccessResponse.h | 3 +- .../FastCommentsClient/model/APIError.h | 3 +- .../model/APIGetCommentResponse.h | 3 +- .../model/APIGetCommentsResponse.h | 3 +- .../APIGetUserBadgeProgressListResponse.h | 3 +- .../model/APIGetUserBadgeProgressResponse.h | 3 +- .../model/APIGetUserBadgeResponse.h | 3 +- .../model/APIGetUserBadgesResponse.h | 3 +- ...APIModerateGetUserBanPreferencesResponse.h | 85 + .../model/APIModerateUserBanPreferences.h | 98 + .../FastCommentsClient/model/APIPage.h | 3 +- .../FastCommentsClient/model/APISSOUser.h | 3 +- ...entResponse.h => APISaveCommentResponse.h} | 32 +- .../FastCommentsClient/model/APIStatus.h | 3 +- .../FastCommentsClient/model/APITenant.h | 6 +- .../model/APITenantDailyUsage.h | 3 +- .../FastCommentsClient/model/APITicket.h | 3 +- .../model/APITicketDetail.h | 12 +- .../FastCommentsClient/model/APITicketFile.h | 3 +- .../model/APIUserSubscription.h | 3 +- .../model/AddDomainConfigParams.h | 3 +- ...0_response.h => AddDomainConfigResponse.h} | 29 +- ...nyOf.h => AddDomainConfigResponse_anyOf.h} | 25 +- .../model/AddHashTagsBulk_200_response.h | 148 - .../model/AddPageAPIResponse.h | 3 +- .../model/AddSSOUserAPIResponse.h | 3 +- .../model/AdjustCommentVotesParams.h | 73 + .../model/AdjustVotesResponse.h | 82 + .../model/AggregateQuestionResultsResponse.h | 3 +- .../AggregateQuestionResults_200_response.h | 147 - .../model/AggregateResponse.h | 123 + .../model/AggregateTimeBucket.h | 3 +- .../model/AggregationAPIError.h | 101 + .../model/AggregationItem.h | 3 +- .../model/AggregationOpType.h | 3 +- .../model/AggregationOperation.h | 3 +- .../model/AggregationRequest.h | 3 +- .../model/AggregationRequest_sort.h | 3 +- .../model/AggregationResponse.h | 3 +- .../model/AggregationResponse_stats.h | 3 +- .../model/AggregationValue.h | 3 +- .../model/AwardUserBadgeResponse.h | 95 + .../model/BanUserFromCommentResult.h | 100 + .../model/BanUserUndoParams.h | 75 + .../model/BannedUserMatch.h | 84 + .../model/BannedUserMatchType.h | 88 + ...lue.h => BannedUserMatch_matchedOnValue.h} | 19 +- .../FastCommentsClient/model/BillingInfo.h | 6 +- .../model/BlockFromCommentParams.h | 3 +- .../BlockFromCommentPublic_200_response.h | 149 - .../FastCommentsClient/model/BlockSuccess.h | 3 +- .../model/BuildModerationFilterParams.h | 108 + .../model/BuildModerationFilterResponse.h | 84 + .../model/BulkAggregateQuestionItem.h | 3 +- .../BulkAggregateQuestionResultsRequest.h | 3 +- .../BulkAggregateQuestionResultsResponse.h | 3 +- ...ulkAggregateQuestionResults_200_response.h | 151 - .../model/BulkCreateHashTagsBody.h | 3 +- .../model/BulkCreateHashTagsBody_tags_inner.h | 3 +- .../model/BulkCreateHashTagsResponse.h | 13 +- ...ulkCreateHashTagsResponse_results_inner.h} | 19 +- .../model/BulkPreBanParams.h | 75 + .../model/BulkPreBanSummary.h | 115 + .../model/ChangeCommentPinStatusResponse.h | 3 +- .../model/ChangeTicketStateBody.h | 3 +- .../model/ChangeTicketStateResponse.h | 3 +- .../model/ChangeTicketState_200_response.h | 147 - .../model/CheckBlockedCommentsResponse.h | 3 +- .../CheckedCommentsForBlocked_200_response.h | 149 - ...CommentsWithQuestionResults_200_response.h | 147 - ...mbineQuestionResultsWithCommentsResponse.h | 3 +- .../FastCommentsClient/model/CommentData.h | 34 +- .../model/CommentHTMLRenderingMode.h | 3 +- .../FastCommentsClient/model/CommentLogData.h | 41 +- .../model/CommentLogEntry.h | 3 +- .../FastCommentsClient/model/CommentLogType.h | 3 +- .../CommentQuestionResultsRenderingType.h | 3 +- .../model/CommentQuestionsRequired.h | 3 +- .../model/CommentTextUpdateRequest.h | 3 +- .../model/CommentThreadDeletionMode.h | 3 +- .../model/CommentUserBadgeInfo.h | 21 +- .../model/CommentUserHashTagInfo.h | 6 +- .../model/CommentUserMentionInfo.h | 3 +- .../model/CommenterNameFormats.h | 3 +- .../model/CommentsByIdsParams.h | 75 + .../model/CreateAPIPageData.h | 3 +- .../model/CreateAPISSOUserData.h | 3 +- .../model/CreateAPIUserSubscriptionData.h | 3 +- .../model/CreateCommentParams.h | 34 +- .../model/CreateCommentPublic_200_response.h | 177 - .../model/CreateEmailTemplateBody.h | 9 +- .../model/CreateEmailTemplateResponse.h | 3 +- .../model/CreateEmailTemplate_200_response.h | 147 - .../model/CreateFeedPostParams.h | 3 +- .../model/CreateFeedPostPublic_200_response.h | 147 - .../model/CreateFeedPostResponse.h | 3 +- .../model/CreateFeedPost_200_response.h | 147 - .../model/CreateFeedPostsResponse.h | 3 +- .../model/CreateHashTagBody.h | 3 +- .../model/CreateHashTagResponse.h | 3 +- .../model/CreateModeratorBody.h | 21 +- .../model/CreateModeratorResponse.h | 3 +- .../model/CreateModerator_200_response.h | 147 - .../model/CreateQuestionConfigBody.h | 21 +- .../model/CreateQuestionConfigResponse.h | 3 +- .../model/CreateQuestionConfig_200_response.h | 147 - .../model/CreateQuestionResultBody.h | 24 +- .../model/CreateQuestionResultResponse.h | 3 +- .../model/CreateQuestionResult_200_response.h | 147 - .../model/CreateSubscriptionAPIResponse.h | 3 +- .../model/CreateTenantBody.h | 3 +- .../model/CreateTenantPackageBody.h | 39 +- .../model/CreateTenantPackageResponse.h | 3 +- .../model/CreateTenantPackage_200_response.h | 147 - .../model/CreateTenantResponse.h | 3 +- .../model/CreateTenantUserBody.h | 3 +- .../model/CreateTenantUserResponse.h | 3 +- .../model/CreateTenantUser_200_response.h | 147 - .../model/CreateTenant_200_response.h | 147 - .../model/CreateTicketBody.h | 3 +- .../model/CreateTicketResponse.h | 3 +- .../model/CreateTicket_200_response.h | 147 - .../model/CreateUserBadgeParams.h | 3 +- .../model/CreateUserBadge_200_response.h | 156 - .../model/CreateV1PageReact.h | 84 + .../model/CustomConfigParameters.h | 95 +- .../model/CustomEmailTemplate.h | 21 +- .../model/DeleteCommentAction.h | 3 +- .../model/DeleteCommentPublic_200_response.h | 155 - .../model/DeleteCommentResult.h | 3 +- .../model/DeleteCommentVote_200_response.h | 145 - .../model/DeleteComment_200_response.h | 146 - ...esponse.h => DeleteDomainConfigResponse.h} | 22 +- ...anyOf.h => DeleteFeedPostPublicResponse.h} | 19 +- .../model/DeleteFeedPostPublic_200_response.h | 137 - ...g_request.h => DeleteHashTagRequestBody.h} | 19 +- .../model/DeletePageAPIResponse.h | 3 +- .../model/DeleteSSOUserAPIResponse.h | 3 +- .../model/DeleteSubscriptionAPIResponse.h | 3 +- .../model/DeletedCommentResultComment.h | 6 +- .../model/DigestEmailFrequency.h | 3 +- .../model/EmailTemplateDefinition.h | 9 +- .../model/EmailTemplateRenderErrorResponse.h | 3 +- .../FastCommentsClient/model/EventLogEntry.h | 3 +- .../FastCommentsClient/model/FComment.h | 110 +- .../FastCommentsClient/model/FComment_meta.h | 21 +- .../FastCommentsClient/model/FeedPost.h | 12 +- .../FastCommentsClient/model/FeedPostLink.h | 3 +- .../model/FeedPostMediaItem.h | 3 +- .../model/FeedPostMediaItemAsset.h | 3 +- .../FastCommentsClient/model/FeedPostStats.h | 3 +- .../model/FeedPostsStatsResponse.h | 3 +- .../model/FindCommentsByRangeItem.h | 6 +- .../model/FindCommentsByRangeResponse.h | 3 +- .../model/FlagCommentPublic_200_response.h | 137 - .../model/FlagCommentResponse.h | 3 +- .../model/FlagComment_200_response.h | 153 - .../model/GetAuditLogsResponse.h | 3 +- .../model/GetAuditLogs_200_response.h | 148 - .../model/GetBannedUsersCountResponse.h | 82 + .../model/GetBannedUsersFromCommentResponse.h | 104 + .../GetCachedNotificationCountResponse.h | 3 +- .../GetCachedNotificationCount_200_response.h | 147 - .../model/GetCommentBanStatusResponse.h | 90 + .../model/GetCommentTextResponse.h | 84 + .../model/GetCommentText_200_response.h | 153 - .../GetCommentVoteUserNamesSuccessResponse.h | 3 +- .../GetCommentVoteUserNames_200_response.h | 154 - .../model/GetComment_200_response.h | 147 - .../model/GetCommentsForUserResponse.h | 76 + .../model/GetCommentsPublic_200_response.h | 329 - ...mentsResponseWithPresence_PublicComment_.h | 9 +- .../GetCommentsResponse_PublicComment_.h | 9 +- .../model/GetComments_200_response.h | 148 - ...0_response.h => GetDomainConfigResponse.h} | 29 +- ..._response.h => GetDomainConfigsResponse.h} | 29 +- ...yOf.h => GetDomainConfigsResponse_anyOf.h} | 25 +- ...1.h => GetDomainConfigsResponse_anyOf_1.h} | 22 +- .../GetEmailTemplateDefinitionsResponse.h | 3 +- ...GetEmailTemplateDefinitions_200_response.h | 148 - .../GetEmailTemplateRenderErrorsResponse.h | 3 +- ...etEmailTemplateRenderErrors_200_response.h | 148 - .../model/GetEmailTemplateResponse.h | 3 +- .../model/GetEmailTemplate_200_response.h | 147 - .../model/GetEmailTemplatesResponse.h | 3 +- .../model/GetEmailTemplates_200_response.h | 148 - .../model/GetEventLogResponse.h | 3 +- .../model/GetEventLog_200_response.h | 148 - .../model/GetFeedPostsPublic_200_response.h | 190 - .../model/GetFeedPostsResponse.h | 3 +- .../model/GetFeedPostsStats_200_response.h | 148 - .../model/GetFeedPosts_200_response.h | 148 - .../model/GetGifsSearchResponse.h | 96 + .../model/GetGifsTrendingResponse.h | 96 + .../model/GetHashTagsResponse.h | 3 +- .../model/GetHashTags_200_response.h | 148 - .../model/GetModeratorResponse.h | 3 +- .../model/GetModerator_200_response.h | 147 - .../model/GetModeratorsResponse.h | 3 +- .../model/GetModerators_200_response.h | 148 - .../model/GetMyNotificationsResponse.h | 3 +- .../model/GetNotificationCountResponse.h | 3 +- .../model/GetNotificationCount_200_response.h | 145 - .../model/GetNotificationsResponse.h | 3 +- .../model/GetNotifications_200_response.h | 148 - .../model/GetPageByURLIdAPIResponse.h | 3 +- .../model/GetPagesAPIResponse.h | 3 +- .../GetPendingWebhookEventCountResponse.h | 3 +- ...GetPendingWebhookEventCount_200_response.h | 145 - .../model/GetPendingWebhookEventsResponse.h | 3 +- .../GetPendingWebhookEvents_200_response.h | 148 - .../model/GetPublicFeedPostsResponse.h | 6 +- .../model/GetPublicPagesResponse.h | 95 + .../model/GetQuestionConfigResponse.h | 3 +- .../model/GetQuestionConfig_200_response.h | 147 - .../model/GetQuestionConfigsResponse.h | 3 +- .../model/GetQuestionConfigs_200_response.h | 148 - .../model/GetQuestionResultResponse.h | 3 +- .../model/GetQuestionResult_200_response.h | 147 - .../model/GetQuestionResultsResponse.h | 3 +- .../model/GetQuestionResults_200_response.h | 148 - .../model/GetSSOUserByEmailAPIResponse.h | 3 +- .../model/GetSSOUserByIdAPIResponse.h | 3 +- ...s_200_response.h => GetSSOUsersResponse.h} | 19 +- .../model/GetSubscriptionsAPIResponse.h | 3 +- .../model/GetTenantDailyUsagesResponse.h | 3 +- .../model/GetTenantDailyUsages_200_response.h | 148 - .../model/GetTenantManualBadgesResponse.h | 86 + .../model/GetTenantPackageResponse.h | 3 +- .../model/GetTenantPackage_200_response.h | 147 - .../model/GetTenantPackagesResponse.h | 3 +- .../model/GetTenantPackages_200_response.h | 148 - .../model/GetTenantResponse.h | 3 +- .../model/GetTenantUserResponse.h | 3 +- .../model/GetTenantUser_200_response.h | 147 - .../model/GetTenantUsersResponse.h | 3 +- .../model/GetTenantUsers_200_response.h | 148 - .../model/GetTenant_200_response.h | 147 - .../model/GetTenantsResponse.h | 3 +- .../model/GetTenants_200_response.h | 148 - .../model/GetTicketResponse.h | 3 +- .../model/GetTicket_200_response.h | 156 - .../model/GetTicketsResponse.h | 3 +- .../model/GetTickets_200_response.h | 148 - .../model/GetTranslationsResponse.h | 88 + .../GetUserBadgeProgressById_200_response.h | 147 - .../GetUserBadgeProgressList_200_response.h | 148 - .../model/GetUserBadge_200_response.h | 147 - .../model/GetUserBadges_200_response.h | 148 - .../model/GetUserInternalProfileResponse.h | 85 + .../GetUserInternalProfileResponse_profile.h | 202 + .../model/GetUserManualBadgesResponse.h | 86 + .../model/GetUserNotificationCountResponse.h | 3 +- .../GetUserNotificationCount_200_response.h | 145 - .../model/GetUserNotifications_200_response.h | 176 - .../model/GetUserPresenceStatusesResponse.h | 3 +- .../GetUserPresenceStatuses_200_response.h | 149 - .../model/GetUserReactsPublic_200_response.h | 146 - .../model/GetUserResponse.h | 3 +- .../model/GetUserTrustFactorResponse.h | 91 + .../model/GetUser_200_response.h | 147 - .../FastCommentsClient/model/GetV1PageLikes.h | 108 + .../model/GetV2PageReactUsersResponse.h | 85 + .../model/GetV2PageReacts.h | 97 + .../model/GetVotesForUserResponse.h | 3 +- .../model/GetVotesForUser_200_response.h | 164 - .../model/GetVotesResponse.h | 3 +- .../model/GetVotes_200_response.h | 164 - .../model/GifGetLargeResponse.h | 84 + .../FastCommentsClient/model/GifRating.h | 3 +- .../model/GifSearchInternalError.h | 84 + .../model/GifSearchResponse.h | 85 + .../GifSearchResponse_images_inner_inner.h | 65 + .../model/HeaderAccountNotification.h | 26 +- .../FastCommentsClient/model/HeaderState.h | 3 +- .../model/IgnoredResponse.h | 3 +- .../model/ImageContentProfanityLevel.h | 3 +- ...portedAgentApprovalNotificationFrequency.h | 88 + .../model/ImportedSiteType.h | 3 +- .../FastCommentsClient/model/LiveEvent.h | 11 +- .../FastCommentsClient/model/LiveEventType.h | 25 +- .../model/LiveEvent_extraInfo.h | 3 +- .../model/LockComment_200_response.h | 137 - .../FastCommentsClient/model/MediaAsset.h | 3 +- .../model/MentionAutoCompleteMode.h | 3 +- .../FastCommentsClient/model/MetaItem.h | 3 +- .../ModerationAPIChildCommentsResponse.h | 86 + .../model/ModerationAPIComment.h | 405 + .../model/ModerationAPICommentLog.h | 98 + .../model/ModerationAPICommentResponse.h | 85 + .../ModerationAPICountCommentsResponse.h | 83 + .../ModerationAPIGetCommentIdsResponse.h | 93 + .../model/ModerationAPIGetCommentsResponse.h | 105 + .../model/ModerationAPIGetLogsResponse.h | 86 + .../model/ModerationCommentSearchResponse.h | 83 + .../model/ModerationExportResponse.h | 82 + .../model/ModerationExportStatusResponse.h | 98 + .../model/ModerationFilter.h | 169 + .../model/ModerationPageSearchProjected.h | 98 + .../model/ModerationPageSearchResponse.h | 86 + .../model/ModerationSiteSearchProjected.h | 82 + .../model/ModerationSiteSearchResponse.h | 86 + .../model/ModerationSuggestResponse.h | 103 + .../model/ModerationUserSearchProjected.h | 98 + .../model/ModerationUserSearchResponse.h | 86 + .../FastCommentsClient/model/Moderator.h | 18 +- .../model/NotificationAndCount.h | 3 +- .../model/NotificationObjectType.h | 3 +- .../model/NotificationType.h | 3 +- .../FastCommentsClient/model/PageUserEntry.h | 98 + .../model/PageUsersInfoResponse.h | 86 + .../model/PageUsersOfflineResponse.h | 103 + .../model/PageUsersOnlineResponse.h | 119 + .../FastCommentsClient/model/PagesSortBy.h | 85 + .../model/PatchDomainConfigParams.h | 3 +- .../model/PatchDomainConfigResponse.h | 101 + .../model/PatchHashTag_200_response.h | 147 - .../model/PatchPageAPIResponse.h | 3 +- .../model/PatchSSOUserAPIResponse.h | 3 +- .../model/PendingCommentToSyncOutbound.h | 6 +- .../model/PinComment_200_response.h | 151 - .../model/PostRemoveCommentResponse.h | 84 + .../FastCommentsClient/model/PreBanSummary.h | 93 + .../FastCommentsClient/model/PubSubComment.h | 63 +- .../model/PubSubCommentBase.h | 63 +- .../FastCommentsClient/model/PubSubVote.h | 9 +- .../model/PublicAPIDeleteCommentResponse.h | 3 +- .../model/PublicAPIGetCommentTextResponse.h | 3 +- .../model/PublicAPISetCommentTextResponse.h | 3 +- .../model/PublicBlockFromCommentParams.h | 6 +- .../FastCommentsClient/model/PublicComment.h | 48 +- .../model/PublicCommentBase.h | 48 +- .../model/PublicFeedPostsResponse.h | 6 +- .../FastCommentsClient/model/PublicPage.h | 106 + .../FastCommentsClient/model/PublicVote.h | 3 +- .../model/PutDomainConfigResponse.h | 101 + .../model/PutSSOUserAPIResponse.h | 6 +- .../FastCommentsClient/model/QueryPredicate.h | 3 +- .../model/QueryPredicate_value.h | 3 +- .../FastCommentsClient/model/QuestionConfig.h | 3 +- .../QuestionConfig_customOptions_inner.h | 3 +- .../FastCommentsClient/model/QuestionDatum.h | 3 +- .../model/QuestionRenderingType.h | 3 +- .../FastCommentsClient/model/QuestionResult.h | 9 +- .../model/QuestionResultAggregationOverall.h | 3 +- .../model/QuestionSubQuestionVisibility.h | 3 +- .../model/QuestionWhenSave.h | 3 +- .../model/ReactBodyParams.h | 3 +- .../model/ReactFeedPostPublic_200_response.h | 153 - .../model/ReactFeedPostResponse.h | 3 +- ...ng_or_null__after_string_or_null___value.h | 3 +- .../model/RemoveCommentActionResponse.h | 82 + .../model/RemoveUserBadgeResponse.h | 86 + .../model/RenderEmailTemplateBody.h | 9 +- .../model/RenderEmailTemplateResponse.h | 3 +- .../model/RenderEmailTemplate_200_response.h | 145 - .../model/RenderableUserNotification.h | 18 +- .../model/RepeatCommentCheckIgnoredReason.h | 3 +- .../model/RepeatCommentHandlingAction.h | 3 +- .../model/ReplaceTenantPackageBody.h | 3 +- .../model/ReplaceTenantUserBody.h | 3 +- .../model/ResetUserNotificationsResponse.h | 3 +- .../ResetUserNotifications_200_response.h | 137 - .../FastCommentsClient/model/SORT_DIR.h | 3 +- .../model/SSOSecurityLevel.h | 3 +- .../model/SaveCommentResponseOptimized.h | 6 +- ..._response.h => SaveCommentsBulkResponse.h} | 34 +- .../model/SaveCommentsResponseWithPresence.h | 6 +- .../model/SearchUsersResponse.h | 3 +- .../model/SearchUsersResult.h | 98 + .../model/SearchUsersSectionedResponse.h | 3 +- .../model/SearchUsers_200_response.h | 159 - .../model/SetCommentApprovedResponse.h | 83 + .../model/SetCommentTextParams.h | 74 + .../model/SetCommentTextResponse.h | 84 + .../model/SetCommentTextResult.h | 3 +- .../model/SetCommentText_200_response.h | 147 - .../model/SetUserTrustFactorResponse.h | 83 + .../FastCommentsClient/model/SizePreset.h | 3 +- .../FastCommentsClient/model/SortDirections.h | 3 +- .../FastCommentsClient/model/SpamRule.h | 3 +- .../FastCommentsClient/model/TOSConfig.h | 3 +- .../FastCommentsClient/model/TenantBadge.h | 234 + .../FastCommentsClient/model/TenantHashTag.h | 3 +- .../FastCommentsClient/model/TenantPackage.h | 71 +- .../model/UnBlockCommentPublic_200_response.h | 149 - .../model/UnBlockFromCommentParams.h | 3 +- .../FastCommentsClient/model/UnblockSuccess.h | 3 +- .../model/UpdatableCommentParams.h | 66 +- .../model/UpdateAPIPageData.h | 3 +- .../model/UpdateAPISSOUserData.h | 3 +- .../model/UpdateAPIUserSubscriptionData.h | 3 +- .../model/UpdateDomainConfigParams.h | 3 +- .../model/UpdateEmailTemplateBody.h | 9 +- .../model/UpdateFeedPostParams.h | 3 +- .../model/UpdateHashTagBody.h | 3 +- .../model/UpdateHashTagResponse.h | 3 +- .../model/UpdateModeratorBody.h | 21 +- .../model/UpdateNotificationBody.h | 21 +- .../model/UpdateQuestionConfigBody.h | 21 +- .../model/UpdateQuestionResultBody.h | 24 +- .../model/UpdateSubscriptionAPIResponse.h | 3 +- .../model/UpdateTenantBody.h | 3 +- .../model/UpdateTenantPackageBody.h | 3 +- .../model/UpdateTenantUserBody.h | 3 +- .../model/UpdateUserBadgeParams.h | 3 +- .../model/UpdateUserBadge_200_response.h | 137 - ...icationCommentSubscriptionStatusResponse.h | 111 + ...tificationPageSubscriptionStatusResponse.h | 111 + ...=> UpdateUserNotificationStatusResponse.h} | 78 +- .../model/UploadImageResponse.h | 3 +- .../include/FastCommentsClient/model/User.h | 33 +- .../FastCommentsClient/model/UserBadge.h | 21 +- .../model/UserBadgeProgress.h | 3 +- .../model/UserNotification.h | 27 +- .../model/UserNotificationCount.h | 3 +- .../model/UserNotificationWriteResponse.h | 3 +- .../model/UserPresenceData.h | 3 +- .../model/UserReactsResponse.h | 3 +- .../model/UserSearchResult.h | 6 +- .../model/UserSearchSection.h | 3 +- .../model/UserSearchSectionResult.h | 3 +- .../model/UserSessionInfo.h | 12 +- .../model/UsersListLocation.h | 88 + .../FastCommentsClient/model/VoteBodyParams.h | 12 +- .../model/VoteComment_200_response.h | 171 - .../model/VoteDeleteResponse.h | 3 +- .../FastCommentsClient/model/VoteResponse.h | 21 +- .../model/VoteResponseUser.h | 6 +- .../model/VoteResponse_status.h | 66 + .../FastCommentsClient/model/VoteStyle.h | 3 +- client/src/AnyType.cpp | 2 +- client/src/ApiClient.cpp | 2 +- client/src/ApiConfiguration.cpp | 2 +- client/src/ApiException.cpp | 2 +- client/src/HttpContent.cpp | 2 +- client/src/JsonBody.cpp | 2 +- client/src/ModelBase.cpp | 2 +- client/src/MultipartFormData.cpp | 2 +- client/src/Object.cpp | 2 +- client/src/api/DefaultApi.cpp | 644 +- client/src/api/ModerationApi.cpp | 5868 +++++ client/src/api/PublicApi.cpp | 2943 ++- client/src/model/APIAuditLog.cpp | 76 +- client/src/model/APIBanUserChangeLog.cpp | 269 + client/src/model/APIBanUserChangedValues.cpp | 711 + client/src/model/APIBannedUser.cpp | 711 + .../model/APIBannedUserWithMultiMatchInfo.cpp | 514 + client/src/model/APIComment.cpp | 579 +- client/src/model/APICommentBase.cpp | 579 +- client/src/model/APICommentBase_meta.cpp | 56 +- .../src/model/APICommentCommonBannedUser.cpp | 466 + .../src/model/APICreateUserBadgeResponse.cpp | 8 +- client/src/model/APIDomainConfiguration.cpp | 134 +- client/src/model/APIEmptyResponse.cpp | 4 +- client/src/model/APIEmptySuccessResponse.cpp | 4 +- client/src/model/APIError.cpp | 18 +- client/src/model/APIGetCommentResponse.cpp | 6 +- client/src/model/APIGetCommentsResponse.cpp | 6 +- .../APIGetUserBadgeProgressListResponse.cpp | 6 +- .../model/APIGetUserBadgeProgressResponse.cpp | 6 +- client/src/model/APIGetUserBadgeResponse.cpp | 6 +- client/src/model/APIGetUserBadgesResponse.cpp | 6 +- ...IModerateGetUserBanPreferencesResponse.cpp | 171 + .../model/APIModerateUserBanPreferences.cpp | 269 + client/src/model/APIPage.cpp | 20 +- client/src/model/APISSOUser.cpp | 42 +- ...esponse.cpp => APISaveCommentResponse.cpp} | 78 +- client/src/model/APIStatus.cpp | 2 +- client/src/model/APITenant.cpp | 75 +- client/src/model/APITenantDailyUsage.cpp | 40 +- client/src/model/APITicket.cpp | 20 +- client/src/model/APITicketDetail.cpp | 79 +- client/src/model/APITicketFile.cpp | 22 +- client/src/model/APIUserSubscription.cpp | 18 +- client/src/model/AddDomainConfigParams.cpp | 16 +- ...sponse.cpp => AddDomainConfigResponse.cpp} | 194 +- ....cpp => AddDomainConfigResponse_anyOf.cpp} | 70 +- client/src/model/AddHashTag_200_response.cpp | 511 - .../model/AddHashTagsBulk_200_response.cpp | 511 - client/src/model/AddPageAPIResponse.cpp | 10 +- client/src/model/AddSSOUserAPIResponse.cpp | 10 +- client/src/model/AdjustCommentVotesParams.cpp | 123 + client/src/model/AdjustVotesResponse.cpp | 172 + .../AggregateQuestionResultsResponse.cpp | 6 +- .../AggregateQuestionResults_200_response.cpp | 511 - client/src/model/AggregateResponse.cpp | 365 + client/src/model/AggregateTimeBucket.cpp | 2 +- client/src/model/AggregationAPIError.cpp | 269 + client/src/model/AggregationItem.cpp | 4 +- client/src/model/AggregationOpType.cpp | 2 +- client/src/model/AggregationOperation.cpp | 10 +- client/src/model/AggregationRequest.cpp | 12 +- client/src/model/AggregationRequest_sort.cpp | 6 +- client/src/model/AggregationResponse.cpp | 8 +- .../src/model/AggregationResponse_stats.cpp | 6 +- client/src/model/AggregationValue.cpp | 12 +- client/src/model/AwardUserBadgeResponse.cpp | 219 + client/src/model/BanUserFromCommentResult.cpp | 270 + client/src/model/BanUserUndoParams.cpp | 123 + client/src/model/BannedUserMatch.cpp | 171 + client/src/model/BannedUserMatchType.cpp | 133 + ...cpp => BannedUserMatch_matchedOnValue.cpp} | 18 +- client/src/model/BillingInfo.cpp | 35 +- client/src/model/BlockFromCommentParams.cpp | 4 +- .../BlockFromCommentPublic_200_response.cpp | 510 - client/src/model/BlockSuccess.cpp | 6 +- .../src/model/BuildModerationFilterParams.cpp | 320 + .../model/BuildModerationFilterResponse.cpp | 172 + .../src/model/BulkAggregateQuestionItem.cpp | 14 +- .../BulkAggregateQuestionResultsRequest.cpp | 4 +- .../BulkAggregateQuestionResultsResponse.cpp | 6 +- ...kAggregateQuestionResults_200_response.cpp | 511 - client/src/model/BulkCreateHashTagsBody.cpp | 6 +- .../BulkCreateHashTagsBody_tags_inner.cpp | 6 +- .../src/model/BulkCreateHashTagsResponse.cpp | 14 +- ...kCreateHashTagsResponse_results_inner.cpp} | 108 +- client/src/model/BulkPreBanParams.cpp | 123 + client/src/model/BulkPreBanSummary.cpp | 364 + .../model/ChangeCommentPinStatusResponse.cpp | 6 +- client/src/model/ChangeTicketStateBody.cpp | 4 +- .../src/model/ChangeTicketStateResponse.cpp | 6 +- .../model/ChangeTicketState_200_response.cpp | 511 - .../model/CheckBlockedCommentsResponse.cpp | 6 +- ...CheckedCommentsForBlocked_200_response.cpp | 510 - ...mmentsWithQuestionResults_200_response.cpp | 511 - ...ineQuestionResultsWithCommentsResponse.cpp | 6 +- client/src/model/CommentData.cpp | 194 +- client/src/model/CommentHTMLRenderingMode.cpp | 2 +- client/src/model/CommentLogData.cpp | 312 +- client/src/model/CommentLogEntry.cpp | 8 +- client/src/model/CommentLogType.cpp | 2 +- .../CommentQuestionResultsRenderingType.cpp | 2 +- client/src/model/CommentQuestionsRequired.cpp | 2 +- client/src/model/CommentTextUpdateRequest.cpp | 8 +- .../src/model/CommentThreadDeletionMode.cpp | 2 +- client/src/model/CommentUserBadgeInfo.cpp | 122 +- client/src/model/CommentUserHashTagInfo.cpp | 27 +- client/src/model/CommentUserMentionInfo.cpp | 12 +- client/src/model/CommenterNameFormats.cpp | 2 +- client/src/model/CommentsByIdsParams.cpp | 123 + client/src/model/CreateAPIPageData.cpp | 14 +- client/src/model/CreateAPISSOUserData.cpp | 42 +- .../model/CreateAPIUserSubscriptionData.cpp | 14 +- client/src/model/CreateCommentParams.cpp | 214 +- .../CreateCommentPublic_200_response.cpp | 654 - client/src/model/CreateEmailTemplateBody.cpp | 22 +- .../src/model/CreateEmailTemplateResponse.cpp | 6 +- .../CreateEmailTemplate_200_response.cpp | 511 - client/src/model/CreateFeedPostParams.cpp | 18 +- .../CreateFeedPostPublic_200_response.cpp | 511 - client/src/model/CreateFeedPostResponse.cpp | 6 +- .../src/model/CreateFeedPost_200_response.cpp | 511 - client/src/model/CreateFeedPostsResponse.cpp | 6 +- client/src/model/CreateHashTagBody.cpp | 8 +- client/src/model/CreateHashTagResponse.cpp | 6 +- client/src/model/CreateModeratorBody.cpp | 62 +- client/src/model/CreateModeratorResponse.cpp | 6 +- .../model/CreateModerator_200_response.cpp | 511 - client/src/model/CreateQuestionConfigBody.cpp | 92 +- .../model/CreateQuestionConfigResponse.cpp | 6 +- .../CreateQuestionConfig_200_response.cpp | 511 - client/src/model/CreateQuestionResultBody.cpp | 87 +- .../model/CreateQuestionResultResponse.cpp | 6 +- .../CreateQuestionResult_200_response.cpp | 511 - .../model/CreateSubscriptionAPIResponse.cpp | 10 +- client/src/model/CreateTenantBody.cpp | 48 +- client/src/model/CreateTenantPackageBody.cpp | 264 +- .../src/model/CreateTenantPackageResponse.cpp | 6 +- .../CreateTenantPackage_200_response.cpp | 511 - client/src/model/CreateTenantResponse.cpp | 6 +- client/src/model/CreateTenantUserBody.cpp | 50 +- client/src/model/CreateTenantUserResponse.cpp | 6 +- .../model/CreateTenantUser_200_response.cpp | 511 - .../src/model/CreateTenant_200_response.cpp | 511 - client/src/model/CreateTicketBody.cpp | 4 +- client/src/model/CreateTicketResponse.cpp | 6 +- .../src/model/CreateTicket_200_response.cpp | 511 - client/src/model/CreateUserBadgeParams.cpp | 8 +- .../model/CreateUserBadge_200_response.cpp | 559 - client/src/model/CreateV1PageReact.cpp | 172 + client/src/model/CustomConfigParameters.cpp | 690 +- client/src/model/CustomEmailTemplate.cpp | 99 +- client/src/model/DeleteCommentAction.cpp | 2 +- .../DeleteCommentPublic_200_response.cpp | 559 - client/src/model/DeleteCommentResult.cpp | 6 +- .../model/DeleteCommentVote_200_response.cpp | 511 - .../src/model/DeleteComment_200_response.cpp | 511 - ...nse.cpp => DeleteDomainConfigResponse.cpp} | 44 +- ...f.cpp => DeleteFeedPostPublicResponse.cpp} | 28 +- .../DeleteFeedPostPublic_200_response.cpp | 463 - ...quest.cpp => DeleteHashTagRequestBody.cpp} | 28 +- client/src/model/DeletePageAPIResponse.cpp | 8 +- client/src/model/DeleteSSOUserAPIResponse.cpp | 10 +- .../model/DeleteSubscriptionAPIResponse.cpp | 8 +- .../src/model/DeletedCommentResultComment.cpp | 27 +- client/src/model/DigestEmailFrequency.cpp | 2 +- client/src/model/EmailTemplateDefinition.cpp | 18 +- .../EmailTemplateRenderErrorResponse.cpp | 16 +- client/src/model/EventLogEntry.cpp | 14 +- client/src/model/FComment.cpp | 751 +- client/src/model/FComment_meta.cpp | 59 +- client/src/model/FeedPost.cpp | 85 +- client/src/model/FeedPostLink.cpp | 10 +- client/src/model/FeedPostMediaItem.cpp | 8 +- client/src/model/FeedPostMediaItemAsset.cpp | 8 +- client/src/model/FeedPostStats.cpp | 6 +- client/src/model/FeedPostsStatsResponse.cpp | 6 +- client/src/model/FindCommentsByRangeItem.cpp | 22 +- .../src/model/FindCommentsByRangeResponse.cpp | 6 +- .../model/FlagCommentPublic_200_response.cpp | 463 - client/src/model/FlagCommentResponse.cpp | 12 +- client/src/model/FlagComment_200_response.cpp | 559 - client/src/model/GetAuditLogsResponse.cpp | 6 +- .../src/model/GetAuditLogs_200_response.cpp | 511 - .../src/model/GetBannedUsersCountResponse.cpp | 172 + .../GetBannedUsersFromCommentResponse.cpp | 249 + .../GetCachedNotificationCountResponse.cpp | 6 +- ...etCachedNotificationCount_200_response.cpp | 511 - .../src/model/GetCommentBanStatusResponse.cpp | 221 + client/src/model/GetCommentTextResponse.cpp | 172 + .../src/model/GetCommentText_200_response.cpp | 561 - ...GetCommentVoteUserNamesSuccessResponse.cpp | 8 +- .../GetCommentVoteUserNames_200_response.cpp | 559 - client/src/model/GetComment_200_response.cpp | 511 - .../src/model/GetCommentsForUserResponse.cpp | 123 + .../model/GetCommentsPublic_200_response.cpp | 1567 -- ...ntsResponseWithPresence_PublicComment_.cpp | 89 +- .../GetCommentsResponse_PublicComment_.cpp | 83 +- client/src/model/GetComments_200_response.cpp | 511 - ...sponse.cpp => GetDomainConfigResponse.cpp} | 194 +- ...ponse.cpp => GetDomainConfigsResponse.cpp} | 90 +- ...cpp => GetDomainConfigsResponse_anyOf.cpp} | 70 +- ...p => GetDomainConfigsResponse_anyOf_1.cpp} | 64 +- .../GetEmailTemplateDefinitionsResponse.cpp | 6 +- ...tEmailTemplateDefinitions_200_response.cpp | 511 - .../GetEmailTemplateRenderErrorsResponse.cpp | 6 +- ...EmailTemplateRenderErrors_200_response.cpp | 511 - client/src/model/GetEmailTemplateResponse.cpp | 6 +- .../model/GetEmailTemplate_200_response.cpp | 511 - .../src/model/GetEmailTemplatesResponse.cpp | 6 +- .../model/GetEmailTemplates_200_response.cpp | 511 - client/src/model/GetEventLogResponse.cpp | 6 +- client/src/model/GetEventLog_200_response.cpp | 511 - .../model/GetFeedPostsPublic_200_response.cpp | 752 - client/src/model/GetFeedPostsResponse.cpp | 6 +- .../model/GetFeedPostsStats_200_response.cpp | 511 - .../src/model/GetFeedPosts_200_response.cpp | 511 - client/src/model/GetGifsSearchResponse.cpp | 220 + client/src/model/GetGifsTrendingResponse.cpp | 220 + client/src/model/GetHashTagsResponse.cpp | 6 +- client/src/model/GetHashTags_200_response.cpp | 511 - client/src/model/GetModeratorResponse.cpp | 6 +- .../src/model/GetModerator_200_response.cpp | 511 - client/src/model/GetModeratorsResponse.cpp | 6 +- .../src/model/GetModerators_200_response.cpp | 511 - .../src/model/GetMyNotificationsResponse.cpp | 12 +- .../model/GetNotificationCountResponse.cpp | 6 +- .../GetNotificationCount_200_response.cpp | 511 - client/src/model/GetNotificationsResponse.cpp | 6 +- .../model/GetNotifications_200_response.cpp | 511 - .../src/model/GetPageByURLIdAPIResponse.cpp | 10 +- client/src/model/GetPagesAPIResponse.cpp | 10 +- .../GetPendingWebhookEventCountResponse.cpp | 6 +- ...tPendingWebhookEventCount_200_response.cpp | 511 - .../model/GetPendingWebhookEventsResponse.cpp | 6 +- .../GetPendingWebhookEvents_200_response.cpp | 511 - .../src/model/GetPublicFeedPostsResponse.cpp | 24 +- client/src/model/GetPublicPagesResponse.cpp | 220 + .../src/model/GetQuestionConfigResponse.cpp | 6 +- .../model/GetQuestionConfig_200_response.cpp | 511 - .../src/model/GetQuestionConfigsResponse.cpp | 6 +- .../model/GetQuestionConfigs_200_response.cpp | 511 - .../src/model/GetQuestionResultResponse.cpp | 6 +- .../model/GetQuestionResult_200_response.cpp | 511 - .../src/model/GetQuestionResultsResponse.cpp | 6 +- .../model/GetQuestionResults_200_response.cpp | 511 - .../model/GetSSOUserByEmailAPIResponse.cpp | 10 +- .../src/model/GetSSOUserByIdAPIResponse.cpp | 10 +- ...0_response.cpp => GetSSOUsersResponse.cpp} | 38 +- .../src/model/GetSubscriptionsAPIResponse.cpp | 10 +- .../model/GetTenantDailyUsagesResponse.cpp | 6 +- .../GetTenantDailyUsages_200_response.cpp | 511 - .../model/GetTenantManualBadgesResponse.cpp | 171 + client/src/model/GetTenantPackageResponse.cpp | 6 +- .../model/GetTenantPackage_200_response.cpp | 511 - .../src/model/GetTenantPackagesResponse.cpp | 6 +- .../model/GetTenantPackages_200_response.cpp | 511 - client/src/model/GetTenantResponse.cpp | 6 +- client/src/model/GetTenantUserResponse.cpp | 6 +- .../src/model/GetTenantUser_200_response.cpp | 511 - client/src/model/GetTenantUsersResponse.cpp | 6 +- .../src/model/GetTenantUsers_200_response.cpp | 511 - client/src/model/GetTenant_200_response.cpp | 511 - client/src/model/GetTenantsResponse.cpp | 6 +- client/src/model/GetTenants_200_response.cpp | 511 - client/src/model/GetTicketResponse.cpp | 8 +- client/src/model/GetTicket_200_response.cpp | 558 - client/src/model/GetTicketsResponse.cpp | 6 +- client/src/model/GetTickets_200_response.cpp | 511 - client/src/model/GetTranslationsResponse.cpp | 171 + .../GetUserBadgeProgressById_200_response.cpp | 511 - .../GetUserBadgeProgressList_200_response.cpp | 511 - .../src/model/GetUserBadge_200_response.cpp | 511 - .../src/model/GetUserBadges_200_response.cpp | 511 - .../model/GetUserInternalProfileResponse.cpp | 171 + ...GetUserInternalProfileResponse_profile.cpp | 906 + .../src/model/GetUserManualBadgesResponse.cpp | 171 + .../GetUserNotificationCountResponse.cpp | 6 +- .../GetUserNotificationCount_200_response.cpp | 511 - .../GetUserNotifications_200_response.cpp | 655 - .../model/GetUserPresenceStatusesResponse.cpp | 6 +- .../GetUserPresenceStatuses_200_response.cpp | 510 - .../GetUserReactsPublic_200_response.cpp | 511 - client/src/model/GetUserResponse.cpp | 6 +- .../src/model/GetUserTrustFactorResponse.cpp | 219 + client/src/model/GetUser_200_response.cpp | 511 - client/src/model/GetV1PageLikes.cpp | 316 + .../src/model/GetV2PageReactUsersResponse.cpp | 171 + client/src/model/GetV2PageReacts.cpp | 218 + client/src/model/GetVotesForUserResponse.cpp | 10 +- .../model/GetVotesForUser_200_response.cpp | 607 - client/src/model/GetVotesResponse.cpp | 10 +- client/src/model/GetVotes_200_response.cpp | 607 - client/src/model/GifGetLargeResponse.cpp | 172 + client/src/model/GifRating.cpp | 2 +- client/src/model/GifSearchInternalError.cpp | 172 + client/src/model/GifSearchResponse.cpp | 171 + .../GifSearchResponse_images_inner_inner.cpp | 75 + .../src/model/HeaderAccountNotification.cpp | 135 +- client/src/model/HeaderState.cpp | 14 +- client/src/model/IgnoredResponse.cpp | 6 +- .../src/model/ImageContentProfanityLevel.cpp | 2 +- ...rtedAgentApprovalNotificationFrequency.cpp | 138 + client/src/model/ImportedSiteType.cpp | 2 +- client/src/model/LiveEvent.cpp | 82 +- client/src/model/LiveEventType.cpp | 26 +- client/src/model/LiveEvent_extraInfo.cpp | 4 +- client/src/model/LockComment_200_response.cpp | 463 - client/src/model/MediaAsset.cpp | 8 +- client/src/model/MentionAutoCompleteMode.cpp | 2 +- client/src/model/MetaItem.cpp | 6 +- .../ModerationAPIChildCommentsResponse.cpp | 171 + client/src/model/ModerationAPIComment.cpp | 2109 ++ client/src/model/ModerationAPICommentLog.cpp | 271 + .../model/ModerationAPICommentResponse.cpp | 171 + .../ModerationAPICountCommentsResponse.cpp | 171 + .../ModerationAPIGetCommentIdsResponse.cpp | 219 + .../ModerationAPIGetCommentsResponse.cpp | 267 + .../model/ModerationAPIGetLogsResponse.cpp | 171 + .../model/ModerationCommentSearchResponse.cpp | 171 + client/src/model/ModerationExportResponse.cpp | 173 + .../model/ModerationExportStatusResponse.cpp | 270 + client/src/model/ModerationFilter.cpp | 655 + .../model/ModerationPageSearchProjected.cpp | 270 + .../model/ModerationPageSearchResponse.cpp | 171 + .../model/ModerationSiteSearchProjected.cpp | 173 + .../model/ModerationSiteSearchResponse.cpp | 171 + .../src/model/ModerationSuggestResponse.cpp | 269 + .../model/ModerationUserSearchProjected.cpp | 271 + .../model/ModerationUserSearchResponse.cpp | 171 + client/src/model/Moderator.cpp | 124 +- client/src/model/NotificationAndCount.cpp | 6 +- client/src/model/NotificationObjectType.cpp | 2 +- client/src/model/NotificationType.cpp | 2 +- client/src/model/PageUserEntry.cpp | 270 + client/src/model/PageUsersInfoResponse.cpp | 171 + client/src/model/PageUsersOfflineResponse.cpp | 269 + client/src/model/PageUsersOnlineResponse.cpp | 365 + client/src/model/PagesSortBy.cpp | 129 + client/src/model/PatchDomainConfigParams.cpp | 16 +- .../src/model/PatchDomainConfigResponse.cpp | 269 + client/src/model/PatchPageAPIResponse.cpp | 12 +- client/src/model/PatchSSOUserAPIResponse.cpp | 10 +- .../model/PendingCommentToSyncOutbound.cpp | 45 +- client/src/model/PinComment_200_response.cpp | 511 - .../src/model/PostRemoveCommentResponse.cpp | 173 + client/src/model/PreBanSummary.cpp | 219 + client/src/model/PubSubComment.cpp | 426 +- client/src/model/PubSubCommentBase.cpp | 420 +- client/src/model/PubSubVote.cpp | 54 +- .../model/PublicAPIDeleteCommentResponse.cpp | 8 +- .../model/PublicAPIGetCommentTextResponse.cpp | 8 +- .../model/PublicAPISetCommentTextResponse.cpp | 6 +- .../model/PublicBlockFromCommentParams.cpp | 20 +- client/src/model/PublicComment.cpp | 334 +- client/src/model/PublicCommentBase.cpp | 314 +- client/src/model/PublicFeedPostsResponse.cpp | 32 +- client/src/model/PublicPage.cpp | 318 + client/src/model/PublicVote.cpp | 14 +- client/src/model/PutDomainConfigResponse.cpp | 269 + client/src/model/PutSSOUserAPIResponse.cpp | 26 +- client/src/model/QueryPredicate.cpp | 8 +- client/src/model/QueryPredicate_value.cpp | 2 +- client/src/model/QuestionConfig.cpp | 44 +- .../QuestionConfig_customOptions_inner.cpp | 6 +- client/src/model/QuestionDatum.cpp | 6 +- client/src/model/QuestionRenderingType.cpp | 2 +- client/src/model/QuestionResult.cpp | 57 +- .../QuestionResultAggregationOverall.cpp | 14 +- .../model/QuestionSubQuestionVisibility.cpp | 2 +- client/src/model/QuestionWhenSave.cpp | 2 +- client/src/model/ReactBodyParams.cpp | 4 +- .../ReactFeedPostPublic_200_response.cpp | 560 - client/src/model/ReactFeedPostResponse.cpp | 8 +- ..._or_null__after_string_or_null___value.cpp | 6 +- .../src/model/RemoveCommentActionResponse.cpp | 173 + client/src/model/RemoveUserBadgeResponse.cpp | 171 + client/src/model/RenderEmailTemplateBody.cpp | 18 +- .../src/model/RenderEmailTemplateResponse.cpp | 6 +- .../RenderEmailTemplate_200_response.cpp | 512 - .../src/model/RenderableUserNotification.cpp | 129 +- .../model/RepeatCommentCheckIgnoredReason.cpp | 2 +- .../src/model/RepeatCommentHandlingAction.cpp | 2 +- client/src/model/ReplaceTenantPackageBody.cpp | 64 +- client/src/model/ReplaceTenantUserBody.cpp | 58 +- .../model/ResetUserNotificationsResponse.cpp | 6 +- .../ResetUserNotifications_200_response.cpp | 463 - client/src/model/SORT_DIR.cpp | 2 +- client/src/model/SSOSecurityLevel.cpp | 2 +- .../model/SaveCommentResponseOptimized.cpp | 26 +- ...ponse.cpp => SaveCommentsBulkResponse.cpp} | 148 +- .../SaveCommentsResponseWithPresence.cpp | 28 +- client/src/model/SearchUsersResponse.cpp | 6 +- client/src/model/SearchUsersResult.cpp | 219 + .../model/SearchUsersSectionedResponse.cpp | 6 +- client/src/model/SearchUsers_200_response.cpp | 559 - .../src/model/SetCommentApprovedResponse.cpp | 171 + client/src/model/SetCommentTextParams.cpp | 124 + client/src/model/SetCommentTextResponse.cpp | 172 + client/src/model/SetCommentTextResult.cpp | 6 +- .../src/model/SetCommentText_200_response.cpp | 511 - .../src/model/SetUserTrustFactorResponse.cpp | 171 + client/src/model/SizePreset.cpp | 2 +- client/src/model/SortDirections.cpp | 2 +- client/src/model/SpamRule.cpp | 6 +- client/src/model/TOSConfig.cpp | 8 +- client/src/model/TenantBadge.cpp | 1097 + client/src/model/TenantHashTag.cpp | 12 +- client/src/model/TenantPackage.cpp | 515 +- .../UnBlockCommentPublic_200_response.cpp | 510 - client/src/model/UnBlockFromCommentParams.cpp | 4 +- client/src/model/UnblockSuccess.cpp | 6 +- client/src/model/UpdatableCommentParams.cpp | 435 +- client/src/model/UpdateAPIPageData.cpp | 12 +- client/src/model/UpdateAPISSOUserData.cpp | 42 +- .../model/UpdateAPIUserSubscriptionData.cpp | 4 +- client/src/model/UpdateDomainConfigParams.cpp | 16 +- client/src/model/UpdateEmailTemplateBody.cpp | 22 +- client/src/model/UpdateFeedPostParams.cpp | 14 +- client/src/model/UpdateHashTagBody.cpp | 8 +- client/src/model/UpdateHashTagResponse.cpp | 6 +- client/src/model/UpdateModeratorBody.cpp | 62 +- client/src/model/UpdateNotificationBody.cpp | 56 +- client/src/model/UpdateQuestionConfigBody.cpp | 92 +- client/src/model/UpdateQuestionResultBody.cpp | 87 +- .../model/UpdateSubscriptionAPIResponse.cpp | 10 +- client/src/model/UpdateTenantBody.cpp | 50 +- client/src/model/UpdateTenantPackageBody.cpp | 66 +- client/src/model/UpdateTenantUserBody.cpp | 50 +- client/src/model/UpdateUserBadgeParams.cpp | 4 +- .../model/UpdateUserBadge_200_response.cpp | 463 - ...ationCommentSubscriptionStatusResponse.cpp | 297 + ...ficationPageSubscriptionStatusResponse.cpp | 297 + .../UpdateUserNotificationStatusResponse.cpp | 297 + ...ateUserNotificationStatus_200_response.cpp | 637 - client/src/model/UploadImageResponse.cpp | 12 +- client/src/model/User.cpp | 287 +- client/src/model/UserBadge.cpp | 142 +- client/src/model/UserBadgeProgress.cpp | 20 +- client/src/model/UserNotification.cpp | 186 +- client/src/model/UserNotificationCount.cpp | 10 +- .../model/UserNotificationWriteResponse.cpp | 8 +- client/src/model/UserPresenceData.cpp | 8 +- client/src/model/UserReactsResponse.cpp | 6 +- client/src/model/UserSearchResult.cpp | 29 +- client/src/model/UserSearchSection.cpp | 2 +- client/src/model/UserSearchSectionResult.cpp | 6 +- client/src/model/UserSessionInfo.cpp | 81 +- client/src/model/UsersListLocation.cpp | 138 + client/src/model/VoteBodyParams.cpp | 61 +- client/src/model/VoteComment_200_response.cpp | 657 - client/src/model/VoteDeleteResponse.cpp | 6 +- client/src/model/VoteResponse.cpp | 64 +- client/src/model/VoteResponseUser.cpp | 21 +- client/src/model/VoteResponse_status.cpp | 75 + client/src/model/VoteStyle.cpp | 2 +- docs/Apis/DefaultApi.md | 398 +- docs/Apis/ModerationApi.md | 1220 + docs/Apis/PublicApi.md | 630 +- docs/Models/APIBanUserChangeLog.md | 12 + docs/Models/APIBanUserChangedValues.md | 21 + docs/Models/APIBannedUser.md | 21 + .../Models/APIBannedUserWithMultiMatchInfo.md | 17 + docs/Models/APIComment.md | 2 +- docs/Models/APICommentBase.md | 2 +- docs/Models/APICommentCommonBannedUser.md | 16 + ...PIModerateGetUserBanPreferencesResponse.md | 10 + docs/Models/APIModerateUserBanPreferences.md | 12 + ...tResponse.md => APISaveCommentResponse.md} | 4 +- ...response.md => AddDomainConfigResponse.md} | 2 +- ...Of.md => AddDomainConfigResponse_anyOf.md} | 2 +- docs/Models/AddHashTagsBulk_200_response.md | 17 - docs/Models/AdjustCommentVotesParams.md | 9 + docs/Models/AdjustVotesResponse.md | 10 + .../AggregateQuestionResults_200_response.md | 17 - docs/Models/AggregateResponse.md | 14 + docs/Models/AggregationAPIError.md | 12 + docs/Models/AwardUserBadgeResponse.md | 11 + docs/Models/BanUserFromCommentResult.md | 12 + docs/Models/BanUserUndoParams.md | 9 + docs/Models/BannedUserMatch.md | 10 + ...umber__value.md => BannedUserMatchType.md} | 2 +- docs/Models/BannedUserMatch_matchedOnValue.md | 8 + .../BlockFromCommentPublic_200_response.md | 17 - docs/Models/BuildModerationFilterParams.md | 13 + docs/Models/BuildModerationFilterResponse.md | 10 + ...lkAggregateQuestionResults_200_response.md | 17 - docs/Models/BulkCreateHashTagsResponse.md | 2 +- ...lkCreateHashTagsResponse_results_inner.md} | 2 +- docs/Models/BulkPreBanParams.md | 9 + docs/Models/BulkPreBanSummary.md | 14 + docs/Models/ChangeTicketState_200_response.md | 17 - .../CheckedCommentsForBlocked_200_response.md | 17 - ...ommentsWithQuestionResults_200_response.md | 17 - docs/Models/CommentData.md | 3 +- docs/Models/CommentLogData.md | 1 + docs/Models/CommentsByIdsParams.md | 9 + docs/Models/CreateCommentParams.md | 3 +- .../CreateCommentPublic_200_response.md | 20 - .../CreateEmailTemplate_200_response.md | 17 - .../CreateFeedPostPublic_200_response.md | 17 - docs/Models/CreateFeedPost_200_response.md | 17 - docs/Models/CreateModerator_200_response.md | 17 - .../CreateQuestionConfig_200_response.md | 17 - .../CreateQuestionResult_200_response.md | 17 - docs/Models/CreateTenantPackageBody.md | 4 +- .../CreateTenantPackage_200_response.md | 17 - docs/Models/CreateTenantUser_200_response.md | 17 - docs/Models/CreateTenant_200_response.md | 17 - docs/Models/CreateTicket_200_response.md | 17 - docs/Models/CreateUserBadge_200_response.md | 18 - docs/Models/CreateV1PageReact.md | 10 + docs/Models/CustomConfigParameters.md | 5 + .../DeleteCommentPublic_200_response.md | 18 - docs/Models/DeleteCommentVote_200_response.md | 17 - docs/Models/DeleteComment_200_response.md | 17 - ...ponse.md => DeleteDomainConfigResponse.md} | 2 +- ...yOf.md => DeleteFeedPostPublicResponse.md} | 2 +- .../DeleteFeedPostPublic_200_response.md | 16 - ...request.md => DeleteHashTagRequestBody.md} | 2 +- docs/Models/FComment.md | 1 + docs/Models/FlagCommentPublic_200_response.md | 16 - docs/Models/FlagComment_200_response.md | 18 - docs/Models/GetAuditLogs_200_response.md | 17 - docs/Models/GetBannedUsersCountResponse.md | 10 + .../GetBannedUsersFromCommentResponse.md | 11 + ...GetCachedNotificationCount_200_response.md | 17 - docs/Models/GetCommentBanStatusResponse.md | 11 + docs/Models/GetCommentTextResponse.md | 10 + docs/Models/GetCommentText_200_response.md | 18 - .../GetCommentVoteUserNames_200_response.md | 18 - docs/Models/GetComment_200_response.md | 17 - docs/Models/GetCommentsForUserResponse.md | 9 + docs/Models/GetCommentsPublic_200_response.md | 39 - docs/Models/GetComments_200_response.md | 17 - ...response.md => GetDomainConfigResponse.md} | 2 +- ...esponse.md => GetDomainConfigsResponse.md} | 2 +- ...f.md => GetDomainConfigsResponse_anyOf.md} | 2 +- ...md => GetDomainConfigsResponse_anyOf_1.md} | 2 +- ...etEmailTemplateDefinitions_200_response.md | 17 - ...tEmailTemplateRenderErrors_200_response.md | 17 - docs/Models/GetEmailTemplate_200_response.md | 17 - docs/Models/GetEmailTemplates_200_response.md | 17 - docs/Models/GetEventLog_200_response.md | 17 - .../Models/GetFeedPostsPublic_200_response.md | 22 - docs/Models/GetFeedPostsStats_200_response.md | 17 - docs/Models/GetFeedPosts_200_response.md | 17 - docs/Models/GetGifsSearchResponse.md | 11 + docs/Models/GetGifsTrendingResponse.md | 11 + docs/Models/GetHashTags_200_response.md | 17 - docs/Models/GetModerator_200_response.md | 17 - docs/Models/GetModerators_200_response.md | 17 - .../GetNotificationCount_200_response.md | 17 - docs/Models/GetNotifications_200_response.md | 17 - ...etPendingWebhookEventCount_200_response.md | 17 - .../GetPendingWebhookEvents_200_response.md | 17 - docs/Models/GetPublicPagesResponse.md | 11 + docs/Models/GetQuestionConfig_200_response.md | 17 - .../Models/GetQuestionConfigs_200_response.md | 17 - docs/Models/GetQuestionResult_200_response.md | 17 - .../Models/GetQuestionResults_200_response.md | 17 - ...200_response.md => GetSSOUsersResponse.md} | 2 +- .../GetTenantDailyUsages_200_response.md | 17 - docs/Models/GetTenantManualBadgesResponse.md | 10 + docs/Models/GetTenantPackage_200_response.md | 17 - docs/Models/GetTenantPackages_200_response.md | 17 - docs/Models/GetTenantUser_200_response.md | 17 - docs/Models/GetTenantUsers_200_response.md | 17 - docs/Models/GetTenant_200_response.md | 17 - docs/Models/GetTenants_200_response.md | 17 - docs/Models/GetTicket_200_response.md | 18 - docs/Models/GetTickets_200_response.md | 17 - docs/Models/GetTranslationsResponse.md | 10 + .../GetUserBadgeProgressById_200_response.md | 17 - .../GetUserBadgeProgressList_200_response.md | 17 - docs/Models/GetUserBadge_200_response.md | 17 - docs/Models/GetUserBadges_200_response.md | 17 - docs/Models/GetUserInternalProfileResponse.md | 10 + .../GetUserInternalProfileResponse_profile.md | 25 + docs/Models/GetUserManualBadgesResponse.md | 10 + .../GetUserNotificationCount_200_response.md | 17 - .../GetUserNotifications_200_response.md | 20 - .../GetUserPresenceStatuses_200_response.md | 17 - .../GetUserReactsPublic_200_response.md | 17 - docs/Models/GetUserTrustFactorResponse.md | 11 + docs/Models/GetUser_200_response.md | 17 - docs/Models/GetV1PageLikes.md | 13 + docs/Models/GetV2PageReactUsersResponse.md | 10 + docs/Models/GetV2PageReacts.md | 11 + docs/Models/GetVotesForUser_200_response.md | 19 - docs/Models/GetVotes_200_response.md | 19 - docs/Models/GifGetLargeResponse.md | 10 + docs/Models/GifSearchInternalError.md | 10 + docs/Models/GifSearchResponse.md | 10 + .../GifSearchResponse_images_inner_inner.md | 8 + docs/Models/HeaderAccountNotification.md | 1 + ...ortedAgentApprovalNotificationFrequency.md | 8 + docs/Models/LiveEvent.md | 1 + docs/Models/LockComment_200_response.md | 16 - .../ModerationAPIChildCommentsResponse.md | 10 + docs/Models/ModerationAPIComment.md | 50 + docs/Models/ModerationAPICommentLog.md | 12 + docs/Models/ModerationAPICommentResponse.md | 10 + .../ModerationAPICountCommentsResponse.md | 10 + .../ModerationAPIGetCommentIdsResponse.md | 11 + .../ModerationAPIGetCommentsResponse.md | 12 + docs/Models/ModerationAPIGetLogsResponse.md | 10 + .../Models/ModerationCommentSearchResponse.md | 10 + docs/Models/ModerationExportResponse.md | 10 + docs/Models/ModerationExportStatusResponse.md | 12 + docs/Models/ModerationFilter.md | 20 + docs/Models/ModerationPageSearchProjected.md | 12 + docs/Models/ModerationPageSearchResponse.md | 10 + docs/Models/ModerationSiteSearchProjected.md | 10 + docs/Models/ModerationSiteSearchResponse.md | 10 + docs/Models/ModerationSuggestResponse.md | 12 + docs/Models/ModerationUserSearchProjected.md | 12 + docs/Models/ModerationUserSearchResponse.md | 10 + docs/Models/PageUserEntry.md | 12 + docs/Models/PageUsersInfoResponse.md | 10 + docs/Models/PageUsersOfflineResponse.md | 12 + docs/Models/PageUsersOnlineResponse.md | 14 + docs/Models/PagesSortBy.md | 8 + docs/Models/PatchDomainConfigResponse.md | 12 + docs/Models/PatchHashTag_200_response.md | 17 - docs/Models/PinComment_200_response.md | 17 - docs/Models/PostRemoveCommentResponse.md | 10 + docs/Models/PreBanSummary.md | 11 + docs/Models/PublicPage.md | 13 + docs/Models/PutDomainConfigResponse.md | 12 + .../ReactFeedPostPublic_200_response.md | 18 - docs/Models/RemoveCommentActionResponse.md | 10 + docs/Models/RemoveUserBadgeResponse.md | 10 + .../RenderEmailTemplate_200_response.md | 17 - .../ResetUserNotifications_200_response.md | 16 - ...esponse.md => SaveCommentsBulkResponse.md} | 4 +- docs/Models/SearchUsersResult.md | 11 + docs/Models/SearchUsers_200_response.md | 18 - docs/Models/SetCommentApprovedResponse.md | 10 + docs/Models/SetCommentTextParams.md | 9 + docs/Models/SetCommentTextResponse.md | 10 + docs/Models/SetCommentText_200_response.md | 17 - docs/Models/SetUserTrustFactorResponse.md | 10 + docs/Models/TenantBadge.md | 29 + docs/Models/TenantPackage.md | 7 + .../UnBlockCommentPublic_200_response.md | 17 - docs/Models/UpdateUserBadge_200_response.md | 16 - ...cationCommentSubscriptionStatusResponse.md | 12 + ...ificationPageSubscriptionStatusResponse.md | 12 + .../UpdateUserNotificationStatusResponse.md | 12 + ...dateUserNotificationStatus_200_response.md | 19 - docs/Models/User.md | 1 + docs/Models/UsersListLocation.md | 8 + docs/Models/VoteComment_200_response.md | 20 - docs/Models/VoteResponse.md | 2 +- docs/Models/VoteResponse_status.md | 8 + docs/README.md | 553 +- openapi.json | 19836 ++++++++++------ 1117 files changed, 66601 insertions(+), 73928 deletions(-) create mode 100644 client/include/FastCommentsClient/api/ModerationApi.h create mode 100644 client/include/FastCommentsClient/model/APIBanUserChangeLog.h create mode 100644 client/include/FastCommentsClient/model/APIBanUserChangedValues.h create mode 100644 client/include/FastCommentsClient/model/APIBannedUser.h create mode 100644 client/include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h create mode 100644 client/include/FastCommentsClient/model/APICommentCommonBannedUser.h create mode 100644 client/include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h create mode 100644 client/include/FastCommentsClient/model/APIModerateUserBanPreferences.h rename client/include/FastCommentsClient/model/{SaveCommentResponse.h => APISaveCommentResponse.h} (74%) rename client/include/FastCommentsClient/model/{AddDomainConfig_200_response.h => AddDomainConfigResponse.h} (69%) rename client/include/FastCommentsClient/model/{AddDomainConfig_200_response_anyOf.h => AddDomainConfigResponse_anyOf.h} (66%) delete mode 100644 client/include/FastCommentsClient/model/AddHashTagsBulk_200_response.h create mode 100644 client/include/FastCommentsClient/model/AdjustCommentVotesParams.h create mode 100644 client/include/FastCommentsClient/model/AdjustVotesResponse.h delete mode 100644 client/include/FastCommentsClient/model/AggregateQuestionResults_200_response.h create mode 100644 client/include/FastCommentsClient/model/AggregateResponse.h create mode 100644 client/include/FastCommentsClient/model/AggregationAPIError.h create mode 100644 client/include/FastCommentsClient/model/AwardUserBadgeResponse.h create mode 100644 client/include/FastCommentsClient/model/BanUserFromCommentResult.h create mode 100644 client/include/FastCommentsClient/model/BanUserUndoParams.h create mode 100644 client/include/FastCommentsClient/model/BannedUserMatch.h create mode 100644 client/include/FastCommentsClient/model/BannedUserMatchType.h rename client/include/FastCommentsClient/model/{Record_string_string_or_number__value.h => BannedUserMatch_matchedOnValue.h} (62%) delete mode 100644 client/include/FastCommentsClient/model/BlockFromCommentPublic_200_response.h create mode 100644 client/include/FastCommentsClient/model/BuildModerationFilterParams.h create mode 100644 client/include/FastCommentsClient/model/BuildModerationFilterResponse.h delete mode 100644 client/include/FastCommentsClient/model/BulkAggregateQuestionResults_200_response.h rename client/include/FastCommentsClient/model/{AddHashTag_200_response.h => BulkCreateHashTagsResponse_results_inner.h} (85%) create mode 100644 client/include/FastCommentsClient/model/BulkPreBanParams.h create mode 100644 client/include/FastCommentsClient/model/BulkPreBanSummary.h delete mode 100644 client/include/FastCommentsClient/model/ChangeTicketState_200_response.h delete mode 100644 client/include/FastCommentsClient/model/CheckedCommentsForBlocked_200_response.h delete mode 100644 client/include/FastCommentsClient/model/CombineCommentsWithQuestionResults_200_response.h create mode 100644 client/include/FastCommentsClient/model/CommentsByIdsParams.h delete mode 100644 client/include/FastCommentsClient/model/CreateCommentPublic_200_response.h delete mode 100644 client/include/FastCommentsClient/model/CreateEmailTemplate_200_response.h delete mode 100644 client/include/FastCommentsClient/model/CreateFeedPostPublic_200_response.h delete mode 100644 client/include/FastCommentsClient/model/CreateFeedPost_200_response.h delete mode 100644 client/include/FastCommentsClient/model/CreateModerator_200_response.h delete mode 100644 client/include/FastCommentsClient/model/CreateQuestionConfig_200_response.h delete mode 100644 client/include/FastCommentsClient/model/CreateQuestionResult_200_response.h delete mode 100644 client/include/FastCommentsClient/model/CreateTenantPackage_200_response.h delete mode 100644 client/include/FastCommentsClient/model/CreateTenantUser_200_response.h delete mode 100644 client/include/FastCommentsClient/model/CreateTenant_200_response.h delete mode 100644 client/include/FastCommentsClient/model/CreateTicket_200_response.h delete mode 100644 client/include/FastCommentsClient/model/CreateUserBadge_200_response.h create mode 100644 client/include/FastCommentsClient/model/CreateV1PageReact.h delete mode 100644 client/include/FastCommentsClient/model/DeleteCommentPublic_200_response.h delete mode 100644 client/include/FastCommentsClient/model/DeleteCommentVote_200_response.h delete mode 100644 client/include/FastCommentsClient/model/DeleteComment_200_response.h rename client/include/FastCommentsClient/model/{DeleteDomainConfig_200_response.h => DeleteDomainConfigResponse.h} (66%) rename client/include/FastCommentsClient/model/{DeleteFeedPostPublic_200_response_anyOf.h => DeleteFeedPostPublicResponse.h} (67%) delete mode 100644 client/include/FastCommentsClient/model/DeleteFeedPostPublic_200_response.h rename client/include/FastCommentsClient/model/{DeleteHashTag_request.h => DeleteHashTagRequestBody.h} (72%) delete mode 100644 client/include/FastCommentsClient/model/FlagCommentPublic_200_response.h delete mode 100644 client/include/FastCommentsClient/model/FlagComment_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetAuditLogs_200_response.h create mode 100644 client/include/FastCommentsClient/model/GetBannedUsersCountResponse.h create mode 100644 client/include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetCachedNotificationCount_200_response.h create mode 100644 client/include/FastCommentsClient/model/GetCommentBanStatusResponse.h create mode 100644 client/include/FastCommentsClient/model/GetCommentTextResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetCommentText_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetCommentVoteUserNames_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetComment_200_response.h create mode 100644 client/include/FastCommentsClient/model/GetCommentsForUserResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetCommentsPublic_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetComments_200_response.h rename client/include/FastCommentsClient/model/{GetDomainConfig_200_response.h => GetDomainConfigResponse.h} (69%) rename client/include/FastCommentsClient/model/{GetDomainConfigs_200_response.h => GetDomainConfigsResponse.h} (69%) rename client/include/FastCommentsClient/model/{GetDomainConfigs_200_response_anyOf.h => GetDomainConfigsResponse_anyOf.h} (66%) rename client/include/FastCommentsClient/model/{GetDomainConfigs_200_response_anyOf_1.h => GetDomainConfigsResponse_anyOf_1.h} (71%) delete mode 100644 client/include/FastCommentsClient/model/GetEmailTemplateDefinitions_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetEmailTemplateRenderErrors_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetEmailTemplate_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetEmailTemplates_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetEventLog_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetFeedPostsPublic_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetFeedPostsStats_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetFeedPosts_200_response.h create mode 100644 client/include/FastCommentsClient/model/GetGifsSearchResponse.h create mode 100644 client/include/FastCommentsClient/model/GetGifsTrendingResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetHashTags_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetModerator_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetModerators_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetNotificationCount_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetNotifications_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetPendingWebhookEventCount_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetPendingWebhookEvents_200_response.h create mode 100644 client/include/FastCommentsClient/model/GetPublicPagesResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetQuestionConfig_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetQuestionConfigs_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetQuestionResult_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetQuestionResults_200_response.h rename client/include/FastCommentsClient/model/{GetSSOUsers_200_response.h => GetSSOUsersResponse.h} (76%) delete mode 100644 client/include/FastCommentsClient/model/GetTenantDailyUsages_200_response.h create mode 100644 client/include/FastCommentsClient/model/GetTenantManualBadgesResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetTenantPackage_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetTenantPackages_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetTenantUser_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetTenantUsers_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetTenant_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetTenants_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetTicket_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetTickets_200_response.h create mode 100644 client/include/FastCommentsClient/model/GetTranslationsResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetUserBadgeProgressById_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetUserBadgeProgressList_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetUserBadge_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetUserBadges_200_response.h create mode 100644 client/include/FastCommentsClient/model/GetUserInternalProfileResponse.h create mode 100644 client/include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h create mode 100644 client/include/FastCommentsClient/model/GetUserManualBadgesResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetUserNotificationCount_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetUserNotifications_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetUserPresenceStatuses_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetUserReactsPublic_200_response.h create mode 100644 client/include/FastCommentsClient/model/GetUserTrustFactorResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetUser_200_response.h create mode 100644 client/include/FastCommentsClient/model/GetV1PageLikes.h create mode 100644 client/include/FastCommentsClient/model/GetV2PageReactUsersResponse.h create mode 100644 client/include/FastCommentsClient/model/GetV2PageReacts.h delete mode 100644 client/include/FastCommentsClient/model/GetVotesForUser_200_response.h delete mode 100644 client/include/FastCommentsClient/model/GetVotes_200_response.h create mode 100644 client/include/FastCommentsClient/model/GifGetLargeResponse.h create mode 100644 client/include/FastCommentsClient/model/GifSearchInternalError.h create mode 100644 client/include/FastCommentsClient/model/GifSearchResponse.h create mode 100644 client/include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h create mode 100644 client/include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h delete mode 100644 client/include/FastCommentsClient/model/LockComment_200_response.h create mode 100644 client/include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h create mode 100644 client/include/FastCommentsClient/model/ModerationAPIComment.h create mode 100644 client/include/FastCommentsClient/model/ModerationAPICommentLog.h create mode 100644 client/include/FastCommentsClient/model/ModerationAPICommentResponse.h create mode 100644 client/include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h create mode 100644 client/include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h create mode 100644 client/include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h create mode 100644 client/include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h create mode 100644 client/include/FastCommentsClient/model/ModerationCommentSearchResponse.h create mode 100644 client/include/FastCommentsClient/model/ModerationExportResponse.h create mode 100644 client/include/FastCommentsClient/model/ModerationExportStatusResponse.h create mode 100644 client/include/FastCommentsClient/model/ModerationFilter.h create mode 100644 client/include/FastCommentsClient/model/ModerationPageSearchProjected.h create mode 100644 client/include/FastCommentsClient/model/ModerationPageSearchResponse.h create mode 100644 client/include/FastCommentsClient/model/ModerationSiteSearchProjected.h create mode 100644 client/include/FastCommentsClient/model/ModerationSiteSearchResponse.h create mode 100644 client/include/FastCommentsClient/model/ModerationSuggestResponse.h create mode 100644 client/include/FastCommentsClient/model/ModerationUserSearchProjected.h create mode 100644 client/include/FastCommentsClient/model/ModerationUserSearchResponse.h create mode 100644 client/include/FastCommentsClient/model/PageUserEntry.h create mode 100644 client/include/FastCommentsClient/model/PageUsersInfoResponse.h create mode 100644 client/include/FastCommentsClient/model/PageUsersOfflineResponse.h create mode 100644 client/include/FastCommentsClient/model/PageUsersOnlineResponse.h create mode 100644 client/include/FastCommentsClient/model/PagesSortBy.h create mode 100644 client/include/FastCommentsClient/model/PatchDomainConfigResponse.h delete mode 100644 client/include/FastCommentsClient/model/PatchHashTag_200_response.h delete mode 100644 client/include/FastCommentsClient/model/PinComment_200_response.h create mode 100644 client/include/FastCommentsClient/model/PostRemoveCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/PreBanSummary.h create mode 100644 client/include/FastCommentsClient/model/PublicPage.h create mode 100644 client/include/FastCommentsClient/model/PutDomainConfigResponse.h delete mode 100644 client/include/FastCommentsClient/model/ReactFeedPostPublic_200_response.h create mode 100644 client/include/FastCommentsClient/model/RemoveCommentActionResponse.h create mode 100644 client/include/FastCommentsClient/model/RemoveUserBadgeResponse.h delete mode 100644 client/include/FastCommentsClient/model/RenderEmailTemplate_200_response.h delete mode 100644 client/include/FastCommentsClient/model/ResetUserNotifications_200_response.h rename client/include/FastCommentsClient/model/{SaveComment_200_response.h => SaveCommentsBulkResponse.h} (82%) create mode 100644 client/include/FastCommentsClient/model/SearchUsersResult.h delete mode 100644 client/include/FastCommentsClient/model/SearchUsers_200_response.h create mode 100644 client/include/FastCommentsClient/model/SetCommentApprovedResponse.h create mode 100644 client/include/FastCommentsClient/model/SetCommentTextParams.h create mode 100644 client/include/FastCommentsClient/model/SetCommentTextResponse.h delete mode 100644 client/include/FastCommentsClient/model/SetCommentText_200_response.h create mode 100644 client/include/FastCommentsClient/model/SetUserTrustFactorResponse.h create mode 100644 client/include/FastCommentsClient/model/TenantBadge.h delete mode 100644 client/include/FastCommentsClient/model/UnBlockCommentPublic_200_response.h delete mode 100644 client/include/FastCommentsClient/model/UpdateUserBadge_200_response.h create mode 100644 client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h create mode 100644 client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h rename client/include/FastCommentsClient/model/{UpdateUserNotificationStatus_200_response.h => UpdateUserNotificationStatusResponse.h} (52%) create mode 100644 client/include/FastCommentsClient/model/UsersListLocation.h delete mode 100644 client/include/FastCommentsClient/model/VoteComment_200_response.h create mode 100644 client/include/FastCommentsClient/model/VoteResponse_status.h create mode 100644 client/src/api/ModerationApi.cpp create mode 100644 client/src/model/APIBanUserChangeLog.cpp create mode 100644 client/src/model/APIBanUserChangedValues.cpp create mode 100644 client/src/model/APIBannedUser.cpp create mode 100644 client/src/model/APIBannedUserWithMultiMatchInfo.cpp create mode 100644 client/src/model/APICommentCommonBannedUser.cpp create mode 100644 client/src/model/APIModerateGetUserBanPreferencesResponse.cpp create mode 100644 client/src/model/APIModerateUserBanPreferences.cpp rename client/src/model/{SaveCommentResponse.cpp => APISaveCommentResponse.cpp} (73%) rename client/src/model/{GetDomainConfig_200_response.cpp => AddDomainConfigResponse.cpp} (71%) rename client/src/model/{AddDomainConfig_200_response_anyOf.cpp => AddDomainConfigResponse_anyOf.cpp} (62%) delete mode 100644 client/src/model/AddHashTag_200_response.cpp delete mode 100644 client/src/model/AddHashTagsBulk_200_response.cpp create mode 100644 client/src/model/AdjustCommentVotesParams.cpp create mode 100644 client/src/model/AdjustVotesResponse.cpp delete mode 100644 client/src/model/AggregateQuestionResults_200_response.cpp create mode 100644 client/src/model/AggregateResponse.cpp create mode 100644 client/src/model/AggregationAPIError.cpp create mode 100644 client/src/model/AwardUserBadgeResponse.cpp create mode 100644 client/src/model/BanUserFromCommentResult.cpp create mode 100644 client/src/model/BanUserUndoParams.cpp create mode 100644 client/src/model/BannedUserMatch.cpp create mode 100644 client/src/model/BannedUserMatchType.cpp rename client/src/model/{Record_string_string_or_number__value.cpp => BannedUserMatch_matchedOnValue.cpp} (57%) delete mode 100644 client/src/model/BlockFromCommentPublic_200_response.cpp create mode 100644 client/src/model/BuildModerationFilterParams.cpp create mode 100644 client/src/model/BuildModerationFilterResponse.cpp delete mode 100644 client/src/model/BulkAggregateQuestionResults_200_response.cpp rename client/src/model/{PatchHashTag_200_response.cpp => BulkCreateHashTagsResponse_results_inner.cpp} (77%) create mode 100644 client/src/model/BulkPreBanParams.cpp create mode 100644 client/src/model/BulkPreBanSummary.cpp delete mode 100644 client/src/model/ChangeTicketState_200_response.cpp delete mode 100644 client/src/model/CheckedCommentsForBlocked_200_response.cpp delete mode 100644 client/src/model/CombineCommentsWithQuestionResults_200_response.cpp create mode 100644 client/src/model/CommentsByIdsParams.cpp delete mode 100644 client/src/model/CreateCommentPublic_200_response.cpp delete mode 100644 client/src/model/CreateEmailTemplate_200_response.cpp delete mode 100644 client/src/model/CreateFeedPostPublic_200_response.cpp delete mode 100644 client/src/model/CreateFeedPost_200_response.cpp delete mode 100644 client/src/model/CreateModerator_200_response.cpp delete mode 100644 client/src/model/CreateQuestionConfig_200_response.cpp delete mode 100644 client/src/model/CreateQuestionResult_200_response.cpp delete mode 100644 client/src/model/CreateTenantPackage_200_response.cpp delete mode 100644 client/src/model/CreateTenantUser_200_response.cpp delete mode 100644 client/src/model/CreateTenant_200_response.cpp delete mode 100644 client/src/model/CreateTicket_200_response.cpp delete mode 100644 client/src/model/CreateUserBadge_200_response.cpp create mode 100644 client/src/model/CreateV1PageReact.cpp delete mode 100644 client/src/model/DeleteCommentPublic_200_response.cpp delete mode 100644 client/src/model/DeleteCommentVote_200_response.cpp delete mode 100644 client/src/model/DeleteComment_200_response.cpp rename client/src/model/{DeleteDomainConfig_200_response.cpp => DeleteDomainConfigResponse.cpp} (61%) rename client/src/model/{DeleteFeedPostPublic_200_response_anyOf.cpp => DeleteFeedPostPublicResponse.cpp} (67%) delete mode 100644 client/src/model/DeleteFeedPostPublic_200_response.cpp rename client/src/model/{DeleteHashTag_request.cpp => DeleteHashTagRequestBody.cpp} (72%) delete mode 100644 client/src/model/FlagCommentPublic_200_response.cpp delete mode 100644 client/src/model/FlagComment_200_response.cpp delete mode 100644 client/src/model/GetAuditLogs_200_response.cpp create mode 100644 client/src/model/GetBannedUsersCountResponse.cpp create mode 100644 client/src/model/GetBannedUsersFromCommentResponse.cpp delete mode 100644 client/src/model/GetCachedNotificationCount_200_response.cpp create mode 100644 client/src/model/GetCommentBanStatusResponse.cpp create mode 100644 client/src/model/GetCommentTextResponse.cpp delete mode 100644 client/src/model/GetCommentText_200_response.cpp delete mode 100644 client/src/model/GetCommentVoteUserNames_200_response.cpp delete mode 100644 client/src/model/GetComment_200_response.cpp create mode 100644 client/src/model/GetCommentsForUserResponse.cpp delete mode 100644 client/src/model/GetCommentsPublic_200_response.cpp delete mode 100644 client/src/model/GetComments_200_response.cpp rename client/src/model/{AddDomainConfig_200_response.cpp => GetDomainConfigResponse.cpp} (71%) rename client/src/model/{GetDomainConfigs_200_response.cpp => GetDomainConfigsResponse.cpp} (70%) rename client/src/model/{GetDomainConfigs_200_response_anyOf.cpp => GetDomainConfigsResponse_anyOf.cpp} (62%) rename client/src/model/{GetDomainConfigs_200_response_anyOf_1.cpp => GetDomainConfigsResponse_anyOf_1.cpp} (70%) delete mode 100644 client/src/model/GetEmailTemplateDefinitions_200_response.cpp delete mode 100644 client/src/model/GetEmailTemplateRenderErrors_200_response.cpp delete mode 100644 client/src/model/GetEmailTemplate_200_response.cpp delete mode 100644 client/src/model/GetEmailTemplates_200_response.cpp delete mode 100644 client/src/model/GetEventLog_200_response.cpp delete mode 100644 client/src/model/GetFeedPostsPublic_200_response.cpp delete mode 100644 client/src/model/GetFeedPostsStats_200_response.cpp delete mode 100644 client/src/model/GetFeedPosts_200_response.cpp create mode 100644 client/src/model/GetGifsSearchResponse.cpp create mode 100644 client/src/model/GetGifsTrendingResponse.cpp delete mode 100644 client/src/model/GetHashTags_200_response.cpp delete mode 100644 client/src/model/GetModerator_200_response.cpp delete mode 100644 client/src/model/GetModerators_200_response.cpp delete mode 100644 client/src/model/GetNotificationCount_200_response.cpp delete mode 100644 client/src/model/GetNotifications_200_response.cpp delete mode 100644 client/src/model/GetPendingWebhookEventCount_200_response.cpp delete mode 100644 client/src/model/GetPendingWebhookEvents_200_response.cpp create mode 100644 client/src/model/GetPublicPagesResponse.cpp delete mode 100644 client/src/model/GetQuestionConfig_200_response.cpp delete mode 100644 client/src/model/GetQuestionConfigs_200_response.cpp delete mode 100644 client/src/model/GetQuestionResult_200_response.cpp delete mode 100644 client/src/model/GetQuestionResults_200_response.cpp rename client/src/model/{GetSSOUsers_200_response.cpp => GetSSOUsersResponse.cpp} (75%) delete mode 100644 client/src/model/GetTenantDailyUsages_200_response.cpp create mode 100644 client/src/model/GetTenantManualBadgesResponse.cpp delete mode 100644 client/src/model/GetTenantPackage_200_response.cpp delete mode 100644 client/src/model/GetTenantPackages_200_response.cpp delete mode 100644 client/src/model/GetTenantUser_200_response.cpp delete mode 100644 client/src/model/GetTenantUsers_200_response.cpp delete mode 100644 client/src/model/GetTenant_200_response.cpp delete mode 100644 client/src/model/GetTenants_200_response.cpp delete mode 100644 client/src/model/GetTicket_200_response.cpp delete mode 100644 client/src/model/GetTickets_200_response.cpp create mode 100644 client/src/model/GetTranslationsResponse.cpp delete mode 100644 client/src/model/GetUserBadgeProgressById_200_response.cpp delete mode 100644 client/src/model/GetUserBadgeProgressList_200_response.cpp delete mode 100644 client/src/model/GetUserBadge_200_response.cpp delete mode 100644 client/src/model/GetUserBadges_200_response.cpp create mode 100644 client/src/model/GetUserInternalProfileResponse.cpp create mode 100644 client/src/model/GetUserInternalProfileResponse_profile.cpp create mode 100644 client/src/model/GetUserManualBadgesResponse.cpp delete mode 100644 client/src/model/GetUserNotificationCount_200_response.cpp delete mode 100644 client/src/model/GetUserNotifications_200_response.cpp delete mode 100644 client/src/model/GetUserPresenceStatuses_200_response.cpp delete mode 100644 client/src/model/GetUserReactsPublic_200_response.cpp create mode 100644 client/src/model/GetUserTrustFactorResponse.cpp delete mode 100644 client/src/model/GetUser_200_response.cpp create mode 100644 client/src/model/GetV1PageLikes.cpp create mode 100644 client/src/model/GetV2PageReactUsersResponse.cpp create mode 100644 client/src/model/GetV2PageReacts.cpp delete mode 100644 client/src/model/GetVotesForUser_200_response.cpp delete mode 100644 client/src/model/GetVotes_200_response.cpp create mode 100644 client/src/model/GifGetLargeResponse.cpp create mode 100644 client/src/model/GifSearchInternalError.cpp create mode 100644 client/src/model/GifSearchResponse.cpp create mode 100644 client/src/model/GifSearchResponse_images_inner_inner.cpp create mode 100644 client/src/model/ImportedAgentApprovalNotificationFrequency.cpp delete mode 100644 client/src/model/LockComment_200_response.cpp create mode 100644 client/src/model/ModerationAPIChildCommentsResponse.cpp create mode 100644 client/src/model/ModerationAPIComment.cpp create mode 100644 client/src/model/ModerationAPICommentLog.cpp create mode 100644 client/src/model/ModerationAPICommentResponse.cpp create mode 100644 client/src/model/ModerationAPICountCommentsResponse.cpp create mode 100644 client/src/model/ModerationAPIGetCommentIdsResponse.cpp create mode 100644 client/src/model/ModerationAPIGetCommentsResponse.cpp create mode 100644 client/src/model/ModerationAPIGetLogsResponse.cpp create mode 100644 client/src/model/ModerationCommentSearchResponse.cpp create mode 100644 client/src/model/ModerationExportResponse.cpp create mode 100644 client/src/model/ModerationExportStatusResponse.cpp create mode 100644 client/src/model/ModerationFilter.cpp create mode 100644 client/src/model/ModerationPageSearchProjected.cpp create mode 100644 client/src/model/ModerationPageSearchResponse.cpp create mode 100644 client/src/model/ModerationSiteSearchProjected.cpp create mode 100644 client/src/model/ModerationSiteSearchResponse.cpp create mode 100644 client/src/model/ModerationSuggestResponse.cpp create mode 100644 client/src/model/ModerationUserSearchProjected.cpp create mode 100644 client/src/model/ModerationUserSearchResponse.cpp create mode 100644 client/src/model/PageUserEntry.cpp create mode 100644 client/src/model/PageUsersInfoResponse.cpp create mode 100644 client/src/model/PageUsersOfflineResponse.cpp create mode 100644 client/src/model/PageUsersOnlineResponse.cpp create mode 100644 client/src/model/PagesSortBy.cpp create mode 100644 client/src/model/PatchDomainConfigResponse.cpp delete mode 100644 client/src/model/PinComment_200_response.cpp create mode 100644 client/src/model/PostRemoveCommentResponse.cpp create mode 100644 client/src/model/PreBanSummary.cpp create mode 100644 client/src/model/PublicPage.cpp create mode 100644 client/src/model/PutDomainConfigResponse.cpp delete mode 100644 client/src/model/ReactFeedPostPublic_200_response.cpp create mode 100644 client/src/model/RemoveCommentActionResponse.cpp create mode 100644 client/src/model/RemoveUserBadgeResponse.cpp delete mode 100644 client/src/model/RenderEmailTemplate_200_response.cpp delete mode 100644 client/src/model/ResetUserNotifications_200_response.cpp rename client/src/model/{SaveComment_200_response.cpp => SaveCommentsBulkResponse.cpp} (81%) create mode 100644 client/src/model/SearchUsersResult.cpp delete mode 100644 client/src/model/SearchUsers_200_response.cpp create mode 100644 client/src/model/SetCommentApprovedResponse.cpp create mode 100644 client/src/model/SetCommentTextParams.cpp create mode 100644 client/src/model/SetCommentTextResponse.cpp delete mode 100644 client/src/model/SetCommentText_200_response.cpp create mode 100644 client/src/model/SetUserTrustFactorResponse.cpp create mode 100644 client/src/model/TenantBadge.cpp delete mode 100644 client/src/model/UnBlockCommentPublic_200_response.cpp delete mode 100644 client/src/model/UpdateUserBadge_200_response.cpp create mode 100644 client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp create mode 100644 client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp create mode 100644 client/src/model/UpdateUserNotificationStatusResponse.cpp delete mode 100644 client/src/model/UpdateUserNotificationStatus_200_response.cpp create mode 100644 client/src/model/UsersListLocation.cpp delete mode 100644 client/src/model/VoteComment_200_response.cpp create mode 100644 client/src/model/VoteResponse_status.cpp create mode 100644 docs/Apis/ModerationApi.md create mode 100644 docs/Models/APIBanUserChangeLog.md create mode 100644 docs/Models/APIBanUserChangedValues.md create mode 100644 docs/Models/APIBannedUser.md create mode 100644 docs/Models/APIBannedUserWithMultiMatchInfo.md create mode 100644 docs/Models/APICommentCommonBannedUser.md create mode 100644 docs/Models/APIModerateGetUserBanPreferencesResponse.md create mode 100644 docs/Models/APIModerateUserBanPreferences.md rename docs/Models/{SaveCommentResponse.md => APISaveCommentResponse.md} (85%) rename docs/Models/{AddDomainConfig_200_response.md => AddDomainConfigResponse.md} (94%) rename docs/Models/{AddDomainConfig_200_response_anyOf.md => AddDomainConfigResponse_anyOf.md} (92%) delete mode 100644 docs/Models/AddHashTagsBulk_200_response.md create mode 100644 docs/Models/AdjustCommentVotesParams.md create mode 100644 docs/Models/AdjustVotesResponse.md delete mode 100644 docs/Models/AggregateQuestionResults_200_response.md create mode 100644 docs/Models/AggregateResponse.md create mode 100644 docs/Models/AggregationAPIError.md create mode 100644 docs/Models/AwardUserBadgeResponse.md create mode 100644 docs/Models/BanUserFromCommentResult.md create mode 100644 docs/Models/BanUserUndoParams.md create mode 100644 docs/Models/BannedUserMatch.md rename docs/Models/{Record_string_string_or_number__value.md => BannedUserMatchType.md} (87%) create mode 100644 docs/Models/BannedUserMatch_matchedOnValue.md delete mode 100644 docs/Models/BlockFromCommentPublic_200_response.md create mode 100644 docs/Models/BuildModerationFilterParams.md create mode 100644 docs/Models/BuildModerationFilterResponse.md delete mode 100644 docs/Models/BulkAggregateQuestionResults_200_response.md rename docs/Models/{AddHashTag_200_response.md => BulkCreateHashTagsResponse_results_inner.md} (95%) create mode 100644 docs/Models/BulkPreBanParams.md create mode 100644 docs/Models/BulkPreBanSummary.md delete mode 100644 docs/Models/ChangeTicketState_200_response.md delete mode 100644 docs/Models/CheckedCommentsForBlocked_200_response.md delete mode 100644 docs/Models/CombineCommentsWithQuestionResults_200_response.md create mode 100644 docs/Models/CommentsByIdsParams.md delete mode 100644 docs/Models/CreateCommentPublic_200_response.md delete mode 100644 docs/Models/CreateEmailTemplate_200_response.md delete mode 100644 docs/Models/CreateFeedPostPublic_200_response.md delete mode 100644 docs/Models/CreateFeedPost_200_response.md delete mode 100644 docs/Models/CreateModerator_200_response.md delete mode 100644 docs/Models/CreateQuestionConfig_200_response.md delete mode 100644 docs/Models/CreateQuestionResult_200_response.md delete mode 100644 docs/Models/CreateTenantPackage_200_response.md delete mode 100644 docs/Models/CreateTenantUser_200_response.md delete mode 100644 docs/Models/CreateTenant_200_response.md delete mode 100644 docs/Models/CreateTicket_200_response.md delete mode 100644 docs/Models/CreateUserBadge_200_response.md create mode 100644 docs/Models/CreateV1PageReact.md delete mode 100644 docs/Models/DeleteCommentPublic_200_response.md delete mode 100644 docs/Models/DeleteCommentVote_200_response.md delete mode 100644 docs/Models/DeleteComment_200_response.md rename docs/Models/{DeleteDomainConfig_200_response.md => DeleteDomainConfigResponse.md} (91%) rename docs/Models/{DeleteFeedPostPublic_200_response_anyOf.md => DeleteFeedPostPublicResponse.md} (89%) delete mode 100644 docs/Models/DeleteFeedPostPublic_200_response.md rename docs/Models/{DeleteHashTag_request.md => DeleteHashTagRequestBody.md} (92%) delete mode 100644 docs/Models/FlagCommentPublic_200_response.md delete mode 100644 docs/Models/FlagComment_200_response.md delete mode 100644 docs/Models/GetAuditLogs_200_response.md create mode 100644 docs/Models/GetBannedUsersCountResponse.md create mode 100644 docs/Models/GetBannedUsersFromCommentResponse.md delete mode 100644 docs/Models/GetCachedNotificationCount_200_response.md create mode 100644 docs/Models/GetCommentBanStatusResponse.md create mode 100644 docs/Models/GetCommentTextResponse.md delete mode 100644 docs/Models/GetCommentText_200_response.md delete mode 100644 docs/Models/GetCommentVoteUserNames_200_response.md delete mode 100644 docs/Models/GetComment_200_response.md create mode 100644 docs/Models/GetCommentsForUserResponse.md delete mode 100644 docs/Models/GetCommentsPublic_200_response.md delete mode 100644 docs/Models/GetComments_200_response.md rename docs/Models/{GetDomainConfig_200_response.md => GetDomainConfigResponse.md} (94%) rename docs/Models/{GetDomainConfigs_200_response.md => GetDomainConfigsResponse.md} (94%) rename docs/Models/{GetDomainConfigs_200_response_anyOf.md => GetDomainConfigsResponse_anyOf.md} (92%) rename docs/Models/{GetDomainConfigs_200_response_anyOf_1.md => GetDomainConfigsResponse_anyOf_1.md} (91%) delete mode 100644 docs/Models/GetEmailTemplateDefinitions_200_response.md delete mode 100644 docs/Models/GetEmailTemplateRenderErrors_200_response.md delete mode 100644 docs/Models/GetEmailTemplate_200_response.md delete mode 100644 docs/Models/GetEmailTemplates_200_response.md delete mode 100644 docs/Models/GetEventLog_200_response.md delete mode 100644 docs/Models/GetFeedPostsPublic_200_response.md delete mode 100644 docs/Models/GetFeedPostsStats_200_response.md delete mode 100644 docs/Models/GetFeedPosts_200_response.md create mode 100644 docs/Models/GetGifsSearchResponse.md create mode 100644 docs/Models/GetGifsTrendingResponse.md delete mode 100644 docs/Models/GetHashTags_200_response.md delete mode 100644 docs/Models/GetModerator_200_response.md delete mode 100644 docs/Models/GetModerators_200_response.md delete mode 100644 docs/Models/GetNotificationCount_200_response.md delete mode 100644 docs/Models/GetNotifications_200_response.md delete mode 100644 docs/Models/GetPendingWebhookEventCount_200_response.md delete mode 100644 docs/Models/GetPendingWebhookEvents_200_response.md create mode 100644 docs/Models/GetPublicPagesResponse.md delete mode 100644 docs/Models/GetQuestionConfig_200_response.md delete mode 100644 docs/Models/GetQuestionConfigs_200_response.md delete mode 100644 docs/Models/GetQuestionResult_200_response.md delete mode 100644 docs/Models/GetQuestionResults_200_response.md rename docs/Models/{GetSSOUsers_200_response.md => GetSSOUsersResponse.md} (93%) delete mode 100644 docs/Models/GetTenantDailyUsages_200_response.md create mode 100644 docs/Models/GetTenantManualBadgesResponse.md delete mode 100644 docs/Models/GetTenantPackage_200_response.md delete mode 100644 docs/Models/GetTenantPackages_200_response.md delete mode 100644 docs/Models/GetTenantUser_200_response.md delete mode 100644 docs/Models/GetTenantUsers_200_response.md delete mode 100644 docs/Models/GetTenant_200_response.md delete mode 100644 docs/Models/GetTenants_200_response.md delete mode 100644 docs/Models/GetTicket_200_response.md delete mode 100644 docs/Models/GetTickets_200_response.md create mode 100644 docs/Models/GetTranslationsResponse.md delete mode 100644 docs/Models/GetUserBadgeProgressById_200_response.md delete mode 100644 docs/Models/GetUserBadgeProgressList_200_response.md delete mode 100644 docs/Models/GetUserBadge_200_response.md delete mode 100644 docs/Models/GetUserBadges_200_response.md create mode 100644 docs/Models/GetUserInternalProfileResponse.md create mode 100644 docs/Models/GetUserInternalProfileResponse_profile.md create mode 100644 docs/Models/GetUserManualBadgesResponse.md delete mode 100644 docs/Models/GetUserNotificationCount_200_response.md delete mode 100644 docs/Models/GetUserNotifications_200_response.md delete mode 100644 docs/Models/GetUserPresenceStatuses_200_response.md delete mode 100644 docs/Models/GetUserReactsPublic_200_response.md create mode 100644 docs/Models/GetUserTrustFactorResponse.md delete mode 100644 docs/Models/GetUser_200_response.md create mode 100644 docs/Models/GetV1PageLikes.md create mode 100644 docs/Models/GetV2PageReactUsersResponse.md create mode 100644 docs/Models/GetV2PageReacts.md delete mode 100644 docs/Models/GetVotesForUser_200_response.md delete mode 100644 docs/Models/GetVotes_200_response.md create mode 100644 docs/Models/GifGetLargeResponse.md create mode 100644 docs/Models/GifSearchInternalError.md create mode 100644 docs/Models/GifSearchResponse.md create mode 100644 docs/Models/GifSearchResponse_images_inner_inner.md create mode 100644 docs/Models/ImportedAgentApprovalNotificationFrequency.md delete mode 100644 docs/Models/LockComment_200_response.md create mode 100644 docs/Models/ModerationAPIChildCommentsResponse.md create mode 100644 docs/Models/ModerationAPIComment.md create mode 100644 docs/Models/ModerationAPICommentLog.md create mode 100644 docs/Models/ModerationAPICommentResponse.md create mode 100644 docs/Models/ModerationAPICountCommentsResponse.md create mode 100644 docs/Models/ModerationAPIGetCommentIdsResponse.md create mode 100644 docs/Models/ModerationAPIGetCommentsResponse.md create mode 100644 docs/Models/ModerationAPIGetLogsResponse.md create mode 100644 docs/Models/ModerationCommentSearchResponse.md create mode 100644 docs/Models/ModerationExportResponse.md create mode 100644 docs/Models/ModerationExportStatusResponse.md create mode 100644 docs/Models/ModerationFilter.md create mode 100644 docs/Models/ModerationPageSearchProjected.md create mode 100644 docs/Models/ModerationPageSearchResponse.md create mode 100644 docs/Models/ModerationSiteSearchProjected.md create mode 100644 docs/Models/ModerationSiteSearchResponse.md create mode 100644 docs/Models/ModerationSuggestResponse.md create mode 100644 docs/Models/ModerationUserSearchProjected.md create mode 100644 docs/Models/ModerationUserSearchResponse.md create mode 100644 docs/Models/PageUserEntry.md create mode 100644 docs/Models/PageUsersInfoResponse.md create mode 100644 docs/Models/PageUsersOfflineResponse.md create mode 100644 docs/Models/PageUsersOnlineResponse.md create mode 100644 docs/Models/PagesSortBy.md create mode 100644 docs/Models/PatchDomainConfigResponse.md delete mode 100644 docs/Models/PatchHashTag_200_response.md delete mode 100644 docs/Models/PinComment_200_response.md create mode 100644 docs/Models/PostRemoveCommentResponse.md create mode 100644 docs/Models/PreBanSummary.md create mode 100644 docs/Models/PublicPage.md create mode 100644 docs/Models/PutDomainConfigResponse.md delete mode 100644 docs/Models/ReactFeedPostPublic_200_response.md create mode 100644 docs/Models/RemoveCommentActionResponse.md create mode 100644 docs/Models/RemoveUserBadgeResponse.md delete mode 100644 docs/Models/RenderEmailTemplate_200_response.md delete mode 100644 docs/Models/ResetUserNotifications_200_response.md rename docs/Models/{SaveComment_200_response.md => SaveCommentsBulkResponse.md} (91%) create mode 100644 docs/Models/SearchUsersResult.md delete mode 100644 docs/Models/SearchUsers_200_response.md create mode 100644 docs/Models/SetCommentApprovedResponse.md create mode 100644 docs/Models/SetCommentTextParams.md create mode 100644 docs/Models/SetCommentTextResponse.md delete mode 100644 docs/Models/SetCommentText_200_response.md create mode 100644 docs/Models/SetUserTrustFactorResponse.md create mode 100644 docs/Models/TenantBadge.md delete mode 100644 docs/Models/UnBlockCommentPublic_200_response.md delete mode 100644 docs/Models/UpdateUserBadge_200_response.md create mode 100644 docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md create mode 100644 docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md create mode 100644 docs/Models/UpdateUserNotificationStatusResponse.md delete mode 100644 docs/Models/UpdateUserNotificationStatus_200_response.md create mode 100644 docs/Models/UsersListLocation.md delete mode 100644 docs/Models/VoteComment_200_response.md create mode 100644 docs/Models/VoteResponse_status.md diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 4788270..c6ba2de 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -15,11 +15,17 @@ include/FastCommentsClient/ModelBase.h include/FastCommentsClient/MultipartFormData.h include/FastCommentsClient/Object.h include/FastCommentsClient/api/DefaultApi.h +include/FastCommentsClient/api/ModerationApi.h include/FastCommentsClient/api/PublicApi.h include/FastCommentsClient/model/APIAuditLog.h +include/FastCommentsClient/model/APIBanUserChangeLog.h +include/FastCommentsClient/model/APIBanUserChangedValues.h +include/FastCommentsClient/model/APIBannedUser.h +include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h include/FastCommentsClient/model/APIComment.h include/FastCommentsClient/model/APICommentBase.h include/FastCommentsClient/model/APICommentBase_meta.h +include/FastCommentsClient/model/APICommentCommonBannedUser.h include/FastCommentsClient/model/APICreateUserBadgeResponse.h include/FastCommentsClient/model/APIDomainConfiguration.h include/FastCommentsClient/model/APIEmptyResponse.h @@ -31,8 +37,11 @@ include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h include/FastCommentsClient/model/APIGetUserBadgeResponse.h include/FastCommentsClient/model/APIGetUserBadgesResponse.h +include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h +include/FastCommentsClient/model/APIModerateUserBanPreferences.h include/FastCommentsClient/model/APIPage.h include/FastCommentsClient/model/APISSOUser.h +include/FastCommentsClient/model/APISaveCommentResponse.h include/FastCommentsClient/model/APIStatus.h include/FastCommentsClient/model/APITenant.h include/FastCommentsClient/model/APITenantDailyUsage.h @@ -41,15 +50,16 @@ include/FastCommentsClient/model/APITicketDetail.h include/FastCommentsClient/model/APITicketFile.h include/FastCommentsClient/model/APIUserSubscription.h include/FastCommentsClient/model/AddDomainConfigParams.h -include/FastCommentsClient/model/AddDomainConfig_200_response.h -include/FastCommentsClient/model/AddDomainConfig_200_response_anyOf.h -include/FastCommentsClient/model/AddHashTag_200_response.h -include/FastCommentsClient/model/AddHashTagsBulk_200_response.h +include/FastCommentsClient/model/AddDomainConfigResponse.h +include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h include/FastCommentsClient/model/AddPageAPIResponse.h include/FastCommentsClient/model/AddSSOUserAPIResponse.h +include/FastCommentsClient/model/AdjustCommentVotesParams.h +include/FastCommentsClient/model/AdjustVotesResponse.h include/FastCommentsClient/model/AggregateQuestionResultsResponse.h -include/FastCommentsClient/model/AggregateQuestionResults_200_response.h +include/FastCommentsClient/model/AggregateResponse.h include/FastCommentsClient/model/AggregateTimeBucket.h +include/FastCommentsClient/model/AggregationAPIError.h include/FastCommentsClient/model/AggregationItem.h include/FastCommentsClient/model/AggregationOpType.h include/FastCommentsClient/model/AggregationOperation.h @@ -58,24 +68,30 @@ include/FastCommentsClient/model/AggregationRequest_sort.h include/FastCommentsClient/model/AggregationResponse.h include/FastCommentsClient/model/AggregationResponse_stats.h include/FastCommentsClient/model/AggregationValue.h +include/FastCommentsClient/model/AwardUserBadgeResponse.h +include/FastCommentsClient/model/BanUserFromCommentResult.h +include/FastCommentsClient/model/BanUserUndoParams.h +include/FastCommentsClient/model/BannedUserMatch.h +include/FastCommentsClient/model/BannedUserMatchType.h +include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h include/FastCommentsClient/model/BillingInfo.h include/FastCommentsClient/model/BlockFromCommentParams.h -include/FastCommentsClient/model/BlockFromCommentPublic_200_response.h include/FastCommentsClient/model/BlockSuccess.h +include/FastCommentsClient/model/BuildModerationFilterParams.h +include/FastCommentsClient/model/BuildModerationFilterResponse.h include/FastCommentsClient/model/BulkAggregateQuestionItem.h include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h -include/FastCommentsClient/model/BulkAggregateQuestionResults_200_response.h include/FastCommentsClient/model/BulkCreateHashTagsBody.h include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h include/FastCommentsClient/model/BulkCreateHashTagsResponse.h +include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h +include/FastCommentsClient/model/BulkPreBanParams.h +include/FastCommentsClient/model/BulkPreBanSummary.h include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h include/FastCommentsClient/model/ChangeTicketStateBody.h include/FastCommentsClient/model/ChangeTicketStateResponse.h -include/FastCommentsClient/model/ChangeTicketState_200_response.h include/FastCommentsClient/model/CheckBlockedCommentsResponse.h -include/FastCommentsClient/model/CheckedCommentsForBlocked_200_response.h -include/FastCommentsClient/model/CombineCommentsWithQuestionResults_200_response.h include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h include/FastCommentsClient/model/CommentData.h include/FastCommentsClient/model/CommentHTMLRenderingMode.h @@ -90,56 +106,42 @@ include/FastCommentsClient/model/CommentUserBadgeInfo.h include/FastCommentsClient/model/CommentUserHashTagInfo.h include/FastCommentsClient/model/CommentUserMentionInfo.h include/FastCommentsClient/model/CommenterNameFormats.h +include/FastCommentsClient/model/CommentsByIdsParams.h include/FastCommentsClient/model/CreateAPIPageData.h include/FastCommentsClient/model/CreateAPISSOUserData.h include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h include/FastCommentsClient/model/CreateCommentParams.h -include/FastCommentsClient/model/CreateCommentPublic_200_response.h include/FastCommentsClient/model/CreateEmailTemplateBody.h include/FastCommentsClient/model/CreateEmailTemplateResponse.h -include/FastCommentsClient/model/CreateEmailTemplate_200_response.h include/FastCommentsClient/model/CreateFeedPostParams.h -include/FastCommentsClient/model/CreateFeedPostPublic_200_response.h include/FastCommentsClient/model/CreateFeedPostResponse.h -include/FastCommentsClient/model/CreateFeedPost_200_response.h include/FastCommentsClient/model/CreateFeedPostsResponse.h include/FastCommentsClient/model/CreateHashTagBody.h include/FastCommentsClient/model/CreateHashTagResponse.h include/FastCommentsClient/model/CreateModeratorBody.h include/FastCommentsClient/model/CreateModeratorResponse.h -include/FastCommentsClient/model/CreateModerator_200_response.h include/FastCommentsClient/model/CreateQuestionConfigBody.h include/FastCommentsClient/model/CreateQuestionConfigResponse.h -include/FastCommentsClient/model/CreateQuestionConfig_200_response.h include/FastCommentsClient/model/CreateQuestionResultBody.h include/FastCommentsClient/model/CreateQuestionResultResponse.h -include/FastCommentsClient/model/CreateQuestionResult_200_response.h include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h include/FastCommentsClient/model/CreateTenantBody.h include/FastCommentsClient/model/CreateTenantPackageBody.h include/FastCommentsClient/model/CreateTenantPackageResponse.h -include/FastCommentsClient/model/CreateTenantPackage_200_response.h include/FastCommentsClient/model/CreateTenantResponse.h include/FastCommentsClient/model/CreateTenantUserBody.h include/FastCommentsClient/model/CreateTenantUserResponse.h -include/FastCommentsClient/model/CreateTenantUser_200_response.h -include/FastCommentsClient/model/CreateTenant_200_response.h include/FastCommentsClient/model/CreateTicketBody.h include/FastCommentsClient/model/CreateTicketResponse.h -include/FastCommentsClient/model/CreateTicket_200_response.h include/FastCommentsClient/model/CreateUserBadgeParams.h -include/FastCommentsClient/model/CreateUserBadge_200_response.h +include/FastCommentsClient/model/CreateV1PageReact.h include/FastCommentsClient/model/CustomConfigParameters.h include/FastCommentsClient/model/CustomEmailTemplate.h include/FastCommentsClient/model/DeleteCommentAction.h -include/FastCommentsClient/model/DeleteCommentPublic_200_response.h include/FastCommentsClient/model/DeleteCommentResult.h -include/FastCommentsClient/model/DeleteCommentVote_200_response.h -include/FastCommentsClient/model/DeleteComment_200_response.h -include/FastCommentsClient/model/DeleteDomainConfig_200_response.h -include/FastCommentsClient/model/DeleteFeedPostPublic_200_response.h -include/FastCommentsClient/model/DeleteFeedPostPublic_200_response_anyOf.h -include/FastCommentsClient/model/DeleteHashTag_request.h +include/FastCommentsClient/model/DeleteDomainConfigResponse.h +include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h +include/FastCommentsClient/model/DeleteHashTagRequestBody.h include/FastCommentsClient/model/DeletePageAPIResponse.h include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h @@ -158,126 +160,124 @@ include/FastCommentsClient/model/FeedPostStats.h include/FastCommentsClient/model/FeedPostsStatsResponse.h include/FastCommentsClient/model/FindCommentsByRangeItem.h include/FastCommentsClient/model/FindCommentsByRangeResponse.h -include/FastCommentsClient/model/FlagCommentPublic_200_response.h include/FastCommentsClient/model/FlagCommentResponse.h -include/FastCommentsClient/model/FlagComment_200_response.h include/FastCommentsClient/model/GetAuditLogsResponse.h -include/FastCommentsClient/model/GetAuditLogs_200_response.h +include/FastCommentsClient/model/GetBannedUsersCountResponse.h +include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h include/FastCommentsClient/model/GetCachedNotificationCountResponse.h -include/FastCommentsClient/model/GetCachedNotificationCount_200_response.h -include/FastCommentsClient/model/GetCommentText_200_response.h +include/FastCommentsClient/model/GetCommentBanStatusResponse.h +include/FastCommentsClient/model/GetCommentTextResponse.h include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h -include/FastCommentsClient/model/GetCommentVoteUserNames_200_response.h -include/FastCommentsClient/model/GetComment_200_response.h -include/FastCommentsClient/model/GetCommentsPublic_200_response.h +include/FastCommentsClient/model/GetCommentsForUserResponse.h include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h -include/FastCommentsClient/model/GetComments_200_response.h -include/FastCommentsClient/model/GetDomainConfig_200_response.h -include/FastCommentsClient/model/GetDomainConfigs_200_response.h -include/FastCommentsClient/model/GetDomainConfigs_200_response_anyOf.h -include/FastCommentsClient/model/GetDomainConfigs_200_response_anyOf_1.h +include/FastCommentsClient/model/GetDomainConfigResponse.h +include/FastCommentsClient/model/GetDomainConfigsResponse.h +include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h +include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h -include/FastCommentsClient/model/GetEmailTemplateDefinitions_200_response.h include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h -include/FastCommentsClient/model/GetEmailTemplateRenderErrors_200_response.h include/FastCommentsClient/model/GetEmailTemplateResponse.h -include/FastCommentsClient/model/GetEmailTemplate_200_response.h include/FastCommentsClient/model/GetEmailTemplatesResponse.h -include/FastCommentsClient/model/GetEmailTemplates_200_response.h include/FastCommentsClient/model/GetEventLogResponse.h -include/FastCommentsClient/model/GetEventLog_200_response.h -include/FastCommentsClient/model/GetFeedPostsPublic_200_response.h include/FastCommentsClient/model/GetFeedPostsResponse.h -include/FastCommentsClient/model/GetFeedPostsStats_200_response.h -include/FastCommentsClient/model/GetFeedPosts_200_response.h +include/FastCommentsClient/model/GetGifsSearchResponse.h +include/FastCommentsClient/model/GetGifsTrendingResponse.h include/FastCommentsClient/model/GetHashTagsResponse.h -include/FastCommentsClient/model/GetHashTags_200_response.h include/FastCommentsClient/model/GetModeratorResponse.h -include/FastCommentsClient/model/GetModerator_200_response.h include/FastCommentsClient/model/GetModeratorsResponse.h -include/FastCommentsClient/model/GetModerators_200_response.h include/FastCommentsClient/model/GetMyNotificationsResponse.h include/FastCommentsClient/model/GetNotificationCountResponse.h -include/FastCommentsClient/model/GetNotificationCount_200_response.h include/FastCommentsClient/model/GetNotificationsResponse.h -include/FastCommentsClient/model/GetNotifications_200_response.h include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h include/FastCommentsClient/model/GetPagesAPIResponse.h include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h -include/FastCommentsClient/model/GetPendingWebhookEventCount_200_response.h include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h -include/FastCommentsClient/model/GetPendingWebhookEvents_200_response.h include/FastCommentsClient/model/GetPublicFeedPostsResponse.h +include/FastCommentsClient/model/GetPublicPagesResponse.h include/FastCommentsClient/model/GetQuestionConfigResponse.h -include/FastCommentsClient/model/GetQuestionConfig_200_response.h include/FastCommentsClient/model/GetQuestionConfigsResponse.h -include/FastCommentsClient/model/GetQuestionConfigs_200_response.h include/FastCommentsClient/model/GetQuestionResultResponse.h -include/FastCommentsClient/model/GetQuestionResult_200_response.h include/FastCommentsClient/model/GetQuestionResultsResponse.h -include/FastCommentsClient/model/GetQuestionResults_200_response.h include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h -include/FastCommentsClient/model/GetSSOUsers_200_response.h +include/FastCommentsClient/model/GetSSOUsersResponse.h include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h -include/FastCommentsClient/model/GetTenantDailyUsages_200_response.h +include/FastCommentsClient/model/GetTenantManualBadgesResponse.h include/FastCommentsClient/model/GetTenantPackageResponse.h -include/FastCommentsClient/model/GetTenantPackage_200_response.h include/FastCommentsClient/model/GetTenantPackagesResponse.h -include/FastCommentsClient/model/GetTenantPackages_200_response.h include/FastCommentsClient/model/GetTenantResponse.h include/FastCommentsClient/model/GetTenantUserResponse.h -include/FastCommentsClient/model/GetTenantUser_200_response.h include/FastCommentsClient/model/GetTenantUsersResponse.h -include/FastCommentsClient/model/GetTenantUsers_200_response.h -include/FastCommentsClient/model/GetTenant_200_response.h include/FastCommentsClient/model/GetTenantsResponse.h -include/FastCommentsClient/model/GetTenants_200_response.h include/FastCommentsClient/model/GetTicketResponse.h -include/FastCommentsClient/model/GetTicket_200_response.h include/FastCommentsClient/model/GetTicketsResponse.h -include/FastCommentsClient/model/GetTickets_200_response.h -include/FastCommentsClient/model/GetUserBadgeProgressById_200_response.h -include/FastCommentsClient/model/GetUserBadgeProgressList_200_response.h -include/FastCommentsClient/model/GetUserBadge_200_response.h -include/FastCommentsClient/model/GetUserBadges_200_response.h +include/FastCommentsClient/model/GetTranslationsResponse.h +include/FastCommentsClient/model/GetUserInternalProfileResponse.h +include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h +include/FastCommentsClient/model/GetUserManualBadgesResponse.h include/FastCommentsClient/model/GetUserNotificationCountResponse.h -include/FastCommentsClient/model/GetUserNotificationCount_200_response.h -include/FastCommentsClient/model/GetUserNotifications_200_response.h include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h -include/FastCommentsClient/model/GetUserPresenceStatuses_200_response.h -include/FastCommentsClient/model/GetUserReactsPublic_200_response.h include/FastCommentsClient/model/GetUserResponse.h -include/FastCommentsClient/model/GetUser_200_response.h +include/FastCommentsClient/model/GetUserTrustFactorResponse.h +include/FastCommentsClient/model/GetV1PageLikes.h +include/FastCommentsClient/model/GetV2PageReactUsersResponse.h +include/FastCommentsClient/model/GetV2PageReacts.h include/FastCommentsClient/model/GetVotesForUserResponse.h -include/FastCommentsClient/model/GetVotesForUser_200_response.h include/FastCommentsClient/model/GetVotesResponse.h -include/FastCommentsClient/model/GetVotes_200_response.h +include/FastCommentsClient/model/GifGetLargeResponse.h include/FastCommentsClient/model/GifRating.h +include/FastCommentsClient/model/GifSearchInternalError.h +include/FastCommentsClient/model/GifSearchResponse.h +include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h include/FastCommentsClient/model/HeaderAccountNotification.h include/FastCommentsClient/model/HeaderState.h include/FastCommentsClient/model/IgnoredResponse.h include/FastCommentsClient/model/ImageContentProfanityLevel.h +include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h include/FastCommentsClient/model/ImportedSiteType.h include/FastCommentsClient/model/LiveEvent.h include/FastCommentsClient/model/LiveEventType.h include/FastCommentsClient/model/LiveEvent_extraInfo.h -include/FastCommentsClient/model/LockComment_200_response.h include/FastCommentsClient/model/MediaAsset.h include/FastCommentsClient/model/MentionAutoCompleteMode.h include/FastCommentsClient/model/MetaItem.h +include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h +include/FastCommentsClient/model/ModerationAPIComment.h +include/FastCommentsClient/model/ModerationAPICommentLog.h +include/FastCommentsClient/model/ModerationAPICommentResponse.h +include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h +include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h +include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h +include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h +include/FastCommentsClient/model/ModerationCommentSearchResponse.h +include/FastCommentsClient/model/ModerationExportResponse.h +include/FastCommentsClient/model/ModerationExportStatusResponse.h +include/FastCommentsClient/model/ModerationFilter.h +include/FastCommentsClient/model/ModerationPageSearchProjected.h +include/FastCommentsClient/model/ModerationPageSearchResponse.h +include/FastCommentsClient/model/ModerationSiteSearchProjected.h +include/FastCommentsClient/model/ModerationSiteSearchResponse.h +include/FastCommentsClient/model/ModerationSuggestResponse.h +include/FastCommentsClient/model/ModerationUserSearchProjected.h +include/FastCommentsClient/model/ModerationUserSearchResponse.h include/FastCommentsClient/model/Moderator.h include/FastCommentsClient/model/NotificationAndCount.h include/FastCommentsClient/model/NotificationObjectType.h include/FastCommentsClient/model/NotificationType.h +include/FastCommentsClient/model/PageUserEntry.h +include/FastCommentsClient/model/PageUsersInfoResponse.h +include/FastCommentsClient/model/PageUsersOfflineResponse.h +include/FastCommentsClient/model/PageUsersOnlineResponse.h +include/FastCommentsClient/model/PagesSortBy.h include/FastCommentsClient/model/PatchDomainConfigParams.h -include/FastCommentsClient/model/PatchHashTag_200_response.h +include/FastCommentsClient/model/PatchDomainConfigResponse.h include/FastCommentsClient/model/PatchPageAPIResponse.h include/FastCommentsClient/model/PatchSSOUserAPIResponse.h include/FastCommentsClient/model/PendingCommentToSyncOutbound.h -include/FastCommentsClient/model/PinComment_200_response.h +include/FastCommentsClient/model/PostRemoveCommentResponse.h +include/FastCommentsClient/model/PreBanSummary.h include/FastCommentsClient/model/PubSubComment.h include/FastCommentsClient/model/PubSubCommentBase.h include/FastCommentsClient/model/PubSubVote.h @@ -288,7 +288,9 @@ include/FastCommentsClient/model/PublicBlockFromCommentParams.h include/FastCommentsClient/model/PublicComment.h include/FastCommentsClient/model/PublicCommentBase.h include/FastCommentsClient/model/PublicFeedPostsResponse.h +include/FastCommentsClient/model/PublicPage.h include/FastCommentsClient/model/PublicVote.h +include/FastCommentsClient/model/PutDomainConfigResponse.h include/FastCommentsClient/model/PutSSOUserAPIResponse.h include/FastCommentsClient/model/QueryPredicate.h include/FastCommentsClient/model/QueryPredicate_value.h @@ -301,38 +303,38 @@ include/FastCommentsClient/model/QuestionResultAggregationOverall.h include/FastCommentsClient/model/QuestionSubQuestionVisibility.h include/FastCommentsClient/model/QuestionWhenSave.h include/FastCommentsClient/model/ReactBodyParams.h -include/FastCommentsClient/model/ReactFeedPostPublic_200_response.h include/FastCommentsClient/model/ReactFeedPostResponse.h include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h -include/FastCommentsClient/model/Record_string_string_or_number__value.h +include/FastCommentsClient/model/RemoveCommentActionResponse.h +include/FastCommentsClient/model/RemoveUserBadgeResponse.h include/FastCommentsClient/model/RenderEmailTemplateBody.h include/FastCommentsClient/model/RenderEmailTemplateResponse.h -include/FastCommentsClient/model/RenderEmailTemplate_200_response.h include/FastCommentsClient/model/RenderableUserNotification.h include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h include/FastCommentsClient/model/RepeatCommentHandlingAction.h include/FastCommentsClient/model/ReplaceTenantPackageBody.h include/FastCommentsClient/model/ReplaceTenantUserBody.h include/FastCommentsClient/model/ResetUserNotificationsResponse.h -include/FastCommentsClient/model/ResetUserNotifications_200_response.h include/FastCommentsClient/model/SORT_DIR.h include/FastCommentsClient/model/SSOSecurityLevel.h -include/FastCommentsClient/model/SaveCommentResponse.h include/FastCommentsClient/model/SaveCommentResponseOptimized.h -include/FastCommentsClient/model/SaveComment_200_response.h +include/FastCommentsClient/model/SaveCommentsBulkResponse.h include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h include/FastCommentsClient/model/SearchUsersResponse.h +include/FastCommentsClient/model/SearchUsersResult.h include/FastCommentsClient/model/SearchUsersSectionedResponse.h -include/FastCommentsClient/model/SearchUsers_200_response.h +include/FastCommentsClient/model/SetCommentApprovedResponse.h +include/FastCommentsClient/model/SetCommentTextParams.h +include/FastCommentsClient/model/SetCommentTextResponse.h include/FastCommentsClient/model/SetCommentTextResult.h -include/FastCommentsClient/model/SetCommentText_200_response.h +include/FastCommentsClient/model/SetUserTrustFactorResponse.h include/FastCommentsClient/model/SizePreset.h include/FastCommentsClient/model/SortDirections.h include/FastCommentsClient/model/SpamRule.h include/FastCommentsClient/model/TOSConfig.h +include/FastCommentsClient/model/TenantBadge.h include/FastCommentsClient/model/TenantHashTag.h include/FastCommentsClient/model/TenantPackage.h -include/FastCommentsClient/model/UnBlockCommentPublic_200_response.h include/FastCommentsClient/model/UnBlockFromCommentParams.h include/FastCommentsClient/model/UnblockSuccess.h include/FastCommentsClient/model/UpdatableCommentParams.h @@ -353,8 +355,9 @@ include/FastCommentsClient/model/UpdateTenantBody.h include/FastCommentsClient/model/UpdateTenantPackageBody.h include/FastCommentsClient/model/UpdateTenantUserBody.h include/FastCommentsClient/model/UpdateUserBadgeParams.h -include/FastCommentsClient/model/UpdateUserBadge_200_response.h -include/FastCommentsClient/model/UpdateUserNotificationStatus_200_response.h +include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h +include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h +include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h include/FastCommentsClient/model/UploadImageResponse.h include/FastCommentsClient/model/User.h include/FastCommentsClient/model/UserBadge.h @@ -368,11 +371,12 @@ include/FastCommentsClient/model/UserSearchResult.h include/FastCommentsClient/model/UserSearchSection.h include/FastCommentsClient/model/UserSearchSectionResult.h include/FastCommentsClient/model/UserSessionInfo.h +include/FastCommentsClient/model/UsersListLocation.h include/FastCommentsClient/model/VoteBodyParams.h -include/FastCommentsClient/model/VoteComment_200_response.h include/FastCommentsClient/model/VoteDeleteResponse.h include/FastCommentsClient/model/VoteResponse.h include/FastCommentsClient/model/VoteResponseUser.h +include/FastCommentsClient/model/VoteResponse_status.h include/FastCommentsClient/model/VoteStyle.h src/AnyType.cpp src/ApiClient.cpp @@ -384,11 +388,17 @@ src/ModelBase.cpp src/MultipartFormData.cpp src/Object.cpp src/api/DefaultApi.cpp +src/api/ModerationApi.cpp src/api/PublicApi.cpp src/model/APIAuditLog.cpp +src/model/APIBanUserChangeLog.cpp +src/model/APIBanUserChangedValues.cpp +src/model/APIBannedUser.cpp +src/model/APIBannedUserWithMultiMatchInfo.cpp src/model/APIComment.cpp src/model/APICommentBase.cpp src/model/APICommentBase_meta.cpp +src/model/APICommentCommonBannedUser.cpp src/model/APICreateUserBadgeResponse.cpp src/model/APIDomainConfiguration.cpp src/model/APIEmptyResponse.cpp @@ -400,8 +410,11 @@ src/model/APIGetUserBadgeProgressListResponse.cpp src/model/APIGetUserBadgeProgressResponse.cpp src/model/APIGetUserBadgeResponse.cpp src/model/APIGetUserBadgesResponse.cpp +src/model/APIModerateGetUserBanPreferencesResponse.cpp +src/model/APIModerateUserBanPreferences.cpp src/model/APIPage.cpp src/model/APISSOUser.cpp +src/model/APISaveCommentResponse.cpp src/model/APIStatus.cpp src/model/APITenant.cpp src/model/APITenantDailyUsage.cpp @@ -410,15 +423,16 @@ src/model/APITicketDetail.cpp src/model/APITicketFile.cpp src/model/APIUserSubscription.cpp src/model/AddDomainConfigParams.cpp -src/model/AddDomainConfig_200_response.cpp -src/model/AddDomainConfig_200_response_anyOf.cpp -src/model/AddHashTag_200_response.cpp -src/model/AddHashTagsBulk_200_response.cpp +src/model/AddDomainConfigResponse.cpp +src/model/AddDomainConfigResponse_anyOf.cpp src/model/AddPageAPIResponse.cpp src/model/AddSSOUserAPIResponse.cpp +src/model/AdjustCommentVotesParams.cpp +src/model/AdjustVotesResponse.cpp src/model/AggregateQuestionResultsResponse.cpp -src/model/AggregateQuestionResults_200_response.cpp +src/model/AggregateResponse.cpp src/model/AggregateTimeBucket.cpp +src/model/AggregationAPIError.cpp src/model/AggregationItem.cpp src/model/AggregationOpType.cpp src/model/AggregationOperation.cpp @@ -427,24 +441,30 @@ src/model/AggregationRequest_sort.cpp src/model/AggregationResponse.cpp src/model/AggregationResponse_stats.cpp src/model/AggregationValue.cpp +src/model/AwardUserBadgeResponse.cpp +src/model/BanUserFromCommentResult.cpp +src/model/BanUserUndoParams.cpp +src/model/BannedUserMatch.cpp +src/model/BannedUserMatchType.cpp +src/model/BannedUserMatch_matchedOnValue.cpp src/model/BillingInfo.cpp src/model/BlockFromCommentParams.cpp -src/model/BlockFromCommentPublic_200_response.cpp src/model/BlockSuccess.cpp +src/model/BuildModerationFilterParams.cpp +src/model/BuildModerationFilterResponse.cpp src/model/BulkAggregateQuestionItem.cpp src/model/BulkAggregateQuestionResultsRequest.cpp src/model/BulkAggregateQuestionResultsResponse.cpp -src/model/BulkAggregateQuestionResults_200_response.cpp src/model/BulkCreateHashTagsBody.cpp src/model/BulkCreateHashTagsBody_tags_inner.cpp src/model/BulkCreateHashTagsResponse.cpp +src/model/BulkCreateHashTagsResponse_results_inner.cpp +src/model/BulkPreBanParams.cpp +src/model/BulkPreBanSummary.cpp src/model/ChangeCommentPinStatusResponse.cpp src/model/ChangeTicketStateBody.cpp src/model/ChangeTicketStateResponse.cpp -src/model/ChangeTicketState_200_response.cpp src/model/CheckBlockedCommentsResponse.cpp -src/model/CheckedCommentsForBlocked_200_response.cpp -src/model/CombineCommentsWithQuestionResults_200_response.cpp src/model/CombineQuestionResultsWithCommentsResponse.cpp src/model/CommentData.cpp src/model/CommentHTMLRenderingMode.cpp @@ -459,56 +479,42 @@ src/model/CommentUserBadgeInfo.cpp src/model/CommentUserHashTagInfo.cpp src/model/CommentUserMentionInfo.cpp src/model/CommenterNameFormats.cpp +src/model/CommentsByIdsParams.cpp src/model/CreateAPIPageData.cpp src/model/CreateAPISSOUserData.cpp src/model/CreateAPIUserSubscriptionData.cpp src/model/CreateCommentParams.cpp -src/model/CreateCommentPublic_200_response.cpp src/model/CreateEmailTemplateBody.cpp src/model/CreateEmailTemplateResponse.cpp -src/model/CreateEmailTemplate_200_response.cpp src/model/CreateFeedPostParams.cpp -src/model/CreateFeedPostPublic_200_response.cpp src/model/CreateFeedPostResponse.cpp -src/model/CreateFeedPost_200_response.cpp src/model/CreateFeedPostsResponse.cpp src/model/CreateHashTagBody.cpp src/model/CreateHashTagResponse.cpp src/model/CreateModeratorBody.cpp src/model/CreateModeratorResponse.cpp -src/model/CreateModerator_200_response.cpp src/model/CreateQuestionConfigBody.cpp src/model/CreateQuestionConfigResponse.cpp -src/model/CreateQuestionConfig_200_response.cpp src/model/CreateQuestionResultBody.cpp src/model/CreateQuestionResultResponse.cpp -src/model/CreateQuestionResult_200_response.cpp src/model/CreateSubscriptionAPIResponse.cpp src/model/CreateTenantBody.cpp src/model/CreateTenantPackageBody.cpp src/model/CreateTenantPackageResponse.cpp -src/model/CreateTenantPackage_200_response.cpp src/model/CreateTenantResponse.cpp src/model/CreateTenantUserBody.cpp src/model/CreateTenantUserResponse.cpp -src/model/CreateTenantUser_200_response.cpp -src/model/CreateTenant_200_response.cpp src/model/CreateTicketBody.cpp src/model/CreateTicketResponse.cpp -src/model/CreateTicket_200_response.cpp src/model/CreateUserBadgeParams.cpp -src/model/CreateUserBadge_200_response.cpp +src/model/CreateV1PageReact.cpp src/model/CustomConfigParameters.cpp src/model/CustomEmailTemplate.cpp src/model/DeleteCommentAction.cpp -src/model/DeleteCommentPublic_200_response.cpp src/model/DeleteCommentResult.cpp -src/model/DeleteCommentVote_200_response.cpp -src/model/DeleteComment_200_response.cpp -src/model/DeleteDomainConfig_200_response.cpp -src/model/DeleteFeedPostPublic_200_response.cpp -src/model/DeleteFeedPostPublic_200_response_anyOf.cpp -src/model/DeleteHashTag_request.cpp +src/model/DeleteDomainConfigResponse.cpp +src/model/DeleteFeedPostPublicResponse.cpp +src/model/DeleteHashTagRequestBody.cpp src/model/DeletePageAPIResponse.cpp src/model/DeleteSSOUserAPIResponse.cpp src/model/DeleteSubscriptionAPIResponse.cpp @@ -527,126 +533,124 @@ src/model/FeedPostStats.cpp src/model/FeedPostsStatsResponse.cpp src/model/FindCommentsByRangeItem.cpp src/model/FindCommentsByRangeResponse.cpp -src/model/FlagCommentPublic_200_response.cpp src/model/FlagCommentResponse.cpp -src/model/FlagComment_200_response.cpp src/model/GetAuditLogsResponse.cpp -src/model/GetAuditLogs_200_response.cpp +src/model/GetBannedUsersCountResponse.cpp +src/model/GetBannedUsersFromCommentResponse.cpp src/model/GetCachedNotificationCountResponse.cpp -src/model/GetCachedNotificationCount_200_response.cpp -src/model/GetCommentText_200_response.cpp +src/model/GetCommentBanStatusResponse.cpp +src/model/GetCommentTextResponse.cpp src/model/GetCommentVoteUserNamesSuccessResponse.cpp -src/model/GetCommentVoteUserNames_200_response.cpp -src/model/GetComment_200_response.cpp -src/model/GetCommentsPublic_200_response.cpp +src/model/GetCommentsForUserResponse.cpp src/model/GetCommentsResponseWithPresence_PublicComment_.cpp src/model/GetCommentsResponse_PublicComment_.cpp -src/model/GetComments_200_response.cpp -src/model/GetDomainConfig_200_response.cpp -src/model/GetDomainConfigs_200_response.cpp -src/model/GetDomainConfigs_200_response_anyOf.cpp -src/model/GetDomainConfigs_200_response_anyOf_1.cpp +src/model/GetDomainConfigResponse.cpp +src/model/GetDomainConfigsResponse.cpp +src/model/GetDomainConfigsResponse_anyOf.cpp +src/model/GetDomainConfigsResponse_anyOf_1.cpp src/model/GetEmailTemplateDefinitionsResponse.cpp -src/model/GetEmailTemplateDefinitions_200_response.cpp src/model/GetEmailTemplateRenderErrorsResponse.cpp -src/model/GetEmailTemplateRenderErrors_200_response.cpp src/model/GetEmailTemplateResponse.cpp -src/model/GetEmailTemplate_200_response.cpp src/model/GetEmailTemplatesResponse.cpp -src/model/GetEmailTemplates_200_response.cpp src/model/GetEventLogResponse.cpp -src/model/GetEventLog_200_response.cpp -src/model/GetFeedPostsPublic_200_response.cpp src/model/GetFeedPostsResponse.cpp -src/model/GetFeedPostsStats_200_response.cpp -src/model/GetFeedPosts_200_response.cpp +src/model/GetGifsSearchResponse.cpp +src/model/GetGifsTrendingResponse.cpp src/model/GetHashTagsResponse.cpp -src/model/GetHashTags_200_response.cpp src/model/GetModeratorResponse.cpp -src/model/GetModerator_200_response.cpp src/model/GetModeratorsResponse.cpp -src/model/GetModerators_200_response.cpp src/model/GetMyNotificationsResponse.cpp src/model/GetNotificationCountResponse.cpp -src/model/GetNotificationCount_200_response.cpp src/model/GetNotificationsResponse.cpp -src/model/GetNotifications_200_response.cpp src/model/GetPageByURLIdAPIResponse.cpp src/model/GetPagesAPIResponse.cpp src/model/GetPendingWebhookEventCountResponse.cpp -src/model/GetPendingWebhookEventCount_200_response.cpp src/model/GetPendingWebhookEventsResponse.cpp -src/model/GetPendingWebhookEvents_200_response.cpp src/model/GetPublicFeedPostsResponse.cpp +src/model/GetPublicPagesResponse.cpp src/model/GetQuestionConfigResponse.cpp -src/model/GetQuestionConfig_200_response.cpp src/model/GetQuestionConfigsResponse.cpp -src/model/GetQuestionConfigs_200_response.cpp src/model/GetQuestionResultResponse.cpp -src/model/GetQuestionResult_200_response.cpp src/model/GetQuestionResultsResponse.cpp -src/model/GetQuestionResults_200_response.cpp src/model/GetSSOUserByEmailAPIResponse.cpp src/model/GetSSOUserByIdAPIResponse.cpp -src/model/GetSSOUsers_200_response.cpp +src/model/GetSSOUsersResponse.cpp src/model/GetSubscriptionsAPIResponse.cpp src/model/GetTenantDailyUsagesResponse.cpp -src/model/GetTenantDailyUsages_200_response.cpp +src/model/GetTenantManualBadgesResponse.cpp src/model/GetTenantPackageResponse.cpp -src/model/GetTenantPackage_200_response.cpp src/model/GetTenantPackagesResponse.cpp -src/model/GetTenantPackages_200_response.cpp src/model/GetTenantResponse.cpp src/model/GetTenantUserResponse.cpp -src/model/GetTenantUser_200_response.cpp src/model/GetTenantUsersResponse.cpp -src/model/GetTenantUsers_200_response.cpp -src/model/GetTenant_200_response.cpp src/model/GetTenantsResponse.cpp -src/model/GetTenants_200_response.cpp src/model/GetTicketResponse.cpp -src/model/GetTicket_200_response.cpp src/model/GetTicketsResponse.cpp -src/model/GetTickets_200_response.cpp -src/model/GetUserBadgeProgressById_200_response.cpp -src/model/GetUserBadgeProgressList_200_response.cpp -src/model/GetUserBadge_200_response.cpp -src/model/GetUserBadges_200_response.cpp +src/model/GetTranslationsResponse.cpp +src/model/GetUserInternalProfileResponse.cpp +src/model/GetUserInternalProfileResponse_profile.cpp +src/model/GetUserManualBadgesResponse.cpp src/model/GetUserNotificationCountResponse.cpp -src/model/GetUserNotificationCount_200_response.cpp -src/model/GetUserNotifications_200_response.cpp src/model/GetUserPresenceStatusesResponse.cpp -src/model/GetUserPresenceStatuses_200_response.cpp -src/model/GetUserReactsPublic_200_response.cpp src/model/GetUserResponse.cpp -src/model/GetUser_200_response.cpp +src/model/GetUserTrustFactorResponse.cpp +src/model/GetV1PageLikes.cpp +src/model/GetV2PageReactUsersResponse.cpp +src/model/GetV2PageReacts.cpp src/model/GetVotesForUserResponse.cpp -src/model/GetVotesForUser_200_response.cpp src/model/GetVotesResponse.cpp -src/model/GetVotes_200_response.cpp +src/model/GifGetLargeResponse.cpp src/model/GifRating.cpp +src/model/GifSearchInternalError.cpp +src/model/GifSearchResponse.cpp +src/model/GifSearchResponse_images_inner_inner.cpp src/model/HeaderAccountNotification.cpp src/model/HeaderState.cpp src/model/IgnoredResponse.cpp src/model/ImageContentProfanityLevel.cpp +src/model/ImportedAgentApprovalNotificationFrequency.cpp src/model/ImportedSiteType.cpp src/model/LiveEvent.cpp src/model/LiveEventType.cpp src/model/LiveEvent_extraInfo.cpp -src/model/LockComment_200_response.cpp src/model/MediaAsset.cpp src/model/MentionAutoCompleteMode.cpp src/model/MetaItem.cpp +src/model/ModerationAPIChildCommentsResponse.cpp +src/model/ModerationAPIComment.cpp +src/model/ModerationAPICommentLog.cpp +src/model/ModerationAPICommentResponse.cpp +src/model/ModerationAPICountCommentsResponse.cpp +src/model/ModerationAPIGetCommentIdsResponse.cpp +src/model/ModerationAPIGetCommentsResponse.cpp +src/model/ModerationAPIGetLogsResponse.cpp +src/model/ModerationCommentSearchResponse.cpp +src/model/ModerationExportResponse.cpp +src/model/ModerationExportStatusResponse.cpp +src/model/ModerationFilter.cpp +src/model/ModerationPageSearchProjected.cpp +src/model/ModerationPageSearchResponse.cpp +src/model/ModerationSiteSearchProjected.cpp +src/model/ModerationSiteSearchResponse.cpp +src/model/ModerationSuggestResponse.cpp +src/model/ModerationUserSearchProjected.cpp +src/model/ModerationUserSearchResponse.cpp src/model/Moderator.cpp src/model/NotificationAndCount.cpp src/model/NotificationObjectType.cpp src/model/NotificationType.cpp +src/model/PageUserEntry.cpp +src/model/PageUsersInfoResponse.cpp +src/model/PageUsersOfflineResponse.cpp +src/model/PageUsersOnlineResponse.cpp +src/model/PagesSortBy.cpp src/model/PatchDomainConfigParams.cpp -src/model/PatchHashTag_200_response.cpp +src/model/PatchDomainConfigResponse.cpp src/model/PatchPageAPIResponse.cpp src/model/PatchSSOUserAPIResponse.cpp src/model/PendingCommentToSyncOutbound.cpp -src/model/PinComment_200_response.cpp +src/model/PostRemoveCommentResponse.cpp +src/model/PreBanSummary.cpp src/model/PubSubComment.cpp src/model/PubSubCommentBase.cpp src/model/PubSubVote.cpp @@ -657,7 +661,9 @@ src/model/PublicBlockFromCommentParams.cpp src/model/PublicComment.cpp src/model/PublicCommentBase.cpp src/model/PublicFeedPostsResponse.cpp +src/model/PublicPage.cpp src/model/PublicVote.cpp +src/model/PutDomainConfigResponse.cpp src/model/PutSSOUserAPIResponse.cpp src/model/QueryPredicate.cpp src/model/QueryPredicate_value.cpp @@ -670,38 +676,38 @@ src/model/QuestionResultAggregationOverall.cpp src/model/QuestionSubQuestionVisibility.cpp src/model/QuestionWhenSave.cpp src/model/ReactBodyParams.cpp -src/model/ReactFeedPostPublic_200_response.cpp src/model/ReactFeedPostResponse.cpp src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp -src/model/Record_string_string_or_number__value.cpp +src/model/RemoveCommentActionResponse.cpp +src/model/RemoveUserBadgeResponse.cpp src/model/RenderEmailTemplateBody.cpp src/model/RenderEmailTemplateResponse.cpp -src/model/RenderEmailTemplate_200_response.cpp src/model/RenderableUserNotification.cpp src/model/RepeatCommentCheckIgnoredReason.cpp src/model/RepeatCommentHandlingAction.cpp src/model/ReplaceTenantPackageBody.cpp src/model/ReplaceTenantUserBody.cpp src/model/ResetUserNotificationsResponse.cpp -src/model/ResetUserNotifications_200_response.cpp src/model/SORT_DIR.cpp src/model/SSOSecurityLevel.cpp -src/model/SaveCommentResponse.cpp src/model/SaveCommentResponseOptimized.cpp -src/model/SaveComment_200_response.cpp +src/model/SaveCommentsBulkResponse.cpp src/model/SaveCommentsResponseWithPresence.cpp src/model/SearchUsersResponse.cpp +src/model/SearchUsersResult.cpp src/model/SearchUsersSectionedResponse.cpp -src/model/SearchUsers_200_response.cpp +src/model/SetCommentApprovedResponse.cpp +src/model/SetCommentTextParams.cpp +src/model/SetCommentTextResponse.cpp src/model/SetCommentTextResult.cpp -src/model/SetCommentText_200_response.cpp +src/model/SetUserTrustFactorResponse.cpp src/model/SizePreset.cpp src/model/SortDirections.cpp src/model/SpamRule.cpp src/model/TOSConfig.cpp +src/model/TenantBadge.cpp src/model/TenantHashTag.cpp src/model/TenantPackage.cpp -src/model/UnBlockCommentPublic_200_response.cpp src/model/UnBlockFromCommentParams.cpp src/model/UnblockSuccess.cpp src/model/UpdatableCommentParams.cpp @@ -722,8 +728,9 @@ src/model/UpdateTenantBody.cpp src/model/UpdateTenantPackageBody.cpp src/model/UpdateTenantUserBody.cpp src/model/UpdateUserBadgeParams.cpp -src/model/UpdateUserBadge_200_response.cpp -src/model/UpdateUserNotificationStatus_200_response.cpp +src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp +src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp +src/model/UpdateUserNotificationStatusResponse.cpp src/model/UploadImageResponse.cpp src/model/User.cpp src/model/UserBadge.cpp @@ -737,9 +744,10 @@ src/model/UserSearchResult.cpp src/model/UserSearchSection.cpp src/model/UserSearchSectionResult.cpp src/model/UserSessionInfo.cpp +src/model/UsersListLocation.cpp src/model/VoteBodyParams.cpp -src/model/VoteComment_200_response.cpp src/model/VoteDeleteResponse.cpp src/model/VoteResponse.cpp src/model/VoteResponseUser.cpp +src/model/VoteResponse_status.cpp src/model/VoteStyle.cpp diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION index 909dcd0..e465da4 100644 --- a/client/.openapi-generator/VERSION +++ b/client/.openapi-generator/VERSION @@ -1 +1 @@ -7.19.0-SNAPSHOT +7.14.0 diff --git a/client/README.md b/client/README.md index 103c6d0..caa54ce 100644 --- a/client/README.md +++ b/client/README.md @@ -6,8 +6,8 @@ No description provided (generated by Openapi Generator https://github.com/opena This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI spec](https://openapis.org) from a remote server, you can easily generate an API client. - API version: 0.0.0 -- Package version: 1.2.0 -- Generator version: 7.19.0-SNAPSHOT +- Package version: 1.2.1 +- Generator version: 7.14.0 - Build package: org.openapitools.codegen.languages.CppRestSdkClientCodegen - API namespace: org.openapitools.client.api diff --git a/client/include/FastCommentsClient/AnyType.h b/client/include/FastCommentsClient/AnyType.h index 0681579..6c698c1 100644 --- a/client/include/FastCommentsClient/AnyType.h +++ b/client/include/FastCommentsClient/AnyType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/ApiClient.h b/client/include/FastCommentsClient/ApiClient.h index fc0749e..90f28fb 100644 --- a/client/include/FastCommentsClient/ApiClient.h +++ b/client/include/FastCommentsClient/ApiClient.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/ApiConfiguration.h b/client/include/FastCommentsClient/ApiConfiguration.h index 419d255..71d2c28 100644 --- a/client/include/FastCommentsClient/ApiConfiguration.h +++ b/client/include/FastCommentsClient/ApiConfiguration.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/ApiException.h b/client/include/FastCommentsClient/ApiException.h index b414d6a..84b7210 100644 --- a/client/include/FastCommentsClient/ApiException.h +++ b/client/include/FastCommentsClient/ApiException.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/HttpContent.h b/client/include/FastCommentsClient/HttpContent.h index 98183e3..8556a94 100644 --- a/client/include/FastCommentsClient/HttpContent.h +++ b/client/include/FastCommentsClient/HttpContent.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/IHttpBody.h b/client/include/FastCommentsClient/IHttpBody.h index 57bdca0..ed3b62b 100644 --- a/client/include/FastCommentsClient/IHttpBody.h +++ b/client/include/FastCommentsClient/IHttpBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/JsonBody.h b/client/include/FastCommentsClient/JsonBody.h index 38fba2b..a72b6e2 100644 --- a/client/include/FastCommentsClient/JsonBody.h +++ b/client/include/FastCommentsClient/JsonBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/ModelBase.h b/client/include/FastCommentsClient/ModelBase.h index d3d8587..617e4ba 100644 --- a/client/include/FastCommentsClient/ModelBase.h +++ b/client/include/FastCommentsClient/ModelBase.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -27,7 +27,6 @@ #include #include -#include #include #include diff --git a/client/include/FastCommentsClient/MultipartFormData.h b/client/include/FastCommentsClient/MultipartFormData.h index 8b16e75..58b9a1f 100644 --- a/client/include/FastCommentsClient/MultipartFormData.h +++ b/client/include/FastCommentsClient/MultipartFormData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/Object.h b/client/include/FastCommentsClient/Object.h index 4a81df7..f96e9ab 100644 --- a/client/include/FastCommentsClient/Object.h +++ b/client/include/FastCommentsClient/Object.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/api/DefaultApi.h b/client/include/FastCommentsClient/api/DefaultApi.h index 768447d..7b3c641 100644 --- a/client/include/FastCommentsClient/api/DefaultApi.h +++ b/client/include/FastCommentsClient/api/DefaultApi.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,118 +22,121 @@ #include "FastCommentsClient/ApiClient.h" +#include "FastCommentsClient/model/APICreateUserBadgeResponse.h" +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/APIEmptySuccessResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIGetCommentResponse.h" +#include "FastCommentsClient/model/APIGetCommentsResponse.h" +#include "FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h" +#include "FastCommentsClient/model/APIGetUserBadgeProgressResponse.h" +#include "FastCommentsClient/model/APIGetUserBadgeResponse.h" +#include "FastCommentsClient/model/APIGetUserBadgesResponse.h" +#include "FastCommentsClient/model/APISaveCommentResponse.h" #include "FastCommentsClient/model/AddDomainConfigParams.h" -#include "FastCommentsClient/model/AddDomainConfig_200_response.h" -#include "FastCommentsClient/model/AddHashTag_200_response.h" -#include "FastCommentsClient/model/AddHashTagsBulk_200_response.h" +#include "FastCommentsClient/model/AddDomainConfigResponse.h" #include "FastCommentsClient/model/AddPageAPIResponse.h" #include "FastCommentsClient/model/AddSSOUserAPIResponse.h" -#include "FastCommentsClient/model/AggregateQuestionResults_200_response.h" +#include "FastCommentsClient/model/AggregateQuestionResultsResponse.h" +#include "FastCommentsClient/model/AggregateResponse.h" #include "FastCommentsClient/model/AggregateTimeBucket.h" #include "FastCommentsClient/model/AggregationRequest.h" -#include "FastCommentsClient/model/AggregationResponse.h" #include "FastCommentsClient/model/BlockFromCommentParams.h" -#include "FastCommentsClient/model/BlockFromCommentPublic_200_response.h" +#include "FastCommentsClient/model/BlockSuccess.h" #include "FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h" -#include "FastCommentsClient/model/BulkAggregateQuestionResults_200_response.h" +#include "FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h" #include "FastCommentsClient/model/BulkCreateHashTagsBody.h" +#include "FastCommentsClient/model/BulkCreateHashTagsResponse.h" #include "FastCommentsClient/model/ChangeTicketStateBody.h" -#include "FastCommentsClient/model/ChangeTicketState_200_response.h" -#include "FastCommentsClient/model/CombineCommentsWithQuestionResults_200_response.h" +#include "FastCommentsClient/model/ChangeTicketStateResponse.h" +#include "FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h" #include "FastCommentsClient/model/CreateAPIPageData.h" #include "FastCommentsClient/model/CreateAPISSOUserData.h" #include "FastCommentsClient/model/CreateAPIUserSubscriptionData.h" #include "FastCommentsClient/model/CreateCommentParams.h" #include "FastCommentsClient/model/CreateEmailTemplateBody.h" -#include "FastCommentsClient/model/CreateEmailTemplate_200_response.h" +#include "FastCommentsClient/model/CreateEmailTemplateResponse.h" #include "FastCommentsClient/model/CreateFeedPostParams.h" -#include "FastCommentsClient/model/CreateFeedPost_200_response.h" +#include "FastCommentsClient/model/CreateFeedPostsResponse.h" #include "FastCommentsClient/model/CreateHashTagBody.h" +#include "FastCommentsClient/model/CreateHashTagResponse.h" #include "FastCommentsClient/model/CreateModeratorBody.h" -#include "FastCommentsClient/model/CreateModerator_200_response.h" +#include "FastCommentsClient/model/CreateModeratorResponse.h" #include "FastCommentsClient/model/CreateQuestionConfigBody.h" -#include "FastCommentsClient/model/CreateQuestionConfig_200_response.h" +#include "FastCommentsClient/model/CreateQuestionConfigResponse.h" #include "FastCommentsClient/model/CreateQuestionResultBody.h" -#include "FastCommentsClient/model/CreateQuestionResult_200_response.h" +#include "FastCommentsClient/model/CreateQuestionResultResponse.h" #include "FastCommentsClient/model/CreateSubscriptionAPIResponse.h" #include "FastCommentsClient/model/CreateTenantBody.h" #include "FastCommentsClient/model/CreateTenantPackageBody.h" -#include "FastCommentsClient/model/CreateTenantPackage_200_response.h" +#include "FastCommentsClient/model/CreateTenantPackageResponse.h" +#include "FastCommentsClient/model/CreateTenantResponse.h" #include "FastCommentsClient/model/CreateTenantUserBody.h" -#include "FastCommentsClient/model/CreateTenantUser_200_response.h" -#include "FastCommentsClient/model/CreateTenant_200_response.h" +#include "FastCommentsClient/model/CreateTenantUserResponse.h" #include "FastCommentsClient/model/CreateTicketBody.h" -#include "FastCommentsClient/model/CreateTicket_200_response.h" +#include "FastCommentsClient/model/CreateTicketResponse.h" #include "FastCommentsClient/model/CreateUserBadgeParams.h" -#include "FastCommentsClient/model/CreateUserBadge_200_response.h" -#include "FastCommentsClient/model/DeleteCommentVote_200_response.h" -#include "FastCommentsClient/model/DeleteComment_200_response.h" -#include "FastCommentsClient/model/DeleteDomainConfig_200_response.h" -#include "FastCommentsClient/model/DeleteHashTag_request.h" +#include "FastCommentsClient/model/DeleteCommentResult.h" +#include "FastCommentsClient/model/DeleteDomainConfigResponse.h" +#include "FastCommentsClient/model/DeleteHashTagRequestBody.h" #include "FastCommentsClient/model/DeletePageAPIResponse.h" #include "FastCommentsClient/model/DeleteSSOUserAPIResponse.h" #include "FastCommentsClient/model/DeleteSubscriptionAPIResponse.h" #include "FastCommentsClient/model/FeedPost.h" -#include "FastCommentsClient/model/FlagCommentPublic_200_response.h" -#include "FastCommentsClient/model/FlagComment_200_response.h" -#include "FastCommentsClient/model/GetAuditLogs_200_response.h" -#include "FastCommentsClient/model/GetCachedNotificationCount_200_response.h" -#include "FastCommentsClient/model/GetComment_200_response.h" -#include "FastCommentsClient/model/GetComments_200_response.h" -#include "FastCommentsClient/model/GetDomainConfig_200_response.h" -#include "FastCommentsClient/model/GetDomainConfigs_200_response.h" -#include "FastCommentsClient/model/GetEmailTemplateDefinitions_200_response.h" -#include "FastCommentsClient/model/GetEmailTemplateRenderErrors_200_response.h" -#include "FastCommentsClient/model/GetEmailTemplate_200_response.h" -#include "FastCommentsClient/model/GetEmailTemplates_200_response.h" -#include "FastCommentsClient/model/GetFeedPosts_200_response.h" -#include "FastCommentsClient/model/GetHashTags_200_response.h" -#include "FastCommentsClient/model/GetModerator_200_response.h" -#include "FastCommentsClient/model/GetModerators_200_response.h" -#include "FastCommentsClient/model/GetNotificationCount_200_response.h" -#include "FastCommentsClient/model/GetNotifications_200_response.h" +#include "FastCommentsClient/model/FlagCommentResponse.h" +#include "FastCommentsClient/model/GetAuditLogsResponse.h" +#include "FastCommentsClient/model/GetCachedNotificationCountResponse.h" +#include "FastCommentsClient/model/GetDomainConfigResponse.h" +#include "FastCommentsClient/model/GetDomainConfigsResponse.h" +#include "FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h" +#include "FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h" +#include "FastCommentsClient/model/GetEmailTemplateResponse.h" +#include "FastCommentsClient/model/GetEmailTemplatesResponse.h" +#include "FastCommentsClient/model/GetFeedPostsResponse.h" +#include "FastCommentsClient/model/GetHashTagsResponse.h" +#include "FastCommentsClient/model/GetModeratorResponse.h" +#include "FastCommentsClient/model/GetModeratorsResponse.h" +#include "FastCommentsClient/model/GetNotificationCountResponse.h" +#include "FastCommentsClient/model/GetNotificationsResponse.h" #include "FastCommentsClient/model/GetPageByURLIdAPIResponse.h" #include "FastCommentsClient/model/GetPagesAPIResponse.h" -#include "FastCommentsClient/model/GetPendingWebhookEventCount_200_response.h" -#include "FastCommentsClient/model/GetPendingWebhookEvents_200_response.h" -#include "FastCommentsClient/model/GetQuestionConfig_200_response.h" -#include "FastCommentsClient/model/GetQuestionConfigs_200_response.h" -#include "FastCommentsClient/model/GetQuestionResult_200_response.h" -#include "FastCommentsClient/model/GetQuestionResults_200_response.h" +#include "FastCommentsClient/model/GetPendingWebhookEventCountResponse.h" +#include "FastCommentsClient/model/GetPendingWebhookEventsResponse.h" +#include "FastCommentsClient/model/GetQuestionConfigResponse.h" +#include "FastCommentsClient/model/GetQuestionConfigsResponse.h" +#include "FastCommentsClient/model/GetQuestionResultResponse.h" +#include "FastCommentsClient/model/GetQuestionResultsResponse.h" #include "FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h" #include "FastCommentsClient/model/GetSSOUserByIdAPIResponse.h" -#include "FastCommentsClient/model/GetSSOUsers_200_response.h" +#include "FastCommentsClient/model/GetSSOUsersResponse.h" #include "FastCommentsClient/model/GetSubscriptionsAPIResponse.h" -#include "FastCommentsClient/model/GetTenantDailyUsages_200_response.h" -#include "FastCommentsClient/model/GetTenantPackage_200_response.h" -#include "FastCommentsClient/model/GetTenantPackages_200_response.h" -#include "FastCommentsClient/model/GetTenantUser_200_response.h" -#include "FastCommentsClient/model/GetTenantUsers_200_response.h" -#include "FastCommentsClient/model/GetTenant_200_response.h" -#include "FastCommentsClient/model/GetTenants_200_response.h" -#include "FastCommentsClient/model/GetTicket_200_response.h" -#include "FastCommentsClient/model/GetTickets_200_response.h" -#include "FastCommentsClient/model/GetUserBadgeProgressById_200_response.h" -#include "FastCommentsClient/model/GetUserBadgeProgressList_200_response.h" -#include "FastCommentsClient/model/GetUserBadge_200_response.h" -#include "FastCommentsClient/model/GetUserBadges_200_response.h" -#include "FastCommentsClient/model/GetUser_200_response.h" -#include "FastCommentsClient/model/GetVotesForUser_200_response.h" -#include "FastCommentsClient/model/GetVotes_200_response.h" +#include "FastCommentsClient/model/GetTenantDailyUsagesResponse.h" +#include "FastCommentsClient/model/GetTenantPackageResponse.h" +#include "FastCommentsClient/model/GetTenantPackagesResponse.h" +#include "FastCommentsClient/model/GetTenantResponse.h" +#include "FastCommentsClient/model/GetTenantUserResponse.h" +#include "FastCommentsClient/model/GetTenantUsersResponse.h" +#include "FastCommentsClient/model/GetTenantsResponse.h" +#include "FastCommentsClient/model/GetTicketResponse.h" +#include "FastCommentsClient/model/GetTicketsResponse.h" +#include "FastCommentsClient/model/GetUserResponse.h" +#include "FastCommentsClient/model/GetVotesForUserResponse.h" +#include "FastCommentsClient/model/GetVotesResponse.h" #include "FastCommentsClient/model/PatchDomainConfigParams.h" -#include "FastCommentsClient/model/PatchHashTag_200_response.h" +#include "FastCommentsClient/model/PatchDomainConfigResponse.h" #include "FastCommentsClient/model/PatchPageAPIResponse.h" #include "FastCommentsClient/model/PatchSSOUserAPIResponse.h" +#include "FastCommentsClient/model/PutDomainConfigResponse.h" #include "FastCommentsClient/model/PutSSOUserAPIResponse.h" #include "FastCommentsClient/model/RenderEmailTemplateBody.h" -#include "FastCommentsClient/model/RenderEmailTemplate_200_response.h" +#include "FastCommentsClient/model/RenderEmailTemplateResponse.h" #include "FastCommentsClient/model/ReplaceTenantPackageBody.h" #include "FastCommentsClient/model/ReplaceTenantUserBody.h" #include "FastCommentsClient/model/SORT_DIR.h" -#include "FastCommentsClient/model/SaveComment_200_response.h" +#include "FastCommentsClient/model/SaveCommentsBulkResponse.h" #include "FastCommentsClient/model/SortDirections.h" -#include "FastCommentsClient/model/UnBlockCommentPublic_200_response.h" #include "FastCommentsClient/model/UnBlockFromCommentParams.h" +#include "FastCommentsClient/model/UnblockSuccess.h" #include "FastCommentsClient/model/UpdatableCommentParams.h" #include "FastCommentsClient/model/UpdateAPIPageData.h" #include "FastCommentsClient/model/UpdateAPISSOUserData.h" @@ -141,6 +144,7 @@ #include "FastCommentsClient/model/UpdateDomainConfigParams.h" #include "FastCommentsClient/model/UpdateEmailTemplateBody.h" #include "FastCommentsClient/model/UpdateHashTagBody.h" +#include "FastCommentsClient/model/UpdateHashTagResponse.h" #include "FastCommentsClient/model/UpdateModeratorBody.h" #include "FastCommentsClient/model/UpdateNotificationBody.h" #include "FastCommentsClient/model/UpdateQuestionConfigBody.h" @@ -150,8 +154,8 @@ #include "FastCommentsClient/model/UpdateTenantPackageBody.h" #include "FastCommentsClient/model/UpdateTenantUserBody.h" #include "FastCommentsClient/model/UpdateUserBadgeParams.h" -#include "FastCommentsClient/model/UpdateUserBadge_200_response.h" -#include "FastCommentsClient/model/VoteComment_200_response.h" +#include "FastCommentsClient/model/VoteDeleteResponse.h" +#include "FastCommentsClient/model/VoteResponse.h" #include #include #include @@ -181,7 +185,7 @@ class DefaultApi /// /// /// - pplx::task> addDomainConfig( + pplx::task> addDomainConfig( utility::string_t tenantId, std::shared_ptr addDomainConfigParams ) const; @@ -193,7 +197,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - pplx::task> addHashTag( + pplx::task> addHashTag( boost::optional tenantId, boost::optional> createHashTagBody ) const; @@ -205,7 +209,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - pplx::task> addHashTagsBulk( + pplx::task> addHashTagsBulk( boost::optional tenantId, boost::optional> bulkCreateHashTagsBody ) const; @@ -243,7 +247,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - pplx::task> aggregate( + pplx::task> aggregate( utility::string_t tenantId, std::shared_ptr aggregationRequest, boost::optional parentTenantId, @@ -262,7 +266,7 @@ class DefaultApi /// (optional, default to new AggregateTimeBucket()) /// (optional, default to utility::datetime()) /// (optional, default to false) - pplx::task> aggregateQuestionResults( + pplx::task> aggregateQuestionResults( utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, @@ -282,7 +286,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> blockUserFromComment( + pplx::task> blockUserFromComment( utility::string_t tenantId, utility::string_t id, std::shared_ptr blockFromCommentParams, @@ -298,7 +302,7 @@ class DefaultApi /// /// /// (optional, default to false) - pplx::task> bulkAggregateQuestionResults( + pplx::task> bulkAggregateQuestionResults( utility::string_t tenantId, std::shared_ptr bulkAggregateQuestionResultsRequest, boost::optional forceRecalculate @@ -313,7 +317,7 @@ class DefaultApi /// /// /// - pplx::task> changeTicketState( + pplx::task> changeTicketState( utility::string_t tenantId, utility::string_t userId, utility::string_t id, @@ -334,7 +338,7 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> combineCommentsWithQuestionResults( + pplx::task> combineCommentsWithQuestionResults( utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, @@ -353,7 +357,7 @@ class DefaultApi /// /// /// - pplx::task> createEmailTemplate( + pplx::task> createEmailTemplate( utility::string_t tenantId, std::shared_ptr createEmailTemplateBody ) const; @@ -369,7 +373,7 @@ class DefaultApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) - pplx::task> createFeedPost( + pplx::task> createFeedPost( utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, @@ -385,7 +389,7 @@ class DefaultApi /// /// /// - pplx::task> createModerator( + pplx::task> createModerator( utility::string_t tenantId, std::shared_ptr createModeratorBody ) const; @@ -397,7 +401,7 @@ class DefaultApi /// /// /// - pplx::task> createQuestionConfig( + pplx::task> createQuestionConfig( utility::string_t tenantId, std::shared_ptr createQuestionConfigBody ) const; @@ -409,7 +413,7 @@ class DefaultApi /// /// /// - pplx::task> createQuestionResult( + pplx::task> createQuestionResult( utility::string_t tenantId, std::shared_ptr createQuestionResultBody ) const; @@ -433,7 +437,7 @@ class DefaultApi /// /// /// - pplx::task> createTenant( + pplx::task> createTenant( utility::string_t tenantId, std::shared_ptr createTenantBody ) const; @@ -445,7 +449,7 @@ class DefaultApi /// /// /// - pplx::task> createTenantPackage( + pplx::task> createTenantPackage( utility::string_t tenantId, std::shared_ptr createTenantPackageBody ) const; @@ -457,7 +461,7 @@ class DefaultApi /// /// /// - pplx::task> createTenantUser( + pplx::task> createTenantUser( utility::string_t tenantId, std::shared_ptr createTenantUserBody ) const; @@ -470,7 +474,7 @@ class DefaultApi /// /// /// - pplx::task> createTicket( + pplx::task> createTicket( utility::string_t tenantId, utility::string_t userId, std::shared_ptr createTicketBody @@ -483,7 +487,7 @@ class DefaultApi /// /// /// - pplx::task> createUserBadge( + pplx::task> createUserBadge( utility::string_t tenantId, std::shared_ptr createUserBadgeParams ) const; @@ -498,7 +502,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> createVote( + pplx::task> createVote( utility::string_t tenantId, utility::string_t commentId, utility::string_t direction, @@ -515,7 +519,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - pplx::task> deleteComment( + pplx::task> deleteComment( utility::string_t tenantId, utility::string_t id, boost::optional contextUserId, @@ -529,7 +533,7 @@ class DefaultApi /// /// /// - pplx::task> deleteDomainConfig( + pplx::task> deleteDomainConfig( utility::string_t tenantId, utility::string_t domain ) const; @@ -541,7 +545,7 @@ class DefaultApi /// /// /// - pplx::task> deleteEmailTemplate( + pplx::task> deleteEmailTemplate( utility::string_t tenantId, utility::string_t id ) const; @@ -554,7 +558,7 @@ class DefaultApi /// /// /// - pplx::task> deleteEmailTemplateRenderError( + pplx::task> deleteEmailTemplateRenderError( utility::string_t tenantId, utility::string_t id, utility::string_t errorId @@ -567,11 +571,11 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - /// (optional) - pplx::task> deleteHashTag( + /// (optional) + pplx::task> deleteHashTag( utility::string_t tag, boost::optional tenantId, - boost::optional> deleteHashTagRequest + boost::optional> deleteHashTagRequestBody ) const; /// /// @@ -582,7 +586,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteModerator( + pplx::task> deleteModerator( utility::string_t tenantId, utility::string_t id, boost::optional sendEmail @@ -595,7 +599,7 @@ class DefaultApi /// /// /// - pplx::task> deleteNotificationCount( + pplx::task> deleteNotificationCount( utility::string_t tenantId, utility::string_t id ) const; @@ -619,7 +623,7 @@ class DefaultApi /// /// /// - pplx::task> deletePendingWebhookEvent( + pplx::task> deletePendingWebhookEvent( utility::string_t tenantId, utility::string_t id ) const; @@ -631,7 +635,7 @@ class DefaultApi /// /// /// - pplx::task> deleteQuestionConfig( + pplx::task> deleteQuestionConfig( utility::string_t tenantId, utility::string_t id ) const; @@ -643,7 +647,7 @@ class DefaultApi /// /// /// - pplx::task> deleteQuestionResult( + pplx::task> deleteQuestionResult( utility::string_t tenantId, utility::string_t id ) const; @@ -686,7 +690,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteTenant( + pplx::task> deleteTenant( utility::string_t tenantId, utility::string_t id, boost::optional sure @@ -699,7 +703,7 @@ class DefaultApi /// /// /// - pplx::task> deleteTenantPackage( + pplx::task> deleteTenantPackage( utility::string_t tenantId, utility::string_t id ) const; @@ -713,7 +717,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteTenantUser( + pplx::task> deleteTenantUser( utility::string_t tenantId, utility::string_t id, boost::optional deleteComments, @@ -727,7 +731,7 @@ class DefaultApi /// /// /// - pplx::task> deleteUserBadge( + pplx::task> deleteUserBadge( utility::string_t tenantId, utility::string_t id ) const; @@ -740,7 +744,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteVote( + pplx::task> deleteVote( utility::string_t tenantId, utility::string_t id, boost::optional editKey @@ -755,7 +759,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> flagComment( + pplx::task> flagComment( utility::string_t tenantId, utility::string_t id, boost::optional userId, @@ -773,7 +777,7 @@ class DefaultApi /// (optional, default to new SORT_DIR()) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getAuditLogs( + pplx::task> getAuditLogs( utility::string_t tenantId, boost::optional limit, boost::optional skip, @@ -789,7 +793,7 @@ class DefaultApi /// /// /// - pplx::task> getCachedNotificationCount( + pplx::task> getCachedNotificationCount( utility::string_t tenantId, utility::string_t id ) const; @@ -801,7 +805,7 @@ class DefaultApi /// /// /// - pplx::task> getComment( + pplx::task> getComment( utility::string_t tenantId, utility::string_t id ) const; @@ -826,7 +830,9 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to new SortDirections()) - pplx::task> getComments( + /// (optional, default to 0L) + /// (optional, default to 0L) + pplx::task> getComments( utility::string_t tenantId, boost::optional page, boost::optional limit, @@ -841,7 +847,9 @@ class DefaultApi boost::optional contextUserId, boost::optional hashTag, boost::optional parentId, - boost::optional> direction + boost::optional> direction, + boost::optional fromDate, + boost::optional toDate ) const; /// /// @@ -851,7 +859,7 @@ class DefaultApi /// /// /// - pplx::task> getDomainConfig( + pplx::task> getDomainConfig( utility::string_t tenantId, utility::string_t domain ) const; @@ -862,7 +870,7 @@ class DefaultApi /// /// /// - pplx::task> getDomainConfigs( + pplx::task> getDomainConfigs( utility::string_t tenantId ) const; /// @@ -873,7 +881,7 @@ class DefaultApi /// /// /// - pplx::task> getEmailTemplate( + pplx::task> getEmailTemplate( utility::string_t tenantId, utility::string_t id ) const; @@ -884,7 +892,7 @@ class DefaultApi /// /// /// - pplx::task> getEmailTemplateDefinitions( + pplx::task> getEmailTemplateDefinitions( utility::string_t tenantId ) const; /// @@ -896,7 +904,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getEmailTemplateRenderErrors( + pplx::task> getEmailTemplateRenderErrors( utility::string_t tenantId, utility::string_t id, boost::optional skip @@ -909,7 +917,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getEmailTemplates( + pplx::task> getEmailTemplates( utility::string_t tenantId, boost::optional skip ) const; @@ -923,7 +931,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0) /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) - pplx::task> getFeedPosts( + pplx::task> getFeedPosts( utility::string_t tenantId, boost::optional afterId, boost::optional limit, @@ -937,7 +945,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getHashTags( + pplx::task> getHashTags( utility::string_t tenantId, boost::optional page ) const; @@ -949,7 +957,7 @@ class DefaultApi /// /// /// - pplx::task> getModerator( + pplx::task> getModerator( utility::string_t tenantId, utility::string_t id ) const; @@ -961,7 +969,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getModerators( + pplx::task> getModerators( utility::string_t tenantId, boost::optional skip ) const; @@ -977,7 +985,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getNotificationCount( + pplx::task> getNotificationCount( utility::string_t tenantId, boost::optional userId, boost::optional urlId, @@ -998,7 +1006,7 @@ class DefaultApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - pplx::task> getNotifications( + pplx::task> getNotifications( utility::string_t tenantId, boost::optional userId, boost::optional urlId, @@ -1042,7 +1050,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - pplx::task> getPendingWebhookEventCount( + pplx::task> getPendingWebhookEventCount( utility::string_t tenantId, boost::optional commentId, boost::optional externalId, @@ -1065,7 +1073,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getPendingWebhookEvents( + pplx::task> getPendingWebhookEvents( utility::string_t tenantId, boost::optional commentId, boost::optional externalId, @@ -1083,7 +1091,7 @@ class DefaultApi /// /// /// - pplx::task> getQuestionConfig( + pplx::task> getQuestionConfig( utility::string_t tenantId, utility::string_t id ) const; @@ -1095,7 +1103,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getQuestionConfigs( + pplx::task> getQuestionConfigs( utility::string_t tenantId, boost::optional skip ) const; @@ -1107,7 +1115,7 @@ class DefaultApi /// /// /// - pplx::task> getQuestionResult( + pplx::task> getQuestionResult( utility::string_t tenantId, utility::string_t id ) const; @@ -1124,7 +1132,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - pplx::task> getQuestionResults( + pplx::task> getQuestionResults( utility::string_t tenantId, boost::optional urlId, boost::optional userId, @@ -1165,7 +1173,7 @@ class DefaultApi /// /// /// (optional, default to 0) - pplx::task> getSSOUsers( + pplx::task> getSSOUsers( utility::string_t tenantId, boost::optional skip ) const; @@ -1189,7 +1197,7 @@ class DefaultApi /// /// /// - pplx::task> getTenant( + pplx::task> getTenant( utility::string_t tenantId, utility::string_t id ) const; @@ -1204,7 +1212,7 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getTenantDailyUsages( + pplx::task> getTenantDailyUsages( utility::string_t tenantId, boost::optional yearNumber, boost::optional monthNumber, @@ -1219,7 +1227,7 @@ class DefaultApi /// /// /// - pplx::task> getTenantPackage( + pplx::task> getTenantPackage( utility::string_t tenantId, utility::string_t id ) const; @@ -1231,7 +1239,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getTenantPackages( + pplx::task> getTenantPackages( utility::string_t tenantId, boost::optional skip ) const; @@ -1243,7 +1251,7 @@ class DefaultApi /// /// /// - pplx::task> getTenantUser( + pplx::task> getTenantUser( utility::string_t tenantId, utility::string_t id ) const; @@ -1255,7 +1263,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getTenantUsers( + pplx::task> getTenantUsers( utility::string_t tenantId, boost::optional skip ) const; @@ -1268,7 +1276,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - pplx::task> getTenants( + pplx::task> getTenants( utility::string_t tenantId, boost::optional meta, boost::optional skip @@ -1282,7 +1290,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getTicket( + pplx::task> getTicket( utility::string_t tenantId, utility::string_t id, boost::optional userId @@ -1298,7 +1306,7 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getTickets( + pplx::task> getTickets( utility::string_t tenantId, boost::optional userId, boost::optional state, @@ -1313,7 +1321,7 @@ class DefaultApi /// /// /// - pplx::task> getUser( + pplx::task> getUser( utility::string_t tenantId, utility::string_t id ) const; @@ -1325,7 +1333,7 @@ class DefaultApi /// /// /// - pplx::task> getUserBadge( + pplx::task> getUserBadge( utility::string_t tenantId, utility::string_t id ) const; @@ -1337,7 +1345,7 @@ class DefaultApi /// /// /// - pplx::task> getUserBadgeProgressById( + pplx::task> getUserBadgeProgressById( utility::string_t tenantId, utility::string_t id ) const; @@ -1349,7 +1357,7 @@ class DefaultApi /// /// /// - pplx::task> getUserBadgeProgressByUserId( + pplx::task> getUserBadgeProgressByUserId( utility::string_t tenantId, utility::string_t userId ) const; @@ -1363,7 +1371,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getUserBadgeProgressList( + pplx::task> getUserBadgeProgressList( utility::string_t tenantId, boost::optional userId, boost::optional limit, @@ -1382,7 +1390,7 @@ class DefaultApi /// (optional, default to false) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getUserBadges( + pplx::task> getUserBadges( utility::string_t tenantId, boost::optional userId, boost::optional badgeId, @@ -1399,7 +1407,7 @@ class DefaultApi /// /// /// - pplx::task> getVotes( + pplx::task> getVotes( utility::string_t tenantId, utility::string_t urlId ) const; @@ -1413,7 +1421,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getVotesForUser( + pplx::task> getVotesForUser( utility::string_t tenantId, utility::string_t urlId, boost::optional userId, @@ -1428,7 +1436,7 @@ class DefaultApi /// /// /// - pplx::task> patchDomainConfig( + pplx::task> patchDomainConfig( utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr patchDomainConfigParams @@ -1442,7 +1450,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - pplx::task> patchHashTag( + pplx::task> patchHashTag( utility::string_t tag, boost::optional tenantId, boost::optional> updateHashTagBody @@ -1486,7 +1494,7 @@ class DefaultApi /// /// /// - pplx::task> putDomainConfig( + pplx::task> putDomainConfig( utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr updateDomainConfigParams @@ -1516,7 +1524,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> renderEmailTemplate( + pplx::task> renderEmailTemplate( utility::string_t tenantId, std::shared_ptr renderEmailTemplateBody, boost::optional locale @@ -1530,7 +1538,7 @@ class DefaultApi /// /// /// - pplx::task> replaceTenantPackage( + pplx::task> replaceTenantPackage( utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantPackageBody @@ -1545,7 +1553,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> replaceTenantUser( + pplx::task> replaceTenantUser( utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantUserBody, @@ -1563,7 +1571,7 @@ class DefaultApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) - pplx::task> saveComment( + pplx::task> saveComment( utility::string_t tenantId, std::shared_ptr createCommentParams, boost::optional isLive, @@ -1583,7 +1591,7 @@ class DefaultApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) - pplx::task>> saveCommentsBulk( + pplx::task>> saveCommentsBulk( utility::string_t tenantId, std::vector> createCommentParams, boost::optional isLive, @@ -1600,7 +1608,7 @@ class DefaultApi /// /// /// - pplx::task> sendInvite( + pplx::task> sendInvite( utility::string_t tenantId, utility::string_t id, utility::string_t fromName @@ -1614,7 +1622,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> sendLoginLink( + pplx::task> sendLoginLink( utility::string_t tenantId, utility::string_t id, boost::optional redirectURL @@ -1630,7 +1638,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unBlockUserFromComment( + pplx::task> unBlockUserFromComment( utility::string_t tenantId, utility::string_t id, std::shared_ptr unBlockFromCommentParams, @@ -1647,7 +1655,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unFlagComment( + pplx::task> unFlagComment( utility::string_t tenantId, utility::string_t id, boost::optional userId, @@ -1665,7 +1673,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to false) - pplx::task> updateComment( + pplx::task> updateComment( utility::string_t tenantId, utility::string_t id, std::shared_ptr updatableCommentParams, @@ -1682,7 +1690,7 @@ class DefaultApi /// /// /// - pplx::task> updateEmailTemplate( + pplx::task> updateEmailTemplate( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateEmailTemplateBody @@ -1696,7 +1704,7 @@ class DefaultApi /// /// /// - pplx::task> updateFeedPost( + pplx::task> updateFeedPost( utility::string_t tenantId, utility::string_t id, std::shared_ptr feedPost @@ -1710,7 +1718,7 @@ class DefaultApi /// /// /// - pplx::task> updateModerator( + pplx::task> updateModerator( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateModeratorBody @@ -1725,7 +1733,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> updateNotification( + pplx::task> updateNotification( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateNotificationBody, @@ -1740,7 +1748,7 @@ class DefaultApi /// /// /// - pplx::task> updateQuestionConfig( + pplx::task> updateQuestionConfig( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionConfigBody @@ -1754,7 +1762,7 @@ class DefaultApi /// /// /// - pplx::task> updateQuestionResult( + pplx::task> updateQuestionResult( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionResultBody @@ -1784,7 +1792,7 @@ class DefaultApi /// /// /// - pplx::task> updateTenant( + pplx::task> updateTenant( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantBody @@ -1798,7 +1806,7 @@ class DefaultApi /// /// /// - pplx::task> updateTenantPackage( + pplx::task> updateTenantPackage( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantPackageBody @@ -1813,7 +1821,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> updateTenantUser( + pplx::task> updateTenantUser( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantUserBody, @@ -1828,7 +1836,7 @@ class DefaultApi /// /// /// - pplx::task> updateUserBadge( + pplx::task> updateUserBadge( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateUserBadgeParams diff --git a/client/include/FastCommentsClient/api/ModerationApi.h b/client/include/FastCommentsClient/api/ModerationApi.h new file mode 100644 index 0000000..b4f9dc7 --- /dev/null +++ b/client/include/FastCommentsClient/api/ModerationApi.h @@ -0,0 +1,715 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationApi.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_API_ModerationApi_H_ +#define ORG_OPENAPITOOLS_CLIENT_API_ModerationApi_H_ + + + +#include "FastCommentsClient/ApiClient.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h" +#include "FastCommentsClient/model/AdjustCommentVotesParams.h" +#include "FastCommentsClient/model/AdjustVotesResponse.h" +#include "FastCommentsClient/model/AwardUserBadgeResponse.h" +#include "FastCommentsClient/model/BanUserFromCommentResult.h" +#include "FastCommentsClient/model/BanUserUndoParams.h" +#include "FastCommentsClient/model/BulkPreBanParams.h" +#include "FastCommentsClient/model/BulkPreBanSummary.h" +#include "FastCommentsClient/model/CommentsByIdsParams.h" +#include "FastCommentsClient/model/GetBannedUsersCountResponse.h" +#include "FastCommentsClient/model/GetBannedUsersFromCommentResponse.h" +#include "FastCommentsClient/model/GetCommentBanStatusResponse.h" +#include "FastCommentsClient/model/GetCommentTextResponse.h" +#include "FastCommentsClient/model/GetTenantManualBadgesResponse.h" +#include "FastCommentsClient/model/GetUserInternalProfileResponse.h" +#include "FastCommentsClient/model/GetUserManualBadgesResponse.h" +#include "FastCommentsClient/model/GetUserTrustFactorResponse.h" +#include "FastCommentsClient/model/ModerationAPIChildCommentsResponse.h" +#include "FastCommentsClient/model/ModerationAPICommentResponse.h" +#include "FastCommentsClient/model/ModerationAPICountCommentsResponse.h" +#include "FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h" +#include "FastCommentsClient/model/ModerationAPIGetCommentsResponse.h" +#include "FastCommentsClient/model/ModerationAPIGetLogsResponse.h" +#include "FastCommentsClient/model/ModerationCommentSearchResponse.h" +#include "FastCommentsClient/model/ModerationExportResponse.h" +#include "FastCommentsClient/model/ModerationExportStatusResponse.h" +#include "FastCommentsClient/model/ModerationPageSearchResponse.h" +#include "FastCommentsClient/model/ModerationSiteSearchResponse.h" +#include "FastCommentsClient/model/ModerationSuggestResponse.h" +#include "FastCommentsClient/model/ModerationUserSearchResponse.h" +#include "FastCommentsClient/model/PostRemoveCommentResponse.h" +#include "FastCommentsClient/model/PreBanSummary.h" +#include "FastCommentsClient/model/RemoveUserBadgeResponse.h" +#include "FastCommentsClient/model/SetCommentApprovedResponse.h" +#include "FastCommentsClient/model/SetCommentTextParams.h" +#include "FastCommentsClient/model/SetCommentTextResponse.h" +#include "FastCommentsClient/model/SetUserTrustFactorResponse.h" +#include "FastCommentsClient/model/VoteDeleteResponse.h" +#include "FastCommentsClient/model/VoteResponse.h" +#include +#include + +namespace org { +namespace openapitools { +namespace client { +namespace api { + +using namespace org::openapitools::client::model; + + + +class ModerationApi +{ +public: + + explicit ModerationApi( std::shared_ptr apiClient ); + + virtual ~ModerationApi(); + + /// + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> deleteModerationVote( + utility::string_t commentId, + utility::string_t voteId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to 0.0) + /// (optional, default to 0.0) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getApiComments( + boost::optional page, + boost::optional count, + boost::optional textSearch, + boost::optional byIPFromComment, + boost::optional filters, + boost::optional searchFilters, + boost::optional sorts, + boost::optional demo, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getApiExportStatus( + boost::optional batchJobId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getApiIds( + boost::optional textSearch, + boost::optional byIPFromComment, + boost::optional filters, + boost::optional searchFilters, + boost::optional afterId, + boost::optional demo, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getBanUsersFromComment( + utility::string_t commentId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getCommentBanStatus( + utility::string_t commentId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getCommentChildren( + utility::string_t commentId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getCount( + boost::optional textSearch, + boost::optional byIPFromComment, + boost::optional filter, + boost::optional searchFilters, + boost::optional demo, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getCounts( + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getLogs( + utility::string_t commentId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getManualBadges( + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getManualBadgesForUser( + boost::optional badgesUserId, + boost::optional commentId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to false) + /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getModerationComment( + utility::string_t commentId, + boost::optional includeEmail, + boost::optional includeIP, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getModerationCommentText( + utility::string_t commentId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to false) + /// (optional, default to false) + /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getPreBanSummary( + utility::string_t commentId, + boost::optional includeByUserIdAndEmail, + boost::optional includeByIP, + boost::optional includeByEmailDomain, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getSearchCommentsSummary( + boost::optional value, + boost::optional filters, + boost::optional searchFilters, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getSearchPages( + boost::optional value, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getSearchSites( + boost::optional value, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getSearchSuggest( + boost::optional textSearch, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getSearchUsers( + boost::optional value, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getTrustFactor( + boost::optional userId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getUserBanPreference( + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> getUserInternalProfile( + boost::optional commentId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postAdjustCommentVotes( + utility::string_t commentId, + std::shared_ptr adjustCommentVotesParams, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postApiExport( + boost::optional textSearch, + boost::optional byIPFromComment, + boost::optional filters, + boost::optional searchFilters, + boost::optional sorts, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to false) + /// (optional, default to false) + /// (optional, default to false) + /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postBanUserFromComment( + utility::string_t commentId, + boost::optional banEmail, + boost::optional banEmailDomain, + boost::optional banIP, + boost::optional deleteAllUsersComments, + boost::optional bannedUntil, + boost::optional isShadowBan, + boost::optional updateId, + boost::optional banReason, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postBanUserUndo( + std::shared_ptr banUserUndoParams, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to false) + /// (optional, default to false) + /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postBulkPreBanSummary( + std::shared_ptr bulkPreBanParams, + boost::optional includeByUserIdAndEmail, + boost::optional includeByIP, + boost::optional includeByEmailDomain, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postCommentsByIds( + std::shared_ptr commentsByIdsParams, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postFlagComment( + utility::string_t commentId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postRemoveComment( + utility::string_t commentId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postRestoreDeletedComment( + utility::string_t commentId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postSetCommentApprovalStatus( + utility::string_t commentId, + boost::optional approved, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postSetCommentReviewStatus( + utility::string_t commentId, + boost::optional reviewed, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to false) + /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postSetCommentSpamStatus( + utility::string_t commentId, + boost::optional spam, + boost::optional permNotSpam, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postSetCommentText( + utility::string_t commentId, + std::shared_ptr setCommentTextParams, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postUnFlagComment( + utility::string_t commentId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> postVote( + utility::string_t commentId, + boost::optional direction, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> putAwardBadge( + utility::string_t badgeId, + boost::optional userId, + boost::optional commentId, + boost::optional broadcastId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> putCloseThread( + utility::string_t urlId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> putRemoveBadge( + utility::string_t badgeId, + boost::optional userId, + boost::optional commentId, + boost::optional broadcastId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> putReopenThread( + utility::string_t urlId, + boost::optional sso + ) const; + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> setTrustFactor( + boost::optional userId, + boost::optional trustFactor, + boost::optional sso + ) const; + +protected: + std::shared_ptr m_ApiClient; +}; + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_API_ModerationApi_H_ */ + diff --git a/client/include/FastCommentsClient/api/PublicApi.h b/client/include/FastCommentsClient/api/PublicApi.h index 1e60a28..095a449 100644 --- a/client/include/FastCommentsClient/api/PublicApi.h +++ b/client/include/FastCommentsClient/api/PublicApi.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,45 +22,60 @@ #include "FastCommentsClient/ApiClient.h" +#include "FastCommentsClient/model/APIEmptyResponse.h" #include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/BlockFromCommentPublic_200_response.h" -#include "FastCommentsClient/model/CheckedCommentsForBlocked_200_response.h" +#include "FastCommentsClient/model/BlockSuccess.h" +#include "FastCommentsClient/model/ChangeCommentPinStatusResponse.h" +#include "FastCommentsClient/model/CheckBlockedCommentsResponse.h" #include "FastCommentsClient/model/CommentData.h" #include "FastCommentsClient/model/CommentTextUpdateRequest.h" -#include "FastCommentsClient/model/CreateCommentPublic_200_response.h" #include "FastCommentsClient/model/CreateFeedPostParams.h" -#include "FastCommentsClient/model/CreateFeedPostPublic_200_response.h" -#include "FastCommentsClient/model/DeleteCommentPublic_200_response.h" -#include "FastCommentsClient/model/DeleteCommentVote_200_response.h" -#include "FastCommentsClient/model/DeleteFeedPostPublic_200_response.h" -#include "FastCommentsClient/model/FlagCommentPublic_200_response.h" -#include "FastCommentsClient/model/GetCommentText_200_response.h" -#include "FastCommentsClient/model/GetCommentVoteUserNames_200_response.h" -#include "FastCommentsClient/model/GetCommentsPublic_200_response.h" -#include "FastCommentsClient/model/GetEventLog_200_response.h" -#include "FastCommentsClient/model/GetFeedPostsPublic_200_response.h" -#include "FastCommentsClient/model/GetFeedPostsStats_200_response.h" -#include "FastCommentsClient/model/GetUserNotificationCount_200_response.h" -#include "FastCommentsClient/model/GetUserNotifications_200_response.h" -#include "FastCommentsClient/model/GetUserPresenceStatuses_200_response.h" -#include "FastCommentsClient/model/GetUserReactsPublic_200_response.h" +#include "FastCommentsClient/model/CreateFeedPostResponse.h" +#include "FastCommentsClient/model/CreateV1PageReact.h" +#include "FastCommentsClient/model/DeleteFeedPostPublicResponse.h" +#include "FastCommentsClient/model/FeedPostsStatsResponse.h" +#include "FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h" +#include "FastCommentsClient/model/GetCommentsForUserResponse.h" +#include "FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h" +#include "FastCommentsClient/model/GetEventLogResponse.h" +#include "FastCommentsClient/model/GetGifsSearchResponse.h" +#include "FastCommentsClient/model/GetGifsTrendingResponse.h" +#include "FastCommentsClient/model/GetMyNotificationsResponse.h" +#include "FastCommentsClient/model/GetPublicPagesResponse.h" +#include "FastCommentsClient/model/GetTranslationsResponse.h" +#include "FastCommentsClient/model/GetUserNotificationCountResponse.h" +#include "FastCommentsClient/model/GetUserPresenceStatusesResponse.h" +#include "FastCommentsClient/model/GetV1PageLikes.h" +#include "FastCommentsClient/model/GetV2PageReactUsersResponse.h" +#include "FastCommentsClient/model/GetV2PageReacts.h" +#include "FastCommentsClient/model/GifGetLargeResponse.h" #include "FastCommentsClient/HttpContent.h" -#include "FastCommentsClient/model/LockComment_200_response.h" -#include "FastCommentsClient/model/PinComment_200_response.h" +#include "FastCommentsClient/model/PageUsersInfoResponse.h" +#include "FastCommentsClient/model/PageUsersOfflineResponse.h" +#include "FastCommentsClient/model/PageUsersOnlineResponse.h" +#include "FastCommentsClient/model/PagesSortBy.h" +#include "FastCommentsClient/model/PublicAPIDeleteCommentResponse.h" +#include "FastCommentsClient/model/PublicAPIGetCommentTextResponse.h" +#include "FastCommentsClient/model/PublicAPISetCommentTextResponse.h" #include "FastCommentsClient/model/PublicBlockFromCommentParams.h" +#include "FastCommentsClient/model/PublicFeedPostsResponse.h" #include "FastCommentsClient/model/ReactBodyParams.h" -#include "FastCommentsClient/model/ReactFeedPostPublic_200_response.h" -#include "FastCommentsClient/model/ResetUserNotifications_200_response.h" -#include "FastCommentsClient/model/SearchUsers_200_response.h" -#include "FastCommentsClient/model/SetCommentText_200_response.h" +#include "FastCommentsClient/model/ReactFeedPostResponse.h" +#include "FastCommentsClient/model/ResetUserNotificationsResponse.h" +#include "FastCommentsClient/model/SaveCommentsResponseWithPresence.h" +#include "FastCommentsClient/model/SearchUsersResult.h" #include "FastCommentsClient/model/SizePreset.h" #include "FastCommentsClient/model/SortDirections.h" -#include "FastCommentsClient/model/UnBlockCommentPublic_200_response.h" +#include "FastCommentsClient/model/UnblockSuccess.h" #include "FastCommentsClient/model/UpdateFeedPostParams.h" -#include "FastCommentsClient/model/UpdateUserNotificationStatus_200_response.h" +#include "FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h" +#include "FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h" +#include "FastCommentsClient/model/UpdateUserNotificationStatusResponse.h" #include "FastCommentsClient/model/UploadImageResponse.h" +#include "FastCommentsClient/model/UserReactsResponse.h" #include "FastCommentsClient/model/VoteBodyParams.h" -#include "FastCommentsClient/model/VoteComment_200_response.h" +#include "FastCommentsClient/model/VoteDeleteResponse.h" +#include "FastCommentsClient/model/VoteResponse.h" #include #include #include @@ -92,7 +107,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> blockFromCommentPublic( + pplx::task> blockFromCommentPublic( utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, @@ -107,7 +122,7 @@ class PublicApi /// /// A comma separated list of comment ids. /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> checkedCommentsForBlocked( + pplx::task> checkedCommentsForBlocked( utility::string_t tenantId, utility::string_t commentIds, boost::optional sso @@ -124,7 +139,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> createCommentPublic( + pplx::task> createCommentPublic( utility::string_t tenantId, utility::string_t urlId, utility::string_t broadcastId, @@ -142,7 +157,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> createFeedPostPublic( + pplx::task> createFeedPostPublic( utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, @@ -155,11 +170,41 @@ class PublicApi /// /// /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> createV1PageReact( + utility::string_t tenantId, + utility::string_t urlId, + boost::optional title + ) const; + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + pplx::task> createV2PageReact( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t id, + boost::optional title + ) const; + /// + /// + /// + /// + /// + /// + /// /// /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteCommentPublic( + pplx::task> deleteCommentPublic( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -179,7 +224,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteCommentVote( + pplx::task> deleteCommentVote( utility::string_t tenantId, utility::string_t commentId, utility::string_t voteId, @@ -198,7 +243,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteFeedPostPublic( + pplx::task> deleteFeedPostPublic( utility::string_t tenantId, utility::string_t postId, boost::optional broadcastId, @@ -211,10 +256,36 @@ class PublicApi /// /// /// + /// + pplx::task> deleteV1PageReact( + utility::string_t tenantId, + utility::string_t urlId + ) const; + /// + /// + /// + /// + /// + /// + /// + /// + /// + pplx::task> deleteV2PageReact( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t id + ) const; + /// + /// + /// + /// + /// + /// + /// /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> flagCommentPublic( + pplx::task> flagCommentPublic( utility::string_t tenantId, utility::string_t commentId, bool isFlagged, @@ -230,7 +301,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCommentText( + pplx::task> getCommentText( utility::string_t tenantId, utility::string_t commentId, boost::optional editKey, @@ -246,7 +317,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCommentVoteUserNames( + pplx::task> getCommentVoteUserNames( utility::string_t tenantId, utility::string_t commentId, int32_t dir, @@ -256,6 +327,28 @@ class PublicApi /// /// /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to new SortDirections()) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to 0.0) + /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to false) + pplx::task> getCommentsForUser( + boost::optional userId, + boost::optional> direction, + boost::optional repliesToUserId, + boost::optional page, + boost::optional includei10n, + boost::optional locale, + boost::optional isCrawler + ) const; + /// + /// + /// + /// /// req tenantId urlId /// /// @@ -286,7 +379,7 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCommentsPublic( + pplx::task> getCommentsPublic( utility::string_t tenantId, utility::string_t urlId, boost::optional page, @@ -326,13 +419,13 @@ class PublicApi /// /// /// - /// - pplx::task> getEventLog( + /// (optional, default to 0L) + pplx::task> getEventLog( utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, - int64_t endTime + boost::optional endTime ) const; /// /// @@ -347,7 +440,7 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to false) - pplx::task> getFeedPostsPublic( + pplx::task> getFeedPostsPublic( utility::string_t tenantId, boost::optional afterId, boost::optional limit, @@ -365,7 +458,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getFeedPostsStats( + pplx::task> getFeedPostsStats( utility::string_t tenantId, std::vector postIds, boost::optional sso @@ -374,19 +467,133 @@ class PublicApi /// /// /// + /// + /// + /// + /// + pplx::task> getGifLarge( + utility::string_t tenantId, + utility::string_t largeInternalURLSanitized + ) const; + /// + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to 0.0) + pplx::task> getGifsSearch( + utility::string_t tenantId, + utility::string_t search, + boost::optional locale, + boost::optional rating, + boost::optional page + ) const; + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to 0.0) + pplx::task> getGifsTrending( + utility::string_t tenantId, + boost::optional locale, + boost::optional rating, + boost::optional page + ) const; + /// + /// + /// + /// /// req tenantId urlId userIdWS /// /// /// /// /// - /// - pplx::task> getGlobalEventLog( + /// (optional, default to 0L) + pplx::task> getGlobalEventLog( utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, - int64_t endTime + boost::optional endTime + ) const; + /// + /// + /// + /// + /// Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. + /// + /// + /// Page URL identifier (cleaned server-side). + /// Cursor: pass nextAfterName from the previous response. (optional, default to utility::conversions::to_string_t("")) + /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional, default to utility::conversions::to_string_t("")) + pplx::task> getOfflineUsers( + utility::string_t tenantId, + utility::string_t urlId, + boost::optional afterName, + boost::optional afterUserId + ) const; + /// + /// + /// + /// + /// Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). + /// + /// + /// Page URL identifier (cleaned server-side). + /// Cursor: pass nextAfterName from the previous response. (optional, default to utility::conversions::to_string_t("")) + /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional, default to utility::conversions::to_string_t("")) + pplx::task> getOnlineUsers( + utility::string_t tenantId, + utility::string_t urlId, + boost::optional afterName, + boost::optional afterUserId + ) const; + /// + /// + /// + /// + /// List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. + /// + /// + /// Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. (optional, default to utility::conversions::to_string_t("")) + /// 1..200, default 50 (optional, default to 0) + /// Optional case-insensitive title prefix filter. (optional, default to utility::conversions::to_string_t("")) + /// Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). (optional, default to new PagesSortBy()) + /// If true, only return pages with at least one comment. (optional, default to false) + pplx::task> getPagesPublic( + utility::string_t tenantId, + boost::optional cursor, + boost::optional limit, + boost::optional q, + boost::optional> sortBy, + boost::optional hasComments + ) const; + /// + /// + /// + /// + /// + /// + /// + /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to false) + pplx::task> getTranslations( + utility::string_t r_namespace, + utility::string_t component, + boost::optional locale, + boost::optional useFullTranslationIds ) const; /// /// @@ -396,7 +603,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getUserNotificationCount( + pplx::task> getUserNotificationCount( utility::string_t tenantId, boost::optional sso ) const; @@ -407,6 +614,7 @@ class PublicApi /// /// /// + /// Used to determine whether the current page is subscribed. (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) @@ -415,9 +623,11 @@ class PublicApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) + /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getUserNotifications( + pplx::task> getUserNotifications( utility::string_t tenantId, + boost::optional urlId, boost::optional pageSize, boost::optional afterId, boost::optional includeContext, @@ -426,6 +636,7 @@ class PublicApi boost::optional dmOnly, boost::optional noDm, boost::optional includeTranslations, + boost::optional includeTenantNotifications, boost::optional sso ) const; /// @@ -437,7 +648,7 @@ class PublicApi /// /// /// - pplx::task> getUserPresenceStatuses( + pplx::task> getUserPresenceStatuses( utility::string_t tenantId, utility::string_t urlIdWS, utility::string_t userIds @@ -451,7 +662,7 @@ class PublicApi /// /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getUserReactsPublic( + pplx::task> getUserReactsPublic( utility::string_t tenantId, boost::optional> postIds, boost::optional sso @@ -460,13 +671,63 @@ class PublicApi /// /// /// + /// Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). + /// + /// + /// Comma-delimited userIds. + pplx::task> getUsersInfo( + utility::string_t tenantId, + utility::string_t ids + ) const; + /// + /// + /// + /// + /// + /// + /// + /// + pplx::task> getV1PageLikes( + utility::string_t tenantId, + utility::string_t urlId + ) const; + /// + /// + /// + /// + /// + /// + /// + /// + /// + pplx::task> getV2PageReactUsers( + utility::string_t tenantId, + utility::string_t urlId, + utility::string_t id + ) const; + /// + /// + /// + /// + /// + /// + /// + /// + pplx::task> getV2PageReacts( + utility::string_t tenantId, + utility::string_t urlId + ) const; + /// + /// + /// + /// /// /// /// /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> lockComment( + pplx::task> lockComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -478,11 +739,19 @@ class PublicApi /// /// /// + pplx::task> logoutPublic( + ) const; + /// + /// + /// + /// + /// + /// /// /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> pinComment( + pplx::task> pinComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -500,7 +769,7 @@ class PublicApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> reactFeedPostPublic( + pplx::task> reactFeedPostPublic( utility::string_t tenantId, utility::string_t postId, std::shared_ptr reactBodyParams, @@ -516,7 +785,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> resetUserNotificationCount( + pplx::task> resetUserNotificationCount( utility::string_t tenantId, boost::optional sso ) const; @@ -533,7 +802,7 @@ class PublicApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> resetUserNotifications( + pplx::task> resetUserNotifications( utility::string_t tenantId, boost::optional afterId, boost::optional afterCreatedAt, @@ -554,7 +823,7 @@ class PublicApi /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> searchUsers( + pplx::task> searchUsers( utility::string_t tenantId, utility::string_t urlId, boost::optional usernameStartsWith, @@ -574,7 +843,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> setCommentText( + pplx::task> setCommentText( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -592,7 +861,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unBlockCommentPublic( + pplx::task> unBlockCommentPublic( utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, @@ -608,7 +877,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unLockComment( + pplx::task> unLockComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -624,7 +893,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unPinComment( + pplx::task> unPinComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -641,7 +910,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> updateFeedPostPublic( + pplx::task> updateFeedPostPublic( utility::string_t tenantId, utility::string_t postId, std::shared_ptr updateFeedPostParams, @@ -659,7 +928,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> updateUserNotificationCommentSubscriptionStatus( + pplx::task> updateUserNotificationCommentSubscriptionStatus( utility::string_t tenantId, utility::string_t notificationId, utility::string_t optedInOrOut, @@ -678,7 +947,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> updateUserNotificationPageSubscriptionStatus( + pplx::task> updateUserNotificationPageSubscriptionStatus( utility::string_t tenantId, utility::string_t urlId, utility::string_t url, @@ -696,7 +965,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> updateUserNotificationStatus( + pplx::task> updateUserNotificationStatus( utility::string_t tenantId, utility::string_t notificationId, utility::string_t newStatus, @@ -731,7 +1000,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> voteComment( + pplx::task> voteComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t urlId, diff --git a/client/include/FastCommentsClient/model/APIAuditLog.h b/client/include/FastCommentsClient/model/APIAuditLog.h index 45faad1..457076c 100644 --- a/client/include/FastCommentsClient/model/APIAuditLog.h +++ b/client/include/FastCommentsClient/model/APIAuditLog.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIAuditLog_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -162,9 +161,11 @@ class APIAuditLog FromEnum m_From; bool m_FromIsSet; - boost::optional m_Url; + utility::string_t m_Url; + bool m_UrlIsSet; - boost::optional m_Ip; + utility::string_t m_Ip; + bool m_IpIsSet; utility::datetime m_When; bool m_WhenIsSet; @@ -175,7 +176,8 @@ class APIAuditLog utility::datetime m_ServerStartDate; bool m_ServerStartDateIsSet; - boost::optional>> m_ObjectDetails; + std::map> m_ObjectDetails; + bool m_ObjectDetailsIsSet; }; diff --git a/client/include/FastCommentsClient/model/APIBanUserChangeLog.h b/client/include/FastCommentsClient/model/APIBanUserChangeLog.h new file mode 100644 index 0000000..d8083b5 --- /dev/null +++ b/client/include/FastCommentsClient/model/APIBanUserChangeLog.h @@ -0,0 +1,103 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * APIBanUserChangeLog.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIBanUserChangeLog_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_APIBanUserChangeLog_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIBanUserChangedValues.h" +#include "FastCommentsClient/model/APIBannedUser.h" +#include +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APIBannedUser; +class APIBanUserChangedValues; + + +class APIBanUserChangeLog + : public ModelBase +{ +public: + APIBanUserChangeLog(); + virtual ~APIBanUserChangeLog(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// APIBanUserChangeLog members + + + utility::string_t getCreatedBannedUserId() const; + bool createdBannedUserIdIsSet() const; + void unsetCreatedBannedUserId(); + void setCreatedBannedUserId(const utility::string_t& value); + + utility::string_t getUpdatedBannedUserId() const; + bool updatedBannedUserIdIsSet() const; + void unsetUpdatedBannedUserId(); + void setUpdatedBannedUserId(const utility::string_t& value); + + std::vector> getDeletedBannedUsers() const; + bool deletedBannedUsersIsSet() const; + void unsetDeletedBannedUsers(); + void setDeletedBannedUsers(const std::vector>& value); + + std::shared_ptr getChangedValuesBefore() const; + bool changedValuesBeforeIsSet() const; + void unsetChangedValuesBefore(); + void setChangedValuesBefore(const std::shared_ptr& value); + + +protected: + utility::string_t m_CreatedBannedUserId; + bool m_CreatedBannedUserIdIsSet; + + utility::string_t m_UpdatedBannedUserId; + bool m_UpdatedBannedUserIdIsSet; + + std::vector> m_DeletedBannedUsers; + bool m_DeletedBannedUsersIsSet; + + std::shared_ptr m_ChangedValuesBefore; + bool m_ChangedValuesBeforeIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_APIBanUserChangeLog_H_ */ diff --git a/client/include/FastCommentsClient/model/APIBanUserChangedValues.h b/client/include/FastCommentsClient/model/APIBanUserChangedValues.h new file mode 100644 index 0000000..72beb01 --- /dev/null +++ b/client/include/FastCommentsClient/model/APIBanUserChangedValues.h @@ -0,0 +1,170 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * APIBanUserChangedValues.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIBanUserChangedValues_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_APIBanUserChangedValues_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class APIBanUserChangedValues + : public ModelBase +{ +public: + APIBanUserChangedValues(); + virtual ~APIBanUserChangedValues(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// APIBanUserChangedValues members + + + utility::string_t getId() const; + bool idIsSet() const; + void unset_id(); + void setId(const utility::string_t& value); + + utility::string_t getTenantId() const; + bool tenantIdIsSet() const; + void unsetTenantId(); + void setTenantId(const utility::string_t& value); + + utility::string_t getUserId() const; + bool userIdIsSet() const; + void unsetUserId(); + void setUserId(const utility::string_t& value); + + utility::string_t getEmail() const; + bool emailIsSet() const; + void unsetEmail(); + void setEmail(const utility::string_t& value); + + utility::string_t getUsername() const; + bool usernameIsSet() const; + void unsetUsername(); + void setUsername(const utility::string_t& value); + + utility::string_t getIpHash() const; + bool ipHashIsSet() const; + void unsetIpHash(); + void setIpHash(const utility::string_t& value); + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetCreatedAt(); + void setCreatedAt(const utility::datetime& value); + + utility::string_t getBannedByUserId() const; + bool bannedByUserIdIsSet() const; + void unsetBannedByUserId(); + void setBannedByUserId(const utility::string_t& value); + + utility::string_t getBannedCommentText() const; + bool bannedCommentTextIsSet() const; + void unsetBannedCommentText(); + void setBannedCommentText(const utility::string_t& value); + + utility::string_t getBanType() const; + bool banTypeIsSet() const; + void unsetBanType(); + void setBanType(const utility::string_t& value); + + utility::datetime getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(const utility::datetime& value); + + bool isHasEmailWildcard() const; + bool hasEmailWildcardIsSet() const; + void unsetHasEmailWildcard(); + void setHasEmailWildcard(bool value); + + utility::string_t getBanReason() const; + bool banReasonIsSet() const; + void unsetBanReason(); + void setBanReason(const utility::string_t& value); + + +protected: + utility::string_t m__id; + bool m__idIsSet; + + utility::string_t m_TenantId; + bool m_TenantIdIsSet; + + utility::string_t m_UserId; + bool m_UserIdIsSet; + + utility::string_t m_Email; + bool m_EmailIsSet; + + utility::string_t m_Username; + bool m_UsernameIsSet; + + utility::string_t m_IpHash; + bool m_IpHashIsSet; + + utility::datetime m_CreatedAt; + bool m_CreatedAtIsSet; + + utility::string_t m_BannedByUserId; + bool m_BannedByUserIdIsSet; + + utility::string_t m_BannedCommentText; + bool m_BannedCommentTextIsSet; + + utility::string_t m_BanType; + bool m_BanTypeIsSet; + + utility::datetime m_BannedUntil; + bool m_BannedUntilIsSet; + + bool m_HasEmailWildcard; + bool m_HasEmailWildcardIsSet; + + utility::string_t m_BanReason; + bool m_BanReasonIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_APIBanUserChangedValues_H_ */ diff --git a/client/include/FastCommentsClient/model/APIBannedUser.h b/client/include/FastCommentsClient/model/APIBannedUser.h new file mode 100644 index 0000000..4cced4f --- /dev/null +++ b/client/include/FastCommentsClient/model/APIBannedUser.h @@ -0,0 +1,170 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * APIBannedUser.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIBannedUser_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_APIBannedUser_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class APIBannedUser + : public ModelBase +{ +public: + APIBannedUser(); + virtual ~APIBannedUser(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// APIBannedUser members + + + utility::string_t getId() const; + bool idIsSet() const; + void unset_id(); + void setId(const utility::string_t& value); + + utility::string_t getTenantId() const; + bool tenantIdIsSet() const; + void unsetTenantId(); + void setTenantId(const utility::string_t& value); + + utility::string_t getUserId() const; + bool userIdIsSet() const; + void unsetUserId(); + void setUserId(const utility::string_t& value); + + utility::string_t getEmail() const; + bool emailIsSet() const; + void unsetEmail(); + void setEmail(const utility::string_t& value); + + utility::string_t getUsername() const; + bool usernameIsSet() const; + void unsetUsername(); + void setUsername(const utility::string_t& value); + + utility::string_t getIpHash() const; + bool ipHashIsSet() const; + void unsetIpHash(); + void setIpHash(const utility::string_t& value); + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetCreatedAt(); + void setCreatedAt(const utility::datetime& value); + + utility::string_t getBannedByUserId() const; + bool bannedByUserIdIsSet() const; + void unsetBannedByUserId(); + void setBannedByUserId(const utility::string_t& value); + + utility::string_t getBannedCommentText() const; + bool bannedCommentTextIsSet() const; + void unsetBannedCommentText(); + void setBannedCommentText(const utility::string_t& value); + + utility::string_t getBanType() const; + bool banTypeIsSet() const; + void unsetBanType(); + void setBanType(const utility::string_t& value); + + utility::datetime getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(const utility::datetime& value); + + bool isHasEmailWildcard() const; + bool hasEmailWildcardIsSet() const; + void unsetHasEmailWildcard(); + void setHasEmailWildcard(bool value); + + utility::string_t getBanReason() const; + bool banReasonIsSet() const; + void unsetBanReason(); + void setBanReason(const utility::string_t& value); + + +protected: + utility::string_t m__id; + bool m__idIsSet; + + utility::string_t m_TenantId; + bool m_TenantIdIsSet; + + utility::string_t m_UserId; + bool m_UserIdIsSet; + + utility::string_t m_Email; + bool m_EmailIsSet; + + utility::string_t m_Username; + bool m_UsernameIsSet; + + utility::string_t m_IpHash; + bool m_IpHashIsSet; + + utility::datetime m_CreatedAt; + bool m_CreatedAtIsSet; + + utility::string_t m_BannedByUserId; + bool m_BannedByUserIdIsSet; + + utility::string_t m_BannedCommentText; + bool m_BannedCommentTextIsSet; + + utility::string_t m_BanType; + bool m_BanTypeIsSet; + + utility::datetime m_BannedUntil; + bool m_BannedUntilIsSet; + + bool m_HasEmailWildcard; + bool m_HasEmailWildcardIsSet; + + utility::string_t m_BanReason; + bool m_BanReasonIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_APIBannedUser_H_ */ diff --git a/client/include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h b/client/include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h new file mode 100644 index 0000000..b230a37 --- /dev/null +++ b/client/include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h @@ -0,0 +1,141 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * APIBannedUserWithMultiMatchInfo.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIBannedUserWithMultiMatchInfo_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_APIBannedUserWithMultiMatchInfo_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/BannedUserMatch.h" +#include +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class BannedUserMatch; + + +class APIBannedUserWithMultiMatchInfo + : public ModelBase +{ +public: + APIBannedUserWithMultiMatchInfo(); + virtual ~APIBannedUserWithMultiMatchInfo(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// APIBannedUserWithMultiMatchInfo members + + + utility::string_t getId() const; + bool idIsSet() const; + void unset_id(); + void setId(const utility::string_t& value); + + utility::string_t getUserId() const; + bool userIdIsSet() const; + void unsetUserId(); + void setUserId(const utility::string_t& value); + + utility::string_t getBanType() const; + bool banTypeIsSet() const; + void unsetBanType(); + void setBanType(const utility::string_t& value); + + utility::string_t getEmail() const; + bool emailIsSet() const; + void unsetEmail(); + void setEmail(const utility::string_t& value); + + utility::string_t getIpHash() const; + bool ipHashIsSet() const; + void unsetIpHash(); + void setIpHash(const utility::string_t& value); + + utility::datetime getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(const utility::datetime& value); + + bool isHasEmailWildcard() const; + bool hasEmailWildcardIsSet() const; + void unsetHasEmailWildcard(); + void setHasEmailWildcard(bool value); + + utility::string_t getBanReason() const; + bool banReasonIsSet() const; + void unsetBanReason(); + void setBanReason(const utility::string_t& value); + + std::vector> getMatches() const; + bool matchesIsSet() const; + void unsetMatches(); + void setMatches(const std::vector>& value); + + +protected: + utility::string_t m__id; + bool m__idIsSet; + + utility::string_t m_UserId; + bool m_UserIdIsSet; + + utility::string_t m_BanType; + bool m_BanTypeIsSet; + + utility::string_t m_Email; + bool m_EmailIsSet; + + utility::string_t m_IpHash; + bool m_IpHashIsSet; + + utility::datetime m_BannedUntil; + bool m_BannedUntilIsSet; + + bool m_HasEmailWildcard; + bool m_HasEmailWildcardIsSet; + + utility::string_t m_BanReason; + bool m_BanReasonIsSet; + + std::vector> m_Matches; + bool m_MatchesIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_APIBannedUserWithMultiMatchInfo_H_ */ diff --git a/client/include/FastCommentsClient/model/APIComment.h b/client/include/FastCommentsClient/model/APIComment.h index 2341d6c..bfee04b 100644 --- a/client/include/FastCommentsClient/model/APIComment.h +++ b/client/include/FastCommentsClient/model/APIComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIComment_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIComment_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -64,7 +63,7 @@ class APIComment utility::string_t getId() const; bool idIsSet() const; - void unset_id(); + void unsetId(); void setId(const utility::string_t& value); bool isAiDeterminedSpam() const; @@ -329,20 +328,23 @@ class APIComment protected: - utility::string_t m__id; - bool m__idIsSet; + utility::string_t m_Id; + bool m_IdIsSet; bool m_AiDeterminedSpam; bool m_AiDeterminedSpamIsSet; - boost::optional m_AnonUserId; + utility::string_t m_AnonUserId; + bool m_AnonUserIdIsSet; bool m_Approved; bool m_ApprovedIsSet; - boost::optional m_AvatarSrc; + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; - boost::optional>> m_Badges; + std::vector> m_Badges; + bool m_BadgesIsSet; utility::string_t m_Comment; bool m_CommentIsSet; @@ -350,30 +352,38 @@ class APIComment utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; - boost::optional m_CommenterEmail; + utility::string_t m_CommenterEmail; + bool m_CommenterEmailIsSet; - boost::optional m_CommenterLink; + utility::string_t m_CommenterLink; + bool m_CommenterLinkIsSet; utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - boost::optional m_date; + double m_date; + bool m_dateIsSet; - boost::optional m_DisplayLabel; + utility::string_t m_DisplayLabel; + bool m_DisplayLabelIsSet; - boost::optional m_Domain; + utility::string_t m_Domain; + bool m_DomainIsSet; utility::string_t m_ExternalId; bool m_ExternalIdIsSet; - boost::optional m_ExternalParentId; + utility::string_t m_ExternalParentId; + bool m_ExternalParentIdIsSet; - boost::optional m_ExpireAt; + utility::datetime m_ExpireAt; + bool m_ExpireAtIsSet; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; - boost::optional m_FlagCount; + int32_t m_FlagCount; + bool m_FlagCountIsSet; int32_t m_FromProductId; bool m_FromProductIdIsSet; @@ -402,25 +412,32 @@ class APIComment bool m_IsDeletedUser; bool m_IsDeletedUserIsSet; - boost::optional m_IsPinned; + bool m_IsPinned; + bool m_IsPinnedIsSet; - boost::optional m_IsLocked; + bool m_IsLocked; + bool m_IsLockedIsSet; bool m_IsSpam; bool m_IsSpamIsSet; - boost::optional m_LocalDateHours; + int32_t m_LocalDateHours; + bool m_LocalDateHoursIsSet; - boost::optional m_LocalDateString; + utility::string_t m_LocalDateString; + bool m_LocalDateStringIsSet; - boost::optional m_Locale; + utility::string_t m_Locale; + bool m_LocaleIsSet; std::vector> m_Mentions; bool m_MentionsIsSet; - boost::optional> m_Meta; + std::shared_ptr m_Meta; + bool m_MetaIsSet; - boost::optional> m_ModerationGroupIds; + std::vector m_ModerationGroupIds; + bool m_ModerationGroupIdsIsSet; bool m_NotificationSentForParent; bool m_NotificationSentForParentIsSet; @@ -428,11 +445,14 @@ class APIComment bool m_NotificationSentForParentTenant; bool m_NotificationSentForParentTenantIsSet; - boost::optional m_PageTitle; + utility::string_t m_PageTitle; + bool m_PageTitleIsSet; - boost::optional m_ParentId; + utility::string_t m_ParentId; + bool m_ParentIdIsSet; - boost::optional m_Rating; + double m_Rating; + bool m_RatingIsSet; bool m_Reviewed; bool m_ReviewedIsSet; @@ -449,18 +469,23 @@ class APIComment utility::string_t m_UrlIdRaw; bool m_UrlIdRawIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; bool m_Verified; bool m_VerifiedIsSet; - boost::optional m_VerifiedDate; + utility::datetime m_VerifiedDate; + bool m_VerifiedDateIsSet; - boost::optional m_Votes; + int32_t m_Votes; + bool m_VotesIsSet; - boost::optional m_VotesDown; + int32_t m_VotesDown; + bool m_VotesDownIsSet; - boost::optional m_VotesUp; + int32_t m_VotesUp; + bool m_VotesUpIsSet; }; diff --git a/client/include/FastCommentsClient/model/APICommentBase.h b/client/include/FastCommentsClient/model/APICommentBase.h index 01495b1..c89bf99 100644 --- a/client/include/FastCommentsClient/model/APICommentBase.h +++ b/client/include/FastCommentsClient/model/APICommentBase.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APICommentBase_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APICommentBase_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -64,7 +63,7 @@ class APICommentBase utility::string_t getId() const; bool idIsSet() const; - void unset_id(); + void unsetId(); void setId(const utility::string_t& value); bool isAiDeterminedSpam() const; @@ -329,20 +328,23 @@ class APICommentBase protected: - utility::string_t m__id; - bool m__idIsSet; + utility::string_t m_Id; + bool m_IdIsSet; bool m_AiDeterminedSpam; bool m_AiDeterminedSpamIsSet; - boost::optional m_AnonUserId; + utility::string_t m_AnonUserId; + bool m_AnonUserIdIsSet; bool m_Approved; bool m_ApprovedIsSet; - boost::optional m_AvatarSrc; + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; - boost::optional>> m_Badges; + std::vector> m_Badges; + bool m_BadgesIsSet; utility::string_t m_Comment; bool m_CommentIsSet; @@ -350,30 +352,38 @@ class APICommentBase utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; - boost::optional m_CommenterEmail; + utility::string_t m_CommenterEmail; + bool m_CommenterEmailIsSet; - boost::optional m_CommenterLink; + utility::string_t m_CommenterLink; + bool m_CommenterLinkIsSet; utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - boost::optional m_date; + utility::datetime m_date; + bool m_dateIsSet; - boost::optional m_DisplayLabel; + utility::string_t m_DisplayLabel; + bool m_DisplayLabelIsSet; - boost::optional m_Domain; + utility::string_t m_Domain; + bool m_DomainIsSet; utility::string_t m_ExternalId; bool m_ExternalIdIsSet; - boost::optional m_ExternalParentId; + utility::string_t m_ExternalParentId; + bool m_ExternalParentIdIsSet; - boost::optional m_ExpireAt; + utility::datetime m_ExpireAt; + bool m_ExpireAtIsSet; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; - boost::optional m_FlagCount; + int32_t m_FlagCount; + bool m_FlagCountIsSet; int32_t m_FromProductId; bool m_FromProductIdIsSet; @@ -402,25 +412,32 @@ class APICommentBase bool m_IsDeletedUser; bool m_IsDeletedUserIsSet; - boost::optional m_IsPinned; + bool m_IsPinned; + bool m_IsPinnedIsSet; - boost::optional m_IsLocked; + bool m_IsLocked; + bool m_IsLockedIsSet; bool m_IsSpam; bool m_IsSpamIsSet; - boost::optional m_LocalDateHours; + int32_t m_LocalDateHours; + bool m_LocalDateHoursIsSet; - boost::optional m_LocalDateString; + utility::string_t m_LocalDateString; + bool m_LocalDateStringIsSet; - boost::optional m_Locale; + utility::string_t m_Locale; + bool m_LocaleIsSet; std::vector> m_Mentions; bool m_MentionsIsSet; - boost::optional> m_Meta; + std::shared_ptr m_Meta; + bool m_MetaIsSet; - boost::optional> m_ModerationGroupIds; + std::vector m_ModerationGroupIds; + bool m_ModerationGroupIdsIsSet; bool m_NotificationSentForParent; bool m_NotificationSentForParentIsSet; @@ -428,11 +445,14 @@ class APICommentBase bool m_NotificationSentForParentTenant; bool m_NotificationSentForParentTenantIsSet; - boost::optional m_PageTitle; + utility::string_t m_PageTitle; + bool m_PageTitleIsSet; - boost::optional m_ParentId; + utility::string_t m_ParentId; + bool m_ParentIdIsSet; - boost::optional m_Rating; + double m_Rating; + bool m_RatingIsSet; bool m_Reviewed; bool m_ReviewedIsSet; @@ -449,18 +469,23 @@ class APICommentBase utility::string_t m_UrlIdRaw; bool m_UrlIdRawIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; bool m_Verified; bool m_VerifiedIsSet; - boost::optional m_VerifiedDate; + utility::datetime m_VerifiedDate; + bool m_VerifiedDateIsSet; - boost::optional m_Votes; + int32_t m_Votes; + bool m_VotesIsSet; - boost::optional m_VotesDown; + int32_t m_VotesDown; + bool m_VotesDownIsSet; - boost::optional m_VotesUp; + int32_t m_VotesUp; + bool m_VotesUpIsSet; }; diff --git a/client/include/FastCommentsClient/model/APICommentBase_meta.h b/client/include/FastCommentsClient/model/APICommentBase_meta.h index 184116f..3fab9d8 100644 --- a/client/include/FastCommentsClient/model/APICommentBase_meta.h +++ b/client/include/FastCommentsClient/model/APICommentBase_meta.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,13 +18,11 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APICommentBase_meta_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APICommentBase_meta_H_ -#include #include "FastCommentsClient/ModelBase.h" #include #include -#include #include "FastCommentsClient/AnyType.h" namespace org { @@ -68,21 +66,6 @@ class APICommentBase_meta void setWpPostId(const utility::string_t& value); - /// - /// Get additional properties (properties not defined in the schema) - /// - std::map getAdditionalProperties() const; - bool additionalPropertiesIsSet() const; - void unsetAdditionalProperties(); - /// - /// Set additional properties - /// - void setAdditionalProperties(const std::map& value); - /// - /// Add a single additional property - /// - void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); - protected: utility::string_t m_WpUserId; bool m_WpUserIdIsSet; @@ -90,8 +73,6 @@ class APICommentBase_meta utility::string_t m_WpPostId; bool m_WpPostIdIsSet; - std::map m_AdditionalProperties; - bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/APICommentCommonBannedUser.h b/client/include/FastCommentsClient/model/APICommentCommonBannedUser.h new file mode 100644 index 0000000..ea96b00 --- /dev/null +++ b/client/include/FastCommentsClient/model/APICommentCommonBannedUser.h @@ -0,0 +1,130 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * APICommentCommonBannedUser.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APICommentCommonBannedUser_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_APICommentCommonBannedUser_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class APICommentCommonBannedUser + : public ModelBase +{ +public: + APICommentCommonBannedUser(); + virtual ~APICommentCommonBannedUser(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// APICommentCommonBannedUser members + + + utility::string_t getId() const; + bool idIsSet() const; + void unset_id(); + void setId(const utility::string_t& value); + + utility::string_t getUserId() const; + bool userIdIsSet() const; + void unsetUserId(); + void setUserId(const utility::string_t& value); + + utility::string_t getBanType() const; + bool banTypeIsSet() const; + void unsetBanType(); + void setBanType(const utility::string_t& value); + + utility::string_t getEmail() const; + bool emailIsSet() const; + void unsetEmail(); + void setEmail(const utility::string_t& value); + + utility::string_t getIpHash() const; + bool ipHashIsSet() const; + void unsetIpHash(); + void setIpHash(const utility::string_t& value); + + utility::datetime getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(const utility::datetime& value); + + bool isHasEmailWildcard() const; + bool hasEmailWildcardIsSet() const; + void unsetHasEmailWildcard(); + void setHasEmailWildcard(bool value); + + utility::string_t getBanReason() const; + bool banReasonIsSet() const; + void unsetBanReason(); + void setBanReason(const utility::string_t& value); + + +protected: + utility::string_t m__id; + bool m__idIsSet; + + utility::string_t m_UserId; + bool m_UserIdIsSet; + + utility::string_t m_BanType; + bool m_BanTypeIsSet; + + utility::string_t m_Email; + bool m_EmailIsSet; + + utility::string_t m_IpHash; + bool m_IpHashIsSet; + + utility::datetime m_BannedUntil; + bool m_BannedUntilIsSet; + + bool m_HasEmailWildcard; + bool m_HasEmailWildcardIsSet; + + utility::string_t m_BanReason; + bool m_BanReasonIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_APICommentCommonBannedUser_H_ */ diff --git a/client/include/FastCommentsClient/model/APICreateUserBadgeResponse.h b/client/include/FastCommentsClient/model/APICreateUserBadgeResponse.h index 8d9fe1e..23dc26f 100644 --- a/client/include/FastCommentsClient/model/APICreateUserBadgeResponse.h +++ b/client/include/FastCommentsClient/model/APICreateUserBadgeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APICreateUserBadgeResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIDomainConfiguration.h b/client/include/FastCommentsClient/model/APIDomainConfiguration.h index 4fd62c3..1c85772 100644 --- a/client/include/FastCommentsClient/model/APIDomainConfiguration.h +++ b/client/include/FastCommentsClient/model/APIDomainConfiguration.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIDomainConfiguration_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -143,19 +142,23 @@ class APIDomainConfiguration utility::string_t m_Domain; bool m_DomainIsSet; - boost::optional m_EmailFromName; + utility::string_t m_EmailFromName; + bool m_EmailFromNameIsSet; - boost::optional m_EmailFromEmail; + utility::string_t m_EmailFromEmail; + bool m_EmailFromEmailIsSet; std::map m_EmailHeaders; bool m_EmailHeadersIsSet; - boost::optional m_WpSyncToken; + utility::string_t m_WpSyncToken; + bool m_WpSyncTokenIsSet; bool m_WpSynced; bool m_WpSyncedIsSet; - boost::optional m_WpURL; + utility::string_t m_WpURL; + bool m_WpURLIsSet; utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; @@ -166,9 +169,11 @@ class APIDomainConfiguration std::shared_ptr m_SiteType; bool m_SiteTypeIsSet; - boost::optional m_LogoSrc; + utility::string_t m_LogoSrc; + bool m_LogoSrcIsSet; - boost::optional m_LogoSrc100px; + utility::string_t m_LogoSrc100px; + bool m_LogoSrc100pxIsSet; utility::string_t m_FooterUnsubscribeURL; bool m_FooterUnsubscribeURLIsSet; diff --git a/client/include/FastCommentsClient/model/APIEmptyResponse.h b/client/include/FastCommentsClient/model/APIEmptyResponse.h index dd31d0d..7e76bc4 100644 --- a/client/include/FastCommentsClient/model/APIEmptyResponse.h +++ b/client/include/FastCommentsClient/model/APIEmptyResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIEmptyResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIEmptySuccessResponse.h b/client/include/FastCommentsClient/model/APIEmptySuccessResponse.h index ef9be31..39367a7 100644 --- a/client/include/FastCommentsClient/model/APIEmptySuccessResponse.h +++ b/client/include/FastCommentsClient/model/APIEmptySuccessResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIEmptySuccessResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIError.h b/client/include/FastCommentsClient/model/APIError.h index 85c30fb..10334f1 100644 --- a/client/include/FastCommentsClient/model/APIError.h +++ b/client/include/FastCommentsClient/model/APIError.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIError_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIGetCommentResponse.h b/client/include/FastCommentsClient/model/APIGetCommentResponse.h index 6e8d3e6..821967b 100644 --- a/client/include/FastCommentsClient/model/APIGetCommentResponse.h +++ b/client/include/FastCommentsClient/model/APIGetCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIGetCommentResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIGetCommentsResponse.h b/client/include/FastCommentsClient/model/APIGetCommentsResponse.h index 324901e..6173b07 100644 --- a/client/include/FastCommentsClient/model/APIGetCommentsResponse.h +++ b/client/include/FastCommentsClient/model/APIGetCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIGetCommentsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h b/client/include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h index 8872a17..bed03b7 100644 --- a/client/include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h +++ b/client/include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIGetUserBadgeProgressListResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h b/client/include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h index c248826..c684a5d 100644 --- a/client/include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h +++ b/client/include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIGetUserBadgeProgressResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIGetUserBadgeResponse.h b/client/include/FastCommentsClient/model/APIGetUserBadgeResponse.h index 163f414..6b45e61 100644 --- a/client/include/FastCommentsClient/model/APIGetUserBadgeResponse.h +++ b/client/include/FastCommentsClient/model/APIGetUserBadgeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIGetUserBadgeResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIGetUserBadgesResponse.h b/client/include/FastCommentsClient/model/APIGetUserBadgesResponse.h index c5b13a2..dfea5c9 100644 --- a/client/include/FastCommentsClient/model/APIGetUserBadgesResponse.h +++ b/client/include/FastCommentsClient/model/APIGetUserBadgesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIGetUserBadgesResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h b/client/include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h new file mode 100644 index 0000000..210ee6d --- /dev/null +++ b/client/include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h @@ -0,0 +1,85 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * APIModerateGetUserBanPreferencesResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIModerateGetUserBanPreferencesResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_APIModerateGetUserBanPreferencesResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIModerateUserBanPreferences.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APIModerateUserBanPreferences; + + +class APIModerateGetUserBanPreferencesResponse + : public ModelBase +{ +public: + APIModerateGetUserBanPreferencesResponse(); + virtual ~APIModerateGetUserBanPreferencesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// APIModerateGetUserBanPreferencesResponse members + + + std::shared_ptr getPreferences() const; + bool preferencesIsSet() const; + void unsetPreferences(); + void setPreferences(const std::shared_ptr& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Preferences; + bool m_PreferencesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_APIModerateGetUserBanPreferencesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/APIModerateUserBanPreferences.h b/client/include/FastCommentsClient/model/APIModerateUserBanPreferences.h new file mode 100644 index 0000000..e496005 --- /dev/null +++ b/client/include/FastCommentsClient/model/APIModerateUserBanPreferences.h @@ -0,0 +1,98 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * APIModerateUserBanPreferences.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIModerateUserBanPreferences_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_APIModerateUserBanPreferences_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class APIModerateUserBanPreferences + : public ModelBase +{ +public: + APIModerateUserBanPreferences(); + virtual ~APIModerateUserBanPreferences(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// APIModerateUserBanPreferences members + + + bool isShouldBanEmail() const; + bool shouldBanEmailIsSet() const; + void unsetShouldBanEmail(); + void setShouldBanEmail(bool value); + + bool isShouldBanByIP() const; + bool shouldBanByIPIsSet() const; + void unsetShouldBanByIP(); + void setShouldBanByIP(bool value); + + utility::string_t getLastBanType() const; + bool lastBanTypeIsSet() const; + void unsetLastBanType(); + void setLastBanType(const utility::string_t& value); + + utility::string_t getLastBanDuration() const; + bool lastBanDurationIsSet() const; + void unsetLastBanDuration(); + void setLastBanDuration(const utility::string_t& value); + + +protected: + bool m_ShouldBanEmail; + bool m_ShouldBanEmailIsSet; + + bool m_ShouldBanByIP; + bool m_ShouldBanByIPIsSet; + + utility::string_t m_LastBanType; + bool m_LastBanTypeIsSet; + + utility::string_t m_LastBanDuration; + bool m_LastBanDurationIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_APIModerateUserBanPreferences_H_ */ diff --git a/client/include/FastCommentsClient/model/APIPage.h b/client/include/FastCommentsClient/model/APIPage.h index 32b1e0f..d5d30fb 100644 --- a/client/include/FastCommentsClient/model/APIPage.h +++ b/client/include/FastCommentsClient/model/APIPage.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIPage_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIPage_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APISSOUser.h b/client/include/FastCommentsClient/model/APISSOUser.h index eb530d0..ffcfaf9 100644 --- a/client/include/FastCommentsClient/model/APISSOUser.h +++ b/client/include/FastCommentsClient/model/APISSOUser.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APISSOUser_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APISSOUser_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SaveCommentResponse.h b/client/include/FastCommentsClient/model/APISaveCommentResponse.h similarity index 74% rename from client/include/FastCommentsClient/model/SaveCommentResponse.h rename to client/include/FastCommentsClient/model/APISaveCommentResponse.h index 3acba7c..3fc690b 100644 --- a/client/include/FastCommentsClient/model/SaveCommentResponse.h +++ b/client/include/FastCommentsClient/model/APISaveCommentResponse.h @@ -4,28 +4,27 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * SaveCommentResponse.h + * APISaveCommentResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentResponse_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APISaveCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_APISaveCommentResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" +#include "FastCommentsClient/model/APIComment.h" #include "FastCommentsClient/model/UserSessionInfo.h" #include -#include "FastCommentsClient/model/FComment.h" #include "FastCommentsClient/model/APIStatus.h" #include "FastCommentsClient/AnyType.h" @@ -34,16 +33,16 @@ namespace openapitools { namespace client { namespace model { -class FComment; +class APIComment; class UserSessionInfo; -class SaveCommentResponse +class APISaveCommentResponse : public ModelBase { public: - SaveCommentResponse(); - virtual ~SaveCommentResponse(); + APISaveCommentResponse(); + virtual ~APISaveCommentResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -58,7 +57,7 @@ class SaveCommentResponse ///////////////////////////////////////////// - /// SaveCommentResponse members + /// APISaveCommentResponse members std::shared_ptr getStatus() const; @@ -66,10 +65,10 @@ class SaveCommentResponse void unsetStatus(); void setStatus(const std::shared_ptr& value); - std::shared_ptr getComment() const; + std::shared_ptr getComment() const; bool commentIsSet() const; void unsetComment(); - void setComment(const std::shared_ptr& value); + void setComment(const std::shared_ptr& value); std::shared_ptr getUser() const; bool userIsSet() const; @@ -89,10 +88,11 @@ class SaveCommentResponse std::shared_ptr m_Status; bool m_StatusIsSet; - std::shared_ptr m_Comment; + std::shared_ptr m_Comment; bool m_CommentIsSet; - boost::optional> m_User; + std::shared_ptr m_User; + bool m_UserIsSet; std::map> m_ModuleData; bool m_ModuleDataIsSet; @@ -105,4 +105,4 @@ class SaveCommentResponse } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentResponse_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_APISaveCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/APIStatus.h b/client/include/FastCommentsClient/model/APIStatus.h index 3fb3834..2d506f0 100644 --- a/client/include/FastCommentsClient/model/APIStatus.h +++ b/client/include/FastCommentsClient/model/APIStatus.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIStatus_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIStatus_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APITenant.h b/client/include/FastCommentsClient/model/APITenant.h index 52e979b..a8553da 100644 --- a/client/include/FastCommentsClient/model/APITenant.h +++ b/client/include/FastCommentsClient/model/APITenant.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APITenant_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APITenant_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -262,7 +261,8 @@ class APITenant bool m_RemoveUnverifiedComments; bool m_RemoveUnverifiedCommentsIsSet; - boost::optional m_UnverifiedCommentsTTLms; + double m_UnverifiedCommentsTTLms; + bool m_UnverifiedCommentsTTLmsIsSet; bool m_CommentsRequireApproval; bool m_CommentsRequireApprovalIsSet; diff --git a/client/include/FastCommentsClient/model/APITenantDailyUsage.h b/client/include/FastCommentsClient/model/APITenantDailyUsage.h index 9615066..fa5adfa 100644 --- a/client/include/FastCommentsClient/model/APITenantDailyUsage.h +++ b/client/include/FastCommentsClient/model/APITenantDailyUsage.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APITenantDailyUsage_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APITenantDailyUsage_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APITicket.h b/client/include/FastCommentsClient/model/APITicket.h index 123ad92..dbe7e42 100644 --- a/client/include/FastCommentsClient/model/APITicket.h +++ b/client/include/FastCommentsClient/model/APITicket.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APITicket_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APITicket_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APITicketDetail.h b/client/include/FastCommentsClient/model/APITicketDetail.h index fdc48a3..c7aabd5 100644 --- a/client/include/FastCommentsClient/model/APITicketDetail.h +++ b/client/include/FastCommentsClient/model/APITicketDetail.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APITicketDetail_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APITicketDetail_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -154,11 +153,14 @@ class APITicketDetail std::vector> m_Files; bool m_FilesIsSet; - boost::optional m_ReopenedAt; + utility::string_t m_ReopenedAt; + bool m_ReopenedAtIsSet; - boost::optional m_ResolvedAt; + utility::string_t m_ResolvedAt; + bool m_ResolvedAtIsSet; - boost::optional m_AckAt; + utility::string_t m_AckAt; + bool m_AckAtIsSet; }; diff --git a/client/include/FastCommentsClient/model/APITicketFile.h b/client/include/FastCommentsClient/model/APITicketFile.h index 92e7262..b180f10 100644 --- a/client/include/FastCommentsClient/model/APITicketFile.h +++ b/client/include/FastCommentsClient/model/APITicketFile.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APITicketFile_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APITicketFile_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIUserSubscription.h b/client/include/FastCommentsClient/model/APIUserSubscription.h index 2696772..b3c852f 100644 --- a/client/include/FastCommentsClient/model/APIUserSubscription.h +++ b/client/include/FastCommentsClient/model/APIUserSubscription.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIUserSubscription_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIUserSubscription_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AddDomainConfigParams.h b/client/include/FastCommentsClient/model/AddDomainConfigParams.h index bc35651..6a1a8dc 100644 --- a/client/include/FastCommentsClient/model/AddDomainConfigParams.h +++ b/client/include/FastCommentsClient/model/AddDomainConfigParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigParams_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AddDomainConfig_200_response.h b/client/include/FastCommentsClient/model/AddDomainConfigResponse.h similarity index 69% rename from client/include/FastCommentsClient/model/AddDomainConfig_200_response.h rename to client/include/FastCommentsClient/model/AddDomainConfigResponse.h index 84d61a3..57b4a7c 100644 --- a/client/include/FastCommentsClient/model/AddDomainConfig_200_response.h +++ b/client/include/FastCommentsClient/model/AddDomainConfigResponse.h @@ -4,27 +4,26 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * AddDomainConfig_200_response.h + * AddDomainConfigResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfig_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfig_200_response_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" -#include "FastCommentsClient/model/GetDomainConfigs_200_response_anyOf_1.h" +#include "FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h" +#include "FastCommentsClient/model/AddDomainConfigResponse_anyOf.h" #include -#include "FastCommentsClient/model/AddDomainConfig_200_response_anyOf.h" #include "FastCommentsClient/AnyType.h" namespace org { @@ -34,12 +33,12 @@ namespace model { -class AddDomainConfig_200_response +class AddDomainConfigResponse : public ModelBase { public: - AddDomainConfig_200_response(); - virtual ~AddDomainConfig_200_response(); + AddDomainConfigResponse(); + virtual ~AddDomainConfigResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -54,7 +53,7 @@ class AddDomainConfig_200_response ///////////////////////////////////////////// - /// AddDomainConfig_200_response members + /// AddDomainConfigResponse members utility::string_t getReason() const; @@ -85,9 +84,11 @@ class AddDomainConfig_200_response utility::string_t m_Code; bool m_CodeIsSet; - boost::optional> m_Status; + std::shared_ptr m_Status; + bool m_StatusIsSet; - boost::optional> m_Configuration; + std::shared_ptr m_Configuration; + bool m_ConfigurationIsSet; }; @@ -97,4 +98,4 @@ class AddDomainConfig_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfig_200_response_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/AddDomainConfig_200_response_anyOf.h b/client/include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h similarity index 66% rename from client/include/FastCommentsClient/model/AddDomainConfig_200_response_anyOf.h rename to client/include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h index 2712adc..e497c8a 100644 --- a/client/include/FastCommentsClient/model/AddDomainConfig_200_response_anyOf.h +++ b/client/include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h @@ -4,21 +4,20 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * AddDomainConfig_200_response_anyOf.h + * AddDomainConfigResponse_anyOf.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfig_200_response_anyOf_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfig_200_response_anyOf_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigResponse_anyOf_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigResponse_anyOf_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -31,12 +30,12 @@ namespace model { -class AddDomainConfig_200_response_anyOf +class AddDomainConfigResponse_anyOf : public ModelBase { public: - AddDomainConfig_200_response_anyOf(); - virtual ~AddDomainConfig_200_response_anyOf(); + AddDomainConfigResponse_anyOf(); + virtual ~AddDomainConfigResponse_anyOf(); ///////////////////////////////////////////// /// ModelBase overrides @@ -51,7 +50,7 @@ class AddDomainConfig_200_response_anyOf ///////////////////////////////////////////// - /// AddDomainConfig_200_response_anyOf members + /// AddDomainConfigResponse_anyOf members std::shared_ptr getConfiguration() const; @@ -66,9 +65,11 @@ class AddDomainConfig_200_response_anyOf protected: - boost::optional> m_Configuration; + std::shared_ptr m_Configuration; + bool m_ConfigurationIsSet; - boost::optional> m_Status; + std::shared_ptr m_Status; + bool m_StatusIsSet; }; @@ -78,4 +79,4 @@ class AddDomainConfig_200_response_anyOf } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfig_200_response_anyOf_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigResponse_anyOf_H_ */ diff --git a/client/include/FastCommentsClient/model/AddHashTagsBulk_200_response.h b/client/include/FastCommentsClient/model/AddHashTagsBulk_200_response.h deleted file mode 100644 index 64afd26..0000000 --- a/client/include/FastCommentsClient/model/AddHashTagsBulk_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * AddHashTagsBulk_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagsBulk_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagsBulk_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/AddHashTag_200_response.h" -#include "FastCommentsClient/model/BulkCreateHashTagsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class AddHashTag_200_response; -class CustomConfigParameters; - - -class AddHashTagsBulk_200_response - : public ModelBase -{ -public: - AddHashTagsBulk_200_response(); - virtual ~AddHashTagsBulk_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// AddHashTagsBulk_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getResults() const; - bool resultsIsSet() const; - void unsetResults(); - void setResults(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Results; - bool m_ResultsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagsBulk_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/AddPageAPIResponse.h b/client/include/FastCommentsClient/model/AddPageAPIResponse.h index 195d3e7..f3a8e46 100644 --- a/client/include/FastCommentsClient/model/AddPageAPIResponse.h +++ b/client/include/FastCommentsClient/model/AddPageAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddPageAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AddPageAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AddSSOUserAPIResponse.h b/client/include/FastCommentsClient/model/AddSSOUserAPIResponse.h index 014a6cd..9535b16 100644 --- a/client/include/FastCommentsClient/model/AddSSOUserAPIResponse.h +++ b/client/include/FastCommentsClient/model/AddSSOUserAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddSSOUserAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AddSSOUserAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AdjustCommentVotesParams.h b/client/include/FastCommentsClient/model/AdjustCommentVotesParams.h new file mode 100644 index 0000000..938f9c2 --- /dev/null +++ b/client/include/FastCommentsClient/model/AdjustCommentVotesParams.h @@ -0,0 +1,73 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * AdjustCommentVotesParams.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AdjustCommentVotesParams_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_AdjustCommentVotesParams_H_ + + +#include "FastCommentsClient/ModelBase.h" + + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class AdjustCommentVotesParams + : public ModelBase +{ +public: + AdjustCommentVotesParams(); + virtual ~AdjustCommentVotesParams(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// AdjustCommentVotesParams members + + + double getAdjustVoteAmount() const; + bool adjustVoteAmountIsSet() const; + void unsetAdjustVoteAmount(); + void setAdjustVoteAmount(double value); + + +protected: + double m_AdjustVoteAmount; + bool m_AdjustVoteAmountIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AdjustCommentVotesParams_H_ */ diff --git a/client/include/FastCommentsClient/model/AdjustVotesResponse.h b/client/include/FastCommentsClient/model/AdjustVotesResponse.h new file mode 100644 index 0000000..94dab9c --- /dev/null +++ b/client/include/FastCommentsClient/model/AdjustVotesResponse.h @@ -0,0 +1,82 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * AdjustVotesResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AdjustVotesResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_AdjustVotesResponse_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class AdjustVotesResponse + : public ModelBase +{ +public: + AdjustVotesResponse(); + virtual ~AdjustVotesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// AdjustVotesResponse members + + + utility::string_t getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const utility::string_t& value); + + int32_t getNewCommentVotes() const; + bool newCommentVotesIsSet() const; + void unsetNewCommentVotes(); + void setNewCommentVotes(int32_t value); + + +protected: + utility::string_t m_Status; + bool m_StatusIsSet; + + int32_t m_NewCommentVotes; + bool m_NewCommentVotesIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AdjustVotesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse.h b/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse.h index 2ecdab1..e10c70d 100644 --- a/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse.h +++ b/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateQuestionResultsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregateQuestionResults_200_response.h b/client/include/FastCommentsClient/model/AggregateQuestionResults_200_response.h deleted file mode 100644 index 6eb0547..0000000 --- a/client/include/FastCommentsClient/model/AggregateQuestionResults_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * AggregateQuestionResults_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateQuestionResults_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateQuestionResults_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/QuestionResultAggregationOverall.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/AggregateQuestionResultsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionResultAggregationOverall; -class CustomConfigParameters; - - -class AggregateQuestionResults_200_response - : public ModelBase -{ -public: - AggregateQuestionResults_200_response(); - virtual ~AggregateQuestionResults_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// AggregateQuestionResults_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getData() const; - bool dataIsSet() const; - void unsetData(); - void setData(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Data; - bool m_DataIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateQuestionResults_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/AggregateResponse.h b/client/include/FastCommentsClient/model/AggregateResponse.h new file mode 100644 index 0000000..ea1ef4f --- /dev/null +++ b/client/include/FastCommentsClient/model/AggregateResponse.h @@ -0,0 +1,123 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * AggregateResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include "FastCommentsClient/model/AggregationResponse.h" +#include "FastCommentsClient/model/AggregationItem.h" +#include +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/AggregationAPIError.h" +#include "FastCommentsClient/model/AggregationResponse_stats.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class AggregationItem; +class AggregationResponse_stats; + + +class AggregateResponse + : public ModelBase +{ +public: + AggregateResponse(); + virtual ~AggregateResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// AggregateResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getData() const; + bool dataIsSet() const; + void unsetData(); + void setData(const std::vector>& value); + + std::shared_ptr getStats() const; + bool statsIsSet() const; + void unsetStats(); + void setStats(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + std::vector getValidResourceNames() const; + bool validResourceNamesIsSet() const; + void unsetValidResourceNames(); + void setValidResourceNames(const std::vector& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_Data; + bool m_DataIsSet; + + std::shared_ptr m_Stats; + bool m_StatsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + std::vector m_ValidResourceNames; + bool m_ValidResourceNamesIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/AggregateTimeBucket.h b/client/include/FastCommentsClient/model/AggregateTimeBucket.h index 503a1d0..5c25cb4 100644 --- a/client/include/FastCommentsClient/model/AggregateTimeBucket.h +++ b/client/include/FastCommentsClient/model/AggregateTimeBucket.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateTimeBucket_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateTimeBucket_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationAPIError.h b/client/include/FastCommentsClient/model/AggregationAPIError.h new file mode 100644 index 0000000..545aebd --- /dev/null +++ b/client/include/FastCommentsClient/model/AggregationAPIError.h @@ -0,0 +1,101 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * AggregationAPIError.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationAPIError_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationAPIError_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class AggregationAPIError + : public ModelBase +{ +public: + AggregationAPIError(); + virtual ~AggregationAPIError(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// AggregationAPIError members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + std::vector getValidResourceNames() const; + bool validResourceNamesIsSet() const; + void unsetValidResourceNames(); + void setValidResourceNames(const std::vector& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + std::vector m_ValidResourceNames; + bool m_ValidResourceNamesIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationAPIError_H_ */ diff --git a/client/include/FastCommentsClient/model/AggregationItem.h b/client/include/FastCommentsClient/model/AggregationItem.h index 55ccbba..0b1ea45 100644 --- a/client/include/FastCommentsClient/model/AggregationItem.h +++ b/client/include/FastCommentsClient/model/AggregationItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationItem_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationItem_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationOpType.h b/client/include/FastCommentsClient/model/AggregationOpType.h index 07ad75b..5e7cb99 100644 --- a/client/include/FastCommentsClient/model/AggregationOpType.h +++ b/client/include/FastCommentsClient/model/AggregationOpType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationOpType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationOpType_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationOperation.h b/client/include/FastCommentsClient/model/AggregationOperation.h index a156f06..476c2f0 100644 --- a/client/include/FastCommentsClient/model/AggregationOperation.h +++ b/client/include/FastCommentsClient/model/AggregationOperation.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationOperation_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationRequest.h b/client/include/FastCommentsClient/model/AggregationRequest.h index 5647746..1bf0899 100644 --- a/client/include/FastCommentsClient/model/AggregationRequest.h +++ b/client/include/FastCommentsClient/model/AggregationRequest.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationRequest_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationRequest_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationRequest_sort.h b/client/include/FastCommentsClient/model/AggregationRequest_sort.h index 16fb8c4..96784d1 100644 --- a/client/include/FastCommentsClient/model/AggregationRequest_sort.h +++ b/client/include/FastCommentsClient/model/AggregationRequest_sort.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationRequest_sort_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationResponse.h b/client/include/FastCommentsClient/model/AggregationResponse.h index e31672c..35de09a 100644 --- a/client/include/FastCommentsClient/model/AggregationResponse.h +++ b/client/include/FastCommentsClient/model/AggregationResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationResponse_stats.h b/client/include/FastCommentsClient/model/AggregationResponse_stats.h index 2c3a6b4..c547883 100644 --- a/client/include/FastCommentsClient/model/AggregationResponse_stats.h +++ b/client/include/FastCommentsClient/model/AggregationResponse_stats.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationResponse_stats_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationResponse_stats_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationValue.h b/client/include/FastCommentsClient/model/AggregationValue.h index b367cd4..bd790bf 100644 --- a/client/include/FastCommentsClient/model/AggregationValue.h +++ b/client/include/FastCommentsClient/model/AggregationValue.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationValue_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationValue_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AwardUserBadgeResponse.h b/client/include/FastCommentsClient/model/AwardUserBadgeResponse.h new file mode 100644 index 0000000..80f7c28 --- /dev/null +++ b/client/include/FastCommentsClient/model/AwardUserBadgeResponse.h @@ -0,0 +1,95 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * AwardUserBadgeResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AwardUserBadgeResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_AwardUserBadgeResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CommentUserBadgeInfo.h" +#include +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CommentUserBadgeInfo; + + +class AwardUserBadgeResponse + : public ModelBase +{ +public: + AwardUserBadgeResponse(); + virtual ~AwardUserBadgeResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// AwardUserBadgeResponse members + + + std::vector getNotes() const; + bool notesIsSet() const; + void unsetNotes(); + void setNotes(const std::vector& value); + + std::vector> getBadges() const; + bool badgesIsSet() const; + void unsetBadges(); + void setBadges(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector m_Notes; + bool m_NotesIsSet; + + std::vector> m_Badges; + bool m_BadgesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AwardUserBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/BanUserFromCommentResult.h b/client/include/FastCommentsClient/model/BanUserFromCommentResult.h new file mode 100644 index 0000000..543803e --- /dev/null +++ b/client/include/FastCommentsClient/model/BanUserFromCommentResult.h @@ -0,0 +1,100 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * BanUserFromCommentResult.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BanUserFromCommentResult_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_BanUserFromCommentResult_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include +#include "FastCommentsClient/model/APIBanUserChangeLog.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APIBanUserChangeLog; + + +class BanUserFromCommentResult + : public ModelBase +{ +public: + BanUserFromCommentResult(); + virtual ~BanUserFromCommentResult(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// BanUserFromCommentResult members + + + utility::string_t getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const utility::string_t& value); + + std::shared_ptr getChangelog() const; + bool changelogIsSet() const; + void unsetChangelog(); + void setChangelog(const std::shared_ptr& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + +protected: + utility::string_t m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Changelog; + bool m_ChangelogIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BanUserFromCommentResult_H_ */ diff --git a/client/include/FastCommentsClient/model/BanUserUndoParams.h b/client/include/FastCommentsClient/model/BanUserUndoParams.h new file mode 100644 index 0000000..a898258 --- /dev/null +++ b/client/include/FastCommentsClient/model/BanUserUndoParams.h @@ -0,0 +1,75 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * BanUserUndoParams.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BanUserUndoParams_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_BanUserUndoParams_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIBanUserChangeLog.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APIBanUserChangeLog; + + +class BanUserUndoParams + : public ModelBase +{ +public: + BanUserUndoParams(); + virtual ~BanUserUndoParams(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// BanUserUndoParams members + + + std::shared_ptr getChangelog() const; + bool changelogIsSet() const; + void unsetChangelog(); + void setChangelog(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Changelog; + bool m_ChangelogIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BanUserUndoParams_H_ */ diff --git a/client/include/FastCommentsClient/model/BannedUserMatch.h b/client/include/FastCommentsClient/model/BannedUserMatch.h new file mode 100644 index 0000000..f82bb6e --- /dev/null +++ b/client/include/FastCommentsClient/model/BannedUserMatch.h @@ -0,0 +1,84 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * BannedUserMatch.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatch_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatch_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/BannedUserMatch_matchedOnValue.h" +#include "FastCommentsClient/model/BannedUserMatchType.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class BannedUserMatch + : public ModelBase +{ +public: + BannedUserMatch(); + virtual ~BannedUserMatch(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// BannedUserMatch members + + + std::shared_ptr getMatchedOn() const; + bool matchedOnIsSet() const; + void unsetMatchedOn(); + void setMatchedOn(const std::shared_ptr& value); + + std::shared_ptr getMatchedOnValue() const; + bool matchedOnValueIsSet() const; + void unsetMatchedOnValue(); + void setMatchedOnValue(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_MatchedOn; + bool m_MatchedOnIsSet; + + std::shared_ptr m_MatchedOnValue; + bool m_MatchedOnValueIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatch_H_ */ diff --git a/client/include/FastCommentsClient/model/BannedUserMatchType.h b/client/include/FastCommentsClient/model/BannedUserMatchType.h new file mode 100644 index 0000000..5de7983 --- /dev/null +++ b/client/include/FastCommentsClient/model/BannedUserMatchType.h @@ -0,0 +1,88 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * BannedUserMatchType.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatchType_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatchType_H_ + + +#include "FastCommentsClient/ModelBase.h" + + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + +class BannedUserMatchType + : public ModelBase +{ +public: + BannedUserMatchType(); + BannedUserMatchType(utility::string_t str); + operator utility::string_t() const { + return enumToStrMap.at(getValue()); + } + + + virtual ~BannedUserMatchType(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + enum class eBannedUserMatchType + { + USERID, + EMAIL, + EMAIL_WILDCARD, + IP, + }; + + eBannedUserMatchType getValue() const; + void setValue(eBannedUserMatchType const value); + + protected: + eBannedUserMatchType m_value; + std::map enumToStrMap = { + { eBannedUserMatchType::USERID, _XPLATSTR("USERID") }, + { eBannedUserMatchType::EMAIL, _XPLATSTR("EMAIL") }, + { eBannedUserMatchType::EMAIL_WILDCARD, _XPLATSTR("EMAIL_WILDCARD") }, + { eBannedUserMatchType::IP, _XPLATSTR("IP") } +}; + std::map strToEnumMap = { + { _XPLATSTR("USERID"), eBannedUserMatchType::USERID }, + { _XPLATSTR("EMAIL"), eBannedUserMatchType::EMAIL }, + { _XPLATSTR("EMAIL_WILDCARD"), eBannedUserMatchType::EMAIL_WILDCARD }, + { _XPLATSTR("IP"), eBannedUserMatchType::IP } +}; + +}; + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatchType_H_ */ diff --git a/client/include/FastCommentsClient/model/Record_string_string_or_number__value.h b/client/include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h similarity index 62% rename from client/include/FastCommentsClient/model/Record_string_string_or_number__value.h rename to client/include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h index 56be6f9..1e4fd34 100644 --- a/client/include/FastCommentsClient/model/Record_string_string_or_number__value.h +++ b/client/include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h @@ -4,21 +4,20 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * Record_string_string_or_number__value.h + * BannedUserMatch_matchedOnValue.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_Record_string_string_or_number__value_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_Record_string_string_or_number__value_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatch_matchedOnValue_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatch_matchedOnValue_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -30,12 +29,12 @@ namespace model { -class Record_string_string_or_number__value +class BannedUserMatch_matchedOnValue : public ModelBase { public: - Record_string_string_or_number__value(); - virtual ~Record_string_string_or_number__value(); + BannedUserMatch_matchedOnValue(); + virtual ~BannedUserMatch_matchedOnValue(); ///////////////////////////////////////////// /// ModelBase overrides @@ -50,7 +49,7 @@ class Record_string_string_or_number__value ///////////////////////////////////////////// - /// Record_string_string_or_number__value members + /// BannedUserMatch_matchedOnValue members @@ -63,4 +62,4 @@ class Record_string_string_or_number__value } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_Record_string_string_or_number__value_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatch_matchedOnValue_H_ */ diff --git a/client/include/FastCommentsClient/model/BillingInfo.h b/client/include/FastCommentsClient/model/BillingInfo.h index b4e8c72..b1b7592 100644 --- a/client/include/FastCommentsClient/model/BillingInfo.h +++ b/client/include/FastCommentsClient/model/BillingInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BillingInfo_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BillingInfo_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -120,7 +119,8 @@ class BillingInfo utility::string_t m_Country; bool m_CountryIsSet; - boost::optional m_Currency; + utility::string_t m_Currency; + bool m_CurrencyIsSet; utility::string_t m_Email; bool m_EmailIsSet; diff --git a/client/include/FastCommentsClient/model/BlockFromCommentParams.h b/client/include/FastCommentsClient/model/BlockFromCommentParams.h index 64a1817..90e569c 100644 --- a/client/include/FastCommentsClient/model/BlockFromCommentParams.h +++ b/client/include/FastCommentsClient/model/BlockFromCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BlockFromCommentParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BlockFromCommentParams_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BlockFromCommentPublic_200_response.h b/client/include/FastCommentsClient/model/BlockFromCommentPublic_200_response.h deleted file mode 100644 index 9a72d47..0000000 --- a/client/include/FastCommentsClient/model/BlockFromCommentPublic_200_response.h +++ /dev/null @@ -1,149 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * BlockFromCommentPublic_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BlockFromCommentPublic_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_BlockFromCommentPublic_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/BlockSuccess.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class BlockFromCommentPublic_200_response - : public ModelBase -{ -public: - BlockFromCommentPublic_200_response(); - virtual ~BlockFromCommentPublic_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// BlockFromCommentPublic_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getCommentStatuses() const; - bool commentStatusesIsSet() const; - void unsetCommentStatuses(); - void setCommentStatuses(std::map value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map m_CommentStatuses; - bool m_CommentStatusesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BlockFromCommentPublic_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/BlockSuccess.h b/client/include/FastCommentsClient/model/BlockSuccess.h index 3621082..ca25ba0 100644 --- a/client/include/FastCommentsClient/model/BlockSuccess.h +++ b/client/include/FastCommentsClient/model/BlockSuccess.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BlockSuccess_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BuildModerationFilterParams.h b/client/include/FastCommentsClient/model/BuildModerationFilterParams.h new file mode 100644 index 0000000..7c9f27d --- /dev/null +++ b/client/include/FastCommentsClient/model/BuildModerationFilterParams.h @@ -0,0 +1,108 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * BuildModerationFilterParams.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BuildModerationFilterParams_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_BuildModerationFilterParams_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include +#include +#include "FastCommentsClient/AnyType.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class BuildModerationFilterParams + : public ModelBase +{ +public: + BuildModerationFilterParams(); + virtual ~BuildModerationFilterParams(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// BuildModerationFilterParams members + + + utility::string_t getUserId() const; + bool userIdIsSet() const; + void unsetUserId(); + void setUserId(const utility::string_t& value); + + utility::string_t getTenantId() const; + bool tenantIdIsSet() const; + void unsetTenantId(); + void setTenantId(const utility::string_t& value); + + utility::string_t getFilters() const; + bool filtersIsSet() const; + void unsetFilters(); + void setFilters(const utility::string_t& value); + + utility::string_t getSearchFilters() const; + bool searchFiltersIsSet() const; + void unsetSearchFilters(); + void setSearchFilters(const utility::string_t& value); + + utility::string_t getTextSearch() const; + bool textSearchIsSet() const; + void unsetTextSearch(); + void setTextSearch(const utility::string_t& value); + + +protected: + utility::string_t m_UserId; + bool m_UserIdIsSet; + + utility::string_t m_TenantId; + bool m_TenantIdIsSet; + + utility::string_t m_Filters; + bool m_FiltersIsSet; + + utility::string_t m_SearchFilters; + bool m_SearchFiltersIsSet; + + utility::string_t m_TextSearch; + bool m_TextSearchIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BuildModerationFilterParams_H_ */ diff --git a/client/include/FastCommentsClient/model/BuildModerationFilterResponse.h b/client/include/FastCommentsClient/model/BuildModerationFilterResponse.h new file mode 100644 index 0000000..f2b38cc --- /dev/null +++ b/client/include/FastCommentsClient/model/BuildModerationFilterResponse.h @@ -0,0 +1,84 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * BuildModerationFilterResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BuildModerationFilterResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_BuildModerationFilterResponse_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include +#include "FastCommentsClient/model/ModerationFilter.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationFilter; + + +class BuildModerationFilterResponse + : public ModelBase +{ +public: + BuildModerationFilterResponse(); + virtual ~BuildModerationFilterResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// BuildModerationFilterResponse members + + + utility::string_t getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const utility::string_t& value); + + std::shared_ptr getModerationFilter() const; + bool moderationFilterIsSet() const; + void unsetModerationFilter(); + void setModerationFilter(const std::shared_ptr& value); + + +protected: + utility::string_t m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_ModerationFilter; + bool m_ModerationFilterIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BuildModerationFilterResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/BulkAggregateQuestionItem.h b/client/include/FastCommentsClient/model/BulkAggregateQuestionItem.h index 646c88d..4c85d96 100644 --- a/client/include/FastCommentsClient/model/BulkAggregateQuestionItem.h +++ b/client/include/FastCommentsClient/model/BulkAggregateQuestionItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionItem_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h index 4b48204..5a0ebf4 100644 --- a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h +++ b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResultsRequest_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResultsRequest_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h index a9f92a9..80cbb64 100644 --- a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h +++ b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResultsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkAggregateQuestionResults_200_response.h b/client/include/FastCommentsClient/model/BulkAggregateQuestionResults_200_response.h deleted file mode 100644 index b86436c..0000000 --- a/client/include/FastCommentsClient/model/BulkAggregateQuestionResults_200_response.h +++ /dev/null @@ -1,151 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * BulkAggregateQuestionResults_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResults_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResults_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/QuestionResultAggregationOverall.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionResultAggregationOverall; -class CustomConfigParameters; - - -class BulkAggregateQuestionResults_200_response - : public ModelBase -{ -public: - BulkAggregateQuestionResults_200_response(); - virtual ~BulkAggregateQuestionResults_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// BulkAggregateQuestionResults_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map> getData() const; - bool dataIsSet() const; - void unsetData(); - void setData(const std::map>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map> m_Data; - bool m_DataIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResults_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/BulkCreateHashTagsBody.h b/client/include/FastCommentsClient/model/BulkCreateHashTagsBody.h index fa9f36d..7f6daf9 100644 --- a/client/include/FastCommentsClient/model/BulkCreateHashTagsBody.h +++ b/client/include/FastCommentsClient/model/BulkCreateHashTagsBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsBody_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h b/client/include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h index 68ed575..022d832 100644 --- a/client/include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h +++ b/client/include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsBody_tags_inner_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsBody_tags_inner_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse.h b/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse.h index 1655f96..ff1c3be 100644 --- a/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse.h +++ b/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,11 +19,10 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" -#include "FastCommentsClient/model/AddHashTag_200_response.h" +#include "FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h" #include #include "FastCommentsClient/model/APIStatus.h" @@ -32,7 +31,7 @@ namespace openapitools { namespace client { namespace model { -class AddHashTag_200_response; +class BulkCreateHashTagsResponse_results_inner; class BulkCreateHashTagsResponse @@ -63,17 +62,17 @@ class BulkCreateHashTagsResponse void unsetStatus(); void setStatus(const std::shared_ptr& value); - std::vector> getResults() const; + std::vector> getResults() const; bool resultsIsSet() const; void unsetResults(); - void setResults(const std::vector>& value); + void setResults(const std::vector>& value); protected: std::shared_ptr m_Status; bool m_StatusIsSet; - std::vector> m_Results; + std::vector> m_Results; bool m_ResultsIsSet; }; diff --git a/client/include/FastCommentsClient/model/AddHashTag_200_response.h b/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h similarity index 85% rename from client/include/FastCommentsClient/model/AddHashTag_200_response.h rename to client/include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h index 3f927a4..a8838c0 100644 --- a/client/include/FastCommentsClient/model/AddHashTag_200_response.h +++ b/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h @@ -4,22 +4,21 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * AddHashTag_200_response.h + * BulkCreateHashTagsResponse_results_inner.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTag_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTag_200_response_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsResponse_results_inner_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsResponse_results_inner_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -39,12 +38,12 @@ class TenantHashTag; class CustomConfigParameters; -class AddHashTag_200_response +class BulkCreateHashTagsResponse_results_inner : public ModelBase { public: - AddHashTag_200_response(); - virtual ~AddHashTag_200_response(); + BulkCreateHashTagsResponse_results_inner(); + virtual ~BulkCreateHashTagsResponse_results_inner(); ///////////////////////////////////////////// /// ModelBase overrides @@ -59,7 +58,7 @@ class AddHashTag_200_response ///////////////////////////////////////////// - /// AddHashTag_200_response members + /// BulkCreateHashTagsResponse_results_inner members std::shared_ptr getStatus() const; @@ -144,4 +143,4 @@ class AddHashTag_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTag_200_response_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsResponse_results_inner_H_ */ diff --git a/client/include/FastCommentsClient/model/BulkPreBanParams.h b/client/include/FastCommentsClient/model/BulkPreBanParams.h new file mode 100644 index 0000000..bb36892 --- /dev/null +++ b/client/include/FastCommentsClient/model/BulkPreBanParams.h @@ -0,0 +1,75 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * BulkPreBanParams.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkPreBanParams_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkPreBanParams_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class BulkPreBanParams + : public ModelBase +{ +public: + BulkPreBanParams(); + virtual ~BulkPreBanParams(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// BulkPreBanParams members + + + std::vector getCommentIds() const; + bool commentIdsIsSet() const; + void unsetCommentIds(); + void setCommentIds(const std::vector& value); + + +protected: + std::vector m_CommentIds; + bool m_CommentIdsIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BulkPreBanParams_H_ */ diff --git a/client/include/FastCommentsClient/model/BulkPreBanSummary.h b/client/include/FastCommentsClient/model/BulkPreBanSummary.h new file mode 100644 index 0000000..714bf9c --- /dev/null +++ b/client/include/FastCommentsClient/model/BulkPreBanSummary.h @@ -0,0 +1,115 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * BulkPreBanSummary.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkPreBanSummary_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkPreBanSummary_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class BulkPreBanSummary + : public ModelBase +{ +public: + BulkPreBanSummary(); + virtual ~BulkPreBanSummary(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// BulkPreBanSummary members + + + utility::string_t getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const utility::string_t& value); + + int32_t getTotalRelatedCommentCount() const; + bool totalRelatedCommentCountIsSet() const; + void unsetTotalRelatedCommentCount(); + void setTotalRelatedCommentCount(int32_t value); + + std::vector getEmailDomains() const; + bool emailDomainsIsSet() const; + void unsetEmailDomains(); + void setEmailDomains(const std::vector& value); + + std::vector getEmails() const; + bool emailsIsSet() const; + void unsetEmails(); + void setEmails(const std::vector& value); + + std::vector getUserIds() const; + bool userIdsIsSet() const; + void unsetUserIds(); + void setUserIds(const std::vector& value); + + std::vector getIpHashes() const; + bool ipHashesIsSet() const; + void unsetIpHashes(); + void setIpHashes(const std::vector& value); + + +protected: + utility::string_t m_Status; + bool m_StatusIsSet; + + int32_t m_TotalRelatedCommentCount; + bool m_TotalRelatedCommentCountIsSet; + + std::vector m_EmailDomains; + bool m_EmailDomainsIsSet; + + std::vector m_Emails; + bool m_EmailsIsSet; + + std::vector m_UserIds; + bool m_UserIdsIsSet; + + std::vector m_IpHashes; + bool m_IpHashesIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BulkPreBanSummary_H_ */ diff --git a/client/include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h b/client/include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h index 1faa0ae..83898b9 100644 --- a/client/include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h +++ b/client/include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeCommentPinStatusResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ChangeTicketStateBody.h b/client/include/FastCommentsClient/model/ChangeTicketStateBody.h index 5c5ce66..4641abf 100644 --- a/client/include/FastCommentsClient/model/ChangeTicketStateBody.h +++ b/client/include/FastCommentsClient/model/ChangeTicketStateBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketStateBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketStateBody_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ChangeTicketStateResponse.h b/client/include/FastCommentsClient/model/ChangeTicketStateResponse.h index 47f1d43..733a211 100644 --- a/client/include/FastCommentsClient/model/ChangeTicketStateResponse.h +++ b/client/include/FastCommentsClient/model/ChangeTicketStateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketStateResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ChangeTicketState_200_response.h b/client/include/FastCommentsClient/model/ChangeTicketState_200_response.h deleted file mode 100644 index 15e66a6..0000000 --- a/client/include/FastCommentsClient/model/ChangeTicketState_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * ChangeTicketState_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketState_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketState_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITicket.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/ChangeTicketStateResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITicket; -class CustomConfigParameters; - - -class ChangeTicketState_200_response - : public ModelBase -{ -public: - ChangeTicketState_200_response(); - virtual ~ChangeTicketState_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// ChangeTicketState_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTicket() const; - bool ticketIsSet() const; - void unsetTicket(); - void setTicket(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Ticket; - bool m_TicketIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketState_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CheckBlockedCommentsResponse.h b/client/include/FastCommentsClient/model/CheckBlockedCommentsResponse.h index 8874c1e..d71ccb8 100644 --- a/client/include/FastCommentsClient/model/CheckBlockedCommentsResponse.h +++ b/client/include/FastCommentsClient/model/CheckBlockedCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CheckBlockedCommentsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CheckedCommentsForBlocked_200_response.h b/client/include/FastCommentsClient/model/CheckedCommentsForBlocked_200_response.h deleted file mode 100644 index 0a34f46..0000000 --- a/client/include/FastCommentsClient/model/CheckedCommentsForBlocked_200_response.h +++ /dev/null @@ -1,149 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CheckedCommentsForBlocked_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CheckedCommentsForBlocked_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CheckedCommentsForBlocked_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/CheckBlockedCommentsResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class CheckedCommentsForBlocked_200_response - : public ModelBase -{ -public: - CheckedCommentsForBlocked_200_response(); - virtual ~CheckedCommentsForBlocked_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CheckedCommentsForBlocked_200_response members - - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getCommentStatuses() const; - bool commentStatusesIsSet() const; - void unsetCommentStatuses(); - void setCommentStatuses(std::map value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::map m_CommentStatuses; - bool m_CommentStatusesIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CheckedCommentsForBlocked_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CombineCommentsWithQuestionResults_200_response.h b/client/include/FastCommentsClient/model/CombineCommentsWithQuestionResults_200_response.h deleted file mode 100644 index 0d010ff..0000000 --- a/client/include/FastCommentsClient/model/CombineCommentsWithQuestionResults_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CombineCommentsWithQuestionResults_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CombineCommentsWithQuestionResults_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CombineCommentsWithQuestionResults_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/FindCommentsByRangeResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class FindCommentsByRangeResponse; -class CustomConfigParameters; - - -class CombineCommentsWithQuestionResults_200_response - : public ModelBase -{ -public: - CombineCommentsWithQuestionResults_200_response(); - virtual ~CombineCommentsWithQuestionResults_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CombineCommentsWithQuestionResults_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getData() const; - bool dataIsSet() const; - void unsetData(); - void setData(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Data; - bool m_DataIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CombineCommentsWithQuestionResults_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h b/client/include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h index 14de19c..fb86968 100644 --- a/client/include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h +++ b/client/include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CombineQuestionResultsWithCommentsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentData.h b/client/include/FastCommentsClient/model/CommentData.h index 84bb91f..b8e950b 100644 --- a/client/include/FastCommentsClient/model/CommentData.h +++ b/client/include/FastCommentsClient/model/CommentData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,11 +18,10 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentData_H_ -#include #include "FastCommentsClient/ModelBase.h" -#include "FastCommentsClient/model/Record_string_string_or_number__value.h" +#include "FastCommentsClient/model/GifSearchResponse_images_inner_inner.h" #include "FastCommentsClient/model/CommentUserHashTagInfo.h" #include #include "FastCommentsClient/Object.h" @@ -180,16 +179,21 @@ class CommentData /// /// Construct a type with a set of properties K of type T /// - std::map> getQuestionValues() const; + std::map> getQuestionValues() const; bool questionValuesIsSet() const; void unsetQuestionValues(); - void setQuestionValues(const std::map>& value); + void setQuestionValues(const std::map>& value); bool isTos() const; bool tosIsSet() const; void unsetTos(); void setTos(bool value); + utility::string_t getBotId() const; + bool botIdIsSet() const; + void unsetBotId(); + void setBotId(const utility::string_t& value); + protected: int64_t m_date; @@ -204,9 +208,11 @@ class CommentData utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - boost::optional m_CommenterEmail; + utility::string_t m_CommenterEmail; + bool m_CommenterEmailIsSet; - boost::optional m_CommenterLink; + utility::string_t m_CommenterLink; + bool m_CommenterLinkIsSet; utility::string_t m_Comment; bool m_CommentIsSet; @@ -214,11 +220,14 @@ class CommentData int32_t m_ProductId; bool m_ProductIdIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; - boost::optional m_AvatarSrc; + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; - boost::optional m_ParentId; + utility::string_t m_ParentId; + bool m_ParentIdIsSet; std::vector> m_Mentions; bool m_MentionsIsSet; @@ -256,12 +265,15 @@ class CommentData std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; - std::map> m_QuestionValues; + std::map> m_QuestionValues; bool m_QuestionValuesIsSet; bool m_Tos; bool m_TosIsSet; + utility::string_t m_BotId; + bool m_BotIdIsSet; + }; diff --git a/client/include/FastCommentsClient/model/CommentHTMLRenderingMode.h b/client/include/FastCommentsClient/model/CommentHTMLRenderingMode.h index 98bb179..180ddf5 100644 --- a/client/include/FastCommentsClient/model/CommentHTMLRenderingMode.h +++ b/client/include/FastCommentsClient/model/CommentHTMLRenderingMode.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentHTMLRenderingMode_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentHTMLRenderingMode_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentLogData.h b/client/include/FastCommentsClient/model/CommentLogData.h index f5a506b..4ea0cf0 100644 --- a/client/include/FastCommentsClient/model/CommentLogData.h +++ b/client/include/FastCommentsClient/model/CommentLogData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentLogData_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -143,6 +142,11 @@ class CommentLogData void unsetTrustFactor(); void setTrustFactor(double value); + utility::string_t getSource() const; + bool sourceIsSet() const; + void unsetSource(); + void setSource(const utility::string_t& value); + std::shared_ptr getRule() const; bool ruleIsSet() const; void unsetRule(); @@ -345,6 +349,9 @@ class CommentLogData double m_TrustFactor; bool m_TrustFactorIsSet; + utility::string_t m_Source; + bool m_SourceIsSet; + std::shared_ptr m_Rule; bool m_RuleIsSet; @@ -357,17 +364,23 @@ class CommentLogData double m_NotificationCount; bool m_NotificationCountIsSet; - boost::optional m_VotesBefore; + double m_VotesBefore; + bool m_VotesBeforeIsSet; - boost::optional m_VotesUpBefore; + double m_VotesUpBefore; + bool m_VotesUpBeforeIsSet; - boost::optional m_VotesDownBefore; + double m_VotesDownBefore; + bool m_VotesDownBeforeIsSet; - boost::optional m_VotesAfter; + double m_VotesAfter; + bool m_VotesAfterIsSet; - boost::optional m_VotesUpAfter; + double m_VotesUpAfter; + bool m_VotesUpAfterIsSet; - boost::optional m_VotesDownAfter; + double m_VotesDownAfter; + bool m_VotesDownAfterIsSet; std::shared_ptr m_RepeatAction; bool m_RepeatActionIsSet; @@ -375,7 +388,8 @@ class CommentLogData std::shared_ptr m_Reason; bool m_ReasonIsSet; - boost::optional> m_OtherData; + std::shared_ptr m_OtherData; + bool m_OtherDataIsSet; bool m_SpamBefore; bool m_SpamBeforeIsSet; @@ -404,11 +418,14 @@ class CommentLogData utility::string_t m_TextAfter; bool m_TextAfterIsSet; - boost::optional m_ExpireBefore; + utility::datetime m_ExpireBefore; + bool m_ExpireBeforeIsSet; - boost::optional m_ExpireAfter; + utility::datetime m_ExpireAfter; + bool m_ExpireAfterIsSet; - boost::optional m_FlagCountBefore; + double m_FlagCountBefore; + bool m_FlagCountBeforeIsSet; double m_TrustFactorBefore; bool m_TrustFactorBeforeIsSet; diff --git a/client/include/FastCommentsClient/model/CommentLogEntry.h b/client/include/FastCommentsClient/model/CommentLogEntry.h index 639489c..b1aa1fe 100644 --- a/client/include/FastCommentsClient/model/CommentLogEntry.h +++ b/client/include/FastCommentsClient/model/CommentLogEntry.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentLogEntry_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentLogType.h b/client/include/FastCommentsClient/model/CommentLogType.h index 9548937..2d5e081 100644 --- a/client/include/FastCommentsClient/model/CommentLogType.h +++ b/client/include/FastCommentsClient/model/CommentLogType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentLogType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentLogType_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentQuestionResultsRenderingType.h b/client/include/FastCommentsClient/model/CommentQuestionResultsRenderingType.h index 104852a..ce1bd1d 100644 --- a/client/include/FastCommentsClient/model/CommentQuestionResultsRenderingType.h +++ b/client/include/FastCommentsClient/model/CommentQuestionResultsRenderingType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentQuestionResultsRenderingType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentQuestionResultsRenderingType_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentQuestionsRequired.h b/client/include/FastCommentsClient/model/CommentQuestionsRequired.h index 8ce3eb6..2937e90 100644 --- a/client/include/FastCommentsClient/model/CommentQuestionsRequired.h +++ b/client/include/FastCommentsClient/model/CommentQuestionsRequired.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentQuestionsRequired_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentQuestionsRequired_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentTextUpdateRequest.h b/client/include/FastCommentsClient/model/CommentTextUpdateRequest.h index 62cefbf..6177c65 100644 --- a/client/include/FastCommentsClient/model/CommentTextUpdateRequest.h +++ b/client/include/FastCommentsClient/model/CommentTextUpdateRequest.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentTextUpdateRequest_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentTextUpdateRequest_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentThreadDeletionMode.h b/client/include/FastCommentsClient/model/CommentThreadDeletionMode.h index 8bc9cf2..9543d23 100644 --- a/client/include/FastCommentsClient/model/CommentThreadDeletionMode.h +++ b/client/include/FastCommentsClient/model/CommentThreadDeletionMode.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentThreadDeletionMode_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentThreadDeletionMode_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentUserBadgeInfo.h b/client/include/FastCommentsClient/model/CommentUserBadgeInfo.h index 832bdc3..b4f7791 100644 --- a/client/include/FastCommentsClient/model/CommentUserBadgeInfo.h +++ b/client/include/FastCommentsClient/model/CommentUserBadgeInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentUserBadgeInfo_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentUserBadgeInfo_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -110,17 +109,23 @@ class CommentUserBadgeInfo utility::string_t m_Description; bool m_DescriptionIsSet; - boost::optional m_DisplayLabel; + utility::string_t m_DisplayLabel; + bool m_DisplayLabelIsSet; - boost::optional m_DisplaySrc; + utility::string_t m_DisplaySrc; + bool m_DisplaySrcIsSet; - boost::optional m_BackgroundColor; + utility::string_t m_BackgroundColor; + bool m_BackgroundColorIsSet; - boost::optional m_BorderColor; + utility::string_t m_BorderColor; + bool m_BorderColorIsSet; - boost::optional m_TextColor; + utility::string_t m_TextColor; + bool m_TextColorIsSet; - boost::optional m_CssClass; + utility::string_t m_CssClass; + bool m_CssClassIsSet; }; diff --git a/client/include/FastCommentsClient/model/CommentUserHashTagInfo.h b/client/include/FastCommentsClient/model/CommentUserHashTagInfo.h index 8034af0..d9a940f 100644 --- a/client/include/FastCommentsClient/model/CommentUserHashTagInfo.h +++ b/client/include/FastCommentsClient/model/CommentUserHashTagInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentUserHashTagInfo_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentUserHashTagInfo_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -82,7 +81,8 @@ class CommentUserHashTagInfo utility::string_t m_Tag; bool m_TagIsSet; - boost::optional m_Url; + utility::string_t m_Url; + bool m_UrlIsSet; bool m_Retain; bool m_RetainIsSet; diff --git a/client/include/FastCommentsClient/model/CommentUserMentionInfo.h b/client/include/FastCommentsClient/model/CommentUserMentionInfo.h index 02c92c4..97347fe 100644 --- a/client/include/FastCommentsClient/model/CommentUserMentionInfo.h +++ b/client/include/FastCommentsClient/model/CommentUserMentionInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentUserMentionInfo_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommenterNameFormats.h b/client/include/FastCommentsClient/model/CommenterNameFormats.h index 8cca151..26150da 100644 --- a/client/include/FastCommentsClient/model/CommenterNameFormats.h +++ b/client/include/FastCommentsClient/model/CommenterNameFormats.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommenterNameFormats_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommenterNameFormats_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentsByIdsParams.h b/client/include/FastCommentsClient/model/CommentsByIdsParams.h new file mode 100644 index 0000000..6112b00 --- /dev/null +++ b/client/include/FastCommentsClient/model/CommentsByIdsParams.h @@ -0,0 +1,75 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CommentsByIdsParams.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentsByIdsParams_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentsByIdsParams_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class CommentsByIdsParams + : public ModelBase +{ +public: + CommentsByIdsParams(); + virtual ~CommentsByIdsParams(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CommentsByIdsParams members + + + std::vector getIds() const; + bool idsIsSet() const; + void unsetIds(); + void setIds(const std::vector& value); + + +protected: + std::vector m_Ids; + bool m_IdsIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CommentsByIdsParams_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateAPIPageData.h b/client/include/FastCommentsClient/model/CreateAPIPageData.h index d1dcc65..c1a84ab 100644 --- a/client/include/FastCommentsClient/model/CreateAPIPageData.h +++ b/client/include/FastCommentsClient/model/CreateAPIPageData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateAPIPageData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateAPIPageData_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateAPISSOUserData.h b/client/include/FastCommentsClient/model/CreateAPISSOUserData.h index ae726fb..8ae4337 100644 --- a/client/include/FastCommentsClient/model/CreateAPISSOUserData.h +++ b/client/include/FastCommentsClient/model/CreateAPISSOUserData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateAPISSOUserData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateAPISSOUserData_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h b/client/include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h index 23b1977..d68900f 100644 --- a/client/include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h +++ b/client/include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateAPIUserSubscriptionData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateAPIUserSubscriptionData_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateCommentParams.h b/client/include/FastCommentsClient/model/CreateCommentParams.h index cde0918..42e6998 100644 --- a/client/include/FastCommentsClient/model/CreateCommentParams.h +++ b/client/include/FastCommentsClient/model/CreateCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,11 +18,10 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateCommentParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateCommentParams_H_ -#include #include "FastCommentsClient/ModelBase.h" -#include "FastCommentsClient/model/Record_string_string_or_number__value.h" +#include "FastCommentsClient/model/GifSearchResponse_images_inner_inner.h" #include "FastCommentsClient/model/CommentUserHashTagInfo.h" #include #include "FastCommentsClient/Object.h" @@ -180,16 +179,21 @@ class CreateCommentParams /// /// Construct a type with a set of properties K of type T /// - std::map> getQuestionValues() const; + std::map> getQuestionValues() const; bool questionValuesIsSet() const; void unsetQuestionValues(); - void setQuestionValues(const std::map>& value); + void setQuestionValues(const std::map>& value); bool isTos() const; bool tosIsSet() const; void unsetTos(); void setTos(bool value); + utility::string_t getBotId() const; + bool botIdIsSet() const; + void unsetBotId(); + void setBotId(const utility::string_t& value); + bool isApproved() const; bool approvedIsSet() const; void unsetApproved(); @@ -257,9 +261,11 @@ class CreateCommentParams utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - boost::optional m_CommenterEmail; + utility::string_t m_CommenterEmail; + bool m_CommenterEmailIsSet; - boost::optional m_CommenterLink; + utility::string_t m_CommenterLink; + bool m_CommenterLinkIsSet; utility::string_t m_Comment; bool m_CommentIsSet; @@ -267,11 +273,14 @@ class CreateCommentParams int32_t m_ProductId; bool m_ProductIdIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; - boost::optional m_AvatarSrc; + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; - boost::optional m_ParentId; + utility::string_t m_ParentId; + bool m_ParentIdIsSet; std::vector> m_Mentions; bool m_MentionsIsSet; @@ -309,12 +318,15 @@ class CreateCommentParams std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; - std::map> m_QuestionValues; + std::map> m_QuestionValues; bool m_QuestionValuesIsSet; bool m_Tos; bool m_TosIsSet; + utility::string_t m_BotId; + bool m_BotIdIsSet; + bool m_Approved; bool m_ApprovedIsSet; diff --git a/client/include/FastCommentsClient/model/CreateCommentPublic_200_response.h b/client/include/FastCommentsClient/model/CreateCommentPublic_200_response.h deleted file mode 100644 index 30fccb1..0000000 --- a/client/include/FastCommentsClient/model/CreateCommentPublic_200_response.h +++ /dev/null @@ -1,177 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateCommentPublic_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateCommentPublic_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateCommentPublic_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UserSessionInfo.h" -#include "FastCommentsClient/model/PublicComment.h" -#include "FastCommentsClient/model/SaveCommentsResponseWithPresence.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/Object.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PublicComment; -class UserSessionInfo; -class CustomConfigParameters; - - -class CreateCommentPublic_200_response - : public ModelBase -{ -public: - CreateCommentPublic_200_response(); - virtual ~CreateCommentPublic_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateCommentPublic_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getComment() const; - bool commentIsSet() const; - void unsetComment(); - void setComment(const std::shared_ptr& value); - - std::shared_ptr getUser() const; - bool userIsSet() const; - void unsetUser(); - void setUser(const std::shared_ptr& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map> getModuleData() const; - bool moduleDataIsSet() const; - void unsetModuleData(); - void setModuleData(const std::map>& value); - - utility::string_t getUserIdWS() const; - bool userIdWSIsSet() const; - void unsetUserIdWS(); - void setUserIdWS(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Comment; - bool m_CommentIsSet; - - boost::optional> m_User; - - std::map> m_ModuleData; - bool m_ModuleDataIsSet; - - utility::string_t m_UserIdWS; - bool m_UserIdWSIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateCommentPublic_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateEmailTemplateBody.h b/client/include/FastCommentsClient/model/CreateEmailTemplateBody.h index 4f43fae..4a51026 100644 --- a/client/include/FastCommentsClient/model/CreateEmailTemplateBody.h +++ b/client/include/FastCommentsClient/model/CreateEmailTemplateBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplateBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplateBody_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -79,10 +78,10 @@ class CreateEmailTemplateBody /// /// Construct a type with a set of properties K of type T /// - std::map> getTranslationOverridesByLocale() const; + std::map getTranslationOverridesByLocale() const; bool translationOverridesByLocaleIsSet() const; void unsetTranslationOverridesByLocale(); - void setTranslationOverridesByLocale(const std::map>& value); + void setTranslationOverridesByLocale(const std::map& value); /// /// Construct a type with a set of properties K of type T @@ -106,7 +105,7 @@ class CreateEmailTemplateBody utility::string_t m_Domain; bool m_DomainIsSet; - std::map> m_TranslationOverridesByLocale; + std::map m_TranslationOverridesByLocale; bool m_TranslationOverridesByLocaleIsSet; std::map> m_TestData; diff --git a/client/include/FastCommentsClient/model/CreateEmailTemplateResponse.h b/client/include/FastCommentsClient/model/CreateEmailTemplateResponse.h index 65045db..e22cfc5 100644 --- a/client/include/FastCommentsClient/model/CreateEmailTemplateResponse.h +++ b/client/include/FastCommentsClient/model/CreateEmailTemplateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplateResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateEmailTemplate_200_response.h b/client/include/FastCommentsClient/model/CreateEmailTemplate_200_response.h deleted file mode 100644 index 727fd86..0000000 --- a/client/include/FastCommentsClient/model/CreateEmailTemplate_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateEmailTemplate_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplate_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplate_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CreateEmailTemplateResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/CustomEmailTemplate.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomEmailTemplate; -class CustomConfigParameters; - - -class CreateEmailTemplate_200_response - : public ModelBase -{ -public: - CreateEmailTemplate_200_response(); - virtual ~CreateEmailTemplate_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateEmailTemplate_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getEmailTemplate() const; - bool emailTemplateIsSet() const; - void unsetEmailTemplate(); - void setEmailTemplate(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_EmailTemplate; - bool m_EmailTemplateIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplate_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateFeedPostParams.h b/client/include/FastCommentsClient/model/CreateFeedPostParams.h index be86202..c4f3f3d 100644 --- a/client/include/FastCommentsClient/model/CreateFeedPostParams.h +++ b/client/include/FastCommentsClient/model/CreateFeedPostParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostParams_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateFeedPostPublic_200_response.h b/client/include/FastCommentsClient/model/CreateFeedPostPublic_200_response.h deleted file mode 100644 index 0b6fa32..0000000 --- a/client/include/FastCommentsClient/model/CreateFeedPostPublic_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateFeedPostPublic_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostPublic_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostPublic_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CreateFeedPostResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/FeedPost.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class FeedPost; -class CustomConfigParameters; - - -class CreateFeedPostPublic_200_response - : public ModelBase -{ -public: - CreateFeedPostPublic_200_response(); - virtual ~CreateFeedPostPublic_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateFeedPostPublic_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getFeedPost() const; - bool feedPostIsSet() const; - void unsetFeedPost(); - void setFeedPost(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_FeedPost; - bool m_FeedPostIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostPublic_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateFeedPostResponse.h b/client/include/FastCommentsClient/model/CreateFeedPostResponse.h index 77f140f..50236f6 100644 --- a/client/include/FastCommentsClient/model/CreateFeedPostResponse.h +++ b/client/include/FastCommentsClient/model/CreateFeedPostResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateFeedPost_200_response.h b/client/include/FastCommentsClient/model/CreateFeedPost_200_response.h deleted file mode 100644 index fde9106..0000000 --- a/client/include/FastCommentsClient/model/CreateFeedPost_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateFeedPost_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPost_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPost_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CreateFeedPostsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/FeedPost.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class FeedPost; -class CustomConfigParameters; - - -class CreateFeedPost_200_response - : public ModelBase -{ -public: - CreateFeedPost_200_response(); - virtual ~CreateFeedPost_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateFeedPost_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getFeedPost() const; - bool feedPostIsSet() const; - void unsetFeedPost(); - void setFeedPost(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_FeedPost; - bool m_FeedPostIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPost_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateFeedPostsResponse.h b/client/include/FastCommentsClient/model/CreateFeedPostsResponse.h index bbe3a41..8c948ce 100644 --- a/client/include/FastCommentsClient/model/CreateFeedPostsResponse.h +++ b/client/include/FastCommentsClient/model/CreateFeedPostsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateHashTagBody.h b/client/include/FastCommentsClient/model/CreateHashTagBody.h index c35f78a..49ed865 100644 --- a/client/include/FastCommentsClient/model/CreateHashTagBody.h +++ b/client/include/FastCommentsClient/model/CreateHashTagBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateHashTagBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateHashTagBody_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateHashTagResponse.h b/client/include/FastCommentsClient/model/CreateHashTagResponse.h index 0278895..a42b62b 100644 --- a/client/include/FastCommentsClient/model/CreateHashTagResponse.h +++ b/client/include/FastCommentsClient/model/CreateHashTagResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateHashTagResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateModeratorBody.h b/client/include/FastCommentsClient/model/CreateModeratorBody.h index edcef69..0a9cf87 100644 --- a/client/include/FastCommentsClient/model/CreateModeratorBody.h +++ b/client/include/FastCommentsClient/model/CreateModeratorBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,13 +18,11 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModeratorBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModeratorBody_H_ -#include #include "FastCommentsClient/ModelBase.h" #include #include -#include #include #include "FastCommentsClient/AnyType.h" @@ -79,21 +77,6 @@ class CreateModeratorBody void setModerationGroupIds(const std::vector& value); - /// - /// Get additional properties (properties not defined in the schema) - /// - std::map getAdditionalProperties() const; - bool additionalPropertiesIsSet() const; - void unsetAdditionalProperties(); - /// - /// Set additional properties - /// - void setAdditionalProperties(const std::map& value); - /// - /// Add a single additional property - /// - void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); - protected: utility::string_t m_Name; bool m_NameIsSet; @@ -107,8 +90,6 @@ class CreateModeratorBody std::vector m_ModerationGroupIds; bool m_ModerationGroupIdsIsSet; - std::map m_AdditionalProperties; - bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/CreateModeratorResponse.h b/client/include/FastCommentsClient/model/CreateModeratorResponse.h index 0303b1d..c580660 100644 --- a/client/include/FastCommentsClient/model/CreateModeratorResponse.h +++ b/client/include/FastCommentsClient/model/CreateModeratorResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModeratorResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateModerator_200_response.h b/client/include/FastCommentsClient/model/CreateModerator_200_response.h deleted file mode 100644 index 644b05d..0000000 --- a/client/include/FastCommentsClient/model/CreateModerator_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateModerator_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModerator_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModerator_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/Moderator.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/CreateModeratorResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class Moderator; -class CustomConfigParameters; - - -class CreateModerator_200_response - : public ModelBase -{ -public: - CreateModerator_200_response(); - virtual ~CreateModerator_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateModerator_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getModerator() const; - bool moderatorIsSet() const; - void unsetModerator(); - void setModerator(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Moderator; - bool m_ModeratorIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModerator_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateQuestionConfigBody.h b/client/include/FastCommentsClient/model/CreateQuestionConfigBody.h index e9a4534..746e46e 100644 --- a/client/include/FastCommentsClient/model/CreateQuestionConfigBody.h +++ b/client/include/FastCommentsClient/model/CreateQuestionConfigBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,14 +18,12 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfigBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfigBody_H_ -#include #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/QuestionConfig_customOptions_inner.h" #include #include -#include #include #include "FastCommentsClient/AnyType.h" @@ -131,21 +129,6 @@ class CreateQuestionConfigBody void setReportingOrder(double value); - /// - /// Get additional properties (properties not defined in the schema) - /// - std::map getAdditionalProperties() const; - bool additionalPropertiesIsSet() const; - void unsetAdditionalProperties(); - /// - /// Set additional properties - /// - void setAdditionalProperties(const std::map& value); - /// - /// Add a single additional property - /// - void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); - protected: utility::string_t m_Name; bool m_NameIsSet; @@ -189,8 +172,6 @@ class CreateQuestionConfigBody double m_ReportingOrder; bool m_ReportingOrderIsSet; - std::map m_AdditionalProperties; - bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/CreateQuestionConfigResponse.h b/client/include/FastCommentsClient/model/CreateQuestionConfigResponse.h index 219ccf4..22f2550 100644 --- a/client/include/FastCommentsClient/model/CreateQuestionConfigResponse.h +++ b/client/include/FastCommentsClient/model/CreateQuestionConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfigResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateQuestionConfig_200_response.h b/client/include/FastCommentsClient/model/CreateQuestionConfig_200_response.h deleted file mode 100644 index 86fe27a..0000000 --- a/client/include/FastCommentsClient/model/CreateQuestionConfig_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateQuestionConfig_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfig_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfig_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CreateQuestionConfigResponse.h" -#include "FastCommentsClient/model/QuestionConfig.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionConfig; -class CustomConfigParameters; - - -class CreateQuestionConfig_200_response - : public ModelBase -{ -public: - CreateQuestionConfig_200_response(); - virtual ~CreateQuestionConfig_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateQuestionConfig_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getQuestionConfig() const; - bool questionConfigIsSet() const; - void unsetQuestionConfig(); - void setQuestionConfig(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_QuestionConfig; - bool m_QuestionConfigIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfig_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateQuestionResultBody.h b/client/include/FastCommentsClient/model/CreateQuestionResultBody.h index d3b06ba..01d3e0e 100644 --- a/client/include/FastCommentsClient/model/CreateQuestionResultBody.h +++ b/client/include/FastCommentsClient/model/CreateQuestionResultBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,13 +18,11 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResultBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResultBody_H_ -#include #include "FastCommentsClient/ModelBase.h" #include #include -#include #include #include "FastCommentsClient/AnyType.h" #include "FastCommentsClient/model/MetaItem.h" @@ -96,21 +94,6 @@ class CreateQuestionResultBody void setMeta(const std::vector>& value); - /// - /// Get additional properties (properties not defined in the schema) - /// - std::map getAdditionalProperties() const; - bool additionalPropertiesIsSet() const; - void unsetAdditionalProperties(); - /// - /// Set additional properties - /// - void setAdditionalProperties(const std::map& value); - /// - /// Add a single additional property - /// - void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); - protected: utility::string_t m_UrlId; bool m_UrlIdIsSet; @@ -130,10 +113,9 @@ class CreateQuestionResultBody utility::string_t m_CommentId; bool m_CommentIdIsSet; - boost::optional>> m_Meta; + std::vector> m_Meta; + bool m_MetaIsSet; - std::map m_AdditionalProperties; - bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/CreateQuestionResultResponse.h b/client/include/FastCommentsClient/model/CreateQuestionResultResponse.h index 6679842..fa90928 100644 --- a/client/include/FastCommentsClient/model/CreateQuestionResultResponse.h +++ b/client/include/FastCommentsClient/model/CreateQuestionResultResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResultResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateQuestionResult_200_response.h b/client/include/FastCommentsClient/model/CreateQuestionResult_200_response.h deleted file mode 100644 index 2befa59..0000000 --- a/client/include/FastCommentsClient/model/CreateQuestionResult_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateQuestionResult_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResult_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResult_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/CreateQuestionResultResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/QuestionResult.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionResult; -class CustomConfigParameters; - - -class CreateQuestionResult_200_response - : public ModelBase -{ -public: - CreateQuestionResult_200_response(); - virtual ~CreateQuestionResult_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateQuestionResult_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getQuestionResult() const; - bool questionResultIsSet() const; - void unsetQuestionResult(); - void setQuestionResult(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_QuestionResult; - bool m_QuestionResultIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResult_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h b/client/include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h index 9c10f8e..c255630 100644 --- a/client/include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h +++ b/client/include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateSubscriptionAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateSubscriptionAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTenantBody.h b/client/include/FastCommentsClient/model/CreateTenantBody.h index 1a9c6e6..00ce636 100644 --- a/client/include/FastCommentsClient/model/CreateTenantBody.h +++ b/client/include/FastCommentsClient/model/CreateTenantBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantBody_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTenantPackageBody.h b/client/include/FastCommentsClient/model/CreateTenantPackageBody.h index 009a790..1c66469 100644 --- a/client/include/FastCommentsClient/model/CreateTenantPackageBody.h +++ b/client/include/FastCommentsClient/model/CreateTenantPackageBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackageBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackageBody_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -260,15 +259,15 @@ class CreateTenantPackageBody void unsetFlexDomainUnit(); void setFlexDomainUnit(double value); - double getFlexChatGPTCostCents() const; - bool flexChatGPTCostCentsIsSet() const; - void unsetFlexChatGPTCostCents(); - void setFlexChatGPTCostCents(double value); + double getFlexLLMCostCents() const; + bool flexLLMCostCentsIsSet() const; + void unsetFlexLLMCostCents(); + void setFlexLLMCostCents(double value); - double getFlexChatGPTUnit() const; - bool flexChatGPTUnitIsSet() const; - void unsetFlexChatGPTUnit(); - void setFlexChatGPTUnit(double value); + double getFlexLLMUnit() const; + bool flexLLMUnitIsSet() const; + void unsetFlexLLMUnit(); + void setFlexLLMUnit(double value); double getFlexMinimumCostCents() const; bool flexMinimumCostCentsIsSet() const; @@ -305,13 +304,17 @@ class CreateTenantPackageBody utility::string_t m_Name; bool m_NameIsSet; - boost::optional m_MonthlyCostUSD; + double m_MonthlyCostUSD; + bool m_MonthlyCostUSDIsSet; - boost::optional m_YearlyCostUSD; + double m_YearlyCostUSD; + bool m_YearlyCostUSDIsSet; - boost::optional m_MonthlyStripePlanId; + utility::string_t m_MonthlyStripePlanId; + bool m_MonthlyStripePlanIdIsSet; - boost::optional m_YearlyStripePlanId; + utility::string_t m_YearlyStripePlanId; + bool m_YearlyStripePlanIdIsSet; double m_MaxMonthlyPageLoads; bool m_MaxMonthlyPageLoadsIsSet; @@ -421,11 +424,11 @@ class CreateTenantPackageBody double m_FlexDomainUnit; bool m_FlexDomainUnitIsSet; - double m_FlexChatGPTCostCents; - bool m_FlexChatGPTCostCentsIsSet; + double m_FlexLLMCostCents; + bool m_FlexLLMCostCentsIsSet; - double m_FlexChatGPTUnit; - bool m_FlexChatGPTUnitIsSet; + double m_FlexLLMUnit; + bool m_FlexLLMUnitIsSet; double m_FlexMinimumCostCents; bool m_FlexMinimumCostCentsIsSet; diff --git a/client/include/FastCommentsClient/model/CreateTenantPackageResponse.h b/client/include/FastCommentsClient/model/CreateTenantPackageResponse.h index 55cdb17..edb63ba 100644 --- a/client/include/FastCommentsClient/model/CreateTenantPackageResponse.h +++ b/client/include/FastCommentsClient/model/CreateTenantPackageResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackageResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTenantPackage_200_response.h b/client/include/FastCommentsClient/model/CreateTenantPackage_200_response.h deleted file mode 100644 index d6b34d4..0000000 --- a/client/include/FastCommentsClient/model/CreateTenantPackage_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateTenantPackage_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackage_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackage_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/TenantPackage.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/CreateTenantPackageResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class TenantPackage; -class CustomConfigParameters; - - -class CreateTenantPackage_200_response - : public ModelBase -{ -public: - CreateTenantPackage_200_response(); - virtual ~CreateTenantPackage_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateTenantPackage_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTenantPackage() const; - bool tenantPackageIsSet() const; - void unsetTenantPackage(); - void setTenantPackage(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_TenantPackage; - bool m_TenantPackageIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackage_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateTenantResponse.h b/client/include/FastCommentsClient/model/CreateTenantResponse.h index 55f8d17..c752600 100644 --- a/client/include/FastCommentsClient/model/CreateTenantResponse.h +++ b/client/include/FastCommentsClient/model/CreateTenantResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTenantUserBody.h b/client/include/FastCommentsClient/model/CreateTenantUserBody.h index 8439df3..18b3ed7 100644 --- a/client/include/FastCommentsClient/model/CreateTenantUserBody.h +++ b/client/include/FastCommentsClient/model/CreateTenantUserBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUserBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUserBody_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTenantUserResponse.h b/client/include/FastCommentsClient/model/CreateTenantUserResponse.h index 7d0f902..cea0432 100644 --- a/client/include/FastCommentsClient/model/CreateTenantUserResponse.h +++ b/client/include/FastCommentsClient/model/CreateTenantUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUserResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTenantUser_200_response.h b/client/include/FastCommentsClient/model/CreateTenantUser_200_response.h deleted file mode 100644 index e1052d1..0000000 --- a/client/include/FastCommentsClient/model/CreateTenantUser_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateTenantUser_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUser_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUser_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/User.h" -#include -#include "FastCommentsClient/model/CreateTenantUserResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class User; -class CustomConfigParameters; - - -class CreateTenantUser_200_response - : public ModelBase -{ -public: - CreateTenantUser_200_response(); - virtual ~CreateTenantUser_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateTenantUser_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTenantUser() const; - bool tenantUserIsSet() const; - void unsetTenantUser(); - void setTenantUser(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_TenantUser; - bool m_TenantUserIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUser_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateTenant_200_response.h b/client/include/FastCommentsClient/model/CreateTenant_200_response.h deleted file mode 100644 index e5f6775..0000000 --- a/client/include/FastCommentsClient/model/CreateTenant_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateTenant_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenant_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenant_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITenant.h" -#include "FastCommentsClient/model/CreateTenantResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITenant; -class CustomConfigParameters; - - -class CreateTenant_200_response - : public ModelBase -{ -public: - CreateTenant_200_response(); - virtual ~CreateTenant_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateTenant_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTenant() const; - bool tenantIsSet() const; - void unsetTenant(); - void setTenant(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Tenant; - bool m_TenantIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenant_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateTicketBody.h b/client/include/FastCommentsClient/model/CreateTicketBody.h index fcec3f4..4bc8073 100644 --- a/client/include/FastCommentsClient/model/CreateTicketBody.h +++ b/client/include/FastCommentsClient/model/CreateTicketBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicketBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicketBody_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTicketResponse.h b/client/include/FastCommentsClient/model/CreateTicketResponse.h index 94389a9..c50726e 100644 --- a/client/include/FastCommentsClient/model/CreateTicketResponse.h +++ b/client/include/FastCommentsClient/model/CreateTicketResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicketResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTicket_200_response.h b/client/include/FastCommentsClient/model/CreateTicket_200_response.h deleted file mode 100644 index 9e19eb4..0000000 --- a/client/include/FastCommentsClient/model/CreateTicket_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateTicket_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicket_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicket_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITicket.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/CreateTicketResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITicket; -class CustomConfigParameters; - - -class CreateTicket_200_response - : public ModelBase -{ -public: - CreateTicket_200_response(); - virtual ~CreateTicket_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateTicket_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTicket() const; - bool ticketIsSet() const; - void unsetTicket(); - void setTicket(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Ticket; - bool m_TicketIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicket_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateUserBadgeParams.h b/client/include/FastCommentsClient/model/CreateUserBadgeParams.h index 8ad2d4f..71bc6e8 100644 --- a/client/include/FastCommentsClient/model/CreateUserBadgeParams.h +++ b/client/include/FastCommentsClient/model/CreateUserBadgeParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateUserBadgeParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateUserBadgeParams_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateUserBadge_200_response.h b/client/include/FastCommentsClient/model/CreateUserBadge_200_response.h deleted file mode 100644 index 41f14e1..0000000 --- a/client/include/FastCommentsClient/model/CreateUserBadge_200_response.h +++ /dev/null @@ -1,156 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateUserBadge_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateUserBadge_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateUserBadge_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UserBadge.h" -#include "FastCommentsClient/model/APICreateUserBadgeResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserBadge; -class CustomConfigParameters; - - -class CreateUserBadge_200_response - : public ModelBase -{ -public: - CreateUserBadge_200_response(); - virtual ~CreateUserBadge_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateUserBadge_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getUserBadge() const; - bool userBadgeIsSet() const; - void unsetUserBadge(); - void setUserBadge(const std::shared_ptr& value); - - std::vector getNotes() const; - bool notesIsSet() const; - void unsetNotes(); - void setNotes(const std::vector& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_UserBadge; - bool m_UserBadgeIsSet; - - std::vector m_Notes; - bool m_NotesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateUserBadge_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateV1PageReact.h b/client/include/FastCommentsClient/model/CreateV1PageReact.h new file mode 100644 index 0000000..cc7dd9d --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateV1PageReact.h @@ -0,0 +1,84 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateV1PageReact.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV1PageReact_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV1PageReact_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class CreateV1PageReact + : public ModelBase +{ +public: + CreateV1PageReact(); + virtual ~CreateV1PageReact(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateV1PageReact members + + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + utility::string_t m_Code; + bool m_CodeIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV1PageReact_H_ */ diff --git a/client/include/FastCommentsClient/model/CustomConfigParameters.h b/client/include/FastCommentsClient/model/CustomConfigParameters.h index cda6bdc..9358974 100644 --- a/client/include/FastCommentsClient/model/CustomConfigParameters.h +++ b/client/include/FastCommentsClient/model/CustomConfigParameters.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CustomConfigParameters_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -28,6 +27,7 @@ #include "FastCommentsClient/model/GifRating.h" #include "FastCommentsClient/model/CommenterNameFormats.h" #include "FastCommentsClient/model/QuestionSubQuestionVisibility.h" +#include "FastCommentsClient/model/UsersListLocation.h" #include "FastCommentsClient/model/VoteStyle.h" #include "FastCommentsClient/model/SpamRule.h" #include "FastCommentsClient/model/QuestionRenderingType.h" @@ -335,6 +335,16 @@ class CustomConfigParameters void unsetNoImageUploads(); void setNoImageUploads(bool value); + bool isAllowEmbeds() const; + bool allowEmbedsIsSet() const; + void unsetAllowEmbeds(); + void setAllowEmbeds(bool value); + + std::vector getAllowedEmbedDomains() const; + bool allowedEmbedDomainsIsSet() const; + void unsetAllowedEmbedDomains(); + void setAllowedEmbedDomains(const std::vector& value); + bool isNoStyles() const; bool noStylesIsSet() const; void unsetNoStyles(); @@ -360,6 +370,11 @@ class CustomConfigParameters void unsetRequireSSO(); void setRequireSSO(bool value); + bool isEnableFChat() const; + bool enableFChatIsSet() const; + void unsetEnableFChat(); + void setEnableFChat(bool value); + bool isEnableResizeHandle() const; bool enableResizeHandleIsSet() const; void unsetEnableResizeHandle(); @@ -463,6 +478,16 @@ class CustomConfigParameters void unsetWrap(); void setWrap(bool value); + std::shared_ptr getUsersListLocation() const; + bool usersListLocationIsSet() const; + void unsetUsersListLocation(); + void setUsersListLocation(const std::shared_ptr& value); + + bool isUsersListIncludeOffline() const; + bool usersListIncludeOfflineIsSet() const; + void unsetUsersListIncludeOffline(); + void setUsersListIncludeOffline(bool value); + utility::string_t getTicketBaseUrl() const; bool ticketBaseUrlIsSet() const; void unsetTicketBaseUrl(); @@ -510,30 +535,38 @@ class CustomConfigParameters bool m_AllowAnonVotes; bool m_AllowAnonVotesIsSet; - boost::optional> m_AllowedLanguages; + std::vector m_AllowedLanguages; + bool m_AllowedLanguagesIsSet; bool m_CollapseReplies; bool m_CollapseRepliesIsSet; - boost::optional m_CommentCountFormat; + utility::string_t m_CommentCountFormat; + bool m_CommentCountFormatIsSet; std::shared_ptr m_CommentHTMLRenderingMode; bool m_CommentHTMLRenderingModeIsSet; - boost::optional> m_CommentThreadDeleteMode; + std::shared_ptr m_CommentThreadDeleteMode; + bool m_CommentThreadDeleteModeIsSet; - boost::optional> m_CommenterNameFormat; + std::shared_ptr m_CommenterNameFormat; + bool m_CommenterNameFormatIsSet; int32_t m_CountAboveToggle; bool m_CountAboveToggleIsSet; - boost::optional m_CustomCSS; + utility::string_t m_CustomCSS; + bool m_CustomCSSIsSet; - boost::optional m_DefaultAvatarSrc; + utility::string_t m_DefaultAvatarSrc; + bool m_DefaultAvatarSrcIsSet; - boost::optional> m_DefaultSortDirection; + std::shared_ptr m_DefaultSortDirection; + bool m_DefaultSortDirectionIsSet; - boost::optional m_DefaultUsername; + utility::string_t m_DefaultUsername; + bool m_DefaultUsernameIsSet; bool m_DisableAutoAdminMigration; bool m_DisableAutoAdminMigrationIsSet; @@ -607,12 +640,14 @@ class CustomConfigParameters bool m_HasDarkBackground; bool m_HasDarkBackgroundIsSet; - boost::optional m_HeaderHTML; + utility::string_t m_HeaderHTML; + bool m_HeaderHTMLIsSet; bool m_HideAvatars; bool m_HideAvatarsIsSet; - boost::optional m_HideCommentsUnderCountTextFormat; + utility::string_t m_HideCommentsUnderCountTextFormat; + bool m_HideCommentsUnderCountTextFormatIsSet; std::shared_ptr m_ImageContentProfanityLevel; bool m_ImageContentProfanityLevelIsSet; @@ -623,24 +658,35 @@ class CustomConfigParameters bool m_LimitCommentsByGroups; bool m_LimitCommentsByGroupsIsSet; - boost::optional m_Locale; + utility::string_t m_Locale; + bool m_LocaleIsSet; - boost::optional m_MaxCommentCharacterLength; + int32_t m_MaxCommentCharacterLength; + bool m_MaxCommentCharacterLengthIsSet; - boost::optional m_MaxCommentCreatedCountPUPM; + int32_t m_MaxCommentCreatedCountPUPM; + bool m_MaxCommentCreatedCountPUPMIsSet; bool m_NoCustomConfig; bool m_NoCustomConfigIsSet; - boost::optional> m_MentionAutoCompleteMode; + std::shared_ptr m_MentionAutoCompleteMode; + bool m_MentionAutoCompleteModeIsSet; bool m_NoImageUploads; bool m_NoImageUploadsIsSet; + bool m_AllowEmbeds; + bool m_AllowEmbedsIsSet; + + std::vector m_AllowedEmbedDomains; + bool m_AllowedEmbedDomainsIsSet; + bool m_NoStyles; bool m_NoStylesIsSet; - boost::optional m_PageSize; + int32_t m_PageSize; + bool m_PageSizeIsSet; bool m_Readonly; bool m_ReadonlyIsSet; @@ -651,10 +697,14 @@ class CustomConfigParameters bool m_RequireSSO; bool m_RequireSSOIsSet; + bool m_EnableFChat; + bool m_EnableFChatIsSet; + bool m_EnableResizeHandle; bool m_EnableResizeHandleIsSet; - boost::optional> m_RestrictedLinkDomains; + std::vector m_RestrictedLinkDomains; + bool m_RestrictedLinkDomainsIsSet; bool m_ShowBadgesInTopBar; bool m_ShowBadgesInTopBarIsSet; @@ -674,7 +724,8 @@ class CustomConfigParameters std::shared_ptr m_SsoSecLvl; bool m_SsoSecLvlIsSet; - boost::optional> m_Translations; + std::map m_Translations; + bool m_TranslationsIsSet; bool m_UseShowCommentsToggle; bool m_UseShowCommentsToggleIsSet; @@ -709,6 +760,12 @@ class CustomConfigParameters bool m_Wrap; bool m_WrapIsSet; + std::shared_ptr m_UsersListLocation; + bool m_UsersListLocationIsSet; + + bool m_UsersListIncludeOffline; + bool m_UsersListIncludeOfflineIsSet; + utility::string_t m_TicketBaseUrl; bool m_TicketBaseUrlIsSet; diff --git a/client/include/FastCommentsClient/model/CustomEmailTemplate.h b/client/include/FastCommentsClient/model/CustomEmailTemplate.h index 22a2f96..450f86d 100644 --- a/client/include/FastCommentsClient/model/CustomEmailTemplate.h +++ b/client/include/FastCommentsClient/model/CustomEmailTemplate.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CustomEmailTemplate_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CustomEmailTemplate_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -104,10 +103,10 @@ class CustomEmailTemplate /// /// Construct a type with a set of properties K of type T /// - std::map> getTranslationOverridesByLocale() const; + std::map getTranslationOverridesByLocale() const; bool translationOverridesByLocaleIsSet() const; void unsetTranslationOverridesByLocale(); - void setTranslationOverridesByLocale(const std::map>& value); + void setTranslationOverridesByLocale(const std::map& value); std::shared_ptr getTestData() const; bool testDataIsSet() const; @@ -131,19 +130,23 @@ class CustomEmailTemplate utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; - boost::optional m_UpdatedAt; + utility::datetime m_UpdatedAt; + bool m_UpdatedAtIsSet; - boost::optional m_UpdatedByUserId; + utility::string_t m_UpdatedByUserId; + bool m_UpdatedByUserIdIsSet; - boost::optional m_Domain; + utility::string_t m_Domain; + bool m_DomainIsSet; utility::string_t m_Ejs; bool m_EjsIsSet; - std::map> m_TranslationOverridesByLocale; + std::map m_TranslationOverridesByLocale; bool m_TranslationOverridesByLocaleIsSet; - boost::optional> m_TestData; + std::shared_ptr m_TestData; + bool m_TestDataIsSet; }; diff --git a/client/include/FastCommentsClient/model/DeleteCommentAction.h b/client/include/FastCommentsClient/model/DeleteCommentAction.h index d3f6064..c9e5abb 100644 --- a/client/include/FastCommentsClient/model/DeleteCommentAction.h +++ b/client/include/FastCommentsClient/model/DeleteCommentAction.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentAction_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentAction_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/DeleteCommentPublic_200_response.h b/client/include/FastCommentsClient/model/DeleteCommentPublic_200_response.h deleted file mode 100644 index 07fd158..0000000 --- a/client/include/FastCommentsClient/model/DeleteCommentPublic_200_response.h +++ /dev/null @@ -1,155 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteCommentPublic_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentPublic_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentPublic_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/DeletedCommentResultComment.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/PublicAPIDeleteCommentResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class DeletedCommentResultComment; -class CustomConfigParameters; - - -class DeleteCommentPublic_200_response - : public ModelBase -{ -public: - DeleteCommentPublic_200_response(); - virtual ~DeleteCommentPublic_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteCommentPublic_200_response members - - - std::shared_ptr getComment() const; - bool commentIsSet() const; - void unsetComment(); - void setComment(const std::shared_ptr& value); - - bool isHardRemoved() const; - bool hardRemovedIsSet() const; - void unsetHardRemoved(); - void setHardRemoved(bool value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Comment; - bool m_CommentIsSet; - - bool m_HardRemoved; - bool m_HardRemovedIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentPublic_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteCommentResult.h b/client/include/FastCommentsClient/model/DeleteCommentResult.h index 9d5e194..a98eb6b 100644 --- a/client/include/FastCommentsClient/model/DeleteCommentResult.h +++ b/client/include/FastCommentsClient/model/DeleteCommentResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentResult_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/DeleteCommentVote_200_response.h b/client/include/FastCommentsClient/model/DeleteCommentVote_200_response.h deleted file mode 100644 index ba2f892..0000000 --- a/client/include/FastCommentsClient/model/DeleteCommentVote_200_response.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteCommentVote_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentVote_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentVote_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/VoteDeleteResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteCommentVote_200_response - : public ModelBase -{ -public: - DeleteCommentVote_200_response(); - virtual ~DeleteCommentVote_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteCommentVote_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - bool isWasPendingVote() const; - bool wasPendingVoteIsSet() const; - void unsetWasPendingVote(); - void setWasPendingVote(bool value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - bool m_WasPendingVote; - bool m_WasPendingVoteIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentVote_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteComment_200_response.h b/client/include/FastCommentsClient/model/DeleteComment_200_response.h deleted file mode 100644 index 73a97ed..0000000 --- a/client/include/FastCommentsClient/model/DeleteComment_200_response.h +++ /dev/null @@ -1,146 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteComment_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteComment_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteComment_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/DeleteCommentAction.h" -#include "FastCommentsClient/model/DeleteCommentResult.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteComment_200_response - : public ModelBase -{ -public: - DeleteComment_200_response(); - virtual ~DeleteComment_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteComment_200_response members - - - std::shared_ptr getAction() const; - bool actionIsSet() const; - void unsetAction(); - void setAction(const std::shared_ptr& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Action; - bool m_ActionIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteComment_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteDomainConfig_200_response.h b/client/include/FastCommentsClient/model/DeleteDomainConfigResponse.h similarity index 66% rename from client/include/FastCommentsClient/model/DeleteDomainConfig_200_response.h rename to client/include/FastCommentsClient/model/DeleteDomainConfigResponse.h index 2d731bd..07225cf 100644 --- a/client/include/FastCommentsClient/model/DeleteDomainConfig_200_response.h +++ b/client/include/FastCommentsClient/model/DeleteDomainConfigResponse.h @@ -4,21 +4,20 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * DeleteDomainConfig_200_response.h + * DeleteDomainConfigResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteDomainConfig_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteDomainConfig_200_response_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteDomainConfigResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteDomainConfigResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -31,12 +30,12 @@ namespace model { -class DeleteDomainConfig_200_response +class DeleteDomainConfigResponse : public ModelBase { public: - DeleteDomainConfig_200_response(); - virtual ~DeleteDomainConfig_200_response(); + DeleteDomainConfigResponse(); + virtual ~DeleteDomainConfigResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -51,7 +50,7 @@ class DeleteDomainConfig_200_response ///////////////////////////////////////////// - /// DeleteDomainConfig_200_response members + /// DeleteDomainConfigResponse members std::shared_ptr getStatus() const; @@ -61,7 +60,8 @@ class DeleteDomainConfig_200_response protected: - boost::optional> m_Status; + std::shared_ptr m_Status; + bool m_StatusIsSet; }; @@ -71,4 +71,4 @@ class DeleteDomainConfig_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteDomainConfig_200_response_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteDomainConfigResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteFeedPostPublic_200_response_anyOf.h b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h similarity index 67% rename from client/include/FastCommentsClient/model/DeleteFeedPostPublic_200_response_anyOf.h rename to client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h index 4d015ce..c0acc22 100644 --- a/client/include/FastCommentsClient/model/DeleteFeedPostPublic_200_response_anyOf.h +++ b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h @@ -4,22 +4,21 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * DeleteFeedPostPublic_200_response_anyOf.h + * DeleteFeedPostPublicResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublic_200_response_anyOf_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublic_200_response_anyOf_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublicResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublicResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -32,12 +31,12 @@ namespace model { -class DeleteFeedPostPublic_200_response_anyOf +class DeleteFeedPostPublicResponse : public ModelBase { public: - DeleteFeedPostPublic_200_response_anyOf(); - virtual ~DeleteFeedPostPublic_200_response_anyOf(); + DeleteFeedPostPublicResponse(); + virtual ~DeleteFeedPostPublicResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -52,7 +51,7 @@ class DeleteFeedPostPublic_200_response_anyOf ///////////////////////////////////////////// - /// DeleteFeedPostPublic_200_response_anyOf members + /// DeleteFeedPostPublicResponse members std::shared_ptr getStatus() const; @@ -73,4 +72,4 @@ class DeleteFeedPostPublic_200_response_anyOf } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublic_200_response_anyOf_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteFeedPostPublic_200_response.h b/client/include/FastCommentsClient/model/DeleteFeedPostPublic_200_response.h deleted file mode 100644 index 2eb2876..0000000 --- a/client/include/FastCommentsClient/model/DeleteFeedPostPublic_200_response.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteFeedPostPublic_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublic_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublic_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/DeleteFeedPostPublic_200_response_anyOf.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteFeedPostPublic_200_response - : public ModelBase -{ -public: - DeleteFeedPostPublic_200_response(); - virtual ~DeleteFeedPostPublic_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteFeedPostPublic_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublic_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteHashTag_request.h b/client/include/FastCommentsClient/model/DeleteHashTagRequestBody.h similarity index 72% rename from client/include/FastCommentsClient/model/DeleteHashTag_request.h rename to client/include/FastCommentsClient/model/DeleteHashTagRequestBody.h index 828e523..8d38a7a 100644 --- a/client/include/FastCommentsClient/model/DeleteHashTag_request.h +++ b/client/include/FastCommentsClient/model/DeleteHashTagRequestBody.h @@ -4,21 +4,20 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * DeleteHashTag_request.h + * DeleteHashTagRequestBody.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTag_request_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTag_request_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTagRequestBody_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTagRequestBody_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -31,12 +30,12 @@ namespace model { -class DeleteHashTag_request +class DeleteHashTagRequestBody : public ModelBase { public: - DeleteHashTag_request(); - virtual ~DeleteHashTag_request(); + DeleteHashTagRequestBody(); + virtual ~DeleteHashTagRequestBody(); ///////////////////////////////////////////// /// ModelBase overrides @@ -51,7 +50,7 @@ class DeleteHashTag_request ///////////////////////////////////////////// - /// DeleteHashTag_request members + /// DeleteHashTagRequestBody members utility::string_t getTenantId() const; @@ -72,4 +71,4 @@ class DeleteHashTag_request } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTag_request_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTagRequestBody_H_ */ diff --git a/client/include/FastCommentsClient/model/DeletePageAPIResponse.h b/client/include/FastCommentsClient/model/DeletePageAPIResponse.h index 950715d..b1d60de 100644 --- a/client/include/FastCommentsClient/model/DeletePageAPIResponse.h +++ b/client/include/FastCommentsClient/model/DeletePageAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeletePageAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeletePageAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h b/client/include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h index cbda68c..7c646d0 100644 --- a/client/include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h +++ b/client/include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteSSOUserAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteSSOUserAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h b/client/include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h index 902e5f5..2d4a121 100644 --- a/client/include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h +++ b/client/include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteSubscriptionAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteSubscriptionAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/DeletedCommentResultComment.h b/client/include/FastCommentsClient/model/DeletedCommentResultComment.h index e2d7d31..1260608 100644 --- a/client/include/FastCommentsClient/model/DeletedCommentResultComment.h +++ b/client/include/FastCommentsClient/model/DeletedCommentResultComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeletedCommentResultComment_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeletedCommentResultComment_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -85,7 +84,8 @@ class DeletedCommentResultComment utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; }; diff --git a/client/include/FastCommentsClient/model/DigestEmailFrequency.h b/client/include/FastCommentsClient/model/DigestEmailFrequency.h index eff79f0..60ee7c1 100644 --- a/client/include/FastCommentsClient/model/DigestEmailFrequency.h +++ b/client/include/FastCommentsClient/model/DigestEmailFrequency.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DigestEmailFrequency_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DigestEmailFrequency_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/EmailTemplateDefinition.h b/client/include/FastCommentsClient/model/EmailTemplateDefinition.h index 9d95442..0515ef2 100644 --- a/client/include/FastCommentsClient/model/EmailTemplateDefinition.h +++ b/client/include/FastCommentsClient/model/EmailTemplateDefinition.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_EmailTemplateDefinition_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_EmailTemplateDefinition_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -72,10 +71,10 @@ class EmailTemplateDefinition /// /// Construct a type with a set of properties K of type T /// - std::map> getDefaultTranslationsByLocale() const; + std::map getDefaultTranslationsByLocale() const; bool defaultTranslationsByLocaleIsSet() const; void unsetDefaultTranslationsByLocale(); - void setDefaultTranslationsByLocale(const std::map>& value); + void setDefaultTranslationsByLocale(const std::map& value); utility::string_t getDefaultEJS() const; bool defaultEJSIsSet() const; @@ -90,7 +89,7 @@ class EmailTemplateDefinition std::map> m_DefaultTestData; bool m_DefaultTestDataIsSet; - std::map> m_DefaultTranslationsByLocale; + std::map m_DefaultTranslationsByLocale; bool m_DefaultTranslationsByLocaleIsSet; utility::string_t m_DefaultEJS; diff --git a/client/include/FastCommentsClient/model/EmailTemplateRenderErrorResponse.h b/client/include/FastCommentsClient/model/EmailTemplateRenderErrorResponse.h index 53969ed..6554d81 100644 --- a/client/include/FastCommentsClient/model/EmailTemplateRenderErrorResponse.h +++ b/client/include/FastCommentsClient/model/EmailTemplateRenderErrorResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_EmailTemplateRenderErrorResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_EmailTemplateRenderErrorResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/EventLogEntry.h b/client/include/FastCommentsClient/model/EventLogEntry.h index 4deec2f..1bdffaa 100644 --- a/client/include/FastCommentsClient/model/EventLogEntry.h +++ b/client/include/FastCommentsClient/model/EventLogEntry.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_EventLogEntry_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_EventLogEntry_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FComment.h b/client/include/FastCommentsClient/model/FComment.h index 327d8db..7210677 100644 --- a/client/include/FastCommentsClient/model/FComment.h +++ b/client/include/FastCommentsClient/model/FComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FComment_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FComment_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -424,6 +423,11 @@ class FComment void unsetTosAcceptedAt(); void setTosAcceptedAt(const utility::datetime& value); + utility::string_t getBotId() const; + bool botIdIsSet() const; + void unsetBotId(); + void setBotId(const utility::string_t& value); + protected: utility::string_t m__id; @@ -441,18 +445,23 @@ class FComment utility::string_t m_Url; bool m_UrlIsSet; - boost::optional m_PageTitle; + utility::string_t m_PageTitle; + bool m_PageTitleIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; - boost::optional m_AnonUserId; + utility::string_t m_AnonUserId; + bool m_AnonUserIdIsSet; - boost::optional m_CommenterEmail; + utility::string_t m_CommenterEmail; + bool m_CommenterEmailIsSet; utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - boost::optional m_CommenterLink; + utility::string_t m_CommenterLink; + bool m_CommenterLinkIsSet; utility::string_t m_Comment; bool m_CommentIsSet; @@ -460,28 +469,38 @@ class FComment utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; - boost::optional m_ParentId; + utility::string_t m_ParentId; + bool m_ParentIdIsSet; - boost::optional m_date; + utility::datetime m_date; + bool m_dateIsSet; - boost::optional m_LocalDateString; + utility::string_t m_LocalDateString; + bool m_LocalDateStringIsSet; - boost::optional m_LocalDateHours; + int32_t m_LocalDateHours; + bool m_LocalDateHoursIsSet; - boost::optional m_Votes; + int32_t m_Votes; + bool m_VotesIsSet; - boost::optional m_VotesUp; + int32_t m_VotesUp; + bool m_VotesUpIsSet; - boost::optional m_VotesDown; + int32_t m_VotesDown; + bool m_VotesDownIsSet; - boost::optional m_ExpireAt; + utility::datetime m_ExpireAt; + bool m_ExpireAtIsSet; bool m_Verified; bool m_VerifiedIsSet; - boost::optional m_VerifiedDate; + utility::datetime m_VerifiedDate; + bool m_VerifiedDateIsSet; - boost::optional m_VerificationId; + utility::string_t m_VerificationId; + bool m_VerificationIdIsSet; bool m_NotificationSentForParent; bool m_NotificationSentForParentIsSet; @@ -498,9 +517,11 @@ class FComment utility::string_t m_ExternalId; bool m_ExternalIdIsSet; - boost::optional m_ExternalParentId; + utility::string_t m_ExternalParentId; + bool m_ExternalParentIdIsSet; - boost::optional m_AvatarSrc; + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; bool m_IsSpam; bool m_IsSpamIsSet; @@ -514,11 +535,14 @@ class FComment bool m_HasImages; bool m_HasImagesIsSet; - boost::optional m_PageNumber; + int32_t m_PageNumber; + bool m_PageNumberIsSet; - boost::optional m_PageNumberOF; + int32_t m_PageNumberOF; + bool m_PageNumberOFIsSet; - boost::optional m_PageNumberNF; + int32_t m_PageNumberNF; + bool m_PageNumberNFIsSet; bool m_HasLinks; bool m_HasLinksIsSet; @@ -529,7 +553,8 @@ class FComment bool m_Approved; bool m_ApprovedIsSet; - boost::optional m_Locale; + utility::string_t m_Locale; + bool m_LocaleIsSet; bool m_IsDeleted; bool m_IsDeletedIsSet; @@ -546,20 +571,26 @@ class FComment bool m_IsByModerator; bool m_IsByModeratorIsSet; - boost::optional m_IsPinned; + bool m_IsPinned; + bool m_IsPinnedIsSet; - boost::optional m_IsLocked; + bool m_IsLocked; + bool m_IsLockedIsSet; - boost::optional m_FlagCount; + int32_t m_FlagCount; + bool m_FlagCountIsSet; - boost::optional m_Rating; + double m_Rating; + bool m_RatingIsSet; - boost::optional m_DisplayLabel; + utility::string_t m_DisplayLabel; + bool m_DisplayLabelIsSet; int32_t m_FromProductId; bool m_FromProductIdIsSet; - boost::optional> m_Meta; + std::shared_ptr m_Meta; + bool m_MetaIsSet; utility::string_t m_IpHash; bool m_IpHashIsSet; @@ -570,14 +601,17 @@ class FComment std::vector> m_HashTags; bool m_HashTagsIsSet; - boost::optional>> m_Badges; + std::vector> m_Badges; + bool m_BadgesIsSet; - boost::optional m_Domain; + utility::string_t m_Domain; + bool m_DomainIsSet; utility::string_t m_VeteranBadgeProcessed; bool m_VeteranBadgeProcessedIsSet; - boost::optional> m_ModerationGroupIds; + std::vector m_ModerationGroupIds; + bool m_ModerationGroupIdsIsSet; bool m_DidProcessBadges; bool m_DidProcessBadgesIsSet; @@ -594,11 +628,14 @@ class FComment std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; - boost::optional>> m_Logs; + std::vector> m_Logs; + bool m_LogsIsSet; - boost::optional> m_GroupIds; + std::vector m_GroupIds; + bool m_GroupIdsIsSet; - boost::optional m_ViewCount; + int64_t m_ViewCount; + bool m_ViewCountIsSet; bool m_RequiresVerification; bool m_RequiresVerificationIsSet; @@ -609,6 +646,9 @@ class FComment utility::datetime m_TosAcceptedAt; bool m_TosAcceptedAtIsSet; + utility::string_t m_BotId; + bool m_BotIdIsSet; + }; diff --git a/client/include/FastCommentsClient/model/FComment_meta.h b/client/include/FastCommentsClient/model/FComment_meta.h index 0ab28be..057c915 100644 --- a/client/include/FastCommentsClient/model/FComment_meta.h +++ b/client/include/FastCommentsClient/model/FComment_meta.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,13 +18,11 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FComment_meta_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FComment_meta_H_ -#include #include "FastCommentsClient/ModelBase.h" #include #include -#include #include "FastCommentsClient/AnyType.h" namespace org { @@ -73,21 +71,6 @@ class FComment_meta void setWpPostId(const utility::string_t& value); - /// - /// Get additional properties (properties not defined in the schema) - /// - std::map getAdditionalProperties() const; - bool additionalPropertiesIsSet() const; - void unsetAdditionalProperties(); - /// - /// Set additional properties - /// - void setAdditionalProperties(const std::map& value); - /// - /// Add a single additional property - /// - void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); - protected: utility::string_t m_WpId; bool m_WpIdIsSet; @@ -98,8 +81,6 @@ class FComment_meta utility::string_t m_WpPostId; bool m_WpPostIdIsSet; - std::map m_AdditionalProperties; - bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/FeedPost.h b/client/include/FastCommentsClient/model/FeedPost.h index d017121..34a3b29 100644 --- a/client/include/FastCommentsClient/model/FeedPost.h +++ b/client/include/FastCommentsClient/model/FeedPost.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPost_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPost_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -157,9 +156,11 @@ class FeedPost utility::string_t m_FromUserId; bool m_FromUserIdIsSet; - boost::optional m_FromUserDisplayName; + utility::string_t m_FromUserDisplayName; + bool m_FromUserDisplayNameIsSet; - boost::optional m_FromUserAvatar; + utility::string_t m_FromUserAvatar; + bool m_FromUserAvatarIsSet; utility::string_t m_FromIpHash; bool m_FromIpHashIsSet; @@ -188,7 +189,8 @@ class FeedPost std::map m_Reacts; bool m_ReactsIsSet; - boost::optional m_CommentCount; + int32_t m_CommentCount; + bool m_CommentCountIsSet; }; diff --git a/client/include/FastCommentsClient/model/FeedPostLink.h b/client/include/FastCommentsClient/model/FeedPostLink.h index 3c89f14..d5e43fe 100644 --- a/client/include/FastCommentsClient/model/FeedPostLink.h +++ b/client/include/FastCommentsClient/model/FeedPostLink.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostLink_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostLink_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FeedPostMediaItem.h b/client/include/FastCommentsClient/model/FeedPostMediaItem.h index bde370b..80087e3 100644 --- a/client/include/FastCommentsClient/model/FeedPostMediaItem.h +++ b/client/include/FastCommentsClient/model/FeedPostMediaItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostMediaItem_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostMediaItem_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FeedPostMediaItemAsset.h b/client/include/FastCommentsClient/model/FeedPostMediaItemAsset.h index a4f344e..999fff1 100644 --- a/client/include/FastCommentsClient/model/FeedPostMediaItemAsset.h +++ b/client/include/FastCommentsClient/model/FeedPostMediaItemAsset.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostMediaItemAsset_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostMediaItemAsset_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FeedPostStats.h b/client/include/FastCommentsClient/model/FeedPostStats.h index 39db3aa..1c8a253 100644 --- a/client/include/FastCommentsClient/model/FeedPostStats.h +++ b/client/include/FastCommentsClient/model/FeedPostStats.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostStats_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostStats_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FeedPostsStatsResponse.h b/client/include/FastCommentsClient/model/FeedPostsStatsResponse.h index aa23f02..12bd5f3 100644 --- a/client/include/FastCommentsClient/model/FeedPostsStatsResponse.h +++ b/client/include/FastCommentsClient/model/FeedPostsStatsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostsStatsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FindCommentsByRangeItem.h b/client/include/FastCommentsClient/model/FindCommentsByRangeItem.h index 3295976..a8d595c 100644 --- a/client/include/FastCommentsClient/model/FindCommentsByRangeItem.h +++ b/client/include/FastCommentsClient/model/FindCommentsByRangeItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FindCommentsByRangeItem_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FindCommentsByRangeItem_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -69,7 +68,8 @@ class FindCommentsByRangeItem protected: - boost::optional> m_Comment; + std::shared_ptr m_Comment; + bool m_CommentIsSet; std::shared_ptr m_Result; bool m_ResultIsSet; diff --git a/client/include/FastCommentsClient/model/FindCommentsByRangeResponse.h b/client/include/FastCommentsClient/model/FindCommentsByRangeResponse.h index 9fcd342..630586b 100644 --- a/client/include/FastCommentsClient/model/FindCommentsByRangeResponse.h +++ b/client/include/FastCommentsClient/model/FindCommentsByRangeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FindCommentsByRangeResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FindCommentsByRangeResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FlagCommentPublic_200_response.h b/client/include/FastCommentsClient/model/FlagCommentPublic_200_response.h deleted file mode 100644 index 340daa7..0000000 --- a/client/include/FastCommentsClient/model/FlagCommentPublic_200_response.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * FlagCommentPublic_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentPublic_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentPublic_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class FlagCommentPublic_200_response - : public ModelBase -{ -public: - FlagCommentPublic_200_response(); - virtual ~FlagCommentPublic_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// FlagCommentPublic_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentPublic_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/FlagCommentResponse.h b/client/include/FastCommentsClient/model/FlagCommentResponse.h index 6ead318..68030d6 100644 --- a/client/include/FastCommentsClient/model/FlagCommentResponse.h +++ b/client/include/FastCommentsClient/model/FlagCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FlagComment_200_response.h b/client/include/FastCommentsClient/model/FlagComment_200_response.h deleted file mode 100644 index e115157..0000000 --- a/client/include/FastCommentsClient/model/FlagComment_200_response.h +++ /dev/null @@ -1,153 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * FlagComment_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FlagComment_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_FlagComment_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/FlagCommentResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class FlagComment_200_response - : public ModelBase -{ -public: - FlagComment_200_response(); - virtual ~FlagComment_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// FlagComment_200_response members - - - int32_t getStatusCode() const; - bool statusCodeIsSet() const; - void unsetStatusCode(); - void setStatusCode(int32_t value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - bool isWasUnapproved() const; - bool wasUnapprovedIsSet() const; - void unsetWasUnapproved(); - void setWasUnapproved(bool value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - int32_t m_StatusCode; - bool m_StatusCodeIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - bool m_WasUnapproved; - bool m_WasUnapprovedIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_FlagComment_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetAuditLogsResponse.h b/client/include/FastCommentsClient/model/GetAuditLogsResponse.h index 4691fc5..5800406 100644 --- a/client/include/FastCommentsClient/model/GetAuditLogsResponse.h +++ b/client/include/FastCommentsClient/model/GetAuditLogsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetAuditLogsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetAuditLogs_200_response.h b/client/include/FastCommentsClient/model/GetAuditLogs_200_response.h deleted file mode 100644 index 7589563..0000000 --- a/client/include/FastCommentsClient/model/GetAuditLogs_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetAuditLogs_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetAuditLogs_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetAuditLogs_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/APIAuditLog.h" -#include "FastCommentsClient/model/GetAuditLogsResponse.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APIAuditLog; -class CustomConfigParameters; - - -class GetAuditLogs_200_response - : public ModelBase -{ -public: - GetAuditLogs_200_response(); - virtual ~GetAuditLogs_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetAuditLogs_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getAuditLogs() const; - bool auditLogsIsSet() const; - void unsetAuditLogs(); - void setAuditLogs(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_AuditLogs; - bool m_AuditLogsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetAuditLogs_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetBannedUsersCountResponse.h b/client/include/FastCommentsClient/model/GetBannedUsersCountResponse.h new file mode 100644 index 0000000..ffcdea5 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetBannedUsersCountResponse.h @@ -0,0 +1,82 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetBannedUsersCountResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetBannedUsersCountResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetBannedUsersCountResponse_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GetBannedUsersCountResponse + : public ModelBase +{ +public: + GetBannedUsersCountResponse(); + virtual ~GetBannedUsersCountResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetBannedUsersCountResponse members + + + double getTotalCount() const; + bool totalCountIsSet() const; + void unsetTotalCount(); + void setTotalCount(double value); + + utility::string_t getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const utility::string_t& value); + + +protected: + double m_TotalCount; + bool m_TotalCountIsSet; + + utility::string_t m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetBannedUsersCountResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h b/client/include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h new file mode 100644 index 0000000..d114c73 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h @@ -0,0 +1,104 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetBannedUsersFromCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetBannedUsersFromCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetBannedUsersFromCommentResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h" +#include +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APIBannedUserWithMultiMatchInfo; + + +class GetBannedUsersFromCommentResponse + : public ModelBase +{ +public: + GetBannedUsersFromCommentResponse(); + virtual ~GetBannedUsersFromCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetBannedUsersFromCommentResponse members + + enum class CodeEnum + { + NOT_FOUND, + NOT_LOGGED_IN, + }; + + CodeEnum toCodeEnum(const utility::string_t& value) const; + const utility::string_t fromCodeEnum(const CodeEnum value) const; + + + std::vector> getBannedUsers() const; + bool bannedUsersIsSet() const; + void unsetBannedUsers(); + void setBannedUsers(const std::vector>& value); + + CodeEnum getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const CodeEnum value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector> m_BannedUsers; + bool m_BannedUsersIsSet; + + CodeEnum m_Code; + bool m_CodeIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetBannedUsersFromCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse.h b/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse.h index b661e12..3128005 100644 --- a/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse.h +++ b/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCachedNotificationCountResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetCachedNotificationCount_200_response.h b/client/include/FastCommentsClient/model/GetCachedNotificationCount_200_response.h deleted file mode 100644 index d03d577..0000000 --- a/client/include/FastCommentsClient/model/GetCachedNotificationCount_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCachedNotificationCount_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCachedNotificationCount_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCachedNotificationCount_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetCachedNotificationCountResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/UserNotificationCount.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserNotificationCount; -class CustomConfigParameters; - - -class GetCachedNotificationCount_200_response - : public ModelBase -{ -public: - GetCachedNotificationCount_200_response(); - virtual ~GetCachedNotificationCount_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCachedNotificationCount_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getData() const; - bool dataIsSet() const; - void unsetData(); - void setData(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Data; - bool m_DataIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCachedNotificationCount_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentBanStatusResponse.h b/client/include/FastCommentsClient/model/GetCommentBanStatusResponse.h new file mode 100644 index 0000000..cabcc2f --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCommentBanStatusResponse.h @@ -0,0 +1,90 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetCommentBanStatusResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentBanStatusResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentBanStatusResponse_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GetCommentBanStatusResponse + : public ModelBase +{ +public: + GetCommentBanStatusResponse(); + virtual ~GetCommentBanStatusResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetCommentBanStatusResponse members + + + utility::string_t getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const utility::string_t& value); + + utility::string_t getEmailDomain() const; + bool emailDomainIsSet() const; + void unsetEmailDomain(); + void setEmailDomain(const utility::string_t& value); + + bool isCanIPBan() const; + bool canIPBanIsSet() const; + void unsetCanIPBan(); + void setCanIPBan(bool value); + + +protected: + utility::string_t m_Status; + bool m_StatusIsSet; + + utility::string_t m_EmailDomain; + bool m_EmailDomainIsSet; + + bool m_CanIPBan; + bool m_CanIPBanIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentBanStatusResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentTextResponse.h b/client/include/FastCommentsClient/model/GetCommentTextResponse.h new file mode 100644 index 0000000..391c8e9 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCommentTextResponse.h @@ -0,0 +1,84 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetCommentTextResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentTextResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentTextResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GetCommentTextResponse + : public ModelBase +{ +public: + GetCommentTextResponse(); + virtual ~GetCommentTextResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetCommentTextResponse members + + + utility::string_t getComment() const; + bool commentIsSet() const; + void unsetComment(); + void setComment(const utility::string_t& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + utility::string_t m_Comment; + bool m_CommentIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentTextResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentText_200_response.h b/client/include/FastCommentsClient/model/GetCommentText_200_response.h deleted file mode 100644 index 0a7377d..0000000 --- a/client/include/FastCommentsClient/model/GetCommentText_200_response.h +++ /dev/null @@ -1,153 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCommentText_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentText_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentText_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/PublicAPIGetCommentTextResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetCommentText_200_response - : public ModelBase -{ -public: - GetCommentText_200_response(); - virtual ~GetCommentText_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCommentText_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getCommentText() const; - bool commentTextIsSet() const; - void unsetCommentText(); - void setCommentText(const utility::string_t& value); - - utility::string_t getSanitizedCommentText() const; - bool sanitizedCommentTextIsSet() const; - void unsetSanitizedCommentText(); - void setSanitizedCommentText(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_CommentText; - bool m_CommentTextIsSet; - - utility::string_t m_SanitizedCommentText; - bool m_SanitizedCommentTextIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentText_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h b/client/include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h index acb6246..b65e621 100644 --- a/client/include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h +++ b/client/include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentVoteUserNamesSuccessResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetCommentVoteUserNames_200_response.h b/client/include/FastCommentsClient/model/GetCommentVoteUserNames_200_response.h deleted file mode 100644 index 82837d4..0000000 --- a/client/include/FastCommentsClient/model/GetCommentVoteUserNames_200_response.h +++ /dev/null @@ -1,154 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCommentVoteUserNames_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentVoteUserNames_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentVoteUserNames_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetCommentVoteUserNames_200_response - : public ModelBase -{ -public: - GetCommentVoteUserNames_200_response(); - virtual ~GetCommentVoteUserNames_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCommentVoteUserNames_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector getVoteUserNames() const; - bool voteUserNamesIsSet() const; - void unsetVoteUserNames(); - void setVoteUserNames(const std::vector& value); - - bool isHasMore() const; - bool hasMoreIsSet() const; - void unsetHasMore(); - void setHasMore(bool value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector m_VoteUserNames; - bool m_VoteUserNamesIsSet; - - bool m_HasMore; - bool m_HasMoreIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentVoteUserNames_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetComment_200_response.h b/client/include/FastCommentsClient/model/GetComment_200_response.h deleted file mode 100644 index 66fdec0..0000000 --- a/client/include/FastCommentsClient/model/GetComment_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetComment_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetComment_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetComment_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIComment.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/APIGetCommentResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APIComment; -class CustomConfigParameters; - - -class GetComment_200_response - : public ModelBase -{ -public: - GetComment_200_response(); - virtual ~GetComment_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetComment_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getComment() const; - bool commentIsSet() const; - void unsetComment(); - void setComment(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Comment; - bool m_CommentIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetComment_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentsForUserResponse.h b/client/include/FastCommentsClient/model/GetCommentsForUserResponse.h new file mode 100644 index 0000000..037cd34 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCommentsForUserResponse.h @@ -0,0 +1,76 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetCommentsForUserResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsForUserResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsForUserResponse_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include +#include +#include "FastCommentsClient/AnyType.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GetCommentsForUserResponse + : public ModelBase +{ +public: + GetCommentsForUserResponse(); + virtual ~GetCommentsForUserResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetCommentsForUserResponse members + + + std::vector getModeratingTenantIds() const; + bool moderatingTenantIdsIsSet() const; + void unsetModeratingTenantIds(); + void setModeratingTenantIds(const std::vector& value); + + +protected: + std::vector m_ModeratingTenantIds; + bool m_ModeratingTenantIdsIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsForUserResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentsPublic_200_response.h b/client/include/FastCommentsClient/model/GetCommentsPublic_200_response.h deleted file mode 100644 index b7b33fc..0000000 --- a/client/include/FastCommentsClient/model/GetCommentsPublic_200_response.h +++ /dev/null @@ -1,329 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCommentsPublic_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsPublic_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsPublic_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UserSessionInfo.h" -#include "FastCommentsClient/model/PublicComment.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h" -#include -#include "FastCommentsClient/Object.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PublicComment; -class UserSessionInfo; -class CustomConfigParameters; - - -class GetCommentsPublic_200_response - : public ModelBase -{ -public: - GetCommentsPublic_200_response(); - virtual ~GetCommentsPublic_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCommentsPublic_200_response members - - - int32_t getStatusCode() const; - bool statusCodeIsSet() const; - void unsetStatusCode(); - void setStatusCode(int32_t value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getTranslatedWarning() const; - bool translatedWarningIsSet() const; - void unsetTranslatedWarning(); - void setTranslatedWarning(const utility::string_t& value); - - std::vector> getComments() const; - bool commentsIsSet() const; - void unsetComments(); - void setComments(const std::vector>& value); - - std::shared_ptr getUser() const; - bool userIsSet() const; - void unsetUser(); - void setUser(const std::shared_ptr& value); - - utility::string_t getUrlIdClean() const; - bool urlIdCleanIsSet() const; - void unsetUrlIdClean(); - void setUrlIdClean(const utility::string_t& value); - - int64_t getLastGenDate() const; - bool lastGenDateIsSet() const; - void unsetLastGenDate(); - void setLastGenDate(int64_t value); - - bool isIncludesPastPages() const; - bool includesPastPagesIsSet() const; - void unsetIncludesPastPages(); - void setIncludesPastPages(bool value); - - bool isIsDemo() const; - bool isDemoIsSet() const; - void unsetIsDemo(); - void setIsDemo(bool value); - - int32_t getCommentCount() const; - bool commentCountIsSet() const; - void unsetCommentCount(); - void setCommentCount(int32_t value); - - bool isIsSiteAdmin() const; - bool isSiteAdminIsSet() const; - void unsetIsSiteAdmin(); - void setIsSiteAdmin(bool value); - - bool isHasBillingIssue() const; - bool hasBillingIssueIsSet() const; - void unsetHasBillingIssue(); - void setHasBillingIssue(bool value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map> getModuleData() const; - bool moduleDataIsSet() const; - void unsetModuleData(); - void setModuleData(const std::map>& value); - - int32_t getPageNumber() const; - bool pageNumberIsSet() const; - void unsetPageNumber(); - void setPageNumber(int32_t value); - - bool isIsWhiteLabeled() const; - bool isWhiteLabeledIsSet() const; - void unsetIsWhiteLabeled(); - void setIsWhiteLabeled(bool value); - - bool isIsProd() const; - bool isProdIsSet() const; - void unsetIsProd(); - void setIsProd(bool value); - - bool isIsCrawler() const; - bool isCrawlerIsSet() const; - void unsetIsCrawler(); - void setIsCrawler(bool value); - - int32_t getNotificationCount() const; - bool notificationCountIsSet() const; - void unsetNotificationCount(); - void setNotificationCount(int32_t value); - - bool isHasMore() const; - bool hasMoreIsSet() const; - void unsetHasMore(); - void setHasMore(bool value); - - bool isIsClosed() const; - bool isClosedIsSet() const; - void unsetIsClosed(); - void setIsClosed(bool value); - - int32_t getPresencePollState() const; - bool presencePollStateIsSet() const; - void unsetPresencePollState(); - void setPresencePollState(int32_t value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - utility::string_t getUrlIdWS() const; - bool urlIdWSIsSet() const; - void unsetUrlIdWS(); - void setUrlIdWS(const utility::string_t& value); - - utility::string_t getUserIdWS() const; - bool userIdWSIsSet() const; - void unsetUserIdWS(); - void setUserIdWS(const utility::string_t& value); - - utility::string_t getTenantIdWS() const; - bool tenantIdWSIsSet() const; - void unsetTenantIdWS(); - void setTenantIdWS(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - -protected: - int32_t m_StatusCode; - bool m_StatusCodeIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_TranslatedWarning; - bool m_TranslatedWarningIsSet; - - std::vector> m_Comments; - bool m_CommentsIsSet; - - boost::optional> m_User; - - utility::string_t m_UrlIdClean; - bool m_UrlIdCleanIsSet; - - boost::optional m_LastGenDate; - - bool m_IncludesPastPages; - bool m_IncludesPastPagesIsSet; - - bool m_IsDemo; - bool m_IsDemoIsSet; - - int32_t m_CommentCount; - bool m_CommentCountIsSet; - - bool m_IsSiteAdmin; - bool m_IsSiteAdminIsSet; - - bool m_HasBillingIssue; - bool m_HasBillingIssueIsSet; - - std::map> m_ModuleData; - bool m_ModuleDataIsSet; - - int32_t m_PageNumber; - bool m_PageNumberIsSet; - - bool m_IsWhiteLabeled; - bool m_IsWhiteLabeledIsSet; - - bool m_IsProd; - bool m_IsProdIsSet; - - bool m_IsCrawler; - bool m_IsCrawlerIsSet; - - int32_t m_NotificationCount; - bool m_NotificationCountIsSet; - - bool m_HasMore; - bool m_HasMoreIsSet; - - bool m_IsClosed; - bool m_IsClosedIsSet; - - int32_t m_PresencePollState; - bool m_PresencePollStateIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - - utility::string_t m_UrlIdWS; - bool m_UrlIdWSIsSet; - - utility::string_t m_UserIdWS; - bool m_UserIdWSIsSet; - - utility::string_t m_TenantIdWS; - bool m_TenantIdWSIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsPublic_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h b/client/include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h index 3bd2a4f..7490fb1 100644 --- a/client/include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h +++ b/client/include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponseWithPresence_PublicComment__H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponseWithPresence_PublicComment__H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -221,12 +220,14 @@ class GetCommentsResponseWithPresence_PublicComment_ std::vector> m_Comments; bool m_CommentsIsSet; - boost::optional> m_User; + std::shared_ptr m_User; + bool m_UserIsSet; utility::string_t m_UrlIdClean; bool m_UrlIdCleanIsSet; - boost::optional m_LastGenDate; + int64_t m_LastGenDate; + bool m_LastGenDateIsSet; bool m_IncludesPastPages; bool m_IncludesPastPagesIsSet; diff --git a/client/include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h b/client/include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h index e3ac3fb..976fc31 100644 --- a/client/include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h +++ b/client/include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponse_PublicComment__H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponse_PublicComment__H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -206,12 +205,14 @@ class GetCommentsResponse_PublicComment_ std::vector> m_Comments; bool m_CommentsIsSet; - boost::optional> m_User; + std::shared_ptr m_User; + bool m_UserIsSet; utility::string_t m_UrlIdClean; bool m_UrlIdCleanIsSet; - boost::optional m_LastGenDate; + int64_t m_LastGenDate; + bool m_LastGenDateIsSet; bool m_IncludesPastPages; bool m_IncludesPastPagesIsSet; diff --git a/client/include/FastCommentsClient/model/GetComments_200_response.h b/client/include/FastCommentsClient/model/GetComments_200_response.h deleted file mode 100644 index dbd272c..0000000 --- a/client/include/FastCommentsClient/model/GetComments_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetComments_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetComments_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetComments_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIComment.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIGetCommentsResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APIComment; -class CustomConfigParameters; - - -class GetComments_200_response - : public ModelBase -{ -public: - GetComments_200_response(); - virtual ~GetComments_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetComments_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getComments() const; - bool commentsIsSet() const; - void unsetComments(); - void setComments(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Comments; - bool m_CommentsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetComments_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetDomainConfig_200_response.h b/client/include/FastCommentsClient/model/GetDomainConfigResponse.h similarity index 69% rename from client/include/FastCommentsClient/model/GetDomainConfig_200_response.h rename to client/include/FastCommentsClient/model/GetDomainConfigResponse.h index b114e29..2814890 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfig_200_response.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigResponse.h @@ -4,27 +4,26 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * GetDomainConfig_200_response.h + * GetDomainConfigResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfig_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfig_200_response_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" -#include "FastCommentsClient/model/GetDomainConfigs_200_response_anyOf_1.h" +#include "FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h" +#include "FastCommentsClient/model/AddDomainConfigResponse_anyOf.h" #include -#include "FastCommentsClient/model/AddDomainConfig_200_response_anyOf.h" #include "FastCommentsClient/AnyType.h" namespace org { @@ -34,12 +33,12 @@ namespace model { -class GetDomainConfig_200_response +class GetDomainConfigResponse : public ModelBase { public: - GetDomainConfig_200_response(); - virtual ~GetDomainConfig_200_response(); + GetDomainConfigResponse(); + virtual ~GetDomainConfigResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -54,7 +53,7 @@ class GetDomainConfig_200_response ///////////////////////////////////////////// - /// GetDomainConfig_200_response members + /// GetDomainConfigResponse members std::shared_ptr getConfiguration() const; @@ -79,9 +78,11 @@ class GetDomainConfig_200_response protected: - boost::optional> m_Configuration; + std::shared_ptr m_Configuration; + bool m_ConfigurationIsSet; - boost::optional> m_Status; + std::shared_ptr m_Status; + bool m_StatusIsSet; utility::string_t m_Reason; bool m_ReasonIsSet; @@ -97,4 +98,4 @@ class GetDomainConfig_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfig_200_response_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetDomainConfigs_200_response.h b/client/include/FastCommentsClient/model/GetDomainConfigsResponse.h similarity index 69% rename from client/include/FastCommentsClient/model/GetDomainConfigs_200_response.h rename to client/include/FastCommentsClient/model/GetDomainConfigsResponse.h index dd19663..1426e30 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigs_200_response.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigsResponse.h @@ -4,27 +4,26 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * GetDomainConfigs_200_response.h + * GetDomainConfigsResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigs_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigs_200_response_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" -#include "FastCommentsClient/model/GetDomainConfigs_200_response_anyOf.h" -#include "FastCommentsClient/model/GetDomainConfigs_200_response_anyOf_1.h" +#include "FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h" #include +#include "FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h" #include "FastCommentsClient/AnyType.h" namespace org { @@ -34,12 +33,12 @@ namespace model { -class GetDomainConfigs_200_response +class GetDomainConfigsResponse : public ModelBase { public: - GetDomainConfigs_200_response(); - virtual ~GetDomainConfigs_200_response(); + GetDomainConfigsResponse(); + virtual ~GetDomainConfigsResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -54,7 +53,7 @@ class GetDomainConfigs_200_response ///////////////////////////////////////////// - /// GetDomainConfigs_200_response members + /// GetDomainConfigsResponse members std::shared_ptr getConfigurations() const; @@ -79,9 +78,11 @@ class GetDomainConfigs_200_response protected: - boost::optional> m_Configurations; + std::shared_ptr m_Configurations; + bool m_ConfigurationsIsSet; - boost::optional> m_Status; + std::shared_ptr m_Status; + bool m_StatusIsSet; utility::string_t m_Reason; bool m_ReasonIsSet; @@ -97,4 +98,4 @@ class GetDomainConfigs_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigs_200_response_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetDomainConfigs_200_response_anyOf.h b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h similarity index 66% rename from client/include/FastCommentsClient/model/GetDomainConfigs_200_response_anyOf.h rename to client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h index 9849f23..27c32cc 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigs_200_response_anyOf.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h @@ -4,21 +4,20 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * GetDomainConfigs_200_response_anyOf.h + * GetDomainConfigsResponse_anyOf.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigs_200_response_anyOf_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigs_200_response_anyOf_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_anyOf_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_anyOf_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -31,12 +30,12 @@ namespace model { -class GetDomainConfigs_200_response_anyOf +class GetDomainConfigsResponse_anyOf : public ModelBase { public: - GetDomainConfigs_200_response_anyOf(); - virtual ~GetDomainConfigs_200_response_anyOf(); + GetDomainConfigsResponse_anyOf(); + virtual ~GetDomainConfigsResponse_anyOf(); ///////////////////////////////////////////// /// ModelBase overrides @@ -51,7 +50,7 @@ class GetDomainConfigs_200_response_anyOf ///////////////////////////////////////////// - /// GetDomainConfigs_200_response_anyOf members + /// GetDomainConfigsResponse_anyOf members std::shared_ptr getConfigurations() const; @@ -66,9 +65,11 @@ class GetDomainConfigs_200_response_anyOf protected: - boost::optional> m_Configurations; + std::shared_ptr m_Configurations; + bool m_ConfigurationsIsSet; - boost::optional> m_Status; + std::shared_ptr m_Status; + bool m_StatusIsSet; }; @@ -78,4 +79,4 @@ class GetDomainConfigs_200_response_anyOf } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigs_200_response_anyOf_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_anyOf_H_ */ diff --git a/client/include/FastCommentsClient/model/GetDomainConfigs_200_response_anyOf_1.h b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h similarity index 71% rename from client/include/FastCommentsClient/model/GetDomainConfigs_200_response_anyOf_1.h rename to client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h index ebca39d..79f62fd 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigs_200_response_anyOf_1.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h @@ -4,21 +4,20 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * GetDomainConfigs_200_response_anyOf_1.h + * GetDomainConfigsResponse_anyOf_1.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigs_200_response_anyOf_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigs_200_response_anyOf_1_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_anyOf_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_anyOf_1_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -32,12 +31,12 @@ namespace model { -class GetDomainConfigs_200_response_anyOf_1 +class GetDomainConfigsResponse_anyOf_1 : public ModelBase { public: - GetDomainConfigs_200_response_anyOf_1(); - virtual ~GetDomainConfigs_200_response_anyOf_1(); + GetDomainConfigsResponse_anyOf_1(); + virtual ~GetDomainConfigsResponse_anyOf_1(); ///////////////////////////////////////////// /// ModelBase overrides @@ -52,7 +51,7 @@ class GetDomainConfigs_200_response_anyOf_1 ///////////////////////////////////////////// - /// GetDomainConfigs_200_response_anyOf_1 members + /// GetDomainConfigsResponse_anyOf_1 members utility::string_t getReason() const; @@ -78,7 +77,8 @@ class GetDomainConfigs_200_response_anyOf_1 utility::string_t m_Code; bool m_CodeIsSet; - boost::optional> m_Status; + std::shared_ptr m_Status; + bool m_StatusIsSet; }; @@ -88,4 +88,4 @@ class GetDomainConfigs_200_response_anyOf_1 } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigs_200_response_anyOf_1_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_anyOf_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h b/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h index 3f99a53..82c1b73 100644 --- a/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h +++ b/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateDefinitionsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateDefinitions_200_response.h b/client/include/FastCommentsClient/model/GetEmailTemplateDefinitions_200_response.h deleted file mode 100644 index 32fab7d..0000000 --- a/client/include/FastCommentsClient/model/GetEmailTemplateDefinitions_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetEmailTemplateDefinitions_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateDefinitions_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateDefinitions_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h" -#include "FastCommentsClient/model/EmailTemplateDefinition.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class EmailTemplateDefinition; -class CustomConfigParameters; - - -class GetEmailTemplateDefinitions_200_response - : public ModelBase -{ -public: - GetEmailTemplateDefinitions_200_response(); - virtual ~GetEmailTemplateDefinitions_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetEmailTemplateDefinitions_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getDefinitions() const; - bool definitionsIsSet() const; - void unsetDefinitions(); - void setDefinitions(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Definitions; - bool m_DefinitionsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateDefinitions_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h b/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h index d77c076..0a1c991 100644 --- a/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h +++ b/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateRenderErrorsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrors_200_response.h b/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrors_200_response.h deleted file mode 100644 index 715a8b1..0000000 --- a/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrors_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetEmailTemplateRenderErrors_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateRenderErrors_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateRenderErrors_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/EmailTemplateRenderErrorResponse.h" -#include "FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class EmailTemplateRenderErrorResponse; -class CustomConfigParameters; - - -class GetEmailTemplateRenderErrors_200_response - : public ModelBase -{ -public: - GetEmailTemplateRenderErrors_200_response(); - virtual ~GetEmailTemplateRenderErrors_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetEmailTemplateRenderErrors_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getRenderErrors() const; - bool renderErrorsIsSet() const; - void unsetRenderErrors(); - void setRenderErrors(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_RenderErrors; - bool m_RenderErrorsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateRenderErrors_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateResponse.h b/client/include/FastCommentsClient/model/GetEmailTemplateResponse.h index 9459ab6..1f5a039 100644 --- a/client/include/FastCommentsClient/model/GetEmailTemplateResponse.h +++ b/client/include/FastCommentsClient/model/GetEmailTemplateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetEmailTemplate_200_response.h b/client/include/FastCommentsClient/model/GetEmailTemplate_200_response.h deleted file mode 100644 index 25c4d37..0000000 --- a/client/include/FastCommentsClient/model/GetEmailTemplate_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetEmailTemplate_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplate_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplate_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetEmailTemplateResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/CustomEmailTemplate.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomEmailTemplate; -class CustomConfigParameters; - - -class GetEmailTemplate_200_response - : public ModelBase -{ -public: - GetEmailTemplate_200_response(); - virtual ~GetEmailTemplate_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetEmailTemplate_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getEmailTemplate() const; - bool emailTemplateIsSet() const; - void unsetEmailTemplate(); - void setEmailTemplate(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_EmailTemplate; - bool m_EmailTemplateIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplate_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplatesResponse.h b/client/include/FastCommentsClient/model/GetEmailTemplatesResponse.h index 3fe8e00..65239cd 100644 --- a/client/include/FastCommentsClient/model/GetEmailTemplatesResponse.h +++ b/client/include/FastCommentsClient/model/GetEmailTemplatesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplatesResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetEmailTemplates_200_response.h b/client/include/FastCommentsClient/model/GetEmailTemplates_200_response.h deleted file mode 100644 index ea3cfc1..0000000 --- a/client/include/FastCommentsClient/model/GetEmailTemplates_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetEmailTemplates_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplates_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplates_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetEmailTemplatesResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/CustomEmailTemplate.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomEmailTemplate; -class CustomConfigParameters; - - -class GetEmailTemplates_200_response - : public ModelBase -{ -public: - GetEmailTemplates_200_response(); - virtual ~GetEmailTemplates_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetEmailTemplates_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getEmailTemplates() const; - bool emailTemplatesIsSet() const; - void unsetEmailTemplates(); - void setEmailTemplates(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_EmailTemplates; - bool m_EmailTemplatesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplates_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEventLogResponse.h b/client/include/FastCommentsClient/model/GetEventLogResponse.h index 004a023..7be973b 100644 --- a/client/include/FastCommentsClient/model/GetEventLogResponse.h +++ b/client/include/FastCommentsClient/model/GetEventLogResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEventLogResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetEventLog_200_response.h b/client/include/FastCommentsClient/model/GetEventLog_200_response.h deleted file mode 100644 index 08644de..0000000 --- a/client/include/FastCommentsClient/model/GetEventLog_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetEventLog_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEventLog_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEventLog_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/EventLogEntry.h" -#include "FastCommentsClient/model/GetEventLogResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class EventLogEntry; -class CustomConfigParameters; - - -class GetEventLog_200_response - : public ModelBase -{ -public: - GetEventLog_200_response(); - virtual ~GetEventLog_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetEventLog_200_response members - - - std::vector> getEvents() const; - bool eventsIsSet() const; - void unsetEvents(); - void setEvents(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_Events; - bool m_EventsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEventLog_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetFeedPostsPublic_200_response.h b/client/include/FastCommentsClient/model/GetFeedPostsPublic_200_response.h deleted file mode 100644 index 13e2d6d..0000000 --- a/client/include/FastCommentsClient/model/GetFeedPostsPublic_200_response.h +++ /dev/null @@ -1,190 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetFeedPostsPublic_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsPublic_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsPublic_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UserSessionInfo.h" -#include "FastCommentsClient/model/PublicFeedPostsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/FeedPost.h" -#include -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class FeedPost; -class UserSessionInfo; -class CustomConfigParameters; - - -class GetFeedPostsPublic_200_response - : public ModelBase -{ -public: - GetFeedPostsPublic_200_response(); - virtual ~GetFeedPostsPublic_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetFeedPostsPublic_200_response members - - - std::map> getMyReacts() const; - bool myReactsIsSet() const; - void unsetMyReacts(); - void setMyReacts(const std::map>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getFeedPosts() const; - bool feedPostsIsSet() const; - void unsetFeedPosts(); - void setFeedPosts(const std::vector>& value); - - std::shared_ptr getUser() const; - bool userIsSet() const; - void unsetUser(); - void setUser(const std::shared_ptr& value); - - utility::string_t getUrlIdWS() const; - bool urlIdWSIsSet() const; - void unsetUrlIdWS(); - void setUrlIdWS(const utility::string_t& value); - - utility::string_t getUserIdWS() const; - bool userIdWSIsSet() const; - void unsetUserIdWS(); - void setUserIdWS(const utility::string_t& value); - - utility::string_t getTenantIdWS() const; - bool tenantIdWSIsSet() const; - void unsetTenantIdWS(); - void setTenantIdWS(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::map> m_MyReacts; - bool m_MyReactsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_FeedPosts; - bool m_FeedPostsIsSet; - - boost::optional> m_User; - - utility::string_t m_UrlIdWS; - bool m_UrlIdWSIsSet; - - utility::string_t m_UserIdWS; - bool m_UserIdWSIsSet; - - utility::string_t m_TenantIdWS; - bool m_TenantIdWSIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsPublic_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetFeedPostsResponse.h b/client/include/FastCommentsClient/model/GetFeedPostsResponse.h index 76412d5..5b65e62 100644 --- a/client/include/FastCommentsClient/model/GetFeedPostsResponse.h +++ b/client/include/FastCommentsClient/model/GetFeedPostsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetFeedPostsStats_200_response.h b/client/include/FastCommentsClient/model/GetFeedPostsStats_200_response.h deleted file mode 100644 index e61594b..0000000 --- a/client/include/FastCommentsClient/model/GetFeedPostsStats_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetFeedPostsStats_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsStats_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsStats_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/FeedPostsStatsResponse.h" -#include -#include "FastCommentsClient/model/FeedPostStats.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class FeedPostStats; -class CustomConfigParameters; - - -class GetFeedPostsStats_200_response - : public ModelBase -{ -public: - GetFeedPostsStats_200_response(); - virtual ~GetFeedPostsStats_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetFeedPostsStats_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::map> getStats() const; - bool statsIsSet() const; - void unsetStats(); - void setStats(const std::map>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map> m_Stats; - bool m_StatsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsStats_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetFeedPosts_200_response.h b/client/include/FastCommentsClient/model/GetFeedPosts_200_response.h deleted file mode 100644 index 964ea96..0000000 --- a/client/include/FastCommentsClient/model/GetFeedPosts_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetFeedPosts_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPosts_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPosts_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/FeedPost.h" -#include -#include "FastCommentsClient/model/GetFeedPostsResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class FeedPost; -class CustomConfigParameters; - - -class GetFeedPosts_200_response - : public ModelBase -{ -public: - GetFeedPosts_200_response(); - virtual ~GetFeedPosts_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetFeedPosts_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getFeedPosts() const; - bool feedPostsIsSet() const; - void unsetFeedPosts(); - void setFeedPosts(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_FeedPosts; - bool m_FeedPostsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPosts_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetGifsSearchResponse.h b/client/include/FastCommentsClient/model/GetGifsSearchResponse.h new file mode 100644 index 0000000..68363f6 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetGifsSearchResponse.h @@ -0,0 +1,96 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetGifsSearchResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifsSearchResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifsSearchResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GifSearchResponse_images_inner_inner.h" +#include "FastCommentsClient/model/GifSearchResponse.h" +#include "FastCommentsClient/model/GifSearchInternalError.h" +#include +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GetGifsSearchResponse + : public ModelBase +{ +public: + GetGifsSearchResponse(); + virtual ~GetGifsSearchResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetGifsSearchResponse members + + + std::vector>> getImages() const; + bool imagesIsSet() const; + void unsetImages(); + void setImages(const std::vector>>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + +protected: + std::vector>> m_Images; + bool m_ImagesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifsSearchResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetGifsTrendingResponse.h b/client/include/FastCommentsClient/model/GetGifsTrendingResponse.h new file mode 100644 index 0000000..19ff91e --- /dev/null +++ b/client/include/FastCommentsClient/model/GetGifsTrendingResponse.h @@ -0,0 +1,96 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetGifsTrendingResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifsTrendingResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifsTrendingResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GifSearchResponse_images_inner_inner.h" +#include "FastCommentsClient/model/GifSearchResponse.h" +#include "FastCommentsClient/model/GifSearchInternalError.h" +#include +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GetGifsTrendingResponse + : public ModelBase +{ +public: + GetGifsTrendingResponse(); + virtual ~GetGifsTrendingResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetGifsTrendingResponse members + + + std::vector>> getImages() const; + bool imagesIsSet() const; + void unsetImages(); + void setImages(const std::vector>>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + +protected: + std::vector>> m_Images; + bool m_ImagesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifsTrendingResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetHashTagsResponse.h b/client/include/FastCommentsClient/model/GetHashTagsResponse.h index f936366..6ba3274 100644 --- a/client/include/FastCommentsClient/model/GetHashTagsResponse.h +++ b/client/include/FastCommentsClient/model/GetHashTagsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetHashTagsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetHashTags_200_response.h b/client/include/FastCommentsClient/model/GetHashTags_200_response.h deleted file mode 100644 index a04e188..0000000 --- a/client/include/FastCommentsClient/model/GetHashTags_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetHashTags_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetHashTags_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetHashTags_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/TenantHashTag.h" -#include "FastCommentsClient/model/GetHashTagsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class TenantHashTag; -class CustomConfigParameters; - - -class GetHashTags_200_response - : public ModelBase -{ -public: - GetHashTags_200_response(); - virtual ~GetHashTags_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetHashTags_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getHashTags() const; - bool hashTagsIsSet() const; - void unsetHashTags(); - void setHashTags(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_HashTags; - bool m_HashTagsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetHashTags_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetModeratorResponse.h b/client/include/FastCommentsClient/model/GetModeratorResponse.h index 6011120..972cab3 100644 --- a/client/include/FastCommentsClient/model/GetModeratorResponse.h +++ b/client/include/FastCommentsClient/model/GetModeratorResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetModerator_200_response.h b/client/include/FastCommentsClient/model/GetModerator_200_response.h deleted file mode 100644 index f932b68..0000000 --- a/client/include/FastCommentsClient/model/GetModerator_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetModerator_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerator_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerator_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetModeratorResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/Moderator.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class Moderator; -class CustomConfigParameters; - - -class GetModerator_200_response - : public ModelBase -{ -public: - GetModerator_200_response(); - virtual ~GetModerator_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetModerator_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getModerator() const; - bool moderatorIsSet() const; - void unsetModerator(); - void setModerator(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Moderator; - bool m_ModeratorIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerator_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetModeratorsResponse.h b/client/include/FastCommentsClient/model/GetModeratorsResponse.h index 22c3537..48a8aae 100644 --- a/client/include/FastCommentsClient/model/GetModeratorsResponse.h +++ b/client/include/FastCommentsClient/model/GetModeratorsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetModerators_200_response.h b/client/include/FastCommentsClient/model/GetModerators_200_response.h deleted file mode 100644 index 7cc1050..0000000 --- a/client/include/FastCommentsClient/model/GetModerators_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetModerators_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerators_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerators_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GetModeratorsResponse.h" -#include -#include "FastCommentsClient/model/Moderator.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class Moderator; -class CustomConfigParameters; - - -class GetModerators_200_response - : public ModelBase -{ -public: - GetModerators_200_response(); - virtual ~GetModerators_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetModerators_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getModerators() const; - bool moderatorsIsSet() const; - void unsetModerators(); - void setModerators(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Moderators; - bool m_ModeratorsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerators_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetMyNotificationsResponse.h b/client/include/FastCommentsClient/model/GetMyNotificationsResponse.h index 6d0fdc8..c89f968 100644 --- a/client/include/FastCommentsClient/model/GetMyNotificationsResponse.h +++ b/client/include/FastCommentsClient/model/GetMyNotificationsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetMyNotificationsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetNotificationCountResponse.h b/client/include/FastCommentsClient/model/GetNotificationCountResponse.h index a46b5c8..f1c5a07 100644 --- a/client/include/FastCommentsClient/model/GetNotificationCountResponse.h +++ b/client/include/FastCommentsClient/model/GetNotificationCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationCountResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetNotificationCount_200_response.h b/client/include/FastCommentsClient/model/GetNotificationCount_200_response.h deleted file mode 100644 index 1c11811..0000000 --- a/client/include/FastCommentsClient/model/GetNotificationCount_200_response.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetNotificationCount_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationCount_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationCount_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetNotificationCountResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetNotificationCount_200_response - : public ModelBase -{ -public: - GetNotificationCount_200_response(); - virtual ~GetNotificationCount_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetNotificationCount_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - double getCount() const; - bool countIsSet() const; - void unsetCount(); - void setCount(double value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - double m_Count; - bool m_CountIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationCount_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetNotificationsResponse.h b/client/include/FastCommentsClient/model/GetNotificationsResponse.h index 92b52aa..cf13a20 100644 --- a/client/include/FastCommentsClient/model/GetNotificationsResponse.h +++ b/client/include/FastCommentsClient/model/GetNotificationsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetNotifications_200_response.h b/client/include/FastCommentsClient/model/GetNotifications_200_response.h deleted file mode 100644 index f919f88..0000000 --- a/client/include/FastCommentsClient/model/GetNotifications_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetNotifications_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotifications_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotifications_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetNotificationsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/UserNotification.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserNotification; -class CustomConfigParameters; - - -class GetNotifications_200_response - : public ModelBase -{ -public: - GetNotifications_200_response(); - virtual ~GetNotifications_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetNotifications_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getNotifications() const; - bool notificationsIsSet() const; - void unsetNotifications(); - void setNotifications(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Notifications; - bool m_NotificationsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotifications_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h b/client/include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h index 8074f68..aedfbfd 100644 --- a/client/include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPageByURLIdAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPageByURLIdAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetPagesAPIResponse.h b/client/include/FastCommentsClient/model/GetPagesAPIResponse.h index 417a1a6..7c6b5b3 100644 --- a/client/include/FastCommentsClient/model/GetPagesAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetPagesAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h b/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h index 2b3ec27..d20c806 100644 --- a/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h +++ b/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventCountResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetPendingWebhookEventCount_200_response.h b/client/include/FastCommentsClient/model/GetPendingWebhookEventCount_200_response.h deleted file mode 100644 index 6d444f5..0000000 --- a/client/include/FastCommentsClient/model/GetPendingWebhookEventCount_200_response.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetPendingWebhookEventCount_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventCount_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventCount_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetPendingWebhookEventCountResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetPendingWebhookEventCount_200_response - : public ModelBase -{ -public: - GetPendingWebhookEventCount_200_response(); - virtual ~GetPendingWebhookEventCount_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetPendingWebhookEventCount_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - double getCount() const; - bool countIsSet() const; - void unsetCount(); - void setCount(double value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - double m_Count; - bool m_CountIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventCount_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h b/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h index df749c2..247914e 100644 --- a/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h +++ b/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetPendingWebhookEvents_200_response.h b/client/include/FastCommentsClient/model/GetPendingWebhookEvents_200_response.h deleted file mode 100644 index e969d37..0000000 --- a/client/include/FastCommentsClient/model/GetPendingWebhookEvents_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetPendingWebhookEvents_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEvents_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEvents_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/PendingCommentToSyncOutbound.h" -#include "FastCommentsClient/model/GetPendingWebhookEventsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PendingCommentToSyncOutbound; -class CustomConfigParameters; - - -class GetPendingWebhookEvents_200_response - : public ModelBase -{ -public: - GetPendingWebhookEvents_200_response(); - virtual ~GetPendingWebhookEvents_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetPendingWebhookEvents_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getPendingWebhookEvents() const; - bool pendingWebhookEventsIsSet() const; - void unsetPendingWebhookEvents(); - void setPendingWebhookEvents(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_PendingWebhookEvents; - bool m_PendingWebhookEventsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEvents_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetPublicFeedPostsResponse.h b/client/include/FastCommentsClient/model/GetPublicFeedPostsResponse.h index 2660461..598c006 100644 --- a/client/include/FastCommentsClient/model/GetPublicFeedPostsResponse.h +++ b/client/include/FastCommentsClient/model/GetPublicFeedPostsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPublicFeedPostsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -83,7 +82,8 @@ class GetPublicFeedPostsResponse std::vector> m_FeedPosts; bool m_FeedPostsIsSet; - boost::optional> m_User; + std::shared_ptr m_User; + bool m_UserIsSet; }; diff --git a/client/include/FastCommentsClient/model/GetPublicPagesResponse.h b/client/include/FastCommentsClient/model/GetPublicPagesResponse.h new file mode 100644 index 0000000..463f967 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetPublicPagesResponse.h @@ -0,0 +1,95 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetPublicPagesResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPublicPagesResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPublicPagesResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/PublicPage.h" +#include +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class PublicPage; + + +class GetPublicPagesResponse + : public ModelBase +{ +public: + GetPublicPagesResponse(); + virtual ~GetPublicPagesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetPublicPagesResponse members + + + utility::string_t getNextCursor() const; + bool nextCursorIsSet() const; + void unsetNextCursor(); + void setNextCursor(const utility::string_t& value); + + std::vector> getPages() const; + bool pagesIsSet() const; + void unsetPages(); + void setPages(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + utility::string_t m_NextCursor; + bool m_NextCursorIsSet; + + std::vector> m_Pages; + bool m_PagesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetPublicPagesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetQuestionConfigResponse.h b/client/include/FastCommentsClient/model/GetQuestionConfigResponse.h index 3bb6ed9..8da461a 100644 --- a/client/include/FastCommentsClient/model/GetQuestionConfigResponse.h +++ b/client/include/FastCommentsClient/model/GetQuestionConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetQuestionConfig_200_response.h b/client/include/FastCommentsClient/model/GetQuestionConfig_200_response.h deleted file mode 100644 index 7ef2969..0000000 --- a/client/include/FastCommentsClient/model/GetQuestionConfig_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetQuestionConfig_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfig_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfig_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/QuestionConfig.h" -#include "FastCommentsClient/model/GetQuestionConfigResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionConfig; -class CustomConfigParameters; - - -class GetQuestionConfig_200_response - : public ModelBase -{ -public: - GetQuestionConfig_200_response(); - virtual ~GetQuestionConfig_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetQuestionConfig_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getQuestionConfig() const; - bool questionConfigIsSet() const; - void unsetQuestionConfig(); - void setQuestionConfig(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_QuestionConfig; - bool m_QuestionConfigIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfig_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetQuestionConfigsResponse.h b/client/include/FastCommentsClient/model/GetQuestionConfigsResponse.h index 0246162..fdc7513 100644 --- a/client/include/FastCommentsClient/model/GetQuestionConfigsResponse.h +++ b/client/include/FastCommentsClient/model/GetQuestionConfigsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetQuestionConfigs_200_response.h b/client/include/FastCommentsClient/model/GetQuestionConfigs_200_response.h deleted file mode 100644 index aa340ba..0000000 --- a/client/include/FastCommentsClient/model/GetQuestionConfigs_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetQuestionConfigs_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigs_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigs_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/QuestionConfig.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/GetQuestionConfigsResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionConfig; -class CustomConfigParameters; - - -class GetQuestionConfigs_200_response - : public ModelBase -{ -public: - GetQuestionConfigs_200_response(); - virtual ~GetQuestionConfigs_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetQuestionConfigs_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getQuestionConfigs() const; - bool questionConfigsIsSet() const; - void unsetQuestionConfigs(); - void setQuestionConfigs(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_QuestionConfigs; - bool m_QuestionConfigsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigs_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetQuestionResultResponse.h b/client/include/FastCommentsClient/model/GetQuestionResultResponse.h index b6104bf..ebdb426 100644 --- a/client/include/FastCommentsClient/model/GetQuestionResultResponse.h +++ b/client/include/FastCommentsClient/model/GetQuestionResultResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetQuestionResult_200_response.h b/client/include/FastCommentsClient/model/GetQuestionResult_200_response.h deleted file mode 100644 index acd2a40..0000000 --- a/client/include/FastCommentsClient/model/GetQuestionResult_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetQuestionResult_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResult_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResult_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetQuestionResultResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/QuestionResult.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionResult; -class CustomConfigParameters; - - -class GetQuestionResult_200_response - : public ModelBase -{ -public: - GetQuestionResult_200_response(); - virtual ~GetQuestionResult_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetQuestionResult_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getQuestionResult() const; - bool questionResultIsSet() const; - void unsetQuestionResult(); - void setQuestionResult(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_QuestionResult; - bool m_QuestionResultIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResult_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetQuestionResultsResponse.h b/client/include/FastCommentsClient/model/GetQuestionResultsResponse.h index 1b3af0a..718d685 100644 --- a/client/include/FastCommentsClient/model/GetQuestionResultsResponse.h +++ b/client/include/FastCommentsClient/model/GetQuestionResultsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetQuestionResults_200_response.h b/client/include/FastCommentsClient/model/GetQuestionResults_200_response.h deleted file mode 100644 index caef747..0000000 --- a/client/include/FastCommentsClient/model/GetQuestionResults_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetQuestionResults_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResults_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResults_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetQuestionResultsResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/QuestionResult.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionResult; -class CustomConfigParameters; - - -class GetQuestionResults_200_response - : public ModelBase -{ -public: - GetQuestionResults_200_response(); - virtual ~GetQuestionResults_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetQuestionResults_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getQuestionResults() const; - bool questionResultsIsSet() const; - void unsetQuestionResults(); - void setQuestionResults(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_QuestionResults; - bool m_QuestionResultsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResults_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h b/client/include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h index 309dd93..4d86fee 100644 --- a/client/include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUserByEmailAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUserByEmailAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h b/client/include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h index 5ce86ce..77d2a1c 100644 --- a/client/include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUserByIdAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUserByIdAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetSSOUsers_200_response.h b/client/include/FastCommentsClient/model/GetSSOUsersResponse.h similarity index 76% rename from client/include/FastCommentsClient/model/GetSSOUsers_200_response.h rename to client/include/FastCommentsClient/model/GetSSOUsersResponse.h index 6e05986..2fbe7b2 100644 --- a/client/include/FastCommentsClient/model/GetSSOUsers_200_response.h +++ b/client/include/FastCommentsClient/model/GetSSOUsersResponse.h @@ -4,21 +4,20 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * GetSSOUsers_200_response.h + * GetSSOUsersResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUsers_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUsers_200_response_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUsersResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUsersResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -34,12 +33,12 @@ namespace model { class APISSOUser; -class GetSSOUsers_200_response +class GetSSOUsersResponse : public ModelBase { public: - GetSSOUsers_200_response(); - virtual ~GetSSOUsers_200_response(); + GetSSOUsersResponse(); + virtual ~GetSSOUsersResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -54,7 +53,7 @@ class GetSSOUsers_200_response ///////////////////////////////////////////// - /// GetSSOUsers_200_response members + /// GetSSOUsersResponse members std::vector> getUsers() const; @@ -83,4 +82,4 @@ class GetSSOUsers_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUsers_200_response_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUsersResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h b/client/include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h index 66673b2..f175a48 100644 --- a/client/include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSubscriptionsAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSubscriptionsAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h b/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h index a24a128..cbf4199 100644 --- a/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantDailyUsagesResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantDailyUsages_200_response.h b/client/include/FastCommentsClient/model/GetTenantDailyUsages_200_response.h deleted file mode 100644 index b98fef0..0000000 --- a/client/include/FastCommentsClient/model/GetTenantDailyUsages_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenantDailyUsages_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantDailyUsages_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantDailyUsages_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GetTenantDailyUsagesResponse.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APITenantDailyUsage.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITenantDailyUsage; -class CustomConfigParameters; - - -class GetTenantDailyUsages_200_response - : public ModelBase -{ -public: - GetTenantDailyUsages_200_response(); - virtual ~GetTenantDailyUsages_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenantDailyUsages_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getTenantDailyUsages() const; - bool tenantDailyUsagesIsSet() const; - void unsetTenantDailyUsages(); - void setTenantDailyUsages(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_TenantDailyUsages; - bool m_TenantDailyUsagesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantDailyUsages_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantManualBadgesResponse.h b/client/include/FastCommentsClient/model/GetTenantManualBadgesResponse.h new file mode 100644 index 0000000..f42d367 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTenantManualBadgesResponse.h @@ -0,0 +1,86 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetTenantManualBadgesResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantManualBadgesResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantManualBadgesResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/TenantBadge.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class TenantBadge; + + +class GetTenantManualBadgesResponse + : public ModelBase +{ +public: + GetTenantManualBadgesResponse(); + virtual ~GetTenantManualBadgesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetTenantManualBadgesResponse members + + + std::vector> getBadges() const; + bool badgesIsSet() const; + void unsetBadges(); + void setBadges(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector> m_Badges; + bool m_BadgesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantManualBadgesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantPackageResponse.h b/client/include/FastCommentsClient/model/GetTenantPackageResponse.h index e330506..01b6a24 100644 --- a/client/include/FastCommentsClient/model/GetTenantPackageResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantPackageResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackageResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantPackage_200_response.h b/client/include/FastCommentsClient/model/GetTenantPackage_200_response.h deleted file mode 100644 index a638ce6..0000000 --- a/client/include/FastCommentsClient/model/GetTenantPackage_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenantPackage_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackage_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackage_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetTenantPackageResponse.h" -#include "FastCommentsClient/model/TenantPackage.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class TenantPackage; -class CustomConfigParameters; - - -class GetTenantPackage_200_response - : public ModelBase -{ -public: - GetTenantPackage_200_response(); - virtual ~GetTenantPackage_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenantPackage_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTenantPackage() const; - bool tenantPackageIsSet() const; - void unsetTenantPackage(); - void setTenantPackage(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_TenantPackage; - bool m_TenantPackageIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackage_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantPackagesResponse.h b/client/include/FastCommentsClient/model/GetTenantPackagesResponse.h index 41d86b9..8c1a073 100644 --- a/client/include/FastCommentsClient/model/GetTenantPackagesResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantPackagesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackagesResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantPackages_200_response.h b/client/include/FastCommentsClient/model/GetTenantPackages_200_response.h deleted file mode 100644 index 3d24ebc..0000000 --- a/client/include/FastCommentsClient/model/GetTenantPackages_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenantPackages_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackages_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackages_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/TenantPackage.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/GetTenantPackagesResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class TenantPackage; -class CustomConfigParameters; - - -class GetTenantPackages_200_response - : public ModelBase -{ -public: - GetTenantPackages_200_response(); - virtual ~GetTenantPackages_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenantPackages_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getTenantPackages() const; - bool tenantPackagesIsSet() const; - void unsetTenantPackages(); - void setTenantPackages(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_TenantPackages; - bool m_TenantPackagesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackages_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantResponse.h b/client/include/FastCommentsClient/model/GetTenantResponse.h index 8fc4b2b..2dfd973 100644 --- a/client/include/FastCommentsClient/model/GetTenantResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantUserResponse.h b/client/include/FastCommentsClient/model/GetTenantUserResponse.h index 24bc343..1f89507 100644 --- a/client/include/FastCommentsClient/model/GetTenantUserResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUserResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantUser_200_response.h b/client/include/FastCommentsClient/model/GetTenantUser_200_response.h deleted file mode 100644 index 6cf6a7d..0000000 --- a/client/include/FastCommentsClient/model/GetTenantUser_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenantUser_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUser_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUser_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/User.h" -#include -#include "FastCommentsClient/model/GetTenantUserResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class User; -class CustomConfigParameters; - - -class GetTenantUser_200_response - : public ModelBase -{ -public: - GetTenantUser_200_response(); - virtual ~GetTenantUser_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenantUser_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTenantUser() const; - bool tenantUserIsSet() const; - void unsetTenantUser(); - void setTenantUser(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_TenantUser; - bool m_TenantUserIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUser_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantUsersResponse.h b/client/include/FastCommentsClient/model/GetTenantUsersResponse.h index 2877b81..46b6792 100644 --- a/client/include/FastCommentsClient/model/GetTenantUsersResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantUsersResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUsersResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantUsers_200_response.h b/client/include/FastCommentsClient/model/GetTenantUsers_200_response.h deleted file mode 100644 index da3d87f..0000000 --- a/client/include/FastCommentsClient/model/GetTenantUsers_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenantUsers_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUsers_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUsers_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/User.h" -#include -#include "FastCommentsClient/model/GetTenantUsersResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class User; -class CustomConfigParameters; - - -class GetTenantUsers_200_response - : public ModelBase -{ -public: - GetTenantUsers_200_response(); - virtual ~GetTenantUsers_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenantUsers_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getTenantUsers() const; - bool tenantUsersIsSet() const; - void unsetTenantUsers(); - void setTenantUsers(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_TenantUsers; - bool m_TenantUsersIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUsers_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenant_200_response.h b/client/include/FastCommentsClient/model/GetTenant_200_response.h deleted file mode 100644 index 0f2d485..0000000 --- a/client/include/FastCommentsClient/model/GetTenant_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenant_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenant_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenant_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITenant.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GetTenantResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITenant; -class CustomConfigParameters; - - -class GetTenant_200_response - : public ModelBase -{ -public: - GetTenant_200_response(); - virtual ~GetTenant_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenant_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTenant() const; - bool tenantIsSet() const; - void unsetTenant(); - void setTenant(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Tenant; - bool m_TenantIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenant_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantsResponse.h b/client/include/FastCommentsClient/model/GetTenantsResponse.h index 51d4925..8a75884 100644 --- a/client/include/FastCommentsClient/model/GetTenantsResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenants_200_response.h b/client/include/FastCommentsClient/model/GetTenants_200_response.h deleted file mode 100644 index eff1f0c..0000000 --- a/client/include/FastCommentsClient/model/GetTenants_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenants_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenants_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenants_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITenant.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetTenantsResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITenant; -class CustomConfigParameters; - - -class GetTenants_200_response - : public ModelBase -{ -public: - GetTenants_200_response(); - virtual ~GetTenants_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenants_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getTenants() const; - bool tenantsIsSet() const; - void unsetTenants(); - void setTenants(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Tenants; - bool m_TenantsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenants_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTicketResponse.h b/client/include/FastCommentsClient/model/GetTicketResponse.h index 6e1de12..89795cb 100644 --- a/client/include/FastCommentsClient/model/GetTicketResponse.h +++ b/client/include/FastCommentsClient/model/GetTicketResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTicket_200_response.h b/client/include/FastCommentsClient/model/GetTicket_200_response.h deleted file mode 100644 index 5911998..0000000 --- a/client/include/FastCommentsClient/model/GetTicket_200_response.h +++ /dev/null @@ -1,156 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTicket_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicket_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicket_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITicketDetail.h" -#include "FastCommentsClient/model/GetTicketResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITicketDetail; -class CustomConfigParameters; - - -class GetTicket_200_response - : public ModelBase -{ -public: - GetTicket_200_response(); - virtual ~GetTicket_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTicket_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTicket() const; - bool ticketIsSet() const; - void unsetTicket(); - void setTicket(const std::shared_ptr& value); - - std::vector getAvailableStates() const; - bool availableStatesIsSet() const; - void unsetAvailableStates(); - void setAvailableStates(std::vector value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Ticket; - bool m_TicketIsSet; - - std::vector m_AvailableStates; - bool m_AvailableStatesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicket_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTicketsResponse.h b/client/include/FastCommentsClient/model/GetTicketsResponse.h index 6ec63ce..3fbb991 100644 --- a/client/include/FastCommentsClient/model/GetTicketsResponse.h +++ b/client/include/FastCommentsClient/model/GetTicketsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTickets_200_response.h b/client/include/FastCommentsClient/model/GetTickets_200_response.h deleted file mode 100644 index 26a5d25..0000000 --- a/client/include/FastCommentsClient/model/GetTickets_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTickets_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTickets_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTickets_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITicket.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GetTicketsResponse.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITicket; -class CustomConfigParameters; - - -class GetTickets_200_response - : public ModelBase -{ -public: - GetTickets_200_response(); - virtual ~GetTickets_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTickets_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getTickets() const; - bool ticketsIsSet() const; - void unsetTickets(); - void setTickets(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Tickets; - bool m_TicketsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTickets_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTranslationsResponse.h b/client/include/FastCommentsClient/model/GetTranslationsResponse.h new file mode 100644 index 0000000..1628204 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTranslationsResponse.h @@ -0,0 +1,88 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetTranslationsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslationsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslationsResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GetTranslationsResponse + : public ModelBase +{ +public: + GetTranslationsResponse(); + virtual ~GetTranslationsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetTranslationsResponse members + + + /// + /// Construct a type with a set of properties K of type T + /// + std::map getTranslations() const; + bool translationsIsSet() const; + void unsetTranslations(); + void setTranslations(const std::map& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::map m_Translations; + bool m_TranslationsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslationsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadgeProgressById_200_response.h b/client/include/FastCommentsClient/model/GetUserBadgeProgressById_200_response.h deleted file mode 100644 index 14f2022..0000000 --- a/client/include/FastCommentsClient/model/GetUserBadgeProgressById_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserBadgeProgressById_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressById_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressById_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/UserBadgeProgress.h" -#include "FastCommentsClient/model/APIGetUserBadgeProgressResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserBadgeProgress; -class CustomConfigParameters; - - -class GetUserBadgeProgressById_200_response - : public ModelBase -{ -public: - GetUserBadgeProgressById_200_response(); - virtual ~GetUserBadgeProgressById_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserBadgeProgressById_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getUserBadgeProgress() const; - bool userBadgeProgressIsSet() const; - void unsetUserBadgeProgress(); - void setUserBadgeProgress(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_UserBadgeProgress; - bool m_UserBadgeProgressIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressById_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadgeProgressList_200_response.h b/client/include/FastCommentsClient/model/GetUserBadgeProgressList_200_response.h deleted file mode 100644 index 6714599..0000000 --- a/client/include/FastCommentsClient/model/GetUserBadgeProgressList_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserBadgeProgressList_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressList_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressList_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/UserBadgeProgress.h" -#include -#include "FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserBadgeProgress; -class CustomConfigParameters; - - -class GetUserBadgeProgressList_200_response - : public ModelBase -{ -public: - GetUserBadgeProgressList_200_response(); - virtual ~GetUserBadgeProgressList_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserBadgeProgressList_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getUserBadgeProgresses() const; - bool userBadgeProgressesIsSet() const; - void unsetUserBadgeProgresses(); - void setUserBadgeProgresses(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_UserBadgeProgresses; - bool m_UserBadgeProgressesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressList_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadge_200_response.h b/client/include/FastCommentsClient/model/GetUserBadge_200_response.h deleted file mode 100644 index 8e574cc..0000000 --- a/client/include/FastCommentsClient/model/GetUserBadge_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserBadge_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadge_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadge_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UserBadge.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIGetUserBadgeResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserBadge; -class CustomConfigParameters; - - -class GetUserBadge_200_response - : public ModelBase -{ -public: - GetUserBadge_200_response(); - virtual ~GetUserBadge_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserBadge_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getUserBadge() const; - bool userBadgeIsSet() const; - void unsetUserBadge(); - void setUserBadge(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_UserBadge; - bool m_UserBadgeIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadge_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadges_200_response.h b/client/include/FastCommentsClient/model/GetUserBadges_200_response.h deleted file mode 100644 index e0be38d..0000000 --- a/client/include/FastCommentsClient/model/GetUserBadges_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserBadges_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadges_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadges_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UserBadge.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/APIGetUserBadgesResponse.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserBadge; -class CustomConfigParameters; - - -class GetUserBadges_200_response - : public ModelBase -{ -public: - GetUserBadges_200_response(); - virtual ~GetUserBadges_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserBadges_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getUserBadges() const; - bool userBadgesIsSet() const; - void unsetUserBadges(); - void setUserBadges(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_UserBadges; - bool m_UserBadgesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadges_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserInternalProfileResponse.h b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse.h new file mode 100644 index 0000000..f01c57f --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse.h @@ -0,0 +1,85 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserInternalProfileResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetUserInternalProfileResponse_profile.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class GetUserInternalProfileResponse_profile; + + +class GetUserInternalProfileResponse + : public ModelBase +{ +public: + GetUserInternalProfileResponse(); + virtual ~GetUserInternalProfileResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserInternalProfileResponse members + + + std::shared_ptr getProfile() const; + bool profileIsSet() const; + void unsetProfile(); + void setProfile(const std::shared_ptr& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Profile; + bool m_ProfileIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h new file mode 100644 index 0000000..c35b204 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h @@ -0,0 +1,202 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserInternalProfileResponse_profile.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_profile_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_profile_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GetUserInternalProfileResponse_profile + : public ModelBase +{ +public: + GetUserInternalProfileResponse_profile(); + virtual ~GetUserInternalProfileResponse_profile(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserInternalProfileResponse_profile members + + + utility::string_t getCommenterName() const; + bool commenterNameIsSet() const; + void unsetCommenterName(); + void setCommenterName(const utility::string_t& value); + + utility::datetime getFirstCommentDate() const; + bool firstCommentDateIsSet() const; + void unsetFirstCommentDate(); + void setFirstCommentDate(const utility::datetime& value); + + utility::string_t getIpHash() const; + bool ipHashIsSet() const; + void unsetIpHash(); + void setIpHash(const utility::string_t& value); + + utility::string_t getCountryFlag() const; + bool countryFlagIsSet() const; + void unsetCountryFlag(); + void setCountryFlag(const utility::string_t& value); + + utility::string_t getCountryCode() const; + bool countryCodeIsSet() const; + void unsetCountryCode(); + void setCountryCode(const utility::string_t& value); + + utility::string_t getWebsiteUrl() const; + bool websiteUrlIsSet() const; + void unsetWebsiteUrl(); + void setWebsiteUrl(const utility::string_t& value); + + utility::string_t getBio() const; + bool bioIsSet() const; + void unsetBio(); + void setBio(const utility::string_t& value); + + double getKarma() const; + bool karmaIsSet() const; + void unsetKarma(); + void setKarma(double value); + + utility::string_t getLocale() const; + bool localeIsSet() const; + void unsetLocale(); + void setLocale(const utility::string_t& value); + + bool isVerified() const; + bool verifiedIsSet() const; + void unsetVerified(); + void setVerified(bool value); + + utility::string_t getAvatarSrc() const; + bool avatarSrcIsSet() const; + void unsetAvatarSrc(); + void setAvatarSrc(const utility::string_t& value); + + utility::string_t getDisplayName() const; + bool displayNameIsSet() const; + void unsetDisplayName(); + void setDisplayName(const utility::string_t& value); + + utility::string_t getUsername() const; + bool usernameIsSet() const; + void unsetUsername(); + void setUsername(const utility::string_t& value); + + utility::string_t getCommenterEmail() const; + bool commenterEmailIsSet() const; + void unsetCommenterEmail(); + void setCommenterEmail(const utility::string_t& value); + + utility::string_t getEmail() const; + bool emailIsSet() const; + void unsetEmail(); + void setEmail(const utility::string_t& value); + + utility::string_t getAnonUserId() const; + bool anonUserIdIsSet() const; + void unsetAnonUserId(); + void setAnonUserId(const utility::string_t& value); + + utility::string_t getUserId() const; + bool userIdIsSet() const; + void unsetUserId(); + void setUserId(const utility::string_t& value); + + +protected: + utility::string_t m_CommenterName; + bool m_CommenterNameIsSet; + + utility::datetime m_FirstCommentDate; + bool m_FirstCommentDateIsSet; + + utility::string_t m_IpHash; + bool m_IpHashIsSet; + + utility::string_t m_CountryFlag; + bool m_CountryFlagIsSet; + + utility::string_t m_CountryCode; + bool m_CountryCodeIsSet; + + utility::string_t m_WebsiteUrl; + bool m_WebsiteUrlIsSet; + + utility::string_t m_Bio; + bool m_BioIsSet; + + double m_Karma; + bool m_KarmaIsSet; + + utility::string_t m_Locale; + bool m_LocaleIsSet; + + bool m_Verified; + bool m_VerifiedIsSet; + + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; + + utility::string_t m_DisplayName; + bool m_DisplayNameIsSet; + + utility::string_t m_Username; + bool m_UsernameIsSet; + + utility::string_t m_CommenterEmail; + bool m_CommenterEmailIsSet; + + utility::string_t m_Email; + bool m_EmailIsSet; + + utility::string_t m_AnonUserId; + bool m_AnonUserIdIsSet; + + utility::string_t m_UserId; + bool m_UserIdIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_profile_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserManualBadgesResponse.h b/client/include/FastCommentsClient/model/GetUserManualBadgesResponse.h new file mode 100644 index 0000000..a680804 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserManualBadgesResponse.h @@ -0,0 +1,86 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserManualBadgesResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserManualBadgesResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserManualBadgesResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/UserBadge.h" +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class UserBadge; + + +class GetUserManualBadgesResponse + : public ModelBase +{ +public: + GetUserManualBadgesResponse(); + virtual ~GetUserManualBadgesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserManualBadgesResponse members + + + std::vector> getBadges() const; + bool badgesIsSet() const; + void unsetBadges(); + void setBadges(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector> m_Badges; + bool m_BadgesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserManualBadgesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserNotificationCountResponse.h b/client/include/FastCommentsClient/model/GetUserNotificationCountResponse.h index 1357618..98ce0ae 100644 --- a/client/include/FastCommentsClient/model/GetUserNotificationCountResponse.h +++ b/client/include/FastCommentsClient/model/GetUserNotificationCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationCountResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetUserNotificationCount_200_response.h b/client/include/FastCommentsClient/model/GetUserNotificationCount_200_response.h deleted file mode 100644 index 5469e37..0000000 --- a/client/include/FastCommentsClient/model/GetUserNotificationCount_200_response.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserNotificationCount_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationCount_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationCount_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/GetUserNotificationCountResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetUserNotificationCount_200_response - : public ModelBase -{ -public: - GetUserNotificationCount_200_response(); - virtual ~GetUserNotificationCount_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserNotificationCount_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - int64_t getCount() const; - bool countIsSet() const; - void unsetCount(); - void setCount(int64_t value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - int64_t m_Count; - bool m_CountIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationCount_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserNotifications_200_response.h b/client/include/FastCommentsClient/model/GetUserNotifications_200_response.h deleted file mode 100644 index 6eba558..0000000 --- a/client/include/FastCommentsClient/model/GetUserNotifications_200_response.h +++ /dev/null @@ -1,176 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserNotifications_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotifications_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotifications_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GetMyNotificationsResponse.h" -#include -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/RenderableUserNotification.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class RenderableUserNotification; -class CustomConfigParameters; - - -class GetUserNotifications_200_response - : public ModelBase -{ -public: - GetUserNotifications_200_response(); - virtual ~GetUserNotifications_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserNotifications_200_response members - - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getTranslations() const; - bool translationsIsSet() const; - void unsetTranslations(); - void setTranslations(const std::map& value); - - bool isIsSubscribed() const; - bool isSubscribedIsSet() const; - void unsetIsSubscribed(); - void setIsSubscribed(bool value); - - bool isHasMore() const; - bool hasMoreIsSet() const; - void unsetHasMore(); - void setHasMore(bool value); - - std::vector> getNotifications() const; - bool notificationsIsSet() const; - void unsetNotifications(); - void setNotifications(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::map m_Translations; - bool m_TranslationsIsSet; - - bool m_IsSubscribed; - bool m_IsSubscribedIsSet; - - bool m_HasMore; - bool m_HasMoreIsSet; - - std::vector> m_Notifications; - bool m_NotificationsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotifications_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h b/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h index 4e8205e..0e97749 100644 --- a/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h +++ b/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserPresenceStatusesResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetUserPresenceStatuses_200_response.h b/client/include/FastCommentsClient/model/GetUserPresenceStatuses_200_response.h deleted file mode 100644 index 2d9066b..0000000 --- a/client/include/FastCommentsClient/model/GetUserPresenceStatuses_200_response.h +++ /dev/null @@ -1,149 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserPresenceStatuses_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserPresenceStatuses_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserPresenceStatuses_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/GetUserPresenceStatusesResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetUserPresenceStatuses_200_response - : public ModelBase -{ -public: - GetUserPresenceStatuses_200_response(); - virtual ~GetUserPresenceStatuses_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserPresenceStatuses_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getUserIdsOnline() const; - bool userIdsOnlineIsSet() const; - void unsetUserIdsOnline(); - void setUserIdsOnline(std::map value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map m_UserIdsOnline; - bool m_UserIdsOnlineIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserPresenceStatuses_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserReactsPublic_200_response.h b/client/include/FastCommentsClient/model/GetUserReactsPublic_200_response.h deleted file mode 100644 index eb64f48..0000000 --- a/client/include/FastCommentsClient/model/GetUserReactsPublic_200_response.h +++ /dev/null @@ -1,146 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserReactsPublic_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserReactsPublic_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserReactsPublic_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/UserReactsResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetUserReactsPublic_200_response - : public ModelBase -{ -public: - GetUserReactsPublic_200_response(); - virtual ~GetUserReactsPublic_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserReactsPublic_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::map> getReacts() const; - bool reactsIsSet() const; - void unsetReacts(); - void setReacts(const std::map>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map> m_Reacts; - bool m_ReactsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserReactsPublic_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserResponse.h b/client/include/FastCommentsClient/model/GetUserResponse.h index 44c888d..88dfdf8 100644 --- a/client/include/FastCommentsClient/model/GetUserResponse.h +++ b/client/include/FastCommentsClient/model/GetUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetUserTrustFactorResponse.h b/client/include/FastCommentsClient/model/GetUserTrustFactorResponse.h new file mode 100644 index 0000000..4176066 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserTrustFactorResponse.h @@ -0,0 +1,91 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserTrustFactorResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserTrustFactorResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserTrustFactorResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GetUserTrustFactorResponse + : public ModelBase +{ +public: + GetUserTrustFactorResponse(); + virtual ~GetUserTrustFactorResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserTrustFactorResponse members + + + double getManualTrustFactor() const; + bool manualTrustFactorIsSet() const; + void unsetManualTrustFactor(); + void setManualTrustFactor(double value); + + double getAutoTrustFactor() const; + bool autoTrustFactorIsSet() const; + void unsetAutoTrustFactor(); + void setAutoTrustFactor(double value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + double m_ManualTrustFactor; + bool m_ManualTrustFactorIsSet; + + double m_AutoTrustFactor; + bool m_AutoTrustFactorIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserTrustFactorResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUser_200_response.h b/client/include/FastCommentsClient/model/GetUser_200_response.h deleted file mode 100644 index 2f752a8..0000000 --- a/client/include/FastCommentsClient/model/GetUser_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUser_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUser_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUser_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/User.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/GetUserResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class User; -class CustomConfigParameters; - - -class GetUser_200_response - : public ModelBase -{ -public: - GetUser_200_response(); - virtual ~GetUser_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUser_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getUser() const; - bool userIsSet() const; - void unsetUser(); - void setUser(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_User; - bool m_UserIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUser_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetV1PageLikes.h b/client/include/FastCommentsClient/model/GetV1PageLikes.h new file mode 100644 index 0000000..ed3e476 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetV1PageLikes.h @@ -0,0 +1,108 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetV1PageLikes.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetV1PageLikes_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetV1PageLikes_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GetV1PageLikes + : public ModelBase +{ +public: + GetV1PageLikes(); + virtual ~GetV1PageLikes(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetV1PageLikes members + + + utility::string_t getUrlIdWS() const; + bool urlIdWSIsSet() const; + void unsetUrlIdWS(); + void setUrlIdWS(const utility::string_t& value); + + bool isDidLike() const; + bool didLikeIsSet() const; + void unsetDidLike(); + void setDidLike(bool value); + + int32_t getCommentCount() const; + bool commentCountIsSet() const; + void unsetCommentCount(); + void setCommentCount(int32_t value); + + int32_t getLikeCount() const; + bool likeCountIsSet() const; + void unsetLikeCount(); + void setLikeCount(int32_t value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + utility::string_t m_UrlIdWS; + bool m_UrlIdWSIsSet; + + bool m_DidLike; + bool m_DidLikeIsSet; + + int32_t m_CommentCount; + bool m_CommentCountIsSet; + + int32_t m_LikeCount; + bool m_LikeCountIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetV1PageLikes_H_ */ diff --git a/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse.h b/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse.h new file mode 100644 index 0000000..70def1f --- /dev/null +++ b/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse.h @@ -0,0 +1,85 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetV2PageReactUsersResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactUsersResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactUsersResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GetV2PageReactUsersResponse + : public ModelBase +{ +public: + GetV2PageReactUsersResponse(); + virtual ~GetV2PageReactUsersResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetV2PageReactUsersResponse members + + + std::vector getUserNames() const; + bool userNamesIsSet() const; + void unsetUserNames(); + void setUserNames(const std::vector& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector m_UserNames; + bool m_UserNamesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactUsersResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetV2PageReacts.h b/client/include/FastCommentsClient/model/GetV2PageReacts.h new file mode 100644 index 0000000..91dcb0c --- /dev/null +++ b/client/include/FastCommentsClient/model/GetV2PageReacts.h @@ -0,0 +1,97 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetV2PageReacts.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReacts_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReacts_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GetV2PageReacts + : public ModelBase +{ +public: + GetV2PageReacts(); + virtual ~GetV2PageReacts(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetV2PageReacts members + + + std::vector getReactedIds() const; + bool reactedIdsIsSet() const; + void unsetReactedIds(); + void setReactedIds(const std::vector& value); + + /// + /// Construct a type with a set of properties K of type T + /// + std::map getCounts() const; + bool countsIsSet() const; + void unsetCounts(); + void setCounts(std::map value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector m_ReactedIds; + bool m_ReactedIdsIsSet; + + std::map m_Counts; + bool m_CountsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReacts_H_ */ diff --git a/client/include/FastCommentsClient/model/GetVotesForUserResponse.h b/client/include/FastCommentsClient/model/GetVotesForUserResponse.h index 711e83e..4748ee2 100644 --- a/client/include/FastCommentsClient/model/GetVotesForUserResponse.h +++ b/client/include/FastCommentsClient/model/GetVotesForUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesForUserResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetVotesForUser_200_response.h b/client/include/FastCommentsClient/model/GetVotesForUser_200_response.h deleted file mode 100644 index 93d51f9..0000000 --- a/client/include/FastCommentsClient/model/GetVotesForUser_200_response.h +++ /dev/null @@ -1,164 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetVotesForUser_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesForUser_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesForUser_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetVotesForUserResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/PublicVote.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PublicVote; -class CustomConfigParameters; - - -class GetVotesForUser_200_response - : public ModelBase -{ -public: - GetVotesForUser_200_response(); - virtual ~GetVotesForUser_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetVotesForUser_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getAppliedAuthorizedVotes() const; - bool appliedAuthorizedVotesIsSet() const; - void unsetAppliedAuthorizedVotes(); - void setAppliedAuthorizedVotes(const std::vector>& value); - - std::vector> getAppliedAnonymousVotes() const; - bool appliedAnonymousVotesIsSet() const; - void unsetAppliedAnonymousVotes(); - void setAppliedAnonymousVotes(const std::vector>& value); - - std::vector> getPendingVotes() const; - bool pendingVotesIsSet() const; - void unsetPendingVotes(); - void setPendingVotes(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_AppliedAuthorizedVotes; - bool m_AppliedAuthorizedVotesIsSet; - - std::vector> m_AppliedAnonymousVotes; - bool m_AppliedAnonymousVotesIsSet; - - std::vector> m_PendingVotes; - bool m_PendingVotesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesForUser_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetVotesResponse.h b/client/include/FastCommentsClient/model/GetVotesResponse.h index ba01a3a..b415cb8 100644 --- a/client/include/FastCommentsClient/model/GetVotesResponse.h +++ b/client/include/FastCommentsClient/model/GetVotesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetVotes_200_response.h b/client/include/FastCommentsClient/model/GetVotes_200_response.h deleted file mode 100644 index c048fbe..0000000 --- a/client/include/FastCommentsClient/model/GetVotes_200_response.h +++ /dev/null @@ -1,164 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetVotes_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotes_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotes_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/PublicVote.h" -#include -#include "FastCommentsClient/model/GetVotesResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PublicVote; -class CustomConfigParameters; - - -class GetVotes_200_response - : public ModelBase -{ -public: - GetVotes_200_response(); - virtual ~GetVotes_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetVotes_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getAppliedAuthorizedVotes() const; - bool appliedAuthorizedVotesIsSet() const; - void unsetAppliedAuthorizedVotes(); - void setAppliedAuthorizedVotes(const std::vector>& value); - - std::vector> getAppliedAnonymousVotes() const; - bool appliedAnonymousVotesIsSet() const; - void unsetAppliedAnonymousVotes(); - void setAppliedAnonymousVotes(const std::vector>& value); - - std::vector> getPendingVotes() const; - bool pendingVotesIsSet() const; - void unsetPendingVotes(); - void setPendingVotes(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_AppliedAuthorizedVotes; - bool m_AppliedAuthorizedVotesIsSet; - - std::vector> m_AppliedAnonymousVotes; - bool m_AppliedAnonymousVotesIsSet; - - std::vector> m_PendingVotes; - bool m_PendingVotesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotes_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GifGetLargeResponse.h b/client/include/FastCommentsClient/model/GifGetLargeResponse.h new file mode 100644 index 0000000..be20491 --- /dev/null +++ b/client/include/FastCommentsClient/model/GifGetLargeResponse.h @@ -0,0 +1,84 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GifGetLargeResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GifGetLargeResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GifGetLargeResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GifGetLargeResponse + : public ModelBase +{ +public: + GifGetLargeResponse(); + virtual ~GifGetLargeResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GifGetLargeResponse members + + + utility::string_t getSrc() const; + bool srcIsSet() const; + void unsetSrc(); + void setSrc(const utility::string_t& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + utility::string_t m_Src; + bool m_SrcIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GifGetLargeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GifRating.h b/client/include/FastCommentsClient/model/GifRating.h index e2932f9..8c519c0 100644 --- a/client/include/FastCommentsClient/model/GifRating.h +++ b/client/include/FastCommentsClient/model/GifRating.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GifRating_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GifRating_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GifSearchInternalError.h b/client/include/FastCommentsClient/model/GifSearchInternalError.h new file mode 100644 index 0000000..29b642d --- /dev/null +++ b/client/include/FastCommentsClient/model/GifSearchInternalError.h @@ -0,0 +1,84 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GifSearchInternalError.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GifSearchInternalError_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GifSearchInternalError_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GifSearchInternalError + : public ModelBase +{ +public: + GifSearchInternalError(); + virtual ~GifSearchInternalError(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GifSearchInternalError members + + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + utility::string_t m_Code; + bool m_CodeIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GifSearchInternalError_H_ */ diff --git a/client/include/FastCommentsClient/model/GifSearchResponse.h b/client/include/FastCommentsClient/model/GifSearchResponse.h new file mode 100644 index 0000000..cb55fe3 --- /dev/null +++ b/client/include/FastCommentsClient/model/GifSearchResponse.h @@ -0,0 +1,85 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GifSearchResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GifSearchResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GifSearchResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GifSearchResponse_images_inner_inner.h" +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GifSearchResponse + : public ModelBase +{ +public: + GifSearchResponse(); + virtual ~GifSearchResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GifSearchResponse members + + + std::vector>> getImages() const; + bool imagesIsSet() const; + void unsetImages(); + void setImages(const std::vector>>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector>> m_Images; + bool m_ImagesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GifSearchResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h b/client/include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h new file mode 100644 index 0000000..dfca007 --- /dev/null +++ b/client/include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h @@ -0,0 +1,65 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GifSearchResponse_images_inner_inner.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GifSearchResponse_images_inner_inner_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GifSearchResponse_images_inner_inner_H_ + + +#include "FastCommentsClient/ModelBase.h" + + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class GifSearchResponse_images_inner_inner + : public ModelBase +{ +public: + GifSearchResponse_images_inner_inner(); + virtual ~GifSearchResponse_images_inner_inner(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GifSearchResponse_images_inner_inner members + + + +protected: +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GifSearchResponse_images_inner_inner_H_ */ diff --git a/client/include/FastCommentsClient/model/HeaderAccountNotification.h b/client/include/FastCommentsClient/model/HeaderAccountNotification.h index 4d06be9..d416b99 100644 --- a/client/include/FastCommentsClient/model/HeaderAccountNotification.h +++ b/client/include/FastCommentsClient/model/HeaderAccountNotification.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_HeaderAccountNotification_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_HeaderAccountNotification_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -106,6 +105,14 @@ class HeaderAccountNotification void unsetCreatedAt(); void setCreatedAt(const utility::datetime& value); + /// + /// Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). + /// + utility::string_t getType() const; + bool typeIsSet() const; + void unsetType(); + void setType(const utility::string_t& value); + protected: utility::string_t m__id; @@ -117,20 +124,27 @@ class HeaderAccountNotification utility::string_t m_Message; bool m_MessageIsSet; - boost::optional> m_MessagesByLocale; + std::map m_MessagesByLocale; + bool m_MessagesByLocaleIsSet; - boost::optional> m_Dates; + std::map m_Dates; + bool m_DatesIsSet; utility::string_t m_Severity; bool m_SeverityIsSet; - boost::optional m_LinkUrl; + utility::string_t m_LinkUrl; + bool m_LinkUrlIsSet; - boost::optional m_LinkText; + utility::string_t m_LinkText; + bool m_LinkTextIsSet; utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; + utility::string_t m_Type; + bool m_TypeIsSet; + }; diff --git a/client/include/FastCommentsClient/model/HeaderState.h b/client/include/FastCommentsClient/model/HeaderState.h index 3d91435..e88a08d 100644 --- a/client/include/FastCommentsClient/model/HeaderState.h +++ b/client/include/FastCommentsClient/model/HeaderState.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_HeaderState_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/IgnoredResponse.h b/client/include/FastCommentsClient/model/IgnoredResponse.h index 58c9f6d..ab8bcb8 100644 --- a/client/include/FastCommentsClient/model/IgnoredResponse.h +++ b/client/include/FastCommentsClient/model/IgnoredResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_IgnoredResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ImageContentProfanityLevel.h b/client/include/FastCommentsClient/model/ImageContentProfanityLevel.h index c3ff727..0dd5b65 100644 --- a/client/include/FastCommentsClient/model/ImageContentProfanityLevel.h +++ b/client/include/FastCommentsClient/model/ImageContentProfanityLevel.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ImageContentProfanityLevel_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ImageContentProfanityLevel_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h b/client/include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h new file mode 100644 index 0000000..17c6b03 --- /dev/null +++ b/client/include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h @@ -0,0 +1,88 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ImportedAgentApprovalNotificationFrequency.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ImportedAgentApprovalNotificationFrequency_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ImportedAgentApprovalNotificationFrequency_H_ + + +#include "FastCommentsClient/ModelBase.h" + + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + +class ImportedAgentApprovalNotificationFrequency + : public ModelBase +{ +public: + ImportedAgentApprovalNotificationFrequency(); + ImportedAgentApprovalNotificationFrequency(utility::string_t str); + operator utility::string_t() const { + return enumToStrMap.at(getValue()); + } + + + virtual ~ImportedAgentApprovalNotificationFrequency(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + enum class eImportedAgentApprovalNotificationFrequency + { + _1, + _0, + _12, + _2, + }; + + eImportedAgentApprovalNotificationFrequency getValue() const; + void setValue(eImportedAgentApprovalNotificationFrequency const value); + + protected: + eImportedAgentApprovalNotificationFrequency m_value; + std::map enumToStrMap = { + { eImportedAgentApprovalNotificationFrequency::_1, _XPLATSTR("_1") }, + { eImportedAgentApprovalNotificationFrequency::_0, _XPLATSTR("_0") }, + { eImportedAgentApprovalNotificationFrequency::_12, _XPLATSTR("_12") }, + { eImportedAgentApprovalNotificationFrequency::_2, _XPLATSTR("_2") } +}; + std::map strToEnumMap = { + { _XPLATSTR("_1"), eImportedAgentApprovalNotificationFrequency::_1 }, + { _XPLATSTR("_0"), eImportedAgentApprovalNotificationFrequency::_0 }, + { _XPLATSTR("_12"), eImportedAgentApprovalNotificationFrequency::_12 }, + { _XPLATSTR("_2"), eImportedAgentApprovalNotificationFrequency::_2 } +}; + +}; + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ImportedAgentApprovalNotificationFrequency_H_ */ diff --git a/client/include/FastCommentsClient/model/ImportedSiteType.h b/client/include/FastCommentsClient/model/ImportedSiteType.h index a24935e..b78e8c0 100644 --- a/client/include/FastCommentsClient/model/ImportedSiteType.h +++ b/client/include/FastCommentsClient/model/ImportedSiteType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ImportedSiteType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ImportedSiteType_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/LiveEvent.h b/client/include/FastCommentsClient/model/LiveEvent.h index d73cae1..9f95ca9 100644 --- a/client/include/FastCommentsClient/model/LiveEvent.h +++ b/client/include/FastCommentsClient/model/LiveEvent.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_LiveEvent_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -146,6 +145,11 @@ class LiveEvent void unsetUl(); void setUl(const std::vector& value); + int32_t getSc() const; + bool scIsSet() const; + void unsetSc(); + void setSc(int32_t value); + std::map getChanges() const; bool changesIsSet() const; void unsetChanges(); @@ -198,6 +202,9 @@ class LiveEvent std::vector m_Ul; bool m_UlIsSet; + int32_t m_Sc; + bool m_ScIsSet; + std::map m_Changes; bool m_ChangesIsSet; diff --git a/client/include/FastCommentsClient/model/LiveEventType.h b/client/include/FastCommentsClient/model/LiveEventType.h index 829a558..56f84f8 100644 --- a/client/include/FastCommentsClient/model/LiveEventType.h +++ b/client/include/FastCommentsClient/model/LiveEventType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_LiveEventType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_LiveEventType_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -72,6 +71,12 @@ class LiveEventType NEW_FEED_POST, UPDATED_FEED_POST, DELETED_FEED_POST, + NEW_TICKET, + UPDATED_TICKET_STATE, + UPDATED_TICKET_ASSIGNMENT, + DELETED_TICKET, + PAGE_REACT, + QUESTION_RESULT, }; eLiveEventType getValue() const; @@ -96,7 +101,13 @@ class LiveEventType { eLiveEventType::DFR, _XPLATSTR("DFR") }, { eLiveEventType::NEW_FEED_POST, _XPLATSTR("NEW_FEED_POST") }, { eLiveEventType::UPDATED_FEED_POST, _XPLATSTR("UPDATED_FEED_POST") }, - { eLiveEventType::DELETED_FEED_POST, _XPLATSTR("DELETED_FEED_POST") } + { eLiveEventType::DELETED_FEED_POST, _XPLATSTR("DELETED_FEED_POST") }, + { eLiveEventType::NEW_TICKET, _XPLATSTR("NEW_TICKET") }, + { eLiveEventType::UPDATED_TICKET_STATE, _XPLATSTR("UPDATED_TICKET_STATE") }, + { eLiveEventType::UPDATED_TICKET_ASSIGNMENT, _XPLATSTR("UPDATED_TICKET_ASSIGNMENT") }, + { eLiveEventType::DELETED_TICKET, _XPLATSTR("DELETED_TICKET") }, + { eLiveEventType::PAGE_REACT, _XPLATSTR("PAGE_REACT") }, + { eLiveEventType::QUESTION_RESULT, _XPLATSTR("QUESTION_RESULT") } }; std::map strToEnumMap = { { _XPLATSTR("UPDATE_BADGES"), eLiveEventType::UPDATE_BADGES }, @@ -115,7 +126,13 @@ class LiveEventType { _XPLATSTR("DFR"), eLiveEventType::DFR }, { _XPLATSTR("NEW_FEED_POST"), eLiveEventType::NEW_FEED_POST }, { _XPLATSTR("UPDATED_FEED_POST"), eLiveEventType::UPDATED_FEED_POST }, - { _XPLATSTR("DELETED_FEED_POST"), eLiveEventType::DELETED_FEED_POST } + { _XPLATSTR("DELETED_FEED_POST"), eLiveEventType::DELETED_FEED_POST }, + { _XPLATSTR("NEW_TICKET"), eLiveEventType::NEW_TICKET }, + { _XPLATSTR("UPDATED_TICKET_STATE"), eLiveEventType::UPDATED_TICKET_STATE }, + { _XPLATSTR("UPDATED_TICKET_ASSIGNMENT"), eLiveEventType::UPDATED_TICKET_ASSIGNMENT }, + { _XPLATSTR("DELETED_TICKET"), eLiveEventType::DELETED_TICKET }, + { _XPLATSTR("PAGE_REACT"), eLiveEventType::PAGE_REACT }, + { _XPLATSTR("QUESTION_RESULT"), eLiveEventType::QUESTION_RESULT } }; }; diff --git a/client/include/FastCommentsClient/model/LiveEvent_extraInfo.h b/client/include/FastCommentsClient/model/LiveEvent_extraInfo.h index 05be37e..44fa86a 100644 --- a/client/include/FastCommentsClient/model/LiveEvent_extraInfo.h +++ b/client/include/FastCommentsClient/model/LiveEvent_extraInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_LiveEvent_extraInfo_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_LiveEvent_extraInfo_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/LockComment_200_response.h b/client/include/FastCommentsClient/model/LockComment_200_response.h deleted file mode 100644 index 7d909dd..0000000 --- a/client/include/FastCommentsClient/model/LockComment_200_response.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * LockComment_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_LockComment_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_LockComment_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class LockComment_200_response - : public ModelBase -{ -public: - LockComment_200_response(); - virtual ~LockComment_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// LockComment_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_LockComment_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/MediaAsset.h b/client/include/FastCommentsClient/model/MediaAsset.h index 3fc3fe3..9fcc4b6 100644 --- a/client/include/FastCommentsClient/model/MediaAsset.h +++ b/client/include/FastCommentsClient/model/MediaAsset.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_MediaAsset_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_MediaAsset_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/MentionAutoCompleteMode.h b/client/include/FastCommentsClient/model/MentionAutoCompleteMode.h index 55c0135..8d227b4 100644 --- a/client/include/FastCommentsClient/model/MentionAutoCompleteMode.h +++ b/client/include/FastCommentsClient/model/MentionAutoCompleteMode.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_MentionAutoCompleteMode_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_MentionAutoCompleteMode_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/MetaItem.h b/client/include/FastCommentsClient/model/MetaItem.h index 493ed56..791cf13 100644 --- a/client/include/FastCommentsClient/model/MetaItem.h +++ b/client/include/FastCommentsClient/model/MetaItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_MetaItem_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_MetaItem_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h b/client/include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h new file mode 100644 index 0000000..43d9659 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h @@ -0,0 +1,86 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationAPIChildCommentsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIChildCommentsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIChildCommentsResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationAPIComment.h" +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationAPIComment; + + +class ModerationAPIChildCommentsResponse + : public ModelBase +{ +public: + ModerationAPIChildCommentsResponse(); + virtual ~ModerationAPIChildCommentsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationAPIChildCommentsResponse members + + + std::vector> getComments() const; + bool commentsIsSet() const; + void unsetComments(); + void setComments(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector> m_Comments; + bool m_CommentsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIChildCommentsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationAPIComment.h b/client/include/FastCommentsClient/model/ModerationAPIComment.h new file mode 100644 index 0000000..9f4311b --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPIComment.h @@ -0,0 +1,405 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationAPIComment.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIComment_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIComment_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CommentUserBadgeInfo.h" +#include +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CommentUserBadgeInfo; + + +class ModerationAPIComment + : public ModelBase +{ +public: + ModerationAPIComment(); + virtual ~ModerationAPIComment(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationAPIComment members + + + bool isIsLocalDeleted() const; + bool isLocalDeletedIsSet() const; + void unsetIsLocalDeleted(); + void setIsLocalDeleted(bool value); + + double getReplyCount() const; + bool replyCountIsSet() const; + void unsetReplyCount(); + void setReplyCount(double value); + + std::vector getFeedbackResults() const; + bool feedbackResultsIsSet() const; + void unsetFeedbackResults(); + void setFeedbackResults(const std::vector& value); + + bool isIsVotedUp() const; + bool isVotedUpIsSet() const; + void unsetIsVotedUp(); + void setIsVotedUp(bool value); + + bool isIsVotedDown() const; + bool isVotedDownIsSet() const; + void unsetIsVotedDown(); + void setIsVotedDown(bool value); + + utility::string_t getMyVoteId() const; + bool myVoteIdIsSet() const; + void unsetMyVoteId(); + void setMyVoteId(const utility::string_t& value); + + utility::string_t getId() const; + bool idIsSet() const; + void unset_id(); + void setId(const utility::string_t& value); + + utility::string_t getTenantId() const; + bool tenantIdIsSet() const; + void unsetTenantId(); + void setTenantId(const utility::string_t& value); + + utility::string_t getUrlId() const; + bool urlIdIsSet() const; + void unsetUrlId(); + void setUrlId(const utility::string_t& value); + + utility::string_t getUrl() const; + bool urlIsSet() const; + void unsetUrl(); + void setUrl(const utility::string_t& value); + + utility::string_t getPageTitle() const; + bool pageTitleIsSet() const; + void unsetPageTitle(); + void setPageTitle(const utility::string_t& value); + + utility::string_t getUserId() const; + bool userIdIsSet() const; + void unsetUserId(); + void setUserId(const utility::string_t& value); + + utility::string_t getAnonUserId() const; + bool anonUserIdIsSet() const; + void unsetAnonUserId(); + void setAnonUserId(const utility::string_t& value); + + utility::string_t getCommenterName() const; + bool commenterNameIsSet() const; + void unsetCommenterName(); + void setCommenterName(const utility::string_t& value); + + utility::string_t getCommenterLink() const; + bool commenterLinkIsSet() const; + void unsetCommenterLink(); + void setCommenterLink(const utility::string_t& value); + + utility::string_t getCommentHTML() const; + bool commentHTMLIsSet() const; + void unsetCommentHTML(); + void setCommentHTML(const utility::string_t& value); + + utility::string_t getParentId() const; + bool parentIdIsSet() const; + void unsetParentId(); + void setParentId(const utility::string_t& value); + + utility::datetime getDate() const; + bool dateIsSet() const; + void unsetdate(); + void setDate(const utility::datetime& value); + + utility::string_t getLocalDateString() const; + bool localDateStringIsSet() const; + void unsetLocalDateString(); + void setLocalDateString(const utility::string_t& value); + + double getVotes() const; + bool votesIsSet() const; + void unsetVotes(); + void setVotes(double value); + + double getVotesUp() const; + bool votesUpIsSet() const; + void unsetVotesUp(); + void setVotesUp(double value); + + double getVotesDown() const; + bool votesDownIsSet() const; + void unsetVotesDown(); + void setVotesDown(double value); + + utility::datetime getExpireAt() const; + bool expireAtIsSet() const; + void unsetExpireAt(); + void setExpireAt(const utility::datetime& value); + + bool isReviewed() const; + bool reviewedIsSet() const; + void unsetReviewed(); + void setReviewed(bool value); + + utility::string_t getAvatarSrc() const; + bool avatarSrcIsSet() const; + void unsetAvatarSrc(); + void setAvatarSrc(const utility::string_t& value); + + bool isIsSpam() const; + bool isSpamIsSet() const; + void unsetIsSpam(); + void setIsSpam(bool value); + + bool isPermNotSpam() const; + bool permNotSpamIsSet() const; + void unsetPermNotSpam(); + void setPermNotSpam(bool value); + + bool isHasLinks() const; + bool hasLinksIsSet() const; + void unsetHasLinks(); + void setHasLinks(bool value); + + bool isHasCode() const; + bool hasCodeIsSet() const; + void unsetHasCode(); + void setHasCode(bool value); + + bool isApproved() const; + bool approvedIsSet() const; + void unsetApproved(); + void setApproved(bool value); + + utility::string_t getLocale() const; + bool localeIsSet() const; + void unsetLocale(); + void setLocale(const utility::string_t& value); + + bool isIsBannedUser() const; + bool isBannedUserIsSet() const; + void unsetIsBannedUser(); + void setIsBannedUser(bool value); + + bool isIsByAdmin() const; + bool isByAdminIsSet() const; + void unsetIsByAdmin(); + void setIsByAdmin(bool value); + + bool isIsByModerator() const; + bool isByModeratorIsSet() const; + void unsetIsByModerator(); + void setIsByModerator(bool value); + + bool isIsPinned() const; + bool isPinnedIsSet() const; + void unsetIsPinned(); + void setIsPinned(bool value); + + bool isIsLocked() const; + bool isLockedIsSet() const; + void unsetIsLocked(); + void setIsLocked(bool value); + + double getFlagCount() const; + bool flagCountIsSet() const; + void unsetFlagCount(); + void setFlagCount(double value); + + utility::string_t getDisplayLabel() const; + bool displayLabelIsSet() const; + void unsetDisplayLabel(); + void setDisplayLabel(const utility::string_t& value); + + std::vector> getBadges() const; + bool badgesIsSet() const; + void unsetBadges(); + void setBadges(const std::vector>& value); + + bool isVerified() const; + bool verifiedIsSet() const; + void unsetVerified(); + void setVerified(bool value); + + std::vector getFeedbackIds() const; + bool feedbackIdsIsSet() const; + void unsetFeedbackIds(); + void setFeedbackIds(const std::vector& value); + + bool isIsDeleted() const; + bool isDeletedIsSet() const; + void unsetIsDeleted(); + void setIsDeleted(bool value); + + +protected: + bool m_IsLocalDeleted; + bool m_IsLocalDeletedIsSet; + + double m_ReplyCount; + bool m_ReplyCountIsSet; + + std::vector m_FeedbackResults; + bool m_FeedbackResultsIsSet; + + bool m_IsVotedUp; + bool m_IsVotedUpIsSet; + + bool m_IsVotedDown; + bool m_IsVotedDownIsSet; + + utility::string_t m_MyVoteId; + bool m_MyVoteIdIsSet; + + utility::string_t m__id; + bool m__idIsSet; + + utility::string_t m_TenantId; + bool m_TenantIdIsSet; + + utility::string_t m_UrlId; + bool m_UrlIdIsSet; + + utility::string_t m_Url; + bool m_UrlIsSet; + + utility::string_t m_PageTitle; + bool m_PageTitleIsSet; + + utility::string_t m_UserId; + bool m_UserIdIsSet; + + utility::string_t m_AnonUserId; + bool m_AnonUserIdIsSet; + + utility::string_t m_CommenterName; + bool m_CommenterNameIsSet; + + utility::string_t m_CommenterLink; + bool m_CommenterLinkIsSet; + + utility::string_t m_CommentHTML; + bool m_CommentHTMLIsSet; + + utility::string_t m_ParentId; + bool m_ParentIdIsSet; + + utility::datetime m_date; + bool m_dateIsSet; + + utility::string_t m_LocalDateString; + bool m_LocalDateStringIsSet; + + double m_Votes; + bool m_VotesIsSet; + + double m_VotesUp; + bool m_VotesUpIsSet; + + double m_VotesDown; + bool m_VotesDownIsSet; + + utility::datetime m_ExpireAt; + bool m_ExpireAtIsSet; + + bool m_Reviewed; + bool m_ReviewedIsSet; + + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; + + bool m_IsSpam; + bool m_IsSpamIsSet; + + bool m_PermNotSpam; + bool m_PermNotSpamIsSet; + + bool m_HasLinks; + bool m_HasLinksIsSet; + + bool m_HasCode; + bool m_HasCodeIsSet; + + bool m_Approved; + bool m_ApprovedIsSet; + + utility::string_t m_Locale; + bool m_LocaleIsSet; + + bool m_IsBannedUser; + bool m_IsBannedUserIsSet; + + bool m_IsByAdmin; + bool m_IsByAdminIsSet; + + bool m_IsByModerator; + bool m_IsByModeratorIsSet; + + bool m_IsPinned; + bool m_IsPinnedIsSet; + + bool m_IsLocked; + bool m_IsLockedIsSet; + + double m_FlagCount; + bool m_FlagCountIsSet; + + utility::string_t m_DisplayLabel; + bool m_DisplayLabelIsSet; + + std::vector> m_Badges; + bool m_BadgesIsSet; + + bool m_Verified; + bool m_VerifiedIsSet; + + std::vector m_FeedbackIds; + bool m_FeedbackIdsIsSet; + + bool m_IsDeleted; + bool m_IsDeletedIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIComment_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationAPICommentLog.h b/client/include/FastCommentsClient/model/ModerationAPICommentLog.h new file mode 100644 index 0000000..b6bf5b0 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPICommentLog.h @@ -0,0 +1,98 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationAPICommentLog.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPICommentLog_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPICommentLog_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class ModerationAPICommentLog + : public ModelBase +{ +public: + ModerationAPICommentLog(); + virtual ~ModerationAPICommentLog(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationAPICommentLog members + + + utility::datetime getDate() const; + bool dateIsSet() const; + void unsetdate(); + void setDate(const utility::datetime& value); + + utility::string_t getUsername() const; + bool usernameIsSet() const; + void unsetUsername(); + void setUsername(const utility::string_t& value); + + utility::string_t getActionName() const; + bool actionNameIsSet() const; + void unsetActionName(); + void setActionName(const utility::string_t& value); + + utility::string_t getMessageHTML() const; + bool messageHTMLIsSet() const; + void unsetMessageHTML(); + void setMessageHTML(const utility::string_t& value); + + +protected: + utility::datetime m_date; + bool m_dateIsSet; + + utility::string_t m_Username; + bool m_UsernameIsSet; + + utility::string_t m_ActionName; + bool m_ActionNameIsSet; + + utility::string_t m_MessageHTML; + bool m_MessageHTMLIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPICommentLog_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationAPICommentResponse.h b/client/include/FastCommentsClient/model/ModerationAPICommentResponse.h new file mode 100644 index 0000000..f7678a8 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPICommentResponse.h @@ -0,0 +1,85 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationAPICommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPICommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPICommentResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationAPIComment.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationAPIComment; + + +class ModerationAPICommentResponse + : public ModelBase +{ +public: + ModerationAPICommentResponse(); + virtual ~ModerationAPICommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationAPICommentResponse members + + + std::shared_ptr getComment() const; + bool commentIsSet() const; + void unsetComment(); + void setComment(const std::shared_ptr& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Comment; + bool m_CommentIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPICommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h b/client/include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h new file mode 100644 index 0000000..9cc190f --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h @@ -0,0 +1,83 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationAPICountCommentsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPICountCommentsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPICountCommentsResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class ModerationAPICountCommentsResponse + : public ModelBase +{ +public: + ModerationAPICountCommentsResponse(); + virtual ~ModerationAPICountCommentsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationAPICountCommentsResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + double getCount() const; + bool countIsSet() const; + void unsetCount(); + void setCount(double value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + double m_Count; + bool m_CountIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPICountCommentsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h b/client/include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h new file mode 100644 index 0000000..68125f5 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h @@ -0,0 +1,93 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationAPIGetCommentIdsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIGetCommentIdsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIGetCommentIdsResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class ModerationAPIGetCommentIdsResponse + : public ModelBase +{ +public: + ModerationAPIGetCommentIdsResponse(); + virtual ~ModerationAPIGetCommentIdsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationAPIGetCommentIdsResponse members + + + std::vector getIds() const; + bool idsIsSet() const; + void unsetIds(); + void setIds(const std::vector& value); + + bool isHasMore() const; + bool hasMoreIsSet() const; + void unsetHasMore(); + void setHasMore(bool value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector m_Ids; + bool m_IdsIsSet; + + bool m_HasMore; + bool m_HasMoreIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIGetCommentIdsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h b/client/include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h new file mode 100644 index 0000000..d84cffb --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h @@ -0,0 +1,105 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationAPIGetCommentsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIGetCommentsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIGetCommentsResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationAPIComment.h" +#include "FastCommentsClient/model/ModerationFilter.h" +#include "FastCommentsClient/Object.h" +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationAPIComment; +class ModerationFilter; + + +class ModerationAPIGetCommentsResponse + : public ModelBase +{ +public: + ModerationAPIGetCommentsResponse(); + virtual ~ModerationAPIGetCommentsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationAPIGetCommentsResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getTranslations() const; + bool translationsIsSet() const; + void unsetTranslations(); + void setTranslations(const std::shared_ptr& value); + + std::vector> getComments() const; + bool commentsIsSet() const; + void unsetComments(); + void setComments(const std::vector>& value); + + std::shared_ptr getModerationFilter() const; + bool moderationFilterIsSet() const; + void unsetModerationFilter(); + void setModerationFilter(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Translations; + bool m_TranslationsIsSet; + + std::vector> m_Comments; + bool m_CommentsIsSet; + + std::shared_ptr m_ModerationFilter; + bool m_ModerationFilterIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIGetCommentsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h b/client/include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h new file mode 100644 index 0000000..a4c832c --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h @@ -0,0 +1,86 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationAPIGetLogsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIGetLogsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIGetLogsResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationAPICommentLog.h" +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationAPICommentLog; + + +class ModerationAPIGetLogsResponse + : public ModelBase +{ +public: + ModerationAPIGetLogsResponse(); + virtual ~ModerationAPIGetLogsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationAPIGetLogsResponse members + + + std::vector> getLogs() const; + bool logsIsSet() const; + void unsetLogs(); + void setLogs(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector> m_Logs; + bool m_LogsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIGetLogsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationCommentSearchResponse.h b/client/include/FastCommentsClient/model/ModerationCommentSearchResponse.h new file mode 100644 index 0000000..a197a56 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationCommentSearchResponse.h @@ -0,0 +1,83 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationCommentSearchResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationCommentSearchResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationCommentSearchResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class ModerationCommentSearchResponse + : public ModelBase +{ +public: + ModerationCommentSearchResponse(); + virtual ~ModerationCommentSearchResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationCommentSearchResponse members + + + int32_t getCommentCount() const; + bool commentCountIsSet() const; + void unsetCommentCount(); + void setCommentCount(int32_t value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + int32_t m_CommentCount; + bool m_CommentCountIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationCommentSearchResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationExportResponse.h b/client/include/FastCommentsClient/model/ModerationExportResponse.h new file mode 100644 index 0000000..6435736 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationExportResponse.h @@ -0,0 +1,82 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationExportResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationExportResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationExportResponse_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class ModerationExportResponse + : public ModelBase +{ +public: + ModerationExportResponse(); + virtual ~ModerationExportResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationExportResponse members + + + utility::string_t getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const utility::string_t& value); + + utility::string_t getBatchJobId() const; + bool batchJobIdIsSet() const; + void unsetBatchJobId(); + void setBatchJobId(const utility::string_t& value); + + +protected: + utility::string_t m_Status; + bool m_StatusIsSet; + + utility::string_t m_BatchJobId; + bool m_BatchJobIdIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationExportResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationExportStatusResponse.h b/client/include/FastCommentsClient/model/ModerationExportStatusResponse.h new file mode 100644 index 0000000..3dd5d37 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationExportStatusResponse.h @@ -0,0 +1,98 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationExportStatusResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationExportStatusResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationExportStatusResponse_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class ModerationExportStatusResponse + : public ModelBase +{ +public: + ModerationExportStatusResponse(); + virtual ~ModerationExportStatusResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationExportStatusResponse members + + + utility::string_t getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const utility::string_t& value); + + utility::string_t getJobStatus() const; + bool jobStatusIsSet() const; + void unsetJobStatus(); + void setJobStatus(const utility::string_t& value); + + int32_t getRecordCount() const; + bool recordCountIsSet() const; + void unsetRecordCount(); + void setRecordCount(int32_t value); + + utility::string_t getDownloadUrl() const; + bool downloadUrlIsSet() const; + void unsetDownloadUrl(); + void setDownloadUrl(const utility::string_t& value); + + +protected: + utility::string_t m_Status; + bool m_StatusIsSet; + + utility::string_t m_JobStatus; + bool m_JobStatusIsSet; + + int32_t m_RecordCount; + bool m_RecordCountIsSet; + + utility::string_t m_DownloadUrl; + bool m_DownloadUrlIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationExportStatusResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationFilter.h b/client/include/FastCommentsClient/model/ModerationFilter.h new file mode 100644 index 0000000..da65e1a --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationFilter.h @@ -0,0 +1,169 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationFilter.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationFilter_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationFilter_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class ModerationFilter + : public ModelBase +{ +public: + ModerationFilter(); + virtual ~ModerationFilter(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationFilter members + + + bool isReviewed() const; + bool reviewedIsSet() const; + void unsetReviewed(); + void setReviewed(bool value); + + bool isApproved() const; + bool approvedIsSet() const; + void unsetApproved(); + void setApproved(bool value); + + bool isIsSpam() const; + bool isSpamIsSet() const; + void unsetIsSpam(); + void setIsSpam(bool value); + + bool isIsBannedUser() const; + bool isBannedUserIsSet() const; + void unsetIsBannedUser(); + void setIsBannedUser(bool value); + + bool isIsLocked() const; + bool isLockedIsSet() const; + void unsetIsLocked(); + void setIsLocked(bool value); + + double getFlagCountGt() const; + bool flagCountGtIsSet() const; + void unsetFlagCountGt(); + void setFlagCountGt(double value); + + utility::string_t getUserId() const; + bool userIdIsSet() const; + void unsetUserId(); + void setUserId(const utility::string_t& value); + + utility::string_t getUrlId() const; + bool urlIdIsSet() const; + void unsetUrlId(); + void setUrlId(const utility::string_t& value); + + utility::string_t getDomain() const; + bool domainIsSet() const; + void unsetDomain(); + void setDomain(const utility::string_t& value); + + std::vector getModerationGroupIds() const; + bool moderationGroupIdsIsSet() const; + void unsetModerationGroupIds(); + void setModerationGroupIds(const std::vector& value); + + /// + /// Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match. + /// + std::vector getCommentTextSearch() const; + bool commentTextSearchIsSet() const; + void unsetCommentTextSearch(); + void setCommentTextSearch(const std::vector& value); + + /// + /// Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly (case-sensitive, full-string), as opposed to the substring matching of commentTextSearch. + /// + utility::string_t getExactCommentText() const; + bool exactCommentTextIsSet() const; + void unsetExactCommentText(); + void setExactCommentText(const utility::string_t& value); + + +protected: + bool m_Reviewed; + bool m_ReviewedIsSet; + + bool m_Approved; + bool m_ApprovedIsSet; + + bool m_IsSpam; + bool m_IsSpamIsSet; + + bool m_IsBannedUser; + bool m_IsBannedUserIsSet; + + bool m_IsLocked; + bool m_IsLockedIsSet; + + double m_FlagCountGt; + bool m_FlagCountGtIsSet; + + utility::string_t m_UserId; + bool m_UserIdIsSet; + + utility::string_t m_UrlId; + bool m_UrlIdIsSet; + + utility::string_t m_Domain; + bool m_DomainIsSet; + + std::vector m_ModerationGroupIds; + bool m_ModerationGroupIdsIsSet; + + std::vector m_CommentTextSearch; + bool m_CommentTextSearchIsSet; + + utility::string_t m_ExactCommentText; + bool m_ExactCommentTextIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationFilter_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationPageSearchProjected.h b/client/include/FastCommentsClient/model/ModerationPageSearchProjected.h new file mode 100644 index 0000000..6f9d77b --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationPageSearchProjected.h @@ -0,0 +1,98 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationPageSearchProjected.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationPageSearchProjected_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationPageSearchProjected_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class ModerationPageSearchProjected + : public ModelBase +{ +public: + ModerationPageSearchProjected(); + virtual ~ModerationPageSearchProjected(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationPageSearchProjected members + + + utility::string_t getUrlId() const; + bool urlIdIsSet() const; + void unsetUrlId(); + void setUrlId(const utility::string_t& value); + + utility::string_t getUrl() const; + bool urlIsSet() const; + void unsetUrl(); + void setUrl(const utility::string_t& value); + + utility::string_t getTitle() const; + bool titleIsSet() const; + void unsetTitle(); + void setTitle(const utility::string_t& value); + + double getCommentCount() const; + bool commentCountIsSet() const; + void unsetCommentCount(); + void setCommentCount(double value); + + +protected: + utility::string_t m_UrlId; + bool m_UrlIdIsSet; + + utility::string_t m_Url; + bool m_UrlIsSet; + + utility::string_t m_Title; + bool m_TitleIsSet; + + double m_CommentCount; + bool m_CommentCountIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationPageSearchProjected_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationPageSearchResponse.h b/client/include/FastCommentsClient/model/ModerationPageSearchResponse.h new file mode 100644 index 0000000..b1977ad --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationPageSearchResponse.h @@ -0,0 +1,86 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationPageSearchResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationPageSearchResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationPageSearchResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationPageSearchProjected.h" +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationPageSearchProjected; + + +class ModerationPageSearchResponse + : public ModelBase +{ +public: + ModerationPageSearchResponse(); + virtual ~ModerationPageSearchResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationPageSearchResponse members + + + std::vector> getPages() const; + bool pagesIsSet() const; + void unsetPages(); + void setPages(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector> m_Pages; + bool m_PagesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationPageSearchResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationSiteSearchProjected.h b/client/include/FastCommentsClient/model/ModerationSiteSearchProjected.h new file mode 100644 index 0000000..b9c1a69 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationSiteSearchProjected.h @@ -0,0 +1,82 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationSiteSearchProjected.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSiteSearchProjected_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSiteSearchProjected_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class ModerationSiteSearchProjected + : public ModelBase +{ +public: + ModerationSiteSearchProjected(); + virtual ~ModerationSiteSearchProjected(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationSiteSearchProjected members + + + utility::string_t getDomain() const; + bool domainIsSet() const; + void unsetDomain(); + void setDomain(const utility::string_t& value); + + utility::string_t getLogoSrc100px() const; + bool logoSrc100pxIsSet() const; + void unsetLogoSrc100px(); + void setLogoSrc100px(const utility::string_t& value); + + +protected: + utility::string_t m_Domain; + bool m_DomainIsSet; + + utility::string_t m_LogoSrc100px; + bool m_LogoSrc100pxIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSiteSearchProjected_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationSiteSearchResponse.h b/client/include/FastCommentsClient/model/ModerationSiteSearchResponse.h new file mode 100644 index 0000000..0335e60 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationSiteSearchResponse.h @@ -0,0 +1,86 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationSiteSearchResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSiteSearchResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSiteSearchResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationSiteSearchProjected.h" +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationSiteSearchProjected; + + +class ModerationSiteSearchResponse + : public ModelBase +{ +public: + ModerationSiteSearchResponse(); + virtual ~ModerationSiteSearchResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationSiteSearchResponse members + + + std::vector> getSites() const; + bool sitesIsSet() const; + void unsetSites(); + void setSites(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector> m_Sites; + bool m_SitesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSiteSearchResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationSuggestResponse.h b/client/include/FastCommentsClient/model/ModerationSuggestResponse.h new file mode 100644 index 0000000..83dd1dd --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationSuggestResponse.h @@ -0,0 +1,103 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationSuggestResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSuggestResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSuggestResponse_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationUserSearchProjected.h" +#include +#include "FastCommentsClient/model/ModerationPageSearchProjected.h" +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationPageSearchProjected; +class ModerationUserSearchProjected; + + +class ModerationSuggestResponse + : public ModelBase +{ +public: + ModerationSuggestResponse(); + virtual ~ModerationSuggestResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationSuggestResponse members + + + utility::string_t getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const utility::string_t& value); + + std::vector> getPages() const; + bool pagesIsSet() const; + void unsetPages(); + void setPages(const std::vector>& value); + + std::vector> getUsers() const; + bool usersIsSet() const; + void unsetUsers(); + void setUsers(const std::vector>& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + +protected: + utility::string_t m_Status; + bool m_StatusIsSet; + + std::vector> m_Pages; + bool m_PagesIsSet; + + std::vector> m_Users; + bool m_UsersIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSuggestResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationUserSearchProjected.h b/client/include/FastCommentsClient/model/ModerationUserSearchProjected.h new file mode 100644 index 0000000..6223bb3 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationUserSearchProjected.h @@ -0,0 +1,98 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationUserSearchProjected.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationUserSearchProjected_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationUserSearchProjected_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class ModerationUserSearchProjected + : public ModelBase +{ +public: + ModerationUserSearchProjected(); + virtual ~ModerationUserSearchProjected(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationUserSearchProjected members + + + utility::string_t getId() const; + bool idIsSet() const; + void unset_id(); + void setId(const utility::string_t& value); + + utility::string_t getUsername() const; + bool usernameIsSet() const; + void unsetUsername(); + void setUsername(const utility::string_t& value); + + utility::string_t getDisplayName() const; + bool displayNameIsSet() const; + void unsetDisplayName(); + void setDisplayName(const utility::string_t& value); + + utility::string_t getAvatarSrc() const; + bool avatarSrcIsSet() const; + void unsetAvatarSrc(); + void setAvatarSrc(const utility::string_t& value); + + +protected: + utility::string_t m__id; + bool m__idIsSet; + + utility::string_t m_Username; + bool m_UsernameIsSet; + + utility::string_t m_DisplayName; + bool m_DisplayNameIsSet; + + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationUserSearchProjected_H_ */ diff --git a/client/include/FastCommentsClient/model/ModerationUserSearchResponse.h b/client/include/FastCommentsClient/model/ModerationUserSearchResponse.h new file mode 100644 index 0000000..161bf91 --- /dev/null +++ b/client/include/FastCommentsClient/model/ModerationUserSearchResponse.h @@ -0,0 +1,86 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ModerationUserSearchResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationUserSearchResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationUserSearchResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationUserSearchProjected.h" +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationUserSearchProjected; + + +class ModerationUserSearchResponse + : public ModelBase +{ +public: + ModerationUserSearchResponse(); + virtual ~ModerationUserSearchResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ModerationUserSearchResponse members + + + std::vector> getUsers() const; + bool usersIsSet() const; + void unsetUsers(); + void setUsers(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector> m_Users; + bool m_UsersIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationUserSearchResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/Moderator.h b/client/include/FastCommentsClient/model/Moderator.h index 3bd849f..419d52c 100644 --- a/client/include/FastCommentsClient/model/Moderator.h +++ b/client/include/FastCommentsClient/model/Moderator.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_Moderator_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_Moderator_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -158,14 +157,17 @@ class Moderator utility::string_t m_TenantId; bool m_TenantIdIsSet; - boost::optional m_Name; + utility::string_t m_Name; + bool m_NameIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; bool m_AcceptedInvite; bool m_AcceptedInviteIsSet; - boost::optional m_Email; + utility::string_t m_Email; + bool m_EmailIsSet; double m_MarkReviewedCount; bool m_MarkReviewedCountIsSet; @@ -194,12 +196,14 @@ class Moderator double m_UnFlaggedCount; bool m_UnFlaggedCountIsSet; - boost::optional m_VerificationId; + utility::string_t m_VerificationId; + bool m_VerificationIdIsSet; utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; - boost::optional> m_ModerationGroupIds; + std::vector m_ModerationGroupIds; + bool m_ModerationGroupIdsIsSet; bool m_IsEmailSuppressed; bool m_IsEmailSuppressedIsSet; diff --git a/client/include/FastCommentsClient/model/NotificationAndCount.h b/client/include/FastCommentsClient/model/NotificationAndCount.h index 162fe09..a5bc094 100644 --- a/client/include/FastCommentsClient/model/NotificationAndCount.h +++ b/client/include/FastCommentsClient/model/NotificationAndCount.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_NotificationAndCount_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/NotificationObjectType.h b/client/include/FastCommentsClient/model/NotificationObjectType.h index db4e2f2..ce1f39a 100644 --- a/client/include/FastCommentsClient/model/NotificationObjectType.h +++ b/client/include/FastCommentsClient/model/NotificationObjectType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_NotificationObjectType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_NotificationObjectType_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/NotificationType.h b/client/include/FastCommentsClient/model/NotificationType.h index b4832c1..1e5adac 100644 --- a/client/include/FastCommentsClient/model/NotificationType.h +++ b/client/include/FastCommentsClient/model/NotificationType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_NotificationType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_NotificationType_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PageUserEntry.h b/client/include/FastCommentsClient/model/PageUserEntry.h new file mode 100644 index 0000000..304e67c --- /dev/null +++ b/client/include/FastCommentsClient/model/PageUserEntry.h @@ -0,0 +1,98 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PageUserEntry.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PageUserEntry_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PageUserEntry_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class PageUserEntry + : public ModelBase +{ +public: + PageUserEntry(); + virtual ~PageUserEntry(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PageUserEntry members + + + bool isIsPrivate() const; + bool isPrivateIsSet() const; + void unsetIsPrivate(); + void setIsPrivate(bool value); + + utility::string_t getAvatarSrc() const; + bool avatarSrcIsSet() const; + void unsetAvatarSrc(); + void setAvatarSrc(const utility::string_t& value); + + utility::string_t getDisplayName() const; + bool displayNameIsSet() const; + void unsetDisplayName(); + void setDisplayName(const utility::string_t& value); + + utility::string_t getId() const; + bool idIsSet() const; + void unsetId(); + void setId(const utility::string_t& value); + + +protected: + bool m_IsPrivate; + bool m_IsPrivateIsSet; + + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; + + utility::string_t m_DisplayName; + bool m_DisplayNameIsSet; + + utility::string_t m_Id; + bool m_IdIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PageUserEntry_H_ */ diff --git a/client/include/FastCommentsClient/model/PageUsersInfoResponse.h b/client/include/FastCommentsClient/model/PageUsersInfoResponse.h new file mode 100644 index 0000000..4633952 --- /dev/null +++ b/client/include/FastCommentsClient/model/PageUsersInfoResponse.h @@ -0,0 +1,86 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PageUsersInfoResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PageUsersInfoResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PageUsersInfoResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/PageUserEntry.h" +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class PageUserEntry; + + +class PageUsersInfoResponse + : public ModelBase +{ +public: + PageUsersInfoResponse(); + virtual ~PageUsersInfoResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PageUsersInfoResponse members + + + std::vector> getUsers() const; + bool usersIsSet() const; + void unsetUsers(); + void setUsers(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector> m_Users; + bool m_UsersIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PageUsersInfoResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PageUsersOfflineResponse.h b/client/include/FastCommentsClient/model/PageUsersOfflineResponse.h new file mode 100644 index 0000000..a25455f --- /dev/null +++ b/client/include/FastCommentsClient/model/PageUsersOfflineResponse.h @@ -0,0 +1,103 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PageUsersOfflineResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PageUsersOfflineResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PageUsersOfflineResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/PageUserEntry.h" +#include +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class PageUserEntry; + + +class PageUsersOfflineResponse + : public ModelBase +{ +public: + PageUsersOfflineResponse(); + virtual ~PageUsersOfflineResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PageUsersOfflineResponse members + + + utility::string_t getNextAfterUserId() const; + bool nextAfterUserIdIsSet() const; + void unsetNextAfterUserId(); + void setNextAfterUserId(const utility::string_t& value); + + utility::string_t getNextAfterName() const; + bool nextAfterNameIsSet() const; + void unsetNextAfterName(); + void setNextAfterName(const utility::string_t& value); + + std::vector> getUsers() const; + bool usersIsSet() const; + void unsetUsers(); + void setUsers(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + utility::string_t m_NextAfterUserId; + bool m_NextAfterUserIdIsSet; + + utility::string_t m_NextAfterName; + bool m_NextAfterNameIsSet; + + std::vector> m_Users; + bool m_UsersIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PageUsersOfflineResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PageUsersOnlineResponse.h b/client/include/FastCommentsClient/model/PageUsersOnlineResponse.h new file mode 100644 index 0000000..f436e3b --- /dev/null +++ b/client/include/FastCommentsClient/model/PageUsersOnlineResponse.h @@ -0,0 +1,119 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PageUsersOnlineResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PageUsersOnlineResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PageUsersOnlineResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/PageUserEntry.h" +#include +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class PageUserEntry; + + +class PageUsersOnlineResponse + : public ModelBase +{ +public: + PageUsersOnlineResponse(); + virtual ~PageUsersOnlineResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PageUsersOnlineResponse members + + + utility::string_t getNextAfterUserId() const; + bool nextAfterUserIdIsSet() const; + void unsetNextAfterUserId(); + void setNextAfterUserId(const utility::string_t& value); + + utility::string_t getNextAfterName() const; + bool nextAfterNameIsSet() const; + void unsetNextAfterName(); + void setNextAfterName(const utility::string_t& value); + + double getTotalCount() const; + bool totalCountIsSet() const; + void unsetTotalCount(); + void setTotalCount(double value); + + double getAnonCount() const; + bool anonCountIsSet() const; + void unsetAnonCount(); + void setAnonCount(double value); + + std::vector> getUsers() const; + bool usersIsSet() const; + void unsetUsers(); + void setUsers(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + utility::string_t m_NextAfterUserId; + bool m_NextAfterUserIdIsSet; + + utility::string_t m_NextAfterName; + bool m_NextAfterNameIsSet; + + double m_TotalCount; + bool m_TotalCountIsSet; + + double m_AnonCount; + bool m_AnonCountIsSet; + + std::vector> m_Users; + bool m_UsersIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PageUsersOnlineResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PagesSortBy.h b/client/include/FastCommentsClient/model/PagesSortBy.h new file mode 100644 index 0000000..b916fa9 --- /dev/null +++ b/client/include/FastCommentsClient/model/PagesSortBy.h @@ -0,0 +1,85 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PagesSortBy.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PagesSortBy_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PagesSortBy_H_ + + +#include "FastCommentsClient/ModelBase.h" + + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + +class PagesSortBy + : public ModelBase +{ +public: + PagesSortBy(); + PagesSortBy(utility::string_t str); + operator utility::string_t() const { + return enumToStrMap.at(getValue()); + } + + + virtual ~PagesSortBy(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + enum class ePagesSortBy + { + UPDATEDAT, + COMMENTCOUNT, + TITLE, + }; + + ePagesSortBy getValue() const; + void setValue(ePagesSortBy const value); + + protected: + ePagesSortBy m_value; + std::map enumToStrMap = { + { ePagesSortBy::UPDATEDAT, _XPLATSTR("UPDATEDAT") }, + { ePagesSortBy::COMMENTCOUNT, _XPLATSTR("COMMENTCOUNT") }, + { ePagesSortBy::TITLE, _XPLATSTR("TITLE") } +}; + std::map strToEnumMap = { + { _XPLATSTR("UPDATEDAT"), ePagesSortBy::UPDATEDAT }, + { _XPLATSTR("COMMENTCOUNT"), ePagesSortBy::COMMENTCOUNT }, + { _XPLATSTR("TITLE"), ePagesSortBy::TITLE } +}; + +}; + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PagesSortBy_H_ */ diff --git a/client/include/FastCommentsClient/model/PatchDomainConfigParams.h b/client/include/FastCommentsClient/model/PatchDomainConfigParams.h index 50137cc..b0d5ac2 100644 --- a/client/include/FastCommentsClient/model/PatchDomainConfigParams.h +++ b/client/include/FastCommentsClient/model/PatchDomainConfigParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PatchDomainConfigParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PatchDomainConfigParams_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PatchDomainConfigResponse.h b/client/include/FastCommentsClient/model/PatchDomainConfigResponse.h new file mode 100644 index 0000000..9a798fa --- /dev/null +++ b/client/include/FastCommentsClient/model/PatchDomainConfigResponse.h @@ -0,0 +1,101 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PatchDomainConfigResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PatchDomainConfigResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PatchDomainConfigResponse_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h" +#include "FastCommentsClient/model/AddDomainConfigResponse_anyOf.h" +#include +#include "FastCommentsClient/AnyType.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class PatchDomainConfigResponse + : public ModelBase +{ +public: + PatchDomainConfigResponse(); + virtual ~PatchDomainConfigResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PatchDomainConfigResponse members + + + std::shared_ptr getConfiguration() const; + bool configurationIsSet() const; + void unsetConfiguration(); + void setConfiguration(const std::shared_ptr& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + +protected: + std::shared_ptr m_Configuration; + bool m_ConfigurationIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PatchDomainConfigResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PatchHashTag_200_response.h b/client/include/FastCommentsClient/model/PatchHashTag_200_response.h deleted file mode 100644 index 7eb9d7a..0000000 --- a/client/include/FastCommentsClient/model/PatchHashTag_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PatchHashTag_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PatchHashTag_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PatchHashTag_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/TenantHashTag.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/UpdateHashTagResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class TenantHashTag; -class CustomConfigParameters; - - -class PatchHashTag_200_response - : public ModelBase -{ -public: - PatchHashTag_200_response(); - virtual ~PatchHashTag_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PatchHashTag_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getHashTag() const; - bool hashTagIsSet() const; - void unsetHashTag(); - void setHashTag(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_HashTag; - bool m_HashTagIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PatchHashTag_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/PatchPageAPIResponse.h b/client/include/FastCommentsClient/model/PatchPageAPIResponse.h index 63b99f0..87072a0 100644 --- a/client/include/FastCommentsClient/model/PatchPageAPIResponse.h +++ b/client/include/FastCommentsClient/model/PatchPageAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PatchPageAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PatchPageAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PatchSSOUserAPIResponse.h b/client/include/FastCommentsClient/model/PatchSSOUserAPIResponse.h index d667fc1..c750c3a 100644 --- a/client/include/FastCommentsClient/model/PatchSSOUserAPIResponse.h +++ b/client/include/FastCommentsClient/model/PatchSSOUserAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PatchSSOUserAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PatchSSOUserAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PendingCommentToSyncOutbound.h b/client/include/FastCommentsClient/model/PendingCommentToSyncOutbound.h index e73796c..e011191 100644 --- a/client/include/FastCommentsClient/model/PendingCommentToSyncOutbound.h +++ b/client/include/FastCommentsClient/model/PendingCommentToSyncOutbound.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PendingCommentToSyncOutbound_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PendingCommentToSyncOutbound_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -133,7 +132,8 @@ class PendingCommentToSyncOutbound std::shared_ptr m_Comment; bool m_CommentIsSet; - boost::optional m_ExternalId; + utility::string_t m_ExternalId; + bool m_ExternalIdIsSet; utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; diff --git a/client/include/FastCommentsClient/model/PinComment_200_response.h b/client/include/FastCommentsClient/model/PinComment_200_response.h deleted file mode 100644 index 40b25df..0000000 --- a/client/include/FastCommentsClient/model/PinComment_200_response.h +++ /dev/null @@ -1,151 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PinComment_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PinComment_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PinComment_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/ChangeCommentPinStatusResponse.h" -#include "FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class Record_string__before_string_or_null__after_string_or_null___value; -class CustomConfigParameters; - - -class PinComment_200_response - : public ModelBase -{ -public: - PinComment_200_response(); - virtual ~PinComment_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PinComment_200_response members - - - /// - /// Construct a type with a set of properties K of type T - /// - std::map> getCommentPositions() const; - bool commentPositionsIsSet() const; - void unsetCommentPositions(); - void setCommentPositions(const std::map>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::map> m_CommentPositions; - bool m_CommentPositionsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PinComment_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h b/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h new file mode 100644 index 0000000..573894e --- /dev/null +++ b/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h @@ -0,0 +1,84 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostRemoveCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentResponse_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/DeleteCommentResult.h" +#include "FastCommentsClient/model/RemoveCommentActionResponse.h" +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class PostRemoveCommentResponse + : public ModelBase +{ +public: + PostRemoveCommentResponse(); + virtual ~PostRemoveCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostRemoveCommentResponse members + + + utility::string_t getAction() const; + bool actionIsSet() const; + void unsetAction(); + void setAction(const utility::string_t& value); + + utility::string_t getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const utility::string_t& value); + + +protected: + utility::string_t m_Action; + bool m_ActionIsSet; + + utility::string_t m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PreBanSummary.h b/client/include/FastCommentsClient/model/PreBanSummary.h new file mode 100644 index 0000000..565756a --- /dev/null +++ b/client/include/FastCommentsClient/model/PreBanSummary.h @@ -0,0 +1,93 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PreBanSummary.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PreBanSummary_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PreBanSummary_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class PreBanSummary + : public ModelBase +{ +public: + PreBanSummary(); + virtual ~PreBanSummary(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PreBanSummary members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector getUsernames() const; + bool usernamesIsSet() const; + void unsetUsernames(); + void setUsernames(const std::vector& value); + + double getCount() const; + bool countIsSet() const; + void unsetCount(); + void setCount(double value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector m_Usernames; + bool m_UsernamesIsSet; + + double m_Count; + bool m_CountIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PreBanSummary_H_ */ diff --git a/client/include/FastCommentsClient/model/PubSubComment.h b/client/include/FastCommentsClient/model/PubSubComment.h index e04fc4c..9092745 100644 --- a/client/include/FastCommentsClient/model/PubSubComment.h +++ b/client/include/FastCommentsClient/model/PubSubComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PubSubComment_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PubSubComment_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -280,7 +279,8 @@ class PubSubComment utility::string_t m_TenantId; bool m_TenantIdIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; utility::string_t m_UrlId; bool m_UrlIdIsSet; @@ -288,7 +288,8 @@ class PubSubComment utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - boost::optional m_CommenterLink; + utility::string_t m_CommenterLink; + bool m_CommenterLinkIsSet; utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; @@ -296,18 +297,23 @@ class PubSubComment utility::string_t m_Comment; bool m_CommentIsSet; - boost::optional m_ParentId; + utility::string_t m_ParentId; + bool m_ParentIdIsSet; - boost::optional m_Votes; + int32_t m_Votes; + bool m_VotesIsSet; - boost::optional m_VotesUp; + int32_t m_VotesUp; + bool m_VotesUpIsSet; - boost::optional m_VotesDown; + int32_t m_VotesDown; + bool m_VotesDownIsSet; bool m_Verified; bool m_VerifiedIsSet; - boost::optional m_AvatarSrc; + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; bool m_HasImages; bool m_HasImagesIsSet; @@ -321,17 +327,23 @@ class PubSubComment bool m_IsByModerator; bool m_IsByModeratorIsSet; - boost::optional m_IsPinned; + bool m_IsPinned; + bool m_IsPinnedIsSet; - boost::optional m_IsLocked; + bool m_IsLocked; + bool m_IsLockedIsSet; - boost::optional m_DisplayLabel; + utility::string_t m_DisplayLabel; + bool m_DisplayLabelIsSet; - boost::optional m_Rating; + double m_Rating; + bool m_RatingIsSet; - boost::optional>> m_Badges; + std::vector> m_Badges; + bool m_BadgesIsSet; - boost::optional m_ViewCount; + int64_t m_ViewCount; + bool m_ViewCountIsSet; bool m_IsDeleted; bool m_IsDeletedIsSet; @@ -342,21 +354,26 @@ class PubSubComment bool m_IsSpam; bool m_IsSpamIsSet; - boost::optional m_AnonUserId; + utility::string_t m_AnonUserId; + bool m_AnonUserIdIsSet; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; - boost::optional m_FlagCount; + int32_t m_FlagCount; + bool m_FlagCountIsSet; - boost::optional m_Domain; + utility::string_t m_Domain; + bool m_DomainIsSet; utility::string_t m_Url; bool m_UrlIsSet; - boost::optional m_PageTitle; + utility::string_t m_PageTitle; + bool m_PageTitleIsSet; - boost::optional m_ExpireAt; + utility::datetime m_ExpireAt; + bool m_ExpireAtIsSet; bool m_Reviewed; bool m_ReviewedIsSet; @@ -367,12 +384,14 @@ class PubSubComment bool m_Approved; bool m_ApprovedIsSet; - boost::optional m_Locale; + utility::string_t m_Locale; + bool m_LocaleIsSet; bool m_IsBannedUser; bool m_IsBannedUserIsSet; - boost::optional> m_GroupIds; + std::vector m_GroupIds; + bool m_GroupIdsIsSet; bool m_IsLive; bool m_IsLiveIsSet; diff --git a/client/include/FastCommentsClient/model/PubSubCommentBase.h b/client/include/FastCommentsClient/model/PubSubCommentBase.h index b9bc2f9..161a6af 100644 --- a/client/include/FastCommentsClient/model/PubSubCommentBase.h +++ b/client/include/FastCommentsClient/model/PubSubCommentBase.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PubSubCommentBase_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PubSubCommentBase_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -265,7 +264,8 @@ class PubSubCommentBase utility::string_t m_TenantId; bool m_TenantIdIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; utility::string_t m_UrlId; bool m_UrlIdIsSet; @@ -273,7 +273,8 @@ class PubSubCommentBase utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - boost::optional m_CommenterLink; + utility::string_t m_CommenterLink; + bool m_CommenterLinkIsSet; utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; @@ -281,18 +282,23 @@ class PubSubCommentBase utility::string_t m_Comment; bool m_CommentIsSet; - boost::optional m_ParentId; + utility::string_t m_ParentId; + bool m_ParentIdIsSet; - boost::optional m_Votes; + int32_t m_Votes; + bool m_VotesIsSet; - boost::optional m_VotesUp; + int32_t m_VotesUp; + bool m_VotesUpIsSet; - boost::optional m_VotesDown; + int32_t m_VotesDown; + bool m_VotesDownIsSet; bool m_Verified; bool m_VerifiedIsSet; - boost::optional m_AvatarSrc; + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; bool m_HasImages; bool m_HasImagesIsSet; @@ -306,17 +312,23 @@ class PubSubCommentBase bool m_IsByModerator; bool m_IsByModeratorIsSet; - boost::optional m_IsPinned; + bool m_IsPinned; + bool m_IsPinnedIsSet; - boost::optional m_IsLocked; + bool m_IsLocked; + bool m_IsLockedIsSet; - boost::optional m_DisplayLabel; + utility::string_t m_DisplayLabel; + bool m_DisplayLabelIsSet; - boost::optional m_Rating; + double m_Rating; + bool m_RatingIsSet; - boost::optional>> m_Badges; + std::vector> m_Badges; + bool m_BadgesIsSet; - boost::optional m_ViewCount; + int64_t m_ViewCount; + bool m_ViewCountIsSet; bool m_IsDeleted; bool m_IsDeletedIsSet; @@ -327,21 +339,26 @@ class PubSubCommentBase bool m_IsSpam; bool m_IsSpamIsSet; - boost::optional m_AnonUserId; + utility::string_t m_AnonUserId; + bool m_AnonUserIdIsSet; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; - boost::optional m_FlagCount; + int32_t m_FlagCount; + bool m_FlagCountIsSet; - boost::optional m_Domain; + utility::string_t m_Domain; + bool m_DomainIsSet; utility::string_t m_Url; bool m_UrlIsSet; - boost::optional m_PageTitle; + utility::string_t m_PageTitle; + bool m_PageTitleIsSet; - boost::optional m_ExpireAt; + utility::datetime m_ExpireAt; + bool m_ExpireAtIsSet; bool m_Reviewed; bool m_ReviewedIsSet; @@ -352,12 +369,14 @@ class PubSubCommentBase bool m_Approved; bool m_ApprovedIsSet; - boost::optional m_Locale; + utility::string_t m_Locale; + bool m_LocaleIsSet; bool m_IsBannedUser; bool m_IsBannedUserIsSet; - boost::optional> m_GroupIds; + std::vector m_GroupIds; + bool m_GroupIdsIsSet; }; diff --git a/client/include/FastCommentsClient/model/PubSubVote.h b/client/include/FastCommentsClient/model/PubSubVote.h index 289cf87..5c60b21 100644 --- a/client/include/FastCommentsClient/model/PubSubVote.h +++ b/client/include/FastCommentsClient/model/PubSubVote.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PubSubVote_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PubSubVote_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -116,7 +115,8 @@ class PubSubVote utility::string_t m_CommentId; bool m_CommentIdIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; int32_t m_Direction; bool m_DirectionIsSet; @@ -124,7 +124,8 @@ class PubSubVote int64_t m_CreatedAt; bool m_CreatedAtIsSet; - boost::optional m_VerificationId; + utility::string_t m_VerificationId; + bool m_VerificationIdIsSet; }; diff --git a/client/include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h b/client/include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h index 7d69451..8f0fe59 100644 --- a/client/include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h +++ b/client/include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicAPIDeleteCommentResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h b/client/include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h index a7d4490..4da9434 100644 --- a/client/include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h +++ b/client/include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicAPIGetCommentTextResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h b/client/include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h index 7990015..6386a80 100644 --- a/client/include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h +++ b/client/include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicAPISetCommentTextResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PublicBlockFromCommentParams.h b/client/include/FastCommentsClient/model/PublicBlockFromCommentParams.h index bdc39a3..009293a 100644 --- a/client/include/FastCommentsClient/model/PublicBlockFromCommentParams.h +++ b/client/include/FastCommentsClient/model/PublicBlockFromCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PublicBlockFromCommentParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicBlockFromCommentParams_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -65,7 +64,8 @@ class PublicBlockFromCommentParams protected: - boost::optional> m_CommentIds; + std::vector m_CommentIds; + bool m_CommentIdsIsSet; }; diff --git a/client/include/FastCommentsClient/model/PublicComment.h b/client/include/FastCommentsClient/model/PublicComment.h index 1a1e63c..d97fd57 100644 --- a/client/include/FastCommentsClient/model/PublicComment.h +++ b/client/include/FastCommentsClient/model/PublicComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PublicComment_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicComment_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -267,30 +266,38 @@ class PublicComment utility::string_t m__id; bool m__idIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - boost::optional m_CommenterLink; + utility::string_t m_CommenterLink; + bool m_CommenterLinkIsSet; utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; - boost::optional m_ParentId; + utility::string_t m_ParentId; + bool m_ParentIdIsSet; - boost::optional m_date; + utility::datetime m_date; + bool m_dateIsSet; - boost::optional m_Votes; + int32_t m_Votes; + bool m_VotesIsSet; - boost::optional m_VotesUp; + int32_t m_VotesUp; + bool m_VotesUpIsSet; - boost::optional m_VotesDown; + int32_t m_VotesDown; + bool m_VotesDownIsSet; bool m_Verified; bool m_VerifiedIsSet; - boost::optional m_AvatarSrc; + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; bool m_HasImages; bool m_HasImagesIsSet; @@ -301,17 +308,23 @@ class PublicComment bool m_IsByModerator; bool m_IsByModeratorIsSet; - boost::optional m_IsPinned; + bool m_IsPinned; + bool m_IsPinnedIsSet; - boost::optional m_IsLocked; + bool m_IsLocked; + bool m_IsLockedIsSet; - boost::optional m_DisplayLabel; + utility::string_t m_DisplayLabel; + bool m_DisplayLabelIsSet; - boost::optional m_Rating; + double m_Rating; + bool m_RatingIsSet; - boost::optional>> m_Badges; + std::vector> m_Badges; + bool m_BadgesIsSet; - boost::optional m_ViewCount; + int64_t m_ViewCount; + bool m_ViewCountIsSet; bool m_IsDeleted; bool m_IsDeletedIsSet; @@ -322,7 +335,8 @@ class PublicComment bool m_IsSpam; bool m_IsSpamIsSet; - boost::optional m_AnonUserId; + utility::string_t m_AnonUserId; + bool m_AnonUserIdIsSet; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; diff --git a/client/include/FastCommentsClient/model/PublicCommentBase.h b/client/include/FastCommentsClient/model/PublicCommentBase.h index 5f39e72..c073a70 100644 --- a/client/include/FastCommentsClient/model/PublicCommentBase.h +++ b/client/include/FastCommentsClient/model/PublicCommentBase.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PublicCommentBase_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicCommentBase_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -207,30 +206,38 @@ class PublicCommentBase utility::string_t m__id; bool m__idIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - boost::optional m_CommenterLink; + utility::string_t m_CommenterLink; + bool m_CommenterLinkIsSet; utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; - boost::optional m_ParentId; + utility::string_t m_ParentId; + bool m_ParentIdIsSet; - boost::optional m_date; + utility::datetime m_date; + bool m_dateIsSet; - boost::optional m_Votes; + int32_t m_Votes; + bool m_VotesIsSet; - boost::optional m_VotesUp; + int32_t m_VotesUp; + bool m_VotesUpIsSet; - boost::optional m_VotesDown; + int32_t m_VotesDown; + bool m_VotesDownIsSet; bool m_Verified; bool m_VerifiedIsSet; - boost::optional m_AvatarSrc; + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; bool m_HasImages; bool m_HasImagesIsSet; @@ -241,17 +248,23 @@ class PublicCommentBase bool m_IsByModerator; bool m_IsByModeratorIsSet; - boost::optional m_IsPinned; + bool m_IsPinned; + bool m_IsPinnedIsSet; - boost::optional m_IsLocked; + bool m_IsLocked; + bool m_IsLockedIsSet; - boost::optional m_DisplayLabel; + utility::string_t m_DisplayLabel; + bool m_DisplayLabelIsSet; - boost::optional m_Rating; + double m_Rating; + bool m_RatingIsSet; - boost::optional>> m_Badges; + std::vector> m_Badges; + bool m_BadgesIsSet; - boost::optional m_ViewCount; + int64_t m_ViewCount; + bool m_ViewCountIsSet; bool m_IsDeleted; bool m_IsDeletedIsSet; @@ -262,7 +275,8 @@ class PublicCommentBase bool m_IsSpam; bool m_IsSpamIsSet; - boost::optional m_AnonUserId; + utility::string_t m_AnonUserId; + bool m_AnonUserIdIsSet; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; diff --git a/client/include/FastCommentsClient/model/PublicFeedPostsResponse.h b/client/include/FastCommentsClient/model/PublicFeedPostsResponse.h index 0b8cde8..c2a624a 100644 --- a/client/include/FastCommentsClient/model/PublicFeedPostsResponse.h +++ b/client/include/FastCommentsClient/model/PublicFeedPostsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicFeedPostsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -105,7 +104,8 @@ class PublicFeedPostsResponse std::vector> m_FeedPosts; bool m_FeedPostsIsSet; - boost::optional> m_User; + std::shared_ptr m_User; + bool m_UserIsSet; utility::string_t m_UrlIdWS; bool m_UrlIdWSIsSet; diff --git a/client/include/FastCommentsClient/model/PublicPage.h b/client/include/FastCommentsClient/model/PublicPage.h new file mode 100644 index 0000000..0a70f46 --- /dev/null +++ b/client/include/FastCommentsClient/model/PublicPage.h @@ -0,0 +1,106 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PublicPage.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PublicPage_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicPage_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class PublicPage + : public ModelBase +{ +public: + PublicPage(); + virtual ~PublicPage(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PublicPage members + + + int64_t getUpdatedAt() const; + bool updatedAtIsSet() const; + void unsetUpdatedAt(); + void setUpdatedAt(int64_t value); + + int32_t getCommentCount() const; + bool commentCountIsSet() const; + void unsetCommentCount(); + void setCommentCount(int32_t value); + + utility::string_t getTitle() const; + bool titleIsSet() const; + void unsetTitle(); + void setTitle(const utility::string_t& value); + + utility::string_t getUrl() const; + bool urlIsSet() const; + void unsetUrl(); + void setUrl(const utility::string_t& value); + + utility::string_t getUrlId() const; + bool urlIdIsSet() const; + void unsetUrlId(); + void setUrlId(const utility::string_t& value); + + +protected: + int64_t m_UpdatedAt; + bool m_UpdatedAtIsSet; + + int32_t m_CommentCount; + bool m_CommentCountIsSet; + + utility::string_t m_Title; + bool m_TitleIsSet; + + utility::string_t m_Url; + bool m_UrlIsSet; + + utility::string_t m_UrlId; + bool m_UrlIdIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PublicPage_H_ */ diff --git a/client/include/FastCommentsClient/model/PublicVote.h b/client/include/FastCommentsClient/model/PublicVote.h index e9971e7..71ff140 100644 --- a/client/include/FastCommentsClient/model/PublicVote.h +++ b/client/include/FastCommentsClient/model/PublicVote.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PublicVote_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicVote_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PutDomainConfigResponse.h b/client/include/FastCommentsClient/model/PutDomainConfigResponse.h new file mode 100644 index 0000000..a86d544 --- /dev/null +++ b/client/include/FastCommentsClient/model/PutDomainConfigResponse.h @@ -0,0 +1,101 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PutDomainConfigResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PutDomainConfigResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PutDomainConfigResponse_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h" +#include "FastCommentsClient/model/AddDomainConfigResponse_anyOf.h" +#include +#include "FastCommentsClient/AnyType.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class PutDomainConfigResponse + : public ModelBase +{ +public: + PutDomainConfigResponse(); + virtual ~PutDomainConfigResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PutDomainConfigResponse members + + + std::shared_ptr getConfiguration() const; + bool configurationIsSet() const; + void unsetConfiguration(); + void setConfiguration(const std::shared_ptr& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + +protected: + std::shared_ptr m_Configuration; + bool m_ConfigurationIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PutDomainConfigResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PutSSOUserAPIResponse.h b/client/include/FastCommentsClient/model/PutSSOUserAPIResponse.h index 3ab9974..238b1f6 100644 --- a/client/include/FastCommentsClient/model/PutSSOUserAPIResponse.h +++ b/client/include/FastCommentsClient/model/PutSSOUserAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PutSSOUserAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PutSSOUserAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -84,7 +83,8 @@ class PutSSOUserAPIResponse utility::string_t m_Code; bool m_CodeIsSet; - boost::optional> m_User; + std::shared_ptr m_User; + bool m_UserIsSet; utility::string_t m_Status; bool m_StatusIsSet; diff --git a/client/include/FastCommentsClient/model/QueryPredicate.h b/client/include/FastCommentsClient/model/QueryPredicate.h index 82e8d1a..8403f61 100644 --- a/client/include/FastCommentsClient/model/QueryPredicate.h +++ b/client/include/FastCommentsClient/model/QueryPredicate.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QueryPredicate_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QueryPredicate_value.h b/client/include/FastCommentsClient/model/QueryPredicate_value.h index 3ffbe50..43454f5 100644 --- a/client/include/FastCommentsClient/model/QueryPredicate_value.h +++ b/client/include/FastCommentsClient/model/QueryPredicate_value.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QueryPredicate_value_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QueryPredicate_value_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionConfig.h b/client/include/FastCommentsClient/model/QuestionConfig.h index 8e9e021..4b2da60 100644 --- a/client/include/FastCommentsClient/model/QuestionConfig.h +++ b/client/include/FastCommentsClient/model/QuestionConfig.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionConfig_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionConfig_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionConfig_customOptions_inner.h b/client/include/FastCommentsClient/model/QuestionConfig_customOptions_inner.h index cb5b126..ffafd49 100644 --- a/client/include/FastCommentsClient/model/QuestionConfig_customOptions_inner.h +++ b/client/include/FastCommentsClient/model/QuestionConfig_customOptions_inner.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionConfig_customOptions_inner_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionConfig_customOptions_inner_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionDatum.h b/client/include/FastCommentsClient/model/QuestionDatum.h index 85de6cd..8aaeba3 100644 --- a/client/include/FastCommentsClient/model/QuestionDatum.h +++ b/client/include/FastCommentsClient/model/QuestionDatum.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionDatum_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionDatum_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionRenderingType.h b/client/include/FastCommentsClient/model/QuestionRenderingType.h index 05c92e9..149e7a3 100644 --- a/client/include/FastCommentsClient/model/QuestionRenderingType.h +++ b/client/include/FastCommentsClient/model/QuestionRenderingType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionRenderingType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionRenderingType_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionResult.h b/client/include/FastCommentsClient/model/QuestionResult.h index a387456..5f668dd 100644 --- a/client/include/FastCommentsClient/model/QuestionResult.h +++ b/client/include/FastCommentsClient/model/QuestionResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionResult_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionResult_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -135,12 +134,14 @@ class QuestionResult int32_t m_Value; bool m_ValueIsSet; - boost::optional m_CommentId; + utility::string_t m_CommentId; + bool m_CommentIdIsSet; utility::string_t m_QuestionId; bool m_QuestionIdIsSet; - boost::optional>> m_Meta; + std::vector> m_Meta; + bool m_MetaIsSet; utility::string_t m_IpHash; bool m_IpHashIsSet; diff --git a/client/include/FastCommentsClient/model/QuestionResultAggregationOverall.h b/client/include/FastCommentsClient/model/QuestionResultAggregationOverall.h index 59bb3ec..e38263e 100644 --- a/client/include/FastCommentsClient/model/QuestionResultAggregationOverall.h +++ b/client/include/FastCommentsClient/model/QuestionResultAggregationOverall.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionResultAggregationOverall_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionResultAggregationOverall_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionSubQuestionVisibility.h b/client/include/FastCommentsClient/model/QuestionSubQuestionVisibility.h index 9fbd95c..054c345 100644 --- a/client/include/FastCommentsClient/model/QuestionSubQuestionVisibility.h +++ b/client/include/FastCommentsClient/model/QuestionSubQuestionVisibility.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionSubQuestionVisibility_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionSubQuestionVisibility_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionWhenSave.h b/client/include/FastCommentsClient/model/QuestionWhenSave.h index cf4eba3..b73559b 100644 --- a/client/include/FastCommentsClient/model/QuestionWhenSave.h +++ b/client/include/FastCommentsClient/model/QuestionWhenSave.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionWhenSave_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionWhenSave_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ReactBodyParams.h b/client/include/FastCommentsClient/model/ReactBodyParams.h index 4c212fd..3f0d4da 100644 --- a/client/include/FastCommentsClient/model/ReactBodyParams.h +++ b/client/include/FastCommentsClient/model/ReactBodyParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ReactBodyParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ReactBodyParams_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ReactFeedPostPublic_200_response.h b/client/include/FastCommentsClient/model/ReactFeedPostPublic_200_response.h deleted file mode 100644 index e3ae175..0000000 --- a/client/include/FastCommentsClient/model/ReactFeedPostPublic_200_response.h +++ /dev/null @@ -1,153 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * ReactFeedPostPublic_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ReactFeedPostPublic_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_ReactFeedPostPublic_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ReactFeedPostResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class ReactFeedPostPublic_200_response - : public ModelBase -{ -public: - ReactFeedPostPublic_200_response(); - virtual ~ReactFeedPostPublic_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// ReactFeedPostPublic_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReactType() const; - bool reactTypeIsSet() const; - void unsetReactType(); - void setReactType(const utility::string_t& value); - - bool isIsUndo() const; - bool isUndoIsSet() const; - void unsetIsUndo(); - void setIsUndo(bool value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_ReactType; - bool m_ReactTypeIsSet; - - bool m_IsUndo; - bool m_IsUndoIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ReactFeedPostPublic_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/ReactFeedPostResponse.h b/client/include/FastCommentsClient/model/ReactFeedPostResponse.h index 5ad576e..6a5681c 100644 --- a/client/include/FastCommentsClient/model/ReactFeedPostResponse.h +++ b/client/include/FastCommentsClient/model/ReactFeedPostResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ReactFeedPostResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h b/client/include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h index a70321a..2f0f1c1 100644 --- a/client/include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h +++ b/client/include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_Record_string__before_string_or_null__after_string_or_null___value_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_Record_string__before_string_or_null__after_string_or_null___value_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/RemoveCommentActionResponse.h b/client/include/FastCommentsClient/model/RemoveCommentActionResponse.h new file mode 100644 index 0000000..1b05a3b --- /dev/null +++ b/client/include/FastCommentsClient/model/RemoveCommentActionResponse.h @@ -0,0 +1,82 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * RemoveCommentActionResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_RemoveCommentActionResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_RemoveCommentActionResponse_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class RemoveCommentActionResponse + : public ModelBase +{ +public: + RemoveCommentActionResponse(); + virtual ~RemoveCommentActionResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// RemoveCommentActionResponse members + + + utility::string_t getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const utility::string_t& value); + + utility::string_t getAction() const; + bool actionIsSet() const; + void unsetAction(); + void setAction(const utility::string_t& value); + + +protected: + utility::string_t m_Status; + bool m_StatusIsSet; + + utility::string_t m_Action; + bool m_ActionIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_RemoveCommentActionResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/RemoveUserBadgeResponse.h b/client/include/FastCommentsClient/model/RemoveUserBadgeResponse.h new file mode 100644 index 0000000..68eabf3 --- /dev/null +++ b/client/include/FastCommentsClient/model/RemoveUserBadgeResponse.h @@ -0,0 +1,86 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * RemoveUserBadgeResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_RemoveUserBadgeResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_RemoveUserBadgeResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CommentUserBadgeInfo.h" +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CommentUserBadgeInfo; + + +class RemoveUserBadgeResponse + : public ModelBase +{ +public: + RemoveUserBadgeResponse(); + virtual ~RemoveUserBadgeResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// RemoveUserBadgeResponse members + + + std::vector> getBadges() const; + bool badgesIsSet() const; + void unsetBadges(); + void setBadges(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + std::vector> m_Badges; + bool m_BadgesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_RemoveUserBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/RenderEmailTemplateBody.h b/client/include/FastCommentsClient/model/RenderEmailTemplateBody.h index 54405b5..432c2e2 100644 --- a/client/include/FastCommentsClient/model/RenderEmailTemplateBody.h +++ b/client/include/FastCommentsClient/model/RenderEmailTemplateBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplateBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplateBody_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -77,10 +76,10 @@ class RenderEmailTemplateBody /// /// Construct a type with a set of properties K of type T /// - std::map> getTranslationOverridesByLocale() const; + std::map getTranslationOverridesByLocale() const; bool translationOverridesByLocaleIsSet() const; void unsetTranslationOverridesByLocale(); - void setTranslationOverridesByLocale(const std::map>& value); + void setTranslationOverridesByLocale(const std::map& value); protected: @@ -93,7 +92,7 @@ class RenderEmailTemplateBody std::map> m_TestData; bool m_TestDataIsSet; - std::map> m_TranslationOverridesByLocale; + std::map m_TranslationOverridesByLocale; bool m_TranslationOverridesByLocaleIsSet; }; diff --git a/client/include/FastCommentsClient/model/RenderEmailTemplateResponse.h b/client/include/FastCommentsClient/model/RenderEmailTemplateResponse.h index 6894560..bda5738 100644 --- a/client/include/FastCommentsClient/model/RenderEmailTemplateResponse.h +++ b/client/include/FastCommentsClient/model/RenderEmailTemplateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplateResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/RenderEmailTemplate_200_response.h b/client/include/FastCommentsClient/model/RenderEmailTemplate_200_response.h deleted file mode 100644 index a8e8840..0000000 --- a/client/include/FastCommentsClient/model/RenderEmailTemplate_200_response.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * RenderEmailTemplate_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplate_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplate_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/RenderEmailTemplateResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class RenderEmailTemplate_200_response - : public ModelBase -{ -public: - RenderEmailTemplate_200_response(); - virtual ~RenderEmailTemplate_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// RenderEmailTemplate_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getHtml() const; - bool htmlIsSet() const; - void unsetHtml(); - void setHtml(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Html; - bool m_HtmlIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplate_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/RenderableUserNotification.h b/client/include/FastCommentsClient/model/RenderableUserNotification.h index 75627a0..8062e67 100644 --- a/client/include/FastCommentsClient/model/RenderableUserNotification.h +++ b/client/include/FastCommentsClient/model/RenderableUserNotification.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_RenderableUserNotification_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -186,13 +185,17 @@ class RenderableUserNotification bool m_OptedOut; bool m_OptedOutIsSet; - boost::optional m_FromUserAvatarSrc; + utility::string_t m_FromUserAvatarSrc; + bool m_FromUserAvatarSrcIsSet; - boost::optional m_FromUserId; + utility::string_t m_FromUserId; + bool m_FromUserIdIsSet; - boost::optional m_FromUserName; + utility::string_t m_FromUserName; + bool m_FromUserNameIsSet; - boost::optional m_FromCommentId; + utility::string_t m_FromCommentId; + bool m_FromCommentIdIsSet; std::shared_ptr m_Type; bool m_TypeIsSet; @@ -212,7 +215,8 @@ class RenderableUserNotification std::shared_ptr m_RelatedObjectType; bool m_RelatedObjectTypeIsSet; - boost::optional m_PageTitle; + utility::string_t m_PageTitle; + bool m_PageTitleIsSet; utility::string_t m_Url; bool m_UrlIsSet; diff --git a/client/include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h b/client/include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h index 4f59e0f..e71edc8 100644 --- a/client/include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h +++ b/client/include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_RepeatCommentCheckIgnoredReason_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_RepeatCommentCheckIgnoredReason_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/RepeatCommentHandlingAction.h b/client/include/FastCommentsClient/model/RepeatCommentHandlingAction.h index 63f4693..94eade8 100644 --- a/client/include/FastCommentsClient/model/RepeatCommentHandlingAction.h +++ b/client/include/FastCommentsClient/model/RepeatCommentHandlingAction.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_RepeatCommentHandlingAction_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_RepeatCommentHandlingAction_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ReplaceTenantPackageBody.h b/client/include/FastCommentsClient/model/ReplaceTenantPackageBody.h index 2a3d65d..4d49f63 100644 --- a/client/include/FastCommentsClient/model/ReplaceTenantPackageBody.h +++ b/client/include/FastCommentsClient/model/ReplaceTenantPackageBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantPackageBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantPackageBody_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ReplaceTenantUserBody.h b/client/include/FastCommentsClient/model/ReplaceTenantUserBody.h index 016948a..30db8b7 100644 --- a/client/include/FastCommentsClient/model/ReplaceTenantUserBody.h +++ b/client/include/FastCommentsClient/model/ReplaceTenantUserBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantUserBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantUserBody_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ResetUserNotificationsResponse.h b/client/include/FastCommentsClient/model/ResetUserNotificationsResponse.h index 28d0ede..1d407ca 100644 --- a/client/include/FastCommentsClient/model/ResetUserNotificationsResponse.h +++ b/client/include/FastCommentsClient/model/ResetUserNotificationsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ResetUserNotifications_200_response.h b/client/include/FastCommentsClient/model/ResetUserNotifications_200_response.h deleted file mode 100644 index 759b4ed..0000000 --- a/client/include/FastCommentsClient/model/ResetUserNotifications_200_response.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * ResetUserNotifications_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotifications_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotifications_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/ResetUserNotificationsResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class ResetUserNotifications_200_response - : public ModelBase -{ -public: - ResetUserNotifications_200_response(); - virtual ~ResetUserNotifications_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// ResetUserNotifications_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotifications_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/SORT_DIR.h b/client/include/FastCommentsClient/model/SORT_DIR.h index a878541..d694a5c 100644 --- a/client/include/FastCommentsClient/model/SORT_DIR.h +++ b/client/include/FastCommentsClient/model/SORT_DIR.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SORT_DIR_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SORT_DIR_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SSOSecurityLevel.h b/client/include/FastCommentsClient/model/SSOSecurityLevel.h index f6799f5..044eb19 100644 --- a/client/include/FastCommentsClient/model/SSOSecurityLevel.h +++ b/client/include/FastCommentsClient/model/SSOSecurityLevel.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SSOSecurityLevel_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SSOSecurityLevel_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SaveCommentResponseOptimized.h b/client/include/FastCommentsClient/model/SaveCommentResponseOptimized.h index e11b15b..1d69a79 100644 --- a/client/include/FastCommentsClient/model/SaveCommentResponseOptimized.h +++ b/client/include/FastCommentsClient/model/SaveCommentResponseOptimized.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentResponseOptimized_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -92,7 +91,8 @@ class SaveCommentResponseOptimized std::shared_ptr m_Comment; bool m_CommentIsSet; - boost::optional> m_User; + std::shared_ptr m_User; + bool m_UserIsSet; std::map> m_ModuleData; bool m_ModuleDataIsSet; diff --git a/client/include/FastCommentsClient/model/SaveComment_200_response.h b/client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h similarity index 82% rename from client/include/FastCommentsClient/model/SaveComment_200_response.h rename to client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h index 3958023..8609403 100644 --- a/client/include/FastCommentsClient/model/SaveComment_200_response.h +++ b/client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h @@ -4,33 +4,32 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * SaveComment_200_response.h + * SaveCommentsBulkResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SaveComment_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_SaveComment_200_response_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentsBulkResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentsBulkResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" +#include "FastCommentsClient/model/APIComment.h" #include "FastCommentsClient/model/UserSessionInfo.h" -#include "FastCommentsClient/model/SaveCommentResponse.h" #include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/APISaveCommentResponse.h" #include #include "FastCommentsClient/Object.h" #include #include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/FComment.h" #include "FastCommentsClient/model/APIStatus.h" namespace org { @@ -38,17 +37,17 @@ namespace openapitools { namespace client { namespace model { -class FComment; +class APIComment; class UserSessionInfo; class CustomConfigParameters; -class SaveComment_200_response +class SaveCommentsBulkResponse : public ModelBase { public: - SaveComment_200_response(); - virtual ~SaveComment_200_response(); + SaveCommentsBulkResponse(); + virtual ~SaveCommentsBulkResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -63,7 +62,7 @@ class SaveComment_200_response ///////////////////////////////////////////// - /// SaveComment_200_response members + /// SaveCommentsBulkResponse members std::shared_ptr getStatus() const; @@ -71,10 +70,10 @@ class SaveComment_200_response void unsetStatus(); void setStatus(const std::shared_ptr& value); - std::shared_ptr getComment() const; + std::shared_ptr getComment() const; bool commentIsSet() const; void unsetComment(); - void setComment(const std::shared_ptr& value); + void setComment(const std::shared_ptr& value); std::shared_ptr getUser() const; bool userIsSet() const; @@ -129,10 +128,11 @@ class SaveComment_200_response std::shared_ptr m_Status; bool m_StatusIsSet; - std::shared_ptr m_Comment; + std::shared_ptr m_Comment; bool m_CommentIsSet; - boost::optional> m_User; + std::shared_ptr m_User; + bool m_UserIsSet; std::map> m_ModuleData; bool m_ModuleDataIsSet; @@ -166,4 +166,4 @@ class SaveComment_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SaveComment_200_response_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentsBulkResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h b/client/include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h index a2ee679..27090a7 100644 --- a/client/include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h +++ b/client/include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentsResponseWithPresence_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -98,7 +97,8 @@ class SaveCommentsResponseWithPresence std::shared_ptr m_Comment; bool m_CommentIsSet; - boost::optional> m_User; + std::shared_ptr m_User; + bool m_UserIsSet; std::map> m_ModuleData; bool m_ModuleDataIsSet; diff --git a/client/include/FastCommentsClient/model/SearchUsersResponse.h b/client/include/FastCommentsClient/model/SearchUsersResponse.h index 89c93b9..f4966de 100644 --- a/client/include/FastCommentsClient/model/SearchUsersResponse.h +++ b/client/include/FastCommentsClient/model/SearchUsersResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SearchUsersResult.h b/client/include/FastCommentsClient/model/SearchUsersResult.h new file mode 100644 index 0000000..be08879 --- /dev/null +++ b/client/include/FastCommentsClient/model/SearchUsersResult.h @@ -0,0 +1,98 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * SearchUsersResult.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersResult_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersResult_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/SearchUsersResponse.h" +#include "FastCommentsClient/model/UserSearchSectionResult.h" +#include "FastCommentsClient/model/UserSearchResult.h" +#include +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/SearchUsersSectionedResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class UserSearchSectionResult; +class UserSearchResult; + + +class SearchUsersResult + : public ModelBase +{ +public: + SearchUsersResult(); + virtual ~SearchUsersResult(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// SearchUsersResult members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getSections() const; + bool sectionsIsSet() const; + void unsetSections(); + void setSections(const std::vector>& value); + + std::vector> getUsers() const; + bool usersIsSet() const; + void unsetUsers(); + void setUsers(const std::vector>& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_Sections; + bool m_SectionsIsSet; + + std::vector> m_Users; + bool m_UsersIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersResult_H_ */ diff --git a/client/include/FastCommentsClient/model/SearchUsersSectionedResponse.h b/client/include/FastCommentsClient/model/SearchUsersSectionedResponse.h index 34d6235..db63b31 100644 --- a/client/include/FastCommentsClient/model/SearchUsersSectionedResponse.h +++ b/client/include/FastCommentsClient/model/SearchUsersSectionedResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersSectionedResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SearchUsers_200_response.h b/client/include/FastCommentsClient/model/SearchUsers_200_response.h deleted file mode 100644 index cd22b0a..0000000 --- a/client/include/FastCommentsClient/model/SearchUsers_200_response.h +++ /dev/null @@ -1,159 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * SearchUsers_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsers_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsers_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/SearchUsersResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/UserSearchSectionResult.h" -#include -#include "FastCommentsClient/model/UserSearchResult.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/SearchUsersSectionedResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserSearchSectionResult; -class UserSearchResult; -class CustomConfigParameters; - - -class SearchUsers_200_response - : public ModelBase -{ -public: - SearchUsers_200_response(); - virtual ~SearchUsers_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// SearchUsers_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getSections() const; - bool sectionsIsSet() const; - void unsetSections(); - void setSections(const std::vector>& value); - - std::vector> getUsers() const; - bool usersIsSet() const; - void unsetUsers(); - void setUsers(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Sections; - bool m_SectionsIsSet; - - std::vector> m_Users; - bool m_UsersIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsers_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/SetCommentApprovedResponse.h b/client/include/FastCommentsClient/model/SetCommentApprovedResponse.h new file mode 100644 index 0000000..047a9e9 --- /dev/null +++ b/client/include/FastCommentsClient/model/SetCommentApprovedResponse.h @@ -0,0 +1,83 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * SetCommentApprovedResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentApprovedResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentApprovedResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class SetCommentApprovedResponse + : public ModelBase +{ +public: + SetCommentApprovedResponse(); + virtual ~SetCommentApprovedResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// SetCommentApprovedResponse members + + + bool isDidResetFlaggedCount() const; + bool didResetFlaggedCountIsSet() const; + void unsetDidResetFlaggedCount(); + void setDidResetFlaggedCount(bool value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + bool m_DidResetFlaggedCount; + bool m_DidResetFlaggedCountIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentApprovedResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/SetCommentTextParams.h b/client/include/FastCommentsClient/model/SetCommentTextParams.h new file mode 100644 index 0000000..2c66d46 --- /dev/null +++ b/client/include/FastCommentsClient/model/SetCommentTextParams.h @@ -0,0 +1,74 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * SetCommentTextParams.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextParams_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextParams_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class SetCommentTextParams + : public ModelBase +{ +public: + SetCommentTextParams(); + virtual ~SetCommentTextParams(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// SetCommentTextParams members + + + utility::string_t getComment() const; + bool commentIsSet() const; + void unsetComment(); + void setComment(const utility::string_t& value); + + +protected: + utility::string_t m_Comment; + bool m_CommentIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextParams_H_ */ diff --git a/client/include/FastCommentsClient/model/SetCommentTextResponse.h b/client/include/FastCommentsClient/model/SetCommentTextResponse.h new file mode 100644 index 0000000..9e18966 --- /dev/null +++ b/client/include/FastCommentsClient/model/SetCommentTextResponse.h @@ -0,0 +1,84 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * SetCommentTextResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class SetCommentTextResponse + : public ModelBase +{ +public: + SetCommentTextResponse(); + virtual ~SetCommentTextResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// SetCommentTextResponse members + + + utility::string_t getNewCommentTextHTML() const; + bool newCommentTextHTMLIsSet() const; + void unsetNewCommentTextHTML(); + void setNewCommentTextHTML(const utility::string_t& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + utility::string_t m_NewCommentTextHTML; + bool m_NewCommentTextHTMLIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/SetCommentTextResult.h b/client/include/FastCommentsClient/model/SetCommentTextResult.h index 18d79d2..1ee8b4c 100644 --- a/client/include/FastCommentsClient/model/SetCommentTextResult.h +++ b/client/include/FastCommentsClient/model/SetCommentTextResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResult_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResult_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SetCommentText_200_response.h b/client/include/FastCommentsClient/model/SetCommentText_200_response.h deleted file mode 100644 index f01efeb..0000000 --- a/client/include/FastCommentsClient/model/SetCommentText_200_response.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * SetCommentText_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentText_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentText_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/PublicAPISetCommentTextResponse.h" -#include "FastCommentsClient/model/SetCommentTextResult.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class SetCommentTextResult; -class CustomConfigParameters; - - -class SetCommentText_200_response - : public ModelBase -{ -public: - SetCommentText_200_response(); - virtual ~SetCommentText_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// SetCommentText_200_response members - - - std::shared_ptr getComment() const; - bool commentIsSet() const; - void unsetComment(); - void setComment(const std::shared_ptr& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Comment; - bool m_CommentIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentText_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/SetUserTrustFactorResponse.h b/client/include/FastCommentsClient/model/SetUserTrustFactorResponse.h new file mode 100644 index 0000000..32da0e1 --- /dev/null +++ b/client/include/FastCommentsClient/model/SetUserTrustFactorResponse.h @@ -0,0 +1,83 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * SetUserTrustFactorResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SetUserTrustFactorResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_SetUserTrustFactorResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class SetUserTrustFactorResponse + : public ModelBase +{ +public: + SetUserTrustFactorResponse(); + virtual ~SetUserTrustFactorResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// SetUserTrustFactorResponse members + + + double getPreviousManualTrustFactor() const; + bool previousManualTrustFactorIsSet() const; + void unsetPreviousManualTrustFactor(); + void setPreviousManualTrustFactor(double value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + +protected: + double m_PreviousManualTrustFactor; + bool m_PreviousManualTrustFactorIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SetUserTrustFactorResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/SizePreset.h b/client/include/FastCommentsClient/model/SizePreset.h index 9f82203..809cc10 100644 --- a/client/include/FastCommentsClient/model/SizePreset.h +++ b/client/include/FastCommentsClient/model/SizePreset.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SizePreset_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SizePreset_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SortDirections.h b/client/include/FastCommentsClient/model/SortDirections.h index 612e86c..8b4a5bd 100644 --- a/client/include/FastCommentsClient/model/SortDirections.h +++ b/client/include/FastCommentsClient/model/SortDirections.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SortDirections_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SortDirections_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SpamRule.h b/client/include/FastCommentsClient/model/SpamRule.h index 943a3b7..adbc694 100644 --- a/client/include/FastCommentsClient/model/SpamRule.h +++ b/client/include/FastCommentsClient/model/SpamRule.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SpamRule_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/TOSConfig.h b/client/include/FastCommentsClient/model/TOSConfig.h index fe9de1e..2047554 100644 --- a/client/include/FastCommentsClient/model/TOSConfig.h +++ b/client/include/FastCommentsClient/model/TOSConfig.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_TOSConfig_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_TOSConfig_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/TenantBadge.h b/client/include/FastCommentsClient/model/TenantBadge.h new file mode 100644 index 0000000..c592619 --- /dev/null +++ b/client/include/FastCommentsClient/model/TenantBadge.h @@ -0,0 +1,234 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * TenantBadge.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_TenantBadge_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_TenantBadge_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class TenantBadge + : public ModelBase +{ +public: + TenantBadge(); + virtual ~TenantBadge(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// TenantBadge members + + + utility::string_t getId() const; + bool idIsSet() const; + void unset_id(); + void setId(const utility::string_t& value); + + utility::string_t getTenantId() const; + bool tenantIdIsSet() const; + void unsetTenantId(); + void setTenantId(const utility::string_t& value); + + utility::string_t getCreatedByUserId() const; + bool createdByUserIdIsSet() const; + void unsetCreatedByUserId(); + void setCreatedByUserId(const utility::string_t& value); + + utility::datetime getCreatedAt() const; + bool createdAtIsSet() const; + void unsetCreatedAt(); + void setCreatedAt(const utility::datetime& value); + + bool isEnabled() const; + bool enabledIsSet() const; + void unsetEnabled(); + void setEnabled(bool value); + + utility::string_t getUrlId() const; + bool urlIdIsSet() const; + void unsetUrlId(); + void setUrlId(const utility::string_t& value); + + double getType() const; + bool typeIsSet() const; + void unsetType(); + void setType(double value); + + double getThreshold() const; + bool thresholdIsSet() const; + void unsetThreshold(); + void setThreshold(double value); + + double getUses() const; + bool usesIsSet() const; + void unsetUses(); + void setUses(double value); + + utility::string_t getName() const; + bool nameIsSet() const; + void unsetName(); + void setName(const utility::string_t& value); + + utility::string_t getDescription() const; + bool descriptionIsSet() const; + void unsetDescription(); + void setDescription(const utility::string_t& value); + + utility::string_t getDisplayLabel() const; + bool displayLabelIsSet() const; + void unsetDisplayLabel(); + void setDisplayLabel(const utility::string_t& value); + + utility::string_t getDisplaySrc() const; + bool displaySrcIsSet() const; + void unsetDisplaySrc(); + void setDisplaySrc(const utility::string_t& value); + + utility::string_t getBackgroundColor() const; + bool backgroundColorIsSet() const; + void unsetBackgroundColor(); + void setBackgroundColor(const utility::string_t& value); + + utility::string_t getBorderColor() const; + bool borderColorIsSet() const; + void unsetBorderColor(); + void setBorderColor(const utility::string_t& value); + + utility::string_t getTextColor() const; + bool textColorIsSet() const; + void unsetTextColor(); + void setTextColor(const utility::string_t& value); + + utility::string_t getCssClass() const; + bool cssClassIsSet() const; + void unsetCssClass(); + void setCssClass(const utility::string_t& value); + + double getVeteranUserThresholdMillis() const; + bool veteranUserThresholdMillisIsSet() const; + void unsetVeteranUserThresholdMillis(); + void setVeteranUserThresholdMillis(double value); + + bool isIsAwaitingReprocess() const; + bool isAwaitingReprocessIsSet() const; + void unsetIsAwaitingReprocess(); + void setIsAwaitingReprocess(bool value); + + bool isIsAwaitingDeletion() const; + bool isAwaitingDeletionIsSet() const; + void unsetIsAwaitingDeletion(); + void setIsAwaitingDeletion(bool value); + + utility::string_t getReplacesBadgeId() const; + bool replacesBadgeIdIsSet() const; + void unsetReplacesBadgeId(); + void setReplacesBadgeId(const utility::string_t& value); + + +protected: + utility::string_t m__id; + bool m__idIsSet; + + utility::string_t m_TenantId; + bool m_TenantIdIsSet; + + utility::string_t m_CreatedByUserId; + bool m_CreatedByUserIdIsSet; + + utility::datetime m_CreatedAt; + bool m_CreatedAtIsSet; + + bool m_Enabled; + bool m_EnabledIsSet; + + utility::string_t m_UrlId; + bool m_UrlIdIsSet; + + double m_Type; + bool m_TypeIsSet; + + double m_Threshold; + bool m_ThresholdIsSet; + + double m_Uses; + bool m_UsesIsSet; + + utility::string_t m_Name; + bool m_NameIsSet; + + utility::string_t m_Description; + bool m_DescriptionIsSet; + + utility::string_t m_DisplayLabel; + bool m_DisplayLabelIsSet; + + utility::string_t m_DisplaySrc; + bool m_DisplaySrcIsSet; + + utility::string_t m_BackgroundColor; + bool m_BackgroundColorIsSet; + + utility::string_t m_BorderColor; + bool m_BorderColorIsSet; + + utility::string_t m_TextColor; + bool m_TextColorIsSet; + + utility::string_t m_CssClass; + bool m_CssClassIsSet; + + double m_VeteranUserThresholdMillis; + bool m_VeteranUserThresholdMillisIsSet; + + bool m_IsAwaitingReprocess; + bool m_IsAwaitingReprocessIsSet; + + bool m_IsAwaitingDeletion; + bool m_IsAwaitingDeletionIsSet; + + utility::string_t m_ReplacesBadgeId; + bool m_ReplacesBadgeIdIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_TenantBadge_H_ */ diff --git a/client/include/FastCommentsClient/model/TenantHashTag.h b/client/include/FastCommentsClient/model/TenantHashTag.h index 5fe7e07..2b10c0e 100644 --- a/client/include/FastCommentsClient/model/TenantHashTag.h +++ b/client/include/FastCommentsClient/model/TenantHashTag.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_TenantHashTag_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_TenantHashTag_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/TenantPackage.h b/client/include/FastCommentsClient/model/TenantPackage.h index a817db4..d182e32 100644 --- a/client/include/FastCommentsClient/model/TenantPackage.h +++ b/client/include/FastCommentsClient/model/TenantPackage.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_TenantPackage_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_TenantPackage_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -75,6 +74,11 @@ class TenantPackage void unsetCreatedAt(); void setCreatedAt(const utility::datetime& value); + utility::string_t getTemplateId() const; + bool templateIdIsSet() const; + void unsetTemplateId(); + void setTemplateId(const utility::string_t& value); + double getMonthlyCostUSD() const; bool monthlyCostUSDIsSet() const; void unsetMonthlyCostUSD(); @@ -290,6 +294,16 @@ class TenantPackage void unsetFlexChatGPTUnit(); void setFlexChatGPTUnit(double value); + double getFlexLLMCostCents() const; + bool flexLLMCostCentsIsSet() const; + void unsetFlexLLMCostCents(); + void setFlexLLMCostCents(double value); + + double getFlexLLMUnit() const; + bool flexLLMUnitIsSet() const; + void unsetFlexLLMUnit(); + void setFlexLLMUnit(double value); + double getFlexMinimumCostCents() const; bool flexMinimumCostCentsIsSet() const; void unsetFlexMinimumCostCents(); @@ -325,6 +339,26 @@ class TenantPackage void unsetIsSSOBillingMonthlyActiveUsers(); void setIsSSOBillingMonthlyActiveUsers(bool value); + bool isHasAIAgents() const; + bool hasAIAgentsIsSet() const; + void unsetHasAIAgents(); + void setHasAIAgents(bool value); + + double getMaxAIAgents() const; + bool maxAIAgentsIsSet() const; + void unsetMaxAIAgents(); + void setMaxAIAgents(double value); + + double getAiAgentDailyBudgetCents() const; + bool aiAgentDailyBudgetCentsIsSet() const; + void unsetAiAgentDailyBudgetCents(); + void setAiAgentDailyBudgetCents(double value); + + double getAiAgentMonthlyBudgetCents() const; + bool aiAgentMonthlyBudgetCentsIsSet() const; + void unsetAiAgentMonthlyBudgetCents(); + void setAiAgentMonthlyBudgetCents(double value); + protected: utility::string_t m__id; @@ -339,13 +373,20 @@ class TenantPackage utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; - boost::optional m_MonthlyCostUSD; + utility::string_t m_TemplateId; + bool m_TemplateIdIsSet; - boost::optional m_YearlyCostUSD; + double m_MonthlyCostUSD; + bool m_MonthlyCostUSDIsSet; - boost::optional m_MonthlyStripePlanId; + double m_YearlyCostUSD; + bool m_YearlyCostUSDIsSet; - boost::optional m_YearlyStripePlanId; + utility::string_t m_MonthlyStripePlanId; + bool m_MonthlyStripePlanIdIsSet; + + utility::string_t m_YearlyStripePlanId; + bool m_YearlyStripePlanIdIsSet; double m_MaxMonthlyPageLoads; bool m_MaxMonthlyPageLoadsIsSet; @@ -464,6 +505,12 @@ class TenantPackage double m_FlexChatGPTUnit; bool m_FlexChatGPTUnitIsSet; + double m_FlexLLMCostCents; + bool m_FlexLLMCostCentsIsSet; + + double m_FlexLLMUnit; + bool m_FlexLLMUnitIsSet; + double m_FlexMinimumCostCents; bool m_FlexMinimumCostCentsIsSet; @@ -485,6 +532,18 @@ class TenantPackage bool m_IsSSOBillingMonthlyActiveUsers; bool m_IsSSOBillingMonthlyActiveUsersIsSet; + bool m_HasAIAgents; + bool m_HasAIAgentsIsSet; + + double m_MaxAIAgents; + bool m_MaxAIAgentsIsSet; + + double m_AiAgentDailyBudgetCents; + bool m_AiAgentDailyBudgetCentsIsSet; + + double m_AiAgentMonthlyBudgetCents; + bool m_AiAgentMonthlyBudgetCentsIsSet; + }; diff --git a/client/include/FastCommentsClient/model/UnBlockCommentPublic_200_response.h b/client/include/FastCommentsClient/model/UnBlockCommentPublic_200_response.h deleted file mode 100644 index 88bd65b..0000000 --- a/client/include/FastCommentsClient/model/UnBlockCommentPublic_200_response.h +++ /dev/null @@ -1,149 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UnBlockCommentPublic_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockCommentPublic_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockCommentPublic_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UnblockSuccess.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UnBlockCommentPublic_200_response - : public ModelBase -{ -public: - UnBlockCommentPublic_200_response(); - virtual ~UnBlockCommentPublic_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UnBlockCommentPublic_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getCommentStatuses() const; - bool commentStatusesIsSet() const; - void unsetCommentStatuses(); - void setCommentStatuses(std::map value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map m_CommentStatuses; - bool m_CommentStatusesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockCommentPublic_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/UnBlockFromCommentParams.h b/client/include/FastCommentsClient/model/UnBlockFromCommentParams.h index 1253722..b300581 100644 --- a/client/include/FastCommentsClient/model/UnBlockFromCommentParams.h +++ b/client/include/FastCommentsClient/model/UnBlockFromCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockFromCommentParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockFromCommentParams_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UnblockSuccess.h b/client/include/FastCommentsClient/model/UnblockSuccess.h index aa52120..d5d6993 100644 --- a/client/include/FastCommentsClient/model/UnblockSuccess.h +++ b/client/include/FastCommentsClient/model/UnblockSuccess.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UnblockSuccess_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdatableCommentParams.h b/client/include/FastCommentsClient/model/UpdatableCommentParams.h index 6554cbf..7ddf580 100644 --- a/client/include/FastCommentsClient/model/UpdatableCommentParams.h +++ b/client/include/FastCommentsClient/model/UpdatableCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdatableCommentParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdatableCommentParams_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -262,16 +261,20 @@ class UpdatableCommentParams utility::string_t m_Url; bool m_UrlIsSet; - boost::optional m_PageTitle; + utility::string_t m_PageTitle; + bool m_PageTitleIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; - boost::optional m_CommenterEmail; + utility::string_t m_CommenterEmail; + bool m_CommenterEmailIsSet; utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - boost::optional m_CommenterLink; + utility::string_t m_CommenterLink; + bool m_CommenterLinkIsSet; utility::string_t m_Comment; bool m_CommentIsSet; @@ -279,26 +282,35 @@ class UpdatableCommentParams utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; - boost::optional m_ParentId; + utility::string_t m_ParentId; + bool m_ParentIdIsSet; - boost::optional m_date; + double m_date; + bool m_dateIsSet; - boost::optional m_LocalDateString; + utility::string_t m_LocalDateString; + bool m_LocalDateStringIsSet; - boost::optional m_LocalDateHours; + int32_t m_LocalDateHours; + bool m_LocalDateHoursIsSet; - boost::optional m_Votes; + int32_t m_Votes; + bool m_VotesIsSet; - boost::optional m_VotesUp; + int32_t m_VotesUp; + bool m_VotesUpIsSet; - boost::optional m_VotesDown; + int32_t m_VotesDown; + bool m_VotesDownIsSet; - boost::optional m_ExpireAt; + utility::datetime m_ExpireAt; + bool m_ExpireAtIsSet; bool m_Verified; bool m_VerifiedIsSet; - boost::optional m_VerifiedDate; + utility::datetime m_VerifiedDate; + bool m_VerifiedDateIsSet; bool m_NotificationSentForParent; bool m_NotificationSentForParentIsSet; @@ -312,9 +324,11 @@ class UpdatableCommentParams utility::string_t m_ExternalId; bool m_ExternalIdIsSet; - boost::optional m_ExternalParentId; + utility::string_t m_ExternalParentId; + bool m_ExternalParentIdIsSet; - boost::optional m_AvatarSrc; + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; bool m_IsSpam; bool m_IsSpamIsSet; @@ -334,17 +348,23 @@ class UpdatableCommentParams bool m_IsByModerator; bool m_IsByModeratorIsSet; - boost::optional m_IsPinned; + bool m_IsPinned; + bool m_IsPinnedIsSet; - boost::optional m_IsLocked; + bool m_IsLocked; + bool m_IsLockedIsSet; - boost::optional m_FlagCount; + int32_t m_FlagCount; + bool m_FlagCountIsSet; - boost::optional m_DisplayLabel; + utility::string_t m_DisplayLabel; + bool m_DisplayLabelIsSet; - boost::optional> m_Meta; + std::shared_ptr m_Meta; + bool m_MetaIsSet; - boost::optional> m_ModerationGroupIds; + std::vector m_ModerationGroupIds; + bool m_ModerationGroupIdsIsSet; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; diff --git a/client/include/FastCommentsClient/model/UpdateAPIPageData.h b/client/include/FastCommentsClient/model/UpdateAPIPageData.h index 919b5a1..1fc936d 100644 --- a/client/include/FastCommentsClient/model/UpdateAPIPageData.h +++ b/client/include/FastCommentsClient/model/UpdateAPIPageData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateAPIPageData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateAPIPageData_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateAPISSOUserData.h b/client/include/FastCommentsClient/model/UpdateAPISSOUserData.h index ced3ed7..014510b 100644 --- a/client/include/FastCommentsClient/model/UpdateAPISSOUserData.h +++ b/client/include/FastCommentsClient/model/UpdateAPISSOUserData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateAPISSOUserData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateAPISSOUserData_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateAPIUserSubscriptionData.h b/client/include/FastCommentsClient/model/UpdateAPIUserSubscriptionData.h index 3cdd348..32fb924 100644 --- a/client/include/FastCommentsClient/model/UpdateAPIUserSubscriptionData.h +++ b/client/include/FastCommentsClient/model/UpdateAPIUserSubscriptionData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateAPIUserSubscriptionData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateAPIUserSubscriptionData_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateDomainConfigParams.h b/client/include/FastCommentsClient/model/UpdateDomainConfigParams.h index 46ab827..b3b8fcf 100644 --- a/client/include/FastCommentsClient/model/UpdateDomainConfigParams.h +++ b/client/include/FastCommentsClient/model/UpdateDomainConfigParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateDomainConfigParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateDomainConfigParams_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateEmailTemplateBody.h b/client/include/FastCommentsClient/model/UpdateEmailTemplateBody.h index 9f65d5e..fab7e4b 100644 --- a/client/include/FastCommentsClient/model/UpdateEmailTemplateBody.h +++ b/client/include/FastCommentsClient/model/UpdateEmailTemplateBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateEmailTemplateBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateEmailTemplateBody_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -79,10 +78,10 @@ class UpdateEmailTemplateBody /// /// Construct a type with a set of properties K of type T /// - std::map> getTranslationOverridesByLocale() const; + std::map getTranslationOverridesByLocale() const; bool translationOverridesByLocaleIsSet() const; void unsetTranslationOverridesByLocale(); - void setTranslationOverridesByLocale(const std::map>& value); + void setTranslationOverridesByLocale(const std::map& value); /// /// Construct a type with a set of properties K of type T @@ -106,7 +105,7 @@ class UpdateEmailTemplateBody utility::string_t m_Domain; bool m_DomainIsSet; - std::map> m_TranslationOverridesByLocale; + std::map m_TranslationOverridesByLocale; bool m_TranslationOverridesByLocaleIsSet; std::map> m_TestData; diff --git a/client/include/FastCommentsClient/model/UpdateFeedPostParams.h b/client/include/FastCommentsClient/model/UpdateFeedPostParams.h index 757a09a..28e62f8 100644 --- a/client/include/FastCommentsClient/model/UpdateFeedPostParams.h +++ b/client/include/FastCommentsClient/model/UpdateFeedPostParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostParams_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateHashTagBody.h b/client/include/FastCommentsClient/model/UpdateHashTagBody.h index b4c684d..0b507de 100644 --- a/client/include/FastCommentsClient/model/UpdateHashTagBody.h +++ b/client/include/FastCommentsClient/model/UpdateHashTagBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateHashTagBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateHashTagBody_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateHashTagResponse.h b/client/include/FastCommentsClient/model/UpdateHashTagResponse.h index bd29696..75194ad 100644 --- a/client/include/FastCommentsClient/model/UpdateHashTagResponse.h +++ b/client/include/FastCommentsClient/model/UpdateHashTagResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateHashTagResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateModeratorBody.h b/client/include/FastCommentsClient/model/UpdateModeratorBody.h index 57e74c2..f2e81de 100644 --- a/client/include/FastCommentsClient/model/UpdateModeratorBody.h +++ b/client/include/FastCommentsClient/model/UpdateModeratorBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,13 +18,11 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateModeratorBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateModeratorBody_H_ -#include #include "FastCommentsClient/ModelBase.h" #include #include -#include #include #include "FastCommentsClient/AnyType.h" @@ -79,21 +77,6 @@ class UpdateModeratorBody void setModerationGroupIds(const std::vector& value); - /// - /// Get additional properties (properties not defined in the schema) - /// - std::map getAdditionalProperties() const; - bool additionalPropertiesIsSet() const; - void unsetAdditionalProperties(); - /// - /// Set additional properties - /// - void setAdditionalProperties(const std::map& value); - /// - /// Add a single additional property - /// - void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); - protected: utility::string_t m_Name; bool m_NameIsSet; @@ -107,8 +90,6 @@ class UpdateModeratorBody std::vector m_ModerationGroupIds; bool m_ModerationGroupIdsIsSet; - std::map m_AdditionalProperties; - bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/UpdateNotificationBody.h b/client/include/FastCommentsClient/model/UpdateNotificationBody.h index dcc8e83..57c15ee 100644 --- a/client/include/FastCommentsClient/model/UpdateNotificationBody.h +++ b/client/include/FastCommentsClient/model/UpdateNotificationBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,12 +18,10 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateNotificationBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateNotificationBody_H_ -#include #include "FastCommentsClient/ModelBase.h" #include -#include #include "FastCommentsClient/AnyType.h" namespace org { @@ -67,21 +65,6 @@ class UpdateNotificationBody void setOptedOut(bool value); - /// - /// Get additional properties (properties not defined in the schema) - /// - std::map getAdditionalProperties() const; - bool additionalPropertiesIsSet() const; - void unsetAdditionalProperties(); - /// - /// Set additional properties - /// - void setAdditionalProperties(const std::map& value); - /// - /// Add a single additional property - /// - void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); - protected: bool m_Viewed; bool m_ViewedIsSet; @@ -89,8 +72,6 @@ class UpdateNotificationBody bool m_OptedOut; bool m_OptedOutIsSet; - std::map m_AdditionalProperties; - bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/UpdateQuestionConfigBody.h b/client/include/FastCommentsClient/model/UpdateQuestionConfigBody.h index 6b3ea4e..bf892c3 100644 --- a/client/include/FastCommentsClient/model/UpdateQuestionConfigBody.h +++ b/client/include/FastCommentsClient/model/UpdateQuestionConfigBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,14 +18,12 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionConfigBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionConfigBody_H_ -#include #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/QuestionConfig_customOptions_inner.h" #include #include -#include #include #include "FastCommentsClient/AnyType.h" @@ -131,21 +129,6 @@ class UpdateQuestionConfigBody void setReportingOrder(double value); - /// - /// Get additional properties (properties not defined in the schema) - /// - std::map getAdditionalProperties() const; - bool additionalPropertiesIsSet() const; - void unsetAdditionalProperties(); - /// - /// Set additional properties - /// - void setAdditionalProperties(const std::map& value); - /// - /// Add a single additional property - /// - void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); - protected: utility::string_t m_Name; bool m_NameIsSet; @@ -189,8 +172,6 @@ class UpdateQuestionConfigBody double m_ReportingOrder; bool m_ReportingOrderIsSet; - std::map m_AdditionalProperties; - bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/UpdateQuestionResultBody.h b/client/include/FastCommentsClient/model/UpdateQuestionResultBody.h index c9f7b95..b9fda3e 100644 --- a/client/include/FastCommentsClient/model/UpdateQuestionResultBody.h +++ b/client/include/FastCommentsClient/model/UpdateQuestionResultBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,13 +18,11 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionResultBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionResultBody_H_ -#include #include "FastCommentsClient/ModelBase.h" #include #include -#include #include #include "FastCommentsClient/AnyType.h" #include "FastCommentsClient/model/MetaItem.h" @@ -96,21 +94,6 @@ class UpdateQuestionResultBody void setMeta(const std::vector>& value); - /// - /// Get additional properties (properties not defined in the schema) - /// - std::map getAdditionalProperties() const; - bool additionalPropertiesIsSet() const; - void unsetAdditionalProperties(); - /// - /// Set additional properties - /// - void setAdditionalProperties(const std::map& value); - /// - /// Add a single additional property - /// - void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); - protected: utility::string_t m_UrlId; bool m_UrlIdIsSet; @@ -130,10 +113,9 @@ class UpdateQuestionResultBody utility::string_t m_QuestionId; bool m_QuestionIdIsSet; - boost::optional>> m_Meta; + std::vector> m_Meta; + bool m_MetaIsSet; - std::map m_AdditionalProperties; - bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/UpdateSubscriptionAPIResponse.h b/client/include/FastCommentsClient/model/UpdateSubscriptionAPIResponse.h index 9c73ee2..244c9bc 100644 --- a/client/include/FastCommentsClient/model/UpdateSubscriptionAPIResponse.h +++ b/client/include/FastCommentsClient/model/UpdateSubscriptionAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateSubscriptionAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateSubscriptionAPIResponse_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateTenantBody.h b/client/include/FastCommentsClient/model/UpdateTenantBody.h index 69c9dcb..1841ca4 100644 --- a/client/include/FastCommentsClient/model/UpdateTenantBody.h +++ b/client/include/FastCommentsClient/model/UpdateTenantBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantBody_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateTenantPackageBody.h b/client/include/FastCommentsClient/model/UpdateTenantPackageBody.h index c360bde..44fa379 100644 --- a/client/include/FastCommentsClient/model/UpdateTenantPackageBody.h +++ b/client/include/FastCommentsClient/model/UpdateTenantPackageBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantPackageBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantPackageBody_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateTenantUserBody.h b/client/include/FastCommentsClient/model/UpdateTenantUserBody.h index b6bae73..a4801e9 100644 --- a/client/include/FastCommentsClient/model/UpdateTenantUserBody.h +++ b/client/include/FastCommentsClient/model/UpdateTenantUserBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantUserBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantUserBody_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateUserBadgeParams.h b/client/include/FastCommentsClient/model/UpdateUserBadgeParams.h index 4a3a73d..e55c9dc 100644 --- a/client/include/FastCommentsClient/model/UpdateUserBadgeParams.h +++ b/client/include/FastCommentsClient/model/UpdateUserBadgeParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserBadgeParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserBadgeParams_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateUserBadge_200_response.h b/client/include/FastCommentsClient/model/UpdateUserBadge_200_response.h deleted file mode 100644 index d7a05ac..0000000 --- a/client/include/FastCommentsClient/model/UpdateUserBadge_200_response.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UpdateUserBadge_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserBadge_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserBadge_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptySuccessResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UpdateUserBadge_200_response - : public ModelBase -{ -public: - UpdateUserBadge_200_response(); - virtual ~UpdateUserBadge_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UpdateUserBadge_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserBadge_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h new file mode 100644 index 0000000..09cfddb --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h @@ -0,0 +1,111 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateUserNotificationCommentSubscriptionStatusResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationCommentSubscriptionStatusResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationCommentSubscriptionStatusResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/UserNotificationWriteResponse.h" +#include +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/IgnoredResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class UpdateUserNotificationCommentSubscriptionStatusResponse + : public ModelBase +{ +public: + UpdateUserNotificationCommentSubscriptionStatusResponse(); + virtual ~UpdateUserNotificationCommentSubscriptionStatusResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateUserNotificationCommentSubscriptionStatusResponse members + + enum class NoteEnum + { + IGNORED_SINCE_IMPERSONATED, + DEMO_NOOP, + }; + + NoteEnum toNoteEnum(const utility::string_t& value) const; + const utility::string_t fromNoteEnum(const NoteEnum value) const; + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + int64_t getMatchedCount() const; + bool matchedCountIsSet() const; + void unsetMatchedCount(); + void setMatchedCount(int64_t value); + + int64_t getModifiedCount() const; + bool modifiedCountIsSet() const; + void unsetModifiedCount(); + void setModifiedCount(int64_t value); + + NoteEnum getNote() const; + bool noteIsSet() const; + void unsetNote(); + void setNote(const NoteEnum value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + int64_t m_MatchedCount; + bool m_MatchedCountIsSet; + + int64_t m_ModifiedCount; + bool m_ModifiedCountIsSet; + + NoteEnum m_Note; + bool m_NoteIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationCommentSubscriptionStatusResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h new file mode 100644 index 0000000..7544f85 --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h @@ -0,0 +1,111 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateUserNotificationPageSubscriptionStatusResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationPageSubscriptionStatusResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationPageSubscriptionStatusResponse_H_ + +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/UserNotificationWriteResponse.h" +#include +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/IgnoredResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class UpdateUserNotificationPageSubscriptionStatusResponse + : public ModelBase +{ +public: + UpdateUserNotificationPageSubscriptionStatusResponse(); + virtual ~UpdateUserNotificationPageSubscriptionStatusResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateUserNotificationPageSubscriptionStatusResponse members + + enum class NoteEnum + { + IGNORED_SINCE_IMPERSONATED, + DEMO_NOOP, + }; + + NoteEnum toNoteEnum(const utility::string_t& value) const; + const utility::string_t fromNoteEnum(const NoteEnum value) const; + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + int64_t getMatchedCount() const; + bool matchedCountIsSet() const; + void unsetMatchedCount(); + void setMatchedCount(int64_t value); + + int64_t getModifiedCount() const; + bool modifiedCountIsSet() const; + void unsetModifiedCount(); + void setModifiedCount(int64_t value); + + NoteEnum getNote() const; + bool noteIsSet() const; + void unsetNote(); + void setNote(const NoteEnum value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + int64_t m_MatchedCount; + bool m_MatchedCountIsSet; + + int64_t m_ModifiedCount; + bool m_ModifiedCountIsSet; + + NoteEnum m_Note; + bool m_NoteIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationPageSubscriptionStatusResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationStatus_200_response.h b/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h similarity index 52% rename from client/include/FastCommentsClient/model/UpdateUserNotificationStatus_200_response.h rename to client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h index 7fc5853..30cf644 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationStatus_200_response.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h @@ -4,29 +4,26 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ /* - * UpdateUserNotificationStatus_200_response.h + * UpdateUserNotificationStatusResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationStatus_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationStatus_200_response_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationStatusResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationStatusResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/UserNotificationWriteResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" #include -#include "FastCommentsClient/model/APIError.h" #include "FastCommentsClient/model/APIStatus.h" #include "FastCommentsClient/model/IgnoredResponse.h" @@ -35,15 +32,14 @@ namespace openapitools { namespace client { namespace model { -class CustomConfigParameters; -class UpdateUserNotificationStatus_200_response +class UpdateUserNotificationStatusResponse : public ModelBase { public: - UpdateUserNotificationStatus_200_response(); - virtual ~UpdateUserNotificationStatus_200_response(); + UpdateUserNotificationStatusResponse(); + virtual ~UpdateUserNotificationStatusResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -58,7 +54,7 @@ class UpdateUserNotificationStatus_200_response ///////////////////////////////////////////// - /// UpdateUserNotificationStatus_200_response members + /// UpdateUserNotificationStatusResponse members enum class NoteEnum { @@ -90,41 +86,6 @@ class UpdateUserNotificationStatus_200_response void unsetNote(); void setNote(const NoteEnum value); - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - protected: std::shared_ptr m_Status; @@ -139,27 +100,6 @@ class UpdateUserNotificationStatus_200_response NoteEnum m_Note; bool m_NoteIsSet; - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - }; @@ -168,4 +108,4 @@ class UpdateUserNotificationStatus_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationStatus_200_response_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationStatusResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UploadImageResponse.h b/client/include/FastCommentsClient/model/UploadImageResponse.h index 3b94a85..384aa84 100644 --- a/client/include/FastCommentsClient/model/UploadImageResponse.h +++ b/client/include/FastCommentsClient/model/UploadImageResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UploadImageResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/User.h b/client/include/FastCommentsClient/model/User.h index 6667404..1dfc819 100644 --- a/client/include/FastCommentsClient/model/User.h +++ b/client/include/FastCommentsClient/model/User.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,11 +19,11 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_User_H_ #include -#include #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/DigestEmailFrequency.h" +#include "FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h" #include #include @@ -252,6 +252,11 @@ class User void unsetAdminNotificationFrequency(); void setAdminNotificationFrequency(double value); + std::shared_ptr getAgentApprovalNotificationFrequency() const; + bool agentApprovalNotificationFrequencyIsSet() const; + void unsetAgentApprovalNotificationFrequency(); + void setAgentApprovalNotificationFrequency(const std::shared_ptr& value); + utility::datetime getLastTenantNotificationSentDate() const; bool lastTenantNotificationSentDateIsSet() const; void unsetLastTenantNotificationSentDate(); @@ -357,7 +362,8 @@ class User utility::string_t m__id; bool m__idIsSet; - boost::optional m_TenantId; + utility::string_t m_TenantId; + bool m_TenantIdIsSet; utility::string_t m_Username; bool m_UsernameIsSet; @@ -365,9 +371,11 @@ class User utility::string_t m_DisplayName; bool m_DisplayNameIsSet; - boost::optional m_WebsiteUrl; + utility::string_t m_WebsiteUrl; + bool m_WebsiteUrlIsSet; - boost::optional m_Email; + utility::string_t m_Email; + bool m_EmailIsSet; utility::string_t m_PendingEmail; bool m_PendingEmailIsSet; @@ -381,9 +389,11 @@ class User int64_t m_SignUpDate; bool m_SignUpDateIsSet; - boost::optional m_CreatedFromUrlId; + utility::string_t m_CreatedFromUrlId; + bool m_CreatedFromUrlIdIsSet; - boost::optional m_CreatedFromTenantId; + utility::string_t m_CreatedFromTenantId; + bool m_CreatedFromTenantIdIsSet; utility::string_t m_CreatedFromIpHashed; bool m_CreatedFromIpHashedIsSet; @@ -409,7 +419,8 @@ class User bool m_HideAccountCode; bool m_HideAccountCodeIsSet; - boost::optional m_AvatarSrc; + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; bool m_IsFastCommentsHelpRequestAdmin; bool m_IsFastCommentsHelpRequestAdminIsSet; @@ -465,6 +476,9 @@ class User double m_AdminNotificationFrequency; bool m_AdminNotificationFrequencyIsSet; + std::shared_ptr m_AgentApprovalNotificationFrequency; + bool m_AgentApprovalNotificationFrequencyIsSet; + utility::datetime m_LastTenantNotificationSentDate; bool m_LastTenantNotificationSentDateIsSet; @@ -498,7 +512,8 @@ class User utility::string_t m_PasswordHash; bool m_PasswordHashIsSet; - boost::optional m_AverageTicketAckTimeMS; + double m_AverageTicketAckTimeMS; + bool m_AverageTicketAckTimeMSIsSet; bool m_HasBlockedUsers; bool m_HasBlockedUsersIsSet; diff --git a/client/include/FastCommentsClient/model/UserBadge.h b/client/include/FastCommentsClient/model/UserBadge.h index 1e13994..8e8f22e 100644 --- a/client/include/FastCommentsClient/model/UserBadge.h +++ b/client/include/FastCommentsClient/model/UserBadge.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UserBadge_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserBadge_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -178,15 +177,20 @@ class UserBadge utility::string_t m_DisplayLabel; bool m_DisplayLabelIsSet; - boost::optional m_DisplaySrc; + utility::string_t m_DisplaySrc; + bool m_DisplaySrcIsSet; - boost::optional m_BackgroundColor; + utility::string_t m_BackgroundColor; + bool m_BackgroundColorIsSet; - boost::optional m_BorderColor; + utility::string_t m_BorderColor; + bool m_BorderColorIsSet; - boost::optional m_TextColor; + utility::string_t m_TextColor; + bool m_TextColorIsSet; - boost::optional m_CssClass; + utility::string_t m_CssClass; + bool m_CssClassIsSet; int64_t m_VeteranUserThresholdMillis; bool m_VeteranUserThresholdMillisIsSet; @@ -200,7 +204,8 @@ class UserBadge int32_t m_Order; bool m_OrderIsSet; - boost::optional m_UrlId; + utility::string_t m_UrlId; + bool m_UrlIdIsSet; }; diff --git a/client/include/FastCommentsClient/model/UserBadgeProgress.h b/client/include/FastCommentsClient/model/UserBadgeProgress.h index f4d6b06..38e0fea 100644 --- a/client/include/FastCommentsClient/model/UserBadgeProgress.h +++ b/client/include/FastCommentsClient/model/UserBadgeProgress.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UserBadgeProgress_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserBadgeProgress_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserNotification.h b/client/include/FastCommentsClient/model/UserNotification.h index 60c9d83..6f619a9 100644 --- a/client/include/FastCommentsClient/model/UserNotification.h +++ b/client/include/FastCommentsClient/model/UserNotification.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserNotification_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -186,9 +185,11 @@ class UserNotification utility::string_t m_TenantId; bool m_TenantIdIsSet; - boost::optional m_UserId; + utility::string_t m_UserId; + bool m_UserIdIsSet; - boost::optional m_AnonUserId; + utility::string_t m_AnonUserId; + bool m_AnonUserIdIsSet; utility::string_t m_UrlId; bool m_UrlIdIsSet; @@ -196,7 +197,8 @@ class UserNotification utility::string_t m_Url; bool m_UrlIsSet; - boost::optional m_PageTitle; + utility::string_t m_PageTitle; + bool m_PageTitleIsSet; std::shared_ptr m_RelatedObjectType; bool m_RelatedObjectTypeIsSet; @@ -219,15 +221,20 @@ class UserNotification std::shared_ptr m_Type; bool m_TypeIsSet; - boost::optional m_FromCommentId; + utility::string_t m_FromCommentId; + bool m_FromCommentIdIsSet; - boost::optional m_FromVoteId; + utility::string_t m_FromVoteId; + bool m_FromVoteIdIsSet; - boost::optional m_FromUserName; + utility::string_t m_FromUserName; + bool m_FromUserNameIsSet; - boost::optional m_FromUserId; + utility::string_t m_FromUserId; + bool m_FromUserIdIsSet; - boost::optional m_FromUserAvatarSrc; + utility::string_t m_FromUserAvatarSrc; + bool m_FromUserAvatarSrcIsSet; bool m_OptedOut; bool m_OptedOutIsSet; diff --git a/client/include/FastCommentsClient/model/UserNotificationCount.h b/client/include/FastCommentsClient/model/UserNotificationCount.h index 0e63a5f..2b64c29 100644 --- a/client/include/FastCommentsClient/model/UserNotificationCount.h +++ b/client/include/FastCommentsClient/model/UserNotificationCount.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UserNotificationCount_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserNotificationCount_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserNotificationWriteResponse.h b/client/include/FastCommentsClient/model/UserNotificationWriteResponse.h index d58a79d..a882fc1 100644 --- a/client/include/FastCommentsClient/model/UserNotificationWriteResponse.h +++ b/client/include/FastCommentsClient/model/UserNotificationWriteResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserNotificationWriteResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserPresenceData.h b/client/include/FastCommentsClient/model/UserPresenceData.h index ce7c40e..508214b 100644 --- a/client/include/FastCommentsClient/model/UserPresenceData.h +++ b/client/include/FastCommentsClient/model/UserPresenceData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UserPresenceData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserPresenceData_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserReactsResponse.h b/client/include/FastCommentsClient/model/UserReactsResponse.h index a72e6e4..db80c32 100644 --- a/client/include/FastCommentsClient/model/UserReactsResponse.h +++ b/client/include/FastCommentsClient/model/UserReactsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserReactsResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserSearchResult.h b/client/include/FastCommentsClient/model/UserSearchResult.h index 2a6ccf0..554b16e 100644 --- a/client/include/FastCommentsClient/model/UserSearchResult.h +++ b/client/include/FastCommentsClient/model/UserSearchResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserSearchResult_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -100,7 +99,8 @@ class UserSearchResult utility::string_t m_DisplayName; bool m_DisplayNameIsSet; - boost::optional m_AvatarSrc; + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; TypeEnum m_Type; bool m_TypeIsSet; diff --git a/client/include/FastCommentsClient/model/UserSearchSection.h b/client/include/FastCommentsClient/model/UserSearchSection.h index 9b013bc..0fcb145 100644 --- a/client/include/FastCommentsClient/model/UserSearchSection.h +++ b/client/include/FastCommentsClient/model/UserSearchSection.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UserSearchSection_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserSearchSection_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserSearchSectionResult.h b/client/include/FastCommentsClient/model/UserSearchSectionResult.h index 2a661d9..9a9aaef 100644 --- a/client/include/FastCommentsClient/model/UserSearchSectionResult.h +++ b/client/include/FastCommentsClient/model/UserSearchSectionResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserSearchSectionResult_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserSessionInfo.h b/client/include/FastCommentsClient/model/UserSessionInfo.h index a3dfc54..ab75f05 100644 --- a/client/include/FastCommentsClient/model/UserSessionInfo.h +++ b/client/include/FastCommentsClient/model/UserSessionInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UserSessionInfo_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserSessionInfo_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -135,7 +134,8 @@ class UserSessionInfo bool m_Authorized; bool m_AuthorizedIsSet; - boost::optional m_AvatarSrc; + utility::string_t m_AvatarSrc; + bool m_AvatarSrcIsSet; std::vector> m_Badges; bool m_BadgesIsSet; @@ -146,7 +146,8 @@ class UserSessionInfo utility::string_t m_DisplayName; bool m_DisplayNameIsSet; - boost::optional m_Email; + utility::string_t m_Email; + bool m_EmailIsSet; std::vector m_GroupIds; bool m_GroupIdsIsSet; @@ -160,7 +161,8 @@ class UserSessionInfo bool m_NeedsTOS; bool m_NeedsTOSIsSet; - boost::optional m_SessionId; + utility::string_t m_SessionId; + bool m_SessionIdIsSet; utility::string_t m_Username; bool m_UsernameIsSet; diff --git a/client/include/FastCommentsClient/model/UsersListLocation.h b/client/include/FastCommentsClient/model/UsersListLocation.h new file mode 100644 index 0000000..1eff6a2 --- /dev/null +++ b/client/include/FastCommentsClient/model/UsersListLocation.h @@ -0,0 +1,88 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UsersListLocation.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UsersListLocation_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UsersListLocation_H_ + + +#include "FastCommentsClient/ModelBase.h" + + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + +class UsersListLocation + : public ModelBase +{ +public: + UsersListLocation(); + UsersListLocation(utility::string_t str); + operator utility::string_t() const { + return enumToStrMap.at(getValue()); + } + + + virtual ~UsersListLocation(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + enum class eUsersListLocation + { + _0, + _1, + _2, + _3, + }; + + eUsersListLocation getValue() const; + void setValue(eUsersListLocation const value); + + protected: + eUsersListLocation m_value; + std::map enumToStrMap = { + { eUsersListLocation::_0, _XPLATSTR("_0") }, + { eUsersListLocation::_1, _XPLATSTR("_1") }, + { eUsersListLocation::_2, _XPLATSTR("_2") }, + { eUsersListLocation::_3, _XPLATSTR("_3") } +}; + std::map strToEnumMap = { + { _XPLATSTR("_0"), eUsersListLocation::_0 }, + { _XPLATSTR("_1"), eUsersListLocation::_1 }, + { _XPLATSTR("_2"), eUsersListLocation::_2 }, + { _XPLATSTR("_3"), eUsersListLocation::_3 } +}; + +}; + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UsersListLocation_H_ */ diff --git a/client/include/FastCommentsClient/model/VoteBodyParams.h b/client/include/FastCommentsClient/model/VoteBodyParams.h index 1f850e3..9b9b5cb 100644 --- a/client/include/FastCommentsClient/model/VoteBodyParams.h +++ b/client/include/FastCommentsClient/model/VoteBodyParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteBodyParams_H_ #include -#include #include "FastCommentsClient/ModelBase.h" @@ -86,14 +85,17 @@ class VoteBodyParams protected: - boost::optional m_CommenterEmail; + utility::string_t m_CommenterEmail; + bool m_CommenterEmailIsSet; - boost::optional m_CommenterName; + utility::string_t m_CommenterName; + bool m_CommenterNameIsSet; VoteDirEnum m_VoteDir; bool m_VoteDirIsSet; - boost::optional m_Url; + utility::string_t m_Url; + bool m_UrlIsSet; }; diff --git a/client/include/FastCommentsClient/model/VoteComment_200_response.h b/client/include/FastCommentsClient/model/VoteComment_200_response.h deleted file mode 100644 index f5838ce..0000000 --- a/client/include/FastCommentsClient/model/VoteComment_200_response.h +++ /dev/null @@ -1,171 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * VoteComment_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_VoteComment_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteComment_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/VoteResponseUser.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/VoteResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class VoteResponseUser; -class CustomConfigParameters; - - -class VoteComment_200_response - : public ModelBase -{ -public: - VoteComment_200_response(); - virtual ~VoteComment_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// VoteComment_200_response members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getVoteId() const; - bool voteIdIsSet() const; - void unsetVoteId(); - void setVoteId(const utility::string_t& value); - - bool isIsVerified() const; - bool isVerifiedIsSet() const; - void unsetIsVerified(); - void setIsVerified(bool value); - - std::shared_ptr getUser() const; - bool userIsSet() const; - void unsetUser(); - void setUser(const std::shared_ptr& value); - - utility::string_t getEditKey() const; - bool editKeyIsSet() const; - void unsetEditKey(); - void setEditKey(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_VoteId; - bool m_VoteIdIsSet; - - bool m_IsVerified; - bool m_IsVerifiedIsSet; - - std::shared_ptr m_User; - bool m_UserIsSet; - - utility::string_t m_EditKey; - bool m_EditKeyIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_VoteComment_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/VoteDeleteResponse.h b/client/include/FastCommentsClient/model/VoteDeleteResponse.h index 21c0c72..b8e9836 100644 --- a/client/include/FastCommentsClient/model/VoteDeleteResponse.h +++ b/client/include/FastCommentsClient/model/VoteDeleteResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,7 +19,6 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteDeleteResponse_H_ #include -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/VoteResponse.h b/client/include/FastCommentsClient/model/VoteResponse.h index dc00cdb..dbab0f9 100644 --- a/client/include/FastCommentsClient/model/VoteResponse.h +++ b/client/include/FastCommentsClient/model/VoteResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,11 +18,10 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponse_H_ -#include -#include #include "FastCommentsClient/ModelBase.h" +#include "FastCommentsClient/model/VoteResponse_status.h" #include "FastCommentsClient/model/VoteResponseUser.h" #include @@ -56,21 +55,11 @@ class VoteResponse ///////////////////////////////////////////// /// VoteResponse members - enum class StatusEnum - { - SUCCESS, - FAILED, - PENDING_VERIFICATION, - }; - StatusEnum toStatusEnum(const utility::string_t& value) const; - const utility::string_t fromStatusEnum(const StatusEnum value) const; - - - StatusEnum getStatus() const; + std::shared_ptr getStatus() const; bool statusIsSet() const; void unsetStatus(); - void setStatus(const StatusEnum value); + void setStatus(const std::shared_ptr& value); utility::string_t getVoteId() const; bool voteIdIsSet() const; @@ -94,7 +83,7 @@ class VoteResponse protected: - StatusEnum m_Status; + std::shared_ptr m_Status; bool m_StatusIsSet; utility::string_t m_VoteId; diff --git a/client/include/FastCommentsClient/model/VoteResponseUser.h b/client/include/FastCommentsClient/model/VoteResponseUser.h index 7aa4154..790626c 100644 --- a/client/include/FastCommentsClient/model/VoteResponseUser.h +++ b/client/include/FastCommentsClient/model/VoteResponseUser.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponseUser_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponseUser_H_ -#include #include "FastCommentsClient/ModelBase.h" @@ -61,7 +60,8 @@ class VoteResponseUser protected: - boost::optional m_SessionId; + utility::string_t m_SessionId; + bool m_SessionIdIsSet; }; diff --git a/client/include/FastCommentsClient/model/VoteResponse_status.h b/client/include/FastCommentsClient/model/VoteResponse_status.h new file mode 100644 index 0000000..11b7152 --- /dev/null +++ b/client/include/FastCommentsClient/model/VoteResponse_status.h @@ -0,0 +1,66 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * VoteResponse_status.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponse_status_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponse_status_H_ + + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + + + +class VoteResponse_status + : public ModelBase +{ +public: + VoteResponse_status(); + virtual ~VoteResponse_status(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// VoteResponse_status members + + + +protected: +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponse_status_H_ */ diff --git a/client/include/FastCommentsClient/model/VoteStyle.h b/client/include/FastCommentsClient/model/VoteStyle.h index 4c5989f..d6e34ad 100644 --- a/client/include/FastCommentsClient/model/VoteStyle.h +++ b/client/include/FastCommentsClient/model/VoteStyle.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_VoteStyle_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteStyle_H_ -#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/src/AnyType.cpp b/client/src/AnyType.cpp index 8f3e08f..6c3bad9 100644 --- a/client/src/AnyType.cpp +++ b/client/src/AnyType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/ApiClient.cpp b/client/src/ApiClient.cpp index 9639cdb..73f140e 100644 --- a/client/src/ApiClient.cpp +++ b/client/src/ApiClient.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/ApiConfiguration.cpp b/client/src/ApiConfiguration.cpp index e1d8e4b..b79249d 100644 --- a/client/src/ApiConfiguration.cpp +++ b/client/src/ApiConfiguration.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/ApiException.cpp b/client/src/ApiException.cpp index e9dc5f7..040a2f8 100644 --- a/client/src/ApiException.cpp +++ b/client/src/ApiException.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/HttpContent.cpp b/client/src/HttpContent.cpp index 2e09e27..b98e8cc 100644 --- a/client/src/HttpContent.cpp +++ b/client/src/HttpContent.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/JsonBody.cpp b/client/src/JsonBody.cpp index c85bbf1..ec87e95 100644 --- a/client/src/JsonBody.cpp +++ b/client/src/JsonBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/ModelBase.cpp b/client/src/ModelBase.cpp index 40f5adf..8337188 100644 --- a/client/src/ModelBase.cpp +++ b/client/src/ModelBase.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/MultipartFormData.cpp b/client/src/MultipartFormData.cpp index 84fc7d9..bfdfc02 100644 --- a/client/src/MultipartFormData.cpp +++ b/client/src/MultipartFormData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/Object.cpp b/client/src/Object.cpp index 85e4a42..c29d9f8 100644 --- a/client/src/Object.cpp +++ b/client/src/Object.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/api/DefaultApi.cpp b/client/src/api/DefaultApi.cpp index f9d816e..29e2980 100644 --- a/client/src/api/DefaultApi.cpp +++ b/client/src/api/DefaultApi.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -35,7 +35,7 @@ DefaultApi::~DefaultApi() { } -pplx::task> DefaultApi::addDomainConfig(utility::string_t tenantId, std::shared_ptr addDomainConfigParams) const +pplx::task> DefaultApi::addDomainConfig(utility::string_t tenantId, std::shared_ptr addDomainConfigParams) const { // verify the required parameter 'addDomainConfigParams' is set @@ -127,7 +127,7 @@ pplx::task> DefaultApi::addDomainC // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -170,7 +170,7 @@ pplx::task> DefaultApi::addDomainC }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new AddDomainConfig_200_response()); + std::shared_ptr localVarResult(new AddDomainConfigResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -191,7 +191,7 @@ pplx::task> DefaultApi::addDomainC return localVarResult; }); } -pplx::task> DefaultApi::addHashTag(boost::optional tenantId, boost::optional> createHashTagBody) const +pplx::task> DefaultApi::addHashTag(boost::optional tenantId, boost::optional> createHashTagBody) const { @@ -278,7 +278,7 @@ pplx::task> DefaultApi::addHashTag(boos // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -321,7 +321,7 @@ pplx::task> DefaultApi::addHashTag(boos }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new AddHashTag_200_response()); + std::shared_ptr localVarResult(new CreateHashTagResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -342,7 +342,7 @@ pplx::task> DefaultApi::addHashTag(boos return localVarResult; }); } -pplx::task> DefaultApi::addHashTagsBulk(boost::optional tenantId, boost::optional> bulkCreateHashTagsBody) const +pplx::task> DefaultApi::addHashTagsBulk(boost::optional tenantId, boost::optional> bulkCreateHashTagsBody) const { @@ -429,7 +429,7 @@ pplx::task> DefaultApi::addHashTag // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -472,7 +472,7 @@ pplx::task> DefaultApi::addHashTag }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new AddHashTagsBulk_200_response()); + std::shared_ptr localVarResult(new BulkCreateHashTagsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -585,7 +585,7 @@ pplx::task> DefaultApi::addPage(utility::str // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -741,7 +741,7 @@ pplx::task> DefaultApi::addSSOUser(utilit // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -805,7 +805,7 @@ pplx::task> DefaultApi::addSSOUser(utilit return localVarResult; }); } -pplx::task> DefaultApi::aggregate(utility::string_t tenantId, std::shared_ptr aggregationRequest, boost::optional parentTenantId, boost::optional includeStats) const +pplx::task> DefaultApi::aggregate(utility::string_t tenantId, std::shared_ptr aggregationRequest, boost::optional parentTenantId, boost::optional includeStats) const { // verify the required parameter 'aggregationRequest' is set @@ -905,7 +905,7 @@ pplx::task> DefaultApi::aggregate(utility:: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -948,7 +948,7 @@ pplx::task> DefaultApi::aggregate(utility:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new AggregationResponse()); + std::shared_ptr localVarResult(new AggregateResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -969,7 +969,7 @@ pplx::task> DefaultApi::aggregate(utility:: return localVarResult; }); } -pplx::task> DefaultApi::aggregateQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional> timeBucket, boost::optional startDate, boost::optional forceRecalculate) const +pplx::task> DefaultApi::aggregateQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional> timeBucket, boost::optional startDate, boost::optional forceRecalculate) const { @@ -1062,7 +1062,7 @@ pplx::task> DefaultApi::a // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -1105,7 +1105,7 @@ pplx::task> DefaultApi::a }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new AggregateQuestionResults_200_response()); + std::shared_ptr localVarResult(new AggregateQuestionResultsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1126,7 +1126,7 @@ pplx::task> DefaultApi::a return localVarResult; }); } -pplx::task> DefaultApi::blockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr blockFromCommentParams, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::blockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr blockFromCommentParams, boost::optional userId, boost::optional anonUserId) const { // verify the required parameter 'blockFromCommentParams' is set @@ -1227,7 +1227,7 @@ pplx::task> DefaultApi::blo // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -1270,7 +1270,7 @@ pplx::task> DefaultApi::blo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new BlockFromCommentPublic_200_response()); + std::shared_ptr localVarResult(new BlockSuccess()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1291,7 +1291,7 @@ pplx::task> DefaultApi::blo return localVarResult; }); } -pplx::task> DefaultApi::bulkAggregateQuestionResults(utility::string_t tenantId, std::shared_ptr bulkAggregateQuestionResultsRequest, boost::optional forceRecalculate) const +pplx::task> DefaultApi::bulkAggregateQuestionResults(utility::string_t tenantId, std::shared_ptr bulkAggregateQuestionResultsRequest, boost::optional forceRecalculate) const { // verify the required parameter 'bulkAggregateQuestionResultsRequest' is set @@ -1387,7 +1387,7 @@ pplx::task> DefaultAp // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -1430,7 +1430,7 @@ pplx::task> DefaultAp }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new BulkAggregateQuestionResults_200_response()); + std::shared_ptr localVarResult(new BulkAggregateQuestionResultsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1451,7 +1451,7 @@ pplx::task> DefaultAp return localVarResult; }); } -pplx::task> DefaultApi::changeTicketState(utility::string_t tenantId, utility::string_t userId, utility::string_t id, std::shared_ptr changeTicketStateBody) const +pplx::task> DefaultApi::changeTicketState(utility::string_t tenantId, utility::string_t userId, utility::string_t id, std::shared_ptr changeTicketStateBody) const { // verify the required parameter 'changeTicketStateBody' is set @@ -1547,7 +1547,7 @@ pplx::task> DefaultApi::changeTi // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -1590,7 +1590,7 @@ pplx::task> DefaultApi::changeTi }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ChangeTicketState_200_response()); + std::shared_ptr localVarResult(new ChangeTicketStateResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1611,7 +1611,7 @@ pplx::task> DefaultApi::changeTi return localVarResult; }); } -pplx::task> DefaultApi::combineCommentsWithQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional startDate, boost::optional forceRecalculate, boost::optional minValue, boost::optional maxValue, boost::optional limit) const +pplx::task> DefaultApi::combineCommentsWithQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional startDate, boost::optional forceRecalculate, boost::optional minValue, boost::optional maxValue, boost::optional limit) const { @@ -1712,7 +1712,7 @@ pplx::task> Def // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -1755,7 +1755,7 @@ pplx::task> Def }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CombineCommentsWithQuestionResults_200_response()); + std::shared_ptr localVarResult(new CombineQuestionResultsWithCommentsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1776,7 +1776,7 @@ pplx::task> Def return localVarResult; }); } -pplx::task> DefaultApi::createEmailTemplate(utility::string_t tenantId, std::shared_ptr createEmailTemplateBody) const +pplx::task> DefaultApi::createEmailTemplate(utility::string_t tenantId, std::shared_ptr createEmailTemplateBody) const { // verify the required parameter 'createEmailTemplateBody' is set @@ -1868,7 +1868,7 @@ pplx::task> DefaultApi::create // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -1911,7 +1911,7 @@ pplx::task> DefaultApi::create }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateEmailTemplate_200_response()); + std::shared_ptr localVarResult(new CreateEmailTemplateResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1932,7 +1932,7 @@ pplx::task> DefaultApi::create return localVarResult; }); } -pplx::task> DefaultApi::createFeedPost(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional isLive, boost::optional doSpamCheck, boost::optional skipDupCheck) const +pplx::task> DefaultApi::createFeedPost(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional isLive, boost::optional doSpamCheck, boost::optional skipDupCheck) const { // verify the required parameter 'createFeedPostParams' is set @@ -2040,7 +2040,7 @@ pplx::task> DefaultApi::createFeedP // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -2083,7 +2083,7 @@ pplx::task> DefaultApi::createFeedP }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateFeedPost_200_response()); + std::shared_ptr localVarResult(new CreateFeedPostsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2104,7 +2104,7 @@ pplx::task> DefaultApi::createFeedP return localVarResult; }); } -pplx::task> DefaultApi::createModerator(utility::string_t tenantId, std::shared_ptr createModeratorBody) const +pplx::task> DefaultApi::createModerator(utility::string_t tenantId, std::shared_ptr createModeratorBody) const { // verify the required parameter 'createModeratorBody' is set @@ -2196,7 +2196,7 @@ pplx::task> DefaultApi::createMode // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -2239,7 +2239,7 @@ pplx::task> DefaultApi::createMode }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateModerator_200_response()); + std::shared_ptr localVarResult(new CreateModeratorResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2260,7 +2260,7 @@ pplx::task> DefaultApi::createMode return localVarResult; }); } -pplx::task> DefaultApi::createQuestionConfig(utility::string_t tenantId, std::shared_ptr createQuestionConfigBody) const +pplx::task> DefaultApi::createQuestionConfig(utility::string_t tenantId, std::shared_ptr createQuestionConfigBody) const { // verify the required parameter 'createQuestionConfigBody' is set @@ -2352,7 +2352,7 @@ pplx::task> DefaultApi::creat // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -2395,7 +2395,7 @@ pplx::task> DefaultApi::creat }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateQuestionConfig_200_response()); + std::shared_ptr localVarResult(new CreateQuestionConfigResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2416,7 +2416,7 @@ pplx::task> DefaultApi::creat return localVarResult; }); } -pplx::task> DefaultApi::createQuestionResult(utility::string_t tenantId, std::shared_ptr createQuestionResultBody) const +pplx::task> DefaultApi::createQuestionResult(utility::string_t tenantId, std::shared_ptr createQuestionResultBody) const { // verify the required parameter 'createQuestionResultBody' is set @@ -2508,7 +2508,7 @@ pplx::task> DefaultApi::creat // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -2551,7 +2551,7 @@ pplx::task> DefaultApi::creat }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateQuestionResult_200_response()); + std::shared_ptr localVarResult(new CreateQuestionResultResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2664,7 +2664,7 @@ pplx::task> DefaultApi::createSub // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -2728,7 +2728,7 @@ pplx::task> DefaultApi::createSub return localVarResult; }); } -pplx::task> DefaultApi::createTenant(utility::string_t tenantId, std::shared_ptr createTenantBody) const +pplx::task> DefaultApi::createTenant(utility::string_t tenantId, std::shared_ptr createTenantBody) const { // verify the required parameter 'createTenantBody' is set @@ -2820,7 +2820,7 @@ pplx::task> DefaultApi::createTenant( // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -2863,7 +2863,7 @@ pplx::task> DefaultApi::createTenant( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateTenant_200_response()); + std::shared_ptr localVarResult(new CreateTenantResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2884,7 +2884,7 @@ pplx::task> DefaultApi::createTenant( return localVarResult; }); } -pplx::task> DefaultApi::createTenantPackage(utility::string_t tenantId, std::shared_ptr createTenantPackageBody) const +pplx::task> DefaultApi::createTenantPackage(utility::string_t tenantId, std::shared_ptr createTenantPackageBody) const { // verify the required parameter 'createTenantPackageBody' is set @@ -2976,7 +2976,7 @@ pplx::task> DefaultApi::create // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -3019,7 +3019,7 @@ pplx::task> DefaultApi::create }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateTenantPackage_200_response()); + std::shared_ptr localVarResult(new CreateTenantPackageResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3040,7 +3040,7 @@ pplx::task> DefaultApi::create return localVarResult; }); } -pplx::task> DefaultApi::createTenantUser(utility::string_t tenantId, std::shared_ptr createTenantUserBody) const +pplx::task> DefaultApi::createTenantUser(utility::string_t tenantId, std::shared_ptr createTenantUserBody) const { // verify the required parameter 'createTenantUserBody' is set @@ -3132,7 +3132,7 @@ pplx::task> DefaultApi::createTen // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -3175,7 +3175,7 @@ pplx::task> DefaultApi::createTen }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateTenantUser_200_response()); + std::shared_ptr localVarResult(new CreateTenantUserResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3196,7 +3196,7 @@ pplx::task> DefaultApi::createTen return localVarResult; }); } -pplx::task> DefaultApi::createTicket(utility::string_t tenantId, utility::string_t userId, std::shared_ptr createTicketBody) const +pplx::task> DefaultApi::createTicket(utility::string_t tenantId, utility::string_t userId, std::shared_ptr createTicketBody) const { // verify the required parameter 'createTicketBody' is set @@ -3291,7 +3291,7 @@ pplx::task> DefaultApi::createTicket( // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -3334,7 +3334,7 @@ pplx::task> DefaultApi::createTicket( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateTicket_200_response()); + std::shared_ptr localVarResult(new CreateTicketResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3355,7 +3355,7 @@ pplx::task> DefaultApi::createTicket( return localVarResult; }); } -pplx::task> DefaultApi::createUserBadge(utility::string_t tenantId, std::shared_ptr createUserBadgeParams) const +pplx::task> DefaultApi::createUserBadge(utility::string_t tenantId, std::shared_ptr createUserBadgeParams) const { // verify the required parameter 'createUserBadgeParams' is set @@ -3447,7 +3447,7 @@ pplx::task> DefaultApi::createUser // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -3490,7 +3490,7 @@ pplx::task> DefaultApi::createUser }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateUserBadge_200_response()); + std::shared_ptr localVarResult(new APICreateUserBadgeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3511,7 +3511,7 @@ pplx::task> DefaultApi::createUser return localVarResult; }); } -pplx::task> DefaultApi::createVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t direction, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::createVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t direction, boost::optional userId, boost::optional anonUserId) const { @@ -3594,7 +3594,7 @@ pplx::task> DefaultApi::createVote(uti // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -3637,7 +3637,7 @@ pplx::task> DefaultApi::createVote(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new VoteComment_200_response()); + std::shared_ptr localVarResult(new VoteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3658,7 +3658,7 @@ pplx::task> DefaultApi::createVote(uti return localVarResult; }); } -pplx::task> DefaultApi::deleteComment(utility::string_t tenantId, utility::string_t id, boost::optional contextUserId, boost::optional isLive) const +pplx::task> DefaultApi::deleteComment(utility::string_t tenantId, utility::string_t id, boost::optional contextUserId, boost::optional isLive) const { @@ -3736,7 +3736,7 @@ pplx::task> DefaultApi::deleteCommen // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -3779,7 +3779,7 @@ pplx::task> DefaultApi::deleteCommen }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteComment_200_response()); + std::shared_ptr localVarResult(new DeleteCommentResult()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3800,7 +3800,7 @@ pplx::task> DefaultApi::deleteCommen return localVarResult; }); } -pplx::task> DefaultApi::deleteDomainConfig(utility::string_t tenantId, utility::string_t domain) const +pplx::task> DefaultApi::deleteDomainConfig(utility::string_t tenantId, utility::string_t domain) const { @@ -3870,7 +3870,7 @@ pplx::task> DefaultApi::deleteD // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -3913,7 +3913,7 @@ pplx::task> DefaultApi::deleteD }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteDomainConfig_200_response()); + std::shared_ptr localVarResult(new DeleteDomainConfigResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3934,7 +3934,7 @@ pplx::task> DefaultApi::deleteD return localVarResult; }); } -pplx::task> DefaultApi::deleteEmailTemplate(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteEmailTemplate(utility::string_t tenantId, utility::string_t id) const { @@ -4004,7 +4004,7 @@ pplx::task> DefaultApi::deleteEm // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4047,7 +4047,7 @@ pplx::task> DefaultApi::deleteEm }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4068,7 +4068,7 @@ pplx::task> DefaultApi::deleteEm return localVarResult; }); } -pplx::task> DefaultApi::deleteEmailTemplateRenderError(utility::string_t tenantId, utility::string_t id, utility::string_t errorId) const +pplx::task> DefaultApi::deleteEmailTemplateRenderError(utility::string_t tenantId, utility::string_t id, utility::string_t errorId) const { @@ -4139,7 +4139,7 @@ pplx::task> DefaultApi::deleteEm // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4182,7 +4182,7 @@ pplx::task> DefaultApi::deleteEm }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4203,7 +4203,7 @@ pplx::task> DefaultApi::deleteEm return localVarResult; }); } -pplx::task> DefaultApi::deleteHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> deleteHashTagRequest) const +pplx::task> DefaultApi::deleteHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> deleteHashTagRequestBody) const { @@ -4260,8 +4260,8 @@ pplx::task> DefaultApi::deleteHa localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); web::json::value localVarJson; - if (deleteHashTagRequest) - localVarJson = ModelBase::toJson(*deleteHashTagRequest); + if (deleteHashTagRequestBody) + localVarJson = ModelBase::toJson(*deleteHashTagRequestBody); localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); } @@ -4271,9 +4271,9 @@ pplx::task> DefaultApi::deleteHa localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); std::shared_ptr localVarMultipart(new MultipartFormData); - if(deleteHashTagRequest && (*deleteHashTagRequest).get()) + if(deleteHashTagRequestBody && (*deleteHashTagRequestBody).get()) { - (*deleteHashTagRequest)->toMultipart(localVarMultipart, utility::conversions::to_string_t("deleteHashTagRequest")); + (*deleteHashTagRequestBody)->toMultipart(localVarMultipart, utility::conversions::to_string_t("deleteHashTagRequestBody")); } @@ -4291,7 +4291,7 @@ pplx::task> DefaultApi::deleteHa // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4334,7 +4334,7 @@ pplx::task> DefaultApi::deleteHa }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4355,7 +4355,7 @@ pplx::task> DefaultApi::deleteHa return localVarResult; }); } -pplx::task> DefaultApi::deleteModerator(utility::string_t tenantId, utility::string_t id, boost::optional sendEmail) const +pplx::task> DefaultApi::deleteModerator(utility::string_t tenantId, utility::string_t id, boost::optional sendEmail) const { @@ -4429,7 +4429,7 @@ pplx::task> DefaultApi::deleteMo // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4472,7 +4472,7 @@ pplx::task> DefaultApi::deleteMo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4493,7 +4493,7 @@ pplx::task> DefaultApi::deleteMo return localVarResult; }); } -pplx::task> DefaultApi::deleteNotificationCount(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteNotificationCount(utility::string_t tenantId, utility::string_t id) const { @@ -4563,7 +4563,7 @@ pplx::task> DefaultApi::deleteNo // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4606,7 +4606,7 @@ pplx::task> DefaultApi::deleteNo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4697,7 +4697,7 @@ pplx::task> DefaultApi::deletePage(utilit // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4761,7 +4761,7 @@ pplx::task> DefaultApi::deletePage(utilit return localVarResult; }); } -pplx::task> DefaultApi::deletePendingWebhookEvent(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deletePendingWebhookEvent(utility::string_t tenantId, utility::string_t id) const { @@ -4831,7 +4831,7 @@ pplx::task> DefaultApi::deletePe // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4874,7 +4874,7 @@ pplx::task> DefaultApi::deletePe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4895,7 +4895,7 @@ pplx::task> DefaultApi::deletePe return localVarResult; }); } -pplx::task> DefaultApi::deleteQuestionConfig(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteQuestionConfig(utility::string_t tenantId, utility::string_t id) const { @@ -4965,7 +4965,7 @@ pplx::task> DefaultApi::deleteQu // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5008,7 +5008,7 @@ pplx::task> DefaultApi::deleteQu }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5029,7 +5029,7 @@ pplx::task> DefaultApi::deleteQu return localVarResult; }); } -pplx::task> DefaultApi::deleteQuestionResult(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteQuestionResult(utility::string_t tenantId, utility::string_t id) const { @@ -5099,7 +5099,7 @@ pplx::task> DefaultApi::deleteQu // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5142,7 +5142,7 @@ pplx::task> DefaultApi::deleteQu }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5241,7 +5241,7 @@ pplx::task> DefaultApi::deleteSSOUser( // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5379,7 +5379,7 @@ pplx::task> DefaultApi::deleteSub // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5443,7 +5443,7 @@ pplx::task> DefaultApi::deleteSub return localVarResult; }); } -pplx::task> DefaultApi::deleteTenant(utility::string_t tenantId, utility::string_t id, boost::optional sure) const +pplx::task> DefaultApi::deleteTenant(utility::string_t tenantId, utility::string_t id, boost::optional sure) const { @@ -5517,7 +5517,7 @@ pplx::task> DefaultApi::deleteTe // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5560,7 +5560,7 @@ pplx::task> DefaultApi::deleteTe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5581,7 +5581,7 @@ pplx::task> DefaultApi::deleteTe return localVarResult; }); } -pplx::task> DefaultApi::deleteTenantPackage(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteTenantPackage(utility::string_t tenantId, utility::string_t id) const { @@ -5651,7 +5651,7 @@ pplx::task> DefaultApi::deleteTe // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5694,7 +5694,7 @@ pplx::task> DefaultApi::deleteTe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5715,7 +5715,7 @@ pplx::task> DefaultApi::deleteTe return localVarResult; }); } -pplx::task> DefaultApi::deleteTenantUser(utility::string_t tenantId, utility::string_t id, boost::optional deleteComments, boost::optional commentDeleteMode) const +pplx::task> DefaultApi::deleteTenantUser(utility::string_t tenantId, utility::string_t id, boost::optional deleteComments, boost::optional commentDeleteMode) const { @@ -5793,7 +5793,7 @@ pplx::task> DefaultApi::deleteTe // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5836,7 +5836,7 @@ pplx::task> DefaultApi::deleteTe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5857,7 +5857,7 @@ pplx::task> DefaultApi::deleteTe return localVarResult; }); } -pplx::task> DefaultApi::deleteUserBadge(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteUserBadge(utility::string_t tenantId, utility::string_t id) const { @@ -5927,7 +5927,7 @@ pplx::task> DefaultApi::deleteUser // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5970,7 +5970,7 @@ pplx::task> DefaultApi::deleteUser }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateUserBadge_200_response()); + std::shared_ptr localVarResult(new APIEmptySuccessResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5991,7 +5991,7 @@ pplx::task> DefaultApi::deleteUser return localVarResult; }); } -pplx::task> DefaultApi::deleteVote(utility::string_t tenantId, utility::string_t id, boost::optional editKey) const +pplx::task> DefaultApi::deleteVote(utility::string_t tenantId, utility::string_t id, boost::optional editKey) const { @@ -6065,7 +6065,7 @@ pplx::task> DefaultApi::deleteVo // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6108,7 +6108,7 @@ pplx::task> DefaultApi::deleteVo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteCommentVote_200_response()); + std::shared_ptr localVarResult(new VoteDeleteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6129,7 +6129,7 @@ pplx::task> DefaultApi::deleteVo return localVarResult; }); } -pplx::task> DefaultApi::flagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::flagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const { @@ -6207,7 +6207,7 @@ pplx::task> DefaultApi::flagComment(ut // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6250,7 +6250,7 @@ pplx::task> DefaultApi::flagComment(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagComment_200_response()); + std::shared_ptr localVarResult(new FlagCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6271,7 +6271,7 @@ pplx::task> DefaultApi::flagComment(ut return localVarResult; }); } -pplx::task> DefaultApi::getAuditLogs(utility::string_t tenantId, boost::optional limit, boost::optional skip, boost::optional> order, boost::optional after, boost::optional before) const +pplx::task> DefaultApi::getAuditLogs(utility::string_t tenantId, boost::optional limit, boost::optional skip, boost::optional> order, boost::optional after, boost::optional before) const { @@ -6360,7 +6360,7 @@ pplx::task> DefaultApi::getAuditLogs( // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6403,7 +6403,7 @@ pplx::task> DefaultApi::getAuditLogs( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetAuditLogs_200_response()); + std::shared_ptr localVarResult(new GetAuditLogsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6424,7 +6424,7 @@ pplx::task> DefaultApi::getAuditLogs( return localVarResult; }); } -pplx::task> DefaultApi::getCachedNotificationCount(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getCachedNotificationCount(utility::string_t tenantId, utility::string_t id) const { @@ -6494,7 +6494,7 @@ pplx::task> DefaultApi: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6537,7 +6537,7 @@ pplx::task> DefaultApi: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCachedNotificationCount_200_response()); + std::shared_ptr localVarResult(new GetCachedNotificationCountResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6558,7 +6558,7 @@ pplx::task> DefaultApi: return localVarResult; }); } -pplx::task> DefaultApi::getComment(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getComment(utility::string_t tenantId, utility::string_t id) const { @@ -6628,7 +6628,7 @@ pplx::task> DefaultApi::getComment(util // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6671,7 +6671,7 @@ pplx::task> DefaultApi::getComment(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetComment_200_response()); + std::shared_ptr localVarResult(new APIGetCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6692,7 +6692,7 @@ pplx::task> DefaultApi::getComment(util return localVarResult; }); } -pplx::task> DefaultApi::getComments(utility::string_t tenantId, boost::optional page, boost::optional limit, boost::optional skip, boost::optional asTree, boost::optional skipChildren, boost::optional limitChildren, boost::optional maxTreeDepth, boost::optional urlId, boost::optional userId, boost::optional anonUserId, boost::optional contextUserId, boost::optional hashTag, boost::optional parentId, boost::optional> direction) const +pplx::task> DefaultApi::getComments(utility::string_t tenantId, boost::optional page, boost::optional limit, boost::optional skip, boost::optional asTree, boost::optional skipChildren, boost::optional limitChildren, boost::optional maxTreeDepth, boost::optional urlId, boost::optional userId, boost::optional anonUserId, boost::optional contextUserId, boost::optional hashTag, boost::optional parentId, boost::optional> direction, boost::optional fromDate, boost::optional toDate) const { @@ -6792,6 +6792,14 @@ pplx::task> DefaultApi::getComments(ut { localVarQueryParams[utility::conversions::to_string_t("direction")] = ApiClient::parameterToString(*direction); } + if (fromDate) + { + localVarQueryParams[utility::conversions::to_string_t("fromDate")] = ApiClient::parameterToString(*fromDate); + } + if (toDate) + { + localVarQueryParams[utility::conversions::to_string_t("toDate")] = ApiClient::parameterToString(*toDate); + } std::shared_ptr localVarHttpBody; utility::string_t localVarRequestHttpContentType; @@ -6817,7 +6825,7 @@ pplx::task> DefaultApi::getComments(ut // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6860,7 +6868,7 @@ pplx::task> DefaultApi::getComments(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetComments_200_response()); + std::shared_ptr localVarResult(new APIGetCommentsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6881,7 +6889,7 @@ pplx::task> DefaultApi::getComments(ut return localVarResult; }); } -pplx::task> DefaultApi::getDomainConfig(utility::string_t tenantId, utility::string_t domain) const +pplx::task> DefaultApi::getDomainConfig(utility::string_t tenantId, utility::string_t domain) const { @@ -6951,7 +6959,7 @@ pplx::task> DefaultApi::getDomainC // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6994,7 +7002,7 @@ pplx::task> DefaultApi::getDomainC }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetDomainConfig_200_response()); + std::shared_ptr localVarResult(new GetDomainConfigResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7015,7 +7023,7 @@ pplx::task> DefaultApi::getDomainC return localVarResult; }); } -pplx::task> DefaultApi::getDomainConfigs(utility::string_t tenantId) const +pplx::task> DefaultApi::getDomainConfigs(utility::string_t tenantId) const { @@ -7084,7 +7092,7 @@ pplx::task> DefaultApi::getDomain // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7127,7 +7135,7 @@ pplx::task> DefaultApi::getDomain }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetDomainConfigs_200_response()); + std::shared_ptr localVarResult(new GetDomainConfigsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7148,7 +7156,7 @@ pplx::task> DefaultApi::getDomain return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplate(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getEmailTemplate(utility::string_t tenantId, utility::string_t id) const { @@ -7218,7 +7226,7 @@ pplx::task> DefaultApi::getEmailT // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7261,7 +7269,7 @@ pplx::task> DefaultApi::getEmailT }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEmailTemplate_200_response()); + std::shared_ptr localVarResult(new GetEmailTemplateResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7282,7 +7290,7 @@ pplx::task> DefaultApi::getEmailT return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplateDefinitions(utility::string_t tenantId) const +pplx::task> DefaultApi::getEmailTemplateDefinitions(utility::string_t tenantId) const { @@ -7351,7 +7359,7 @@ pplx::task> DefaultApi // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7394,7 +7402,7 @@ pplx::task> DefaultApi }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEmailTemplateDefinitions_200_response()); + std::shared_ptr localVarResult(new GetEmailTemplateDefinitionsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7415,7 +7423,7 @@ pplx::task> DefaultApi return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplateRenderErrors(utility::string_t tenantId, utility::string_t id, boost::optional skip) const +pplx::task> DefaultApi::getEmailTemplateRenderErrors(utility::string_t tenantId, utility::string_t id, boost::optional skip) const { @@ -7489,7 +7497,7 @@ pplx::task> DefaultAp // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7532,7 +7540,7 @@ pplx::task> DefaultAp }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEmailTemplateRenderErrors_200_response()); + std::shared_ptr localVarResult(new GetEmailTemplateRenderErrorsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7553,7 +7561,7 @@ pplx::task> DefaultAp return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplates(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getEmailTemplates(utility::string_t tenantId, boost::optional skip) const { @@ -7626,7 +7634,7 @@ pplx::task> DefaultApi::getEmail // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7669,7 +7677,7 @@ pplx::task> DefaultApi::getEmail }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEmailTemplates_200_response()); + std::shared_ptr localVarResult(new GetEmailTemplatesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7690,7 +7698,7 @@ pplx::task> DefaultApi::getEmail return localVarResult; }); } -pplx::task> DefaultApi::getFeedPosts(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags) const +pplx::task> DefaultApi::getFeedPosts(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags) const { @@ -7771,7 +7779,7 @@ pplx::task> DefaultApi::getFeedPosts( // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7814,7 +7822,7 @@ pplx::task> DefaultApi::getFeedPosts( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetFeedPosts_200_response()); + std::shared_ptr localVarResult(new GetFeedPostsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7835,7 +7843,7 @@ pplx::task> DefaultApi::getFeedPosts( return localVarResult; }); } -pplx::task> DefaultApi::getHashTags(utility::string_t tenantId, boost::optional page) const +pplx::task> DefaultApi::getHashTags(utility::string_t tenantId, boost::optional page) const { @@ -7908,7 +7916,7 @@ pplx::task> DefaultApi::getHashTags(ut // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7951,7 +7959,7 @@ pplx::task> DefaultApi::getHashTags(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetHashTags_200_response()); + std::shared_ptr localVarResult(new GetHashTagsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7972,7 +7980,7 @@ pplx::task> DefaultApi::getHashTags(ut return localVarResult; }); } -pplx::task> DefaultApi::getModerator(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getModerator(utility::string_t tenantId, utility::string_t id) const { @@ -8042,7 +8050,7 @@ pplx::task> DefaultApi::getModerator( // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8085,7 +8093,7 @@ pplx::task> DefaultApi::getModerator( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetModerator_200_response()); + std::shared_ptr localVarResult(new GetModeratorResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8106,7 +8114,7 @@ pplx::task> DefaultApi::getModerator( return localVarResult; }); } -pplx::task> DefaultApi::getModerators(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getModerators(utility::string_t tenantId, boost::optional skip) const { @@ -8179,7 +8187,7 @@ pplx::task> DefaultApi::getModerator // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8222,7 +8230,7 @@ pplx::task> DefaultApi::getModerator }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetModerators_200_response()); + std::shared_ptr localVarResult(new GetModeratorsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8243,7 +8251,7 @@ pplx::task> DefaultApi::getModerator return localVarResult; }); } -pplx::task> DefaultApi::getNotificationCount(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type) const +pplx::task> DefaultApi::getNotificationCount(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type) const { @@ -8332,7 +8340,7 @@ pplx::task> DefaultApi::getNo // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8375,7 +8383,7 @@ pplx::task> DefaultApi::getNo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetNotificationCount_200_response()); + std::shared_ptr localVarResult(new GetNotificationCountResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8396,7 +8404,7 @@ pplx::task> DefaultApi::getNo return localVarResult; }); } -pplx::task> DefaultApi::getNotifications(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type, boost::optional skip) const +pplx::task> DefaultApi::getNotifications(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type, boost::optional skip) const { @@ -8489,7 +8497,7 @@ pplx::task> DefaultApi::getNotifi // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8532,7 +8540,7 @@ pplx::task> DefaultApi::getNotifi }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetNotifications_200_response()); + std::shared_ptr localVarResult(new GetNotificationsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8625,7 +8633,7 @@ pplx::task> DefaultApi::getPageByURLI // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8758,7 +8766,7 @@ pplx::task> DefaultApi::getPages(utility::s // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8822,7 +8830,7 @@ pplx::task> DefaultApi::getPages(utility::s return localVarResult; }); } -pplx::task> DefaultApi::getPendingWebhookEventCount(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT) const +pplx::task> DefaultApi::getPendingWebhookEventCount(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT) const { @@ -8915,7 +8923,7 @@ pplx::task> DefaultApi // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8958,7 +8966,7 @@ pplx::task> DefaultApi }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetPendingWebhookEventCount_200_response()); + std::shared_ptr localVarResult(new GetPendingWebhookEventCountResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8979,7 +8987,7 @@ pplx::task> DefaultApi return localVarResult; }); } -pplx::task> DefaultApi::getPendingWebhookEvents(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT, boost::optional skip) const +pplx::task> DefaultApi::getPendingWebhookEvents(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT, boost::optional skip) const { @@ -9076,7 +9084,7 @@ pplx::task> DefaultApi::ge // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9119,7 +9127,7 @@ pplx::task> DefaultApi::ge }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetPendingWebhookEvents_200_response()); + std::shared_ptr localVarResult(new GetPendingWebhookEventsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -9140,7 +9148,7 @@ pplx::task> DefaultApi::ge return localVarResult; }); } -pplx::task> DefaultApi::getQuestionConfig(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getQuestionConfig(utility::string_t tenantId, utility::string_t id) const { @@ -9210,7 +9218,7 @@ pplx::task> DefaultApi::getQuest // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9253,7 +9261,7 @@ pplx::task> DefaultApi::getQuest }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetQuestionConfig_200_response()); + std::shared_ptr localVarResult(new GetQuestionConfigResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -9274,7 +9282,7 @@ pplx::task> DefaultApi::getQuest return localVarResult; }); } -pplx::task> DefaultApi::getQuestionConfigs(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getQuestionConfigs(utility::string_t tenantId, boost::optional skip) const { @@ -9347,7 +9355,7 @@ pplx::task> DefaultApi::getQues // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9390,7 +9398,7 @@ pplx::task> DefaultApi::getQues }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetQuestionConfigs_200_response()); + std::shared_ptr localVarResult(new GetQuestionConfigsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -9411,7 +9419,7 @@ pplx::task> DefaultApi::getQues return localVarResult; }); } -pplx::task> DefaultApi::getQuestionResult(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getQuestionResult(utility::string_t tenantId, utility::string_t id) const { @@ -9481,7 +9489,7 @@ pplx::task> DefaultApi::getQuest // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9524,7 +9532,7 @@ pplx::task> DefaultApi::getQuest }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetQuestionResult_200_response()); + std::shared_ptr localVarResult(new GetQuestionResultResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -9545,7 +9553,7 @@ pplx::task> DefaultApi::getQuest return localVarResult; }); } -pplx::task> DefaultApi::getQuestionResults(utility::string_t tenantId, boost::optional urlId, boost::optional userId, boost::optional startDate, boost::optional questionId, boost::optional questionIds, boost::optional skip) const +pplx::task> DefaultApi::getQuestionResults(utility::string_t tenantId, boost::optional urlId, boost::optional userId, boost::optional startDate, boost::optional questionId, boost::optional questionIds, boost::optional skip) const { @@ -9638,7 +9646,7 @@ pplx::task> DefaultApi::getQues // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9681,7 +9689,7 @@ pplx::task> DefaultApi::getQues }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetQuestionResults_200_response()); + std::shared_ptr localVarResult(new GetQuestionResultsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -9772,7 +9780,7 @@ pplx::task> DefaultApi::getSSOUser // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9906,7 +9914,7 @@ pplx::task> DefaultApi::getSSOUserByI // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9970,7 +9978,7 @@ pplx::task> DefaultApi::getSSOUserByI return localVarResult; }); } -pplx::task> DefaultApi::getSSOUsers(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getSSOUsers(utility::string_t tenantId, boost::optional skip) const { @@ -10043,7 +10051,7 @@ pplx::task> DefaultApi::getSSOUsers(ut // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10086,7 +10094,7 @@ pplx::task> DefaultApi::getSSOUsers(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetSSOUsers_200_response()); + std::shared_ptr localVarResult(new GetSSOUsersResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10180,7 +10188,7 @@ pplx::task> DefaultApi::getSubscrip // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10244,7 +10252,7 @@ pplx::task> DefaultApi::getSubscrip return localVarResult; }); } -pplx::task> DefaultApi::getTenant(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenant(utility::string_t tenantId, utility::string_t id) const { @@ -10314,7 +10322,7 @@ pplx::task> DefaultApi::getTenant(utilit // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10357,7 +10365,7 @@ pplx::task> DefaultApi::getTenant(utilit }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenant_200_response()); + std::shared_ptr localVarResult(new GetTenantResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10378,7 +10386,7 @@ pplx::task> DefaultApi::getTenant(utilit return localVarResult; }); } -pplx::task> DefaultApi::getTenantDailyUsages(utility::string_t tenantId, boost::optional yearNumber, boost::optional monthNumber, boost::optional dayNumber, boost::optional skip) const +pplx::task> DefaultApi::getTenantDailyUsages(utility::string_t tenantId, boost::optional yearNumber, boost::optional monthNumber, boost::optional dayNumber, boost::optional skip) const { @@ -10463,7 +10471,7 @@ pplx::task> DefaultApi::getTe // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10506,7 +10514,7 @@ pplx::task> DefaultApi::getTe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantDailyUsages_200_response()); + std::shared_ptr localVarResult(new GetTenantDailyUsagesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10527,7 +10535,7 @@ pplx::task> DefaultApi::getTe return localVarResult; }); } -pplx::task> DefaultApi::getTenantPackage(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenantPackage(utility::string_t tenantId, utility::string_t id) const { @@ -10597,7 +10605,7 @@ pplx::task> DefaultApi::getTenant // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10640,7 +10648,7 @@ pplx::task> DefaultApi::getTenant }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantPackage_200_response()); + std::shared_ptr localVarResult(new GetTenantPackageResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10661,7 +10669,7 @@ pplx::task> DefaultApi::getTenant return localVarResult; }); } -pplx::task> DefaultApi::getTenantPackages(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getTenantPackages(utility::string_t tenantId, boost::optional skip) const { @@ -10734,7 +10742,7 @@ pplx::task> DefaultApi::getTenan // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10777,7 +10785,7 @@ pplx::task> DefaultApi::getTenan }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantPackages_200_response()); + std::shared_ptr localVarResult(new GetTenantPackagesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10798,7 +10806,7 @@ pplx::task> DefaultApi::getTenan return localVarResult; }); } -pplx::task> DefaultApi::getTenantUser(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenantUser(utility::string_t tenantId, utility::string_t id) const { @@ -10868,7 +10876,7 @@ pplx::task> DefaultApi::getTenantUse // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10911,7 +10919,7 @@ pplx::task> DefaultApi::getTenantUse }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantUser_200_response()); + std::shared_ptr localVarResult(new GetTenantUserResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10932,7 +10940,7 @@ pplx::task> DefaultApi::getTenantUse return localVarResult; }); } -pplx::task> DefaultApi::getTenantUsers(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getTenantUsers(utility::string_t tenantId, boost::optional skip) const { @@ -11005,7 +11013,7 @@ pplx::task> DefaultApi::getTenantUs // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11048,7 +11056,7 @@ pplx::task> DefaultApi::getTenantUs }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantUsers_200_response()); + std::shared_ptr localVarResult(new GetTenantUsersResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11069,7 +11077,7 @@ pplx::task> DefaultApi::getTenantUs return localVarResult; }); } -pplx::task> DefaultApi::getTenants(utility::string_t tenantId, boost::optional meta, boost::optional skip) const +pplx::task> DefaultApi::getTenants(utility::string_t tenantId, boost::optional meta, boost::optional skip) const { @@ -11146,7 +11154,7 @@ pplx::task> DefaultApi::getTenants(util // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11189,7 +11197,7 @@ pplx::task> DefaultApi::getTenants(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenants_200_response()); + std::shared_ptr localVarResult(new GetTenantsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11210,7 +11218,7 @@ pplx::task> DefaultApi::getTenants(util return localVarResult; }); } -pplx::task> DefaultApi::getTicket(utility::string_t tenantId, utility::string_t id, boost::optional userId) const +pplx::task> DefaultApi::getTicket(utility::string_t tenantId, utility::string_t id, boost::optional userId) const { @@ -11284,7 +11292,7 @@ pplx::task> DefaultApi::getTicket(utilit // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11327,7 +11335,7 @@ pplx::task> DefaultApi::getTicket(utilit }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTicket_200_response()); + std::shared_ptr localVarResult(new GetTicketResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11348,7 +11356,7 @@ pplx::task> DefaultApi::getTicket(utilit return localVarResult; }); } -pplx::task> DefaultApi::getTickets(utility::string_t tenantId, boost::optional userId, boost::optional state, boost::optional skip, boost::optional limit) const +pplx::task> DefaultApi::getTickets(utility::string_t tenantId, boost::optional userId, boost::optional state, boost::optional skip, boost::optional limit) const { @@ -11433,7 +11441,7 @@ pplx::task> DefaultApi::getTickets(util // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11476,7 +11484,7 @@ pplx::task> DefaultApi::getTickets(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTickets_200_response()); + std::shared_ptr localVarResult(new GetTicketsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11497,7 +11505,7 @@ pplx::task> DefaultApi::getTickets(util return localVarResult; }); } -pplx::task> DefaultApi::getUser(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUser(utility::string_t tenantId, utility::string_t id) const { @@ -11567,7 +11575,7 @@ pplx::task> DefaultApi::getUser(utility::s // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11610,7 +11618,7 @@ pplx::task> DefaultApi::getUser(utility::s }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUser_200_response()); + std::shared_ptr localVarResult(new GetUserResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11631,7 +11639,7 @@ pplx::task> DefaultApi::getUser(utility::s return localVarResult; }); } -pplx::task> DefaultApi::getUserBadge(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUserBadge(utility::string_t tenantId, utility::string_t id) const { @@ -11701,7 +11709,7 @@ pplx::task> DefaultApi::getUserBadge( // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11744,7 +11752,7 @@ pplx::task> DefaultApi::getUserBadge( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserBadge_200_response()); + std::shared_ptr localVarResult(new APIGetUserBadgeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11765,7 +11773,7 @@ pplx::task> DefaultApi::getUserBadge( return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressById(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUserBadgeProgressById(utility::string_t tenantId, utility::string_t id) const { @@ -11835,7 +11843,7 @@ pplx::task> DefaultApi::g // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11878,7 +11886,7 @@ pplx::task> DefaultApi::g }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserBadgeProgressById_200_response()); + std::shared_ptr localVarResult(new APIGetUserBadgeProgressResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11899,7 +11907,7 @@ pplx::task> DefaultApi::g return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressByUserId(utility::string_t tenantId, utility::string_t userId) const +pplx::task> DefaultApi::getUserBadgeProgressByUserId(utility::string_t tenantId, utility::string_t userId) const { @@ -11969,7 +11977,7 @@ pplx::task> DefaultApi::g // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -12012,7 +12020,7 @@ pplx::task> DefaultApi::g }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserBadgeProgressById_200_response()); + std::shared_ptr localVarResult(new APIGetUserBadgeProgressResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12033,7 +12041,7 @@ pplx::task> DefaultApi::g return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressList(utility::string_t tenantId, boost::optional userId, boost::optional limit, boost::optional skip) const +pplx::task> DefaultApi::getUserBadgeProgressList(utility::string_t tenantId, boost::optional userId, boost::optional limit, boost::optional skip) const { @@ -12114,7 +12122,7 @@ pplx::task> DefaultApi::g // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -12157,7 +12165,7 @@ pplx::task> DefaultApi::g }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserBadgeProgressList_200_response()); + std::shared_ptr localVarResult(new APIGetUserBadgeProgressListResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12178,7 +12186,7 @@ pplx::task> DefaultApi::g return localVarResult; }); } -pplx::task> DefaultApi::getUserBadges(utility::string_t tenantId, boost::optional userId, boost::optional badgeId, boost::optional type, boost::optional displayedOnComments, boost::optional limit, boost::optional skip) const +pplx::task> DefaultApi::getUserBadges(utility::string_t tenantId, boost::optional userId, boost::optional badgeId, boost::optional type, boost::optional displayedOnComments, boost::optional limit, boost::optional skip) const { @@ -12271,7 +12279,7 @@ pplx::task> DefaultApi::getUserBadge // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -12314,7 +12322,7 @@ pplx::task> DefaultApi::getUserBadge }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserBadges_200_response()); + std::shared_ptr localVarResult(new APIGetUserBadgesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12335,7 +12343,7 @@ pplx::task> DefaultApi::getUserBadge return localVarResult; }); } -pplx::task> DefaultApi::getVotes(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> DefaultApi::getVotes(utility::string_t tenantId, utility::string_t urlId) const { @@ -12407,7 +12415,7 @@ pplx::task> DefaultApi::getVotes(utility: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -12450,7 +12458,7 @@ pplx::task> DefaultApi::getVotes(utility: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetVotes_200_response()); + std::shared_ptr localVarResult(new GetVotesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12471,7 +12479,7 @@ pplx::task> DefaultApi::getVotes(utility: return localVarResult; }); } -pplx::task> DefaultApi::getVotesForUser(utility::string_t tenantId, utility::string_t urlId, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::getVotesForUser(utility::string_t tenantId, utility::string_t urlId, boost::optional userId, boost::optional anonUserId) const { @@ -12551,7 +12559,7 @@ pplx::task> DefaultApi::getVotesFo // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -12594,7 +12602,7 @@ pplx::task> DefaultApi::getVotesFo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetVotesForUser_200_response()); + std::shared_ptr localVarResult(new GetVotesForUserResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12615,7 +12623,7 @@ pplx::task> DefaultApi::getVotesFo return localVarResult; }); } -pplx::task> DefaultApi::patchDomainConfig(utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr patchDomainConfigParams) const +pplx::task> DefaultApi::patchDomainConfig(utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr patchDomainConfigParams) const { // verify the required parameter 'patchDomainConfigParams' is set @@ -12708,7 +12716,7 @@ pplx::task> DefaultApi::patchDomai // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -12751,7 +12759,7 @@ pplx::task> DefaultApi::patchDomai }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetDomainConfig_200_response()); + std::shared_ptr localVarResult(new PatchDomainConfigResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12772,7 +12780,7 @@ pplx::task> DefaultApi::patchDomai return localVarResult; }); } -pplx::task> DefaultApi::patchHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> updateHashTagBody) const +pplx::task> DefaultApi::patchHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> updateHashTagBody) const { @@ -12860,7 +12868,7 @@ pplx::task> DefaultApi::patchHashTag( // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -12903,7 +12911,7 @@ pplx::task> DefaultApi::patchHashTag( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PatchHashTag_200_response()); + std::shared_ptr localVarResult(new UpdateHashTagResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -13017,7 +13025,7 @@ pplx::task> DefaultApi::patchPage(utility: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -13178,7 +13186,7 @@ pplx::task> DefaultApi::patchSSOUser(ut // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -13242,7 +13250,7 @@ pplx::task> DefaultApi::patchSSOUser(ut return localVarResult; }); } -pplx::task> DefaultApi::putDomainConfig(utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr updateDomainConfigParams) const +pplx::task> DefaultApi::putDomainConfig(utility::string_t tenantId, utility::string_t domainToUpdate, std::shared_ptr updateDomainConfigParams) const { // verify the required parameter 'updateDomainConfigParams' is set @@ -13335,7 +13343,7 @@ pplx::task> DefaultApi::putDomainC // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -13378,7 +13386,7 @@ pplx::task> DefaultApi::putDomainC }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetDomainConfig_200_response()); + std::shared_ptr localVarResult(new PutDomainConfigResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -13496,7 +13504,7 @@ pplx::task> DefaultApi::putSSOUser(utilit // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -13560,7 +13568,7 @@ pplx::task> DefaultApi::putSSOUser(utilit return localVarResult; }); } -pplx::task> DefaultApi::renderEmailTemplate(utility::string_t tenantId, std::shared_ptr renderEmailTemplateBody, boost::optional locale) const +pplx::task> DefaultApi::renderEmailTemplate(utility::string_t tenantId, std::shared_ptr renderEmailTemplateBody, boost::optional locale) const { // verify the required parameter 'renderEmailTemplateBody' is set @@ -13656,7 +13664,7 @@ pplx::task> DefaultApi::render // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -13699,7 +13707,7 @@ pplx::task> DefaultApi::render }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new RenderEmailTemplate_200_response()); + std::shared_ptr localVarResult(new RenderEmailTemplateResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -13720,7 +13728,7 @@ pplx::task> DefaultApi::render return localVarResult; }); } -pplx::task> DefaultApi::replaceTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantPackageBody) const +pplx::task> DefaultApi::replaceTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantPackageBody) const { // verify the required parameter 'replaceTenantPackageBody' is set @@ -13813,7 +13821,7 @@ pplx::task> DefaultApi::replaceT // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -13856,7 +13864,7 @@ pplx::task> DefaultApi::replaceT }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -13877,7 +13885,7 @@ pplx::task> DefaultApi::replaceT return localVarResult; }); } -pplx::task> DefaultApi::replaceTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantUserBody, boost::optional updateComments) const +pplx::task> DefaultApi::replaceTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantUserBody, boost::optional updateComments) const { // verify the required parameter 'replaceTenantUserBody' is set @@ -13974,7 +13982,7 @@ pplx::task> DefaultApi::replaceT // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -14017,7 +14025,7 @@ pplx::task> DefaultApi::replaceT }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14038,7 +14046,7 @@ pplx::task> DefaultApi::replaceT return localVarResult; }); } -pplx::task> DefaultApi::saveComment(utility::string_t tenantId, std::shared_ptr createCommentParams, boost::optional isLive, boost::optional doSpamCheck, boost::optional sendEmails, boost::optional populateNotifications) const +pplx::task> DefaultApi::saveComment(utility::string_t tenantId, std::shared_ptr createCommentParams, boost::optional isLive, boost::optional doSpamCheck, boost::optional sendEmails, boost::optional populateNotifications) const { // verify the required parameter 'createCommentParams' is set @@ -14146,7 +14154,7 @@ pplx::task> DefaultApi::saveComment(ut // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -14189,7 +14197,7 @@ pplx::task> DefaultApi::saveComment(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SaveComment_200_response()); + std::shared_ptr localVarResult(new APISaveCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14210,7 +14218,7 @@ pplx::task> DefaultApi::saveComment(ut return localVarResult; }); } -pplx::task>> DefaultApi::saveCommentsBulk(utility::string_t tenantId, std::vector> createCommentParams, boost::optional isLive, boost::optional doSpamCheck, boost::optional sendEmails, boost::optional populateNotifications) const +pplx::task>> DefaultApi::saveCommentsBulk(utility::string_t tenantId, std::vector> createCommentParams, boost::optional isLive, boost::optional doSpamCheck, boost::optional sendEmails, boost::optional populateNotifications) const { @@ -14323,7 +14331,7 @@ pplx::task>> DefaultApi::s // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -14366,14 +14374,14 @@ pplx::task>> DefaultApi::s }) .then([=, this](utility::string_t localVarResponse) { - std::vector> localVarResult; + std::vector> localVarResult; if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { web::json::value localVarJson = web::json::value::parse(localVarResponse); for( auto& localVarItem : localVarJson.as_array() ) { - std::shared_ptr localVarItemObj; + std::shared_ptr localVarItemObj; ModelBase::fromJson(localVarItem, localVarItemObj); localVarResult.push_back(localVarItemObj); } @@ -14391,7 +14399,7 @@ pplx::task>> DefaultApi::s return localVarResult; }); } -pplx::task> DefaultApi::sendInvite(utility::string_t tenantId, utility::string_t id, utility::string_t fromName) const +pplx::task> DefaultApi::sendInvite(utility::string_t tenantId, utility::string_t id, utility::string_t fromName) const { @@ -14464,7 +14472,7 @@ pplx::task> DefaultApi::sendInvi // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -14507,7 +14515,7 @@ pplx::task> DefaultApi::sendInvi }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14528,7 +14536,7 @@ pplx::task> DefaultApi::sendInvi return localVarResult; }); } -pplx::task> DefaultApi::sendLoginLink(utility::string_t tenantId, utility::string_t id, boost::optional redirectURL) const +pplx::task> DefaultApi::sendLoginLink(utility::string_t tenantId, utility::string_t id, boost::optional redirectURL) const { @@ -14602,7 +14610,7 @@ pplx::task> DefaultApi::sendLogi // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -14645,7 +14653,7 @@ pplx::task> DefaultApi::sendLogi }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14666,7 +14674,7 @@ pplx::task> DefaultApi::sendLogi return localVarResult; }); } -pplx::task> DefaultApi::unBlockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr unBlockFromCommentParams, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::unBlockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr unBlockFromCommentParams, boost::optional userId, boost::optional anonUserId) const { // verify the required parameter 'unBlockFromCommentParams' is set @@ -14767,7 +14775,7 @@ pplx::task> DefaultApi::unBlo // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -14810,7 +14818,7 @@ pplx::task> DefaultApi::unBlo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UnBlockCommentPublic_200_response()); + std::shared_ptr localVarResult(new UnblockSuccess()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14831,7 +14839,7 @@ pplx::task> DefaultApi::unBlo return localVarResult; }); } -pplx::task> DefaultApi::unFlagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::unFlagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const { @@ -14909,7 +14917,7 @@ pplx::task> DefaultApi::unFlagComment( // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -14952,7 +14960,7 @@ pplx::task> DefaultApi::unFlagComment( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagComment_200_response()); + std::shared_ptr localVarResult(new FlagCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14973,7 +14981,7 @@ pplx::task> DefaultApi::unFlagComment( return localVarResult; }); } -pplx::task> DefaultApi::updateComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr updatableCommentParams, boost::optional contextUserId, boost::optional doSpamCheck, boost::optional isLive) const +pplx::task> DefaultApi::updateComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr updatableCommentParams, boost::optional contextUserId, boost::optional doSpamCheck, boost::optional isLive) const { // verify the required parameter 'updatableCommentParams' is set @@ -15078,7 +15086,7 @@ pplx::task> DefaultApi::updateCo // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -15121,7 +15129,7 @@ pplx::task> DefaultApi::updateCo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15142,7 +15150,7 @@ pplx::task> DefaultApi::updateCo return localVarResult; }); } -pplx::task> DefaultApi::updateEmailTemplate(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateEmailTemplateBody) const +pplx::task> DefaultApi::updateEmailTemplate(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateEmailTemplateBody) const { // verify the required parameter 'updateEmailTemplateBody' is set @@ -15235,7 +15243,7 @@ pplx::task> DefaultApi::updateEm // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -15278,7 +15286,7 @@ pplx::task> DefaultApi::updateEm }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15299,7 +15307,7 @@ pplx::task> DefaultApi::updateEm return localVarResult; }); } -pplx::task> DefaultApi::updateFeedPost(utility::string_t tenantId, utility::string_t id, std::shared_ptr feedPost) const +pplx::task> DefaultApi::updateFeedPost(utility::string_t tenantId, utility::string_t id, std::shared_ptr feedPost) const { // verify the required parameter 'feedPost' is set @@ -15392,7 +15400,7 @@ pplx::task> DefaultApi::updateFe // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -15435,7 +15443,7 @@ pplx::task> DefaultApi::updateFe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15456,7 +15464,7 @@ pplx::task> DefaultApi::updateFe return localVarResult; }); } -pplx::task> DefaultApi::updateModerator(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateModeratorBody) const +pplx::task> DefaultApi::updateModerator(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateModeratorBody) const { // verify the required parameter 'updateModeratorBody' is set @@ -15549,7 +15557,7 @@ pplx::task> DefaultApi::updateMo // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -15592,7 +15600,7 @@ pplx::task> DefaultApi::updateMo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15613,7 +15621,7 @@ pplx::task> DefaultApi::updateMo return localVarResult; }); } -pplx::task> DefaultApi::updateNotification(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateNotificationBody, boost::optional userId) const +pplx::task> DefaultApi::updateNotification(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateNotificationBody, boost::optional userId) const { // verify the required parameter 'updateNotificationBody' is set @@ -15710,7 +15718,7 @@ pplx::task> DefaultApi::updateNo // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -15753,7 +15761,7 @@ pplx::task> DefaultApi::updateNo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15774,7 +15782,7 @@ pplx::task> DefaultApi::updateNo return localVarResult; }); } -pplx::task> DefaultApi::updateQuestionConfig(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionConfigBody) const +pplx::task> DefaultApi::updateQuestionConfig(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionConfigBody) const { // verify the required parameter 'updateQuestionConfigBody' is set @@ -15867,7 +15875,7 @@ pplx::task> DefaultApi::updateQu // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -15910,7 +15918,7 @@ pplx::task> DefaultApi::updateQu }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15931,7 +15939,7 @@ pplx::task> DefaultApi::updateQu return localVarResult; }); } -pplx::task> DefaultApi::updateQuestionResult(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionResultBody) const +pplx::task> DefaultApi::updateQuestionResult(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionResultBody) const { // verify the required parameter 'updateQuestionResultBody' is set @@ -16024,7 +16032,7 @@ pplx::task> DefaultApi::updateQu // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -16067,7 +16075,7 @@ pplx::task> DefaultApi::updateQu }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -16185,7 +16193,7 @@ pplx::task> DefaultApi::updateSub // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -16249,7 +16257,7 @@ pplx::task> DefaultApi::updateSub return localVarResult; }); } -pplx::task> DefaultApi::updateTenant(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantBody) const +pplx::task> DefaultApi::updateTenant(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantBody) const { // verify the required parameter 'updateTenantBody' is set @@ -16342,7 +16350,7 @@ pplx::task> DefaultApi::updateTe // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -16385,7 +16393,7 @@ pplx::task> DefaultApi::updateTe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -16406,7 +16414,7 @@ pplx::task> DefaultApi::updateTe return localVarResult; }); } -pplx::task> DefaultApi::updateTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantPackageBody) const +pplx::task> DefaultApi::updateTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantPackageBody) const { // verify the required parameter 'updateTenantPackageBody' is set @@ -16499,7 +16507,7 @@ pplx::task> DefaultApi::updateTe // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -16542,7 +16550,7 @@ pplx::task> DefaultApi::updateTe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -16563,7 +16571,7 @@ pplx::task> DefaultApi::updateTe return localVarResult; }); } -pplx::task> DefaultApi::updateTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantUserBody, boost::optional updateComments) const +pplx::task> DefaultApi::updateTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantUserBody, boost::optional updateComments) const { // verify the required parameter 'updateTenantUserBody' is set @@ -16660,7 +16668,7 @@ pplx::task> DefaultApi::updateTe // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -16703,7 +16711,7 @@ pplx::task> DefaultApi::updateTe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -16724,7 +16732,7 @@ pplx::task> DefaultApi::updateTe return localVarResult; }); } -pplx::task> DefaultApi::updateUserBadge(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateUserBadgeParams) const +pplx::task> DefaultApi::updateUserBadge(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateUserBadgeParams) const { // verify the required parameter 'updateUserBadgeParams' is set @@ -16817,7 +16825,7 @@ pplx::task> DefaultApi::updateUser // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -16860,7 +16868,7 @@ pplx::task> DefaultApi::updateUser }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateUserBadge_200_response()); + std::shared_ptr localVarResult(new APIEmptySuccessResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { diff --git a/client/src/api/ModerationApi.cpp b/client/src/api/ModerationApi.cpp new file mode 100644 index 0000000..84f0d1e --- /dev/null +++ b/client/src/api/ModerationApi.cpp @@ -0,0 +1,5868 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +#include "FastCommentsClient/api/ModerationApi.h" +#include "FastCommentsClient/IHttpBody.h" +#include "FastCommentsClient/JsonBody.h" +#include "FastCommentsClient/MultipartFormData.h" + +#include + +#include + +namespace org { +namespace openapitools { +namespace client { +namespace api { + +using namespace org::openapitools::client::model; + +ModerationApi::ModerationApi( std::shared_ptr apiClient ) + : m_ApiClient(apiClient) +{ +} + +ModerationApi::~ModerationApi() +{ +} + +pplx::task> ModerationApi::deleteModerationVote(utility::string_t commentId, utility::string_t voteId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/vote/{commentId}/{voteId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("voteId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(voteId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->deleteModerationVote does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->deleteModerationVote does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("DELETE"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling deleteModerationVote: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling deleteModerationVote: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new VoteDeleteResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling deleteModerationVote: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getApiComments(boost::optional page, boost::optional count, boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional sorts, boost::optional demo, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/api/comments"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getApiComments does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (page) + { + localVarQueryParams[utility::conversions::to_string_t("page")] = ApiClient::parameterToString(*page); + } + if (count) + { + localVarQueryParams[utility::conversions::to_string_t("count")] = ApiClient::parameterToString(*count); + } + if (textSearch) + { + localVarQueryParams[utility::conversions::to_string_t("text-search")] = ApiClient::parameterToString(*textSearch); + } + if (byIPFromComment) + { + localVarQueryParams[utility::conversions::to_string_t("byIPFromComment")] = ApiClient::parameterToString(*byIPFromComment); + } + if (filters) + { + localVarQueryParams[utility::conversions::to_string_t("filters")] = ApiClient::parameterToString(*filters); + } + if (searchFilters) + { + localVarQueryParams[utility::conversions::to_string_t("searchFilters")] = ApiClient::parameterToString(*searchFilters); + } + if (sorts) + { + localVarQueryParams[utility::conversions::to_string_t("sorts")] = ApiClient::parameterToString(*sorts); + } + if (demo) + { + localVarQueryParams[utility::conversions::to_string_t("demo")] = ApiClient::parameterToString(*demo); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getApiComments does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getApiComments: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getApiComments: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationAPIGetCommentsResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getApiComments: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getApiExportStatus(boost::optional batchJobId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/api/export/status"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getApiExportStatus does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (batchJobId) + { + localVarQueryParams[utility::conversions::to_string_t("batchJobId")] = ApiClient::parameterToString(*batchJobId); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getApiExportStatus does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getApiExportStatus: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getApiExportStatus: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationExportStatusResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getApiExportStatus: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getApiIds(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional afterId, boost::optional demo, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/api/ids"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getApiIds does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (textSearch) + { + localVarQueryParams[utility::conversions::to_string_t("text-search")] = ApiClient::parameterToString(*textSearch); + } + if (byIPFromComment) + { + localVarQueryParams[utility::conversions::to_string_t("byIPFromComment")] = ApiClient::parameterToString(*byIPFromComment); + } + if (filters) + { + localVarQueryParams[utility::conversions::to_string_t("filters")] = ApiClient::parameterToString(*filters); + } + if (searchFilters) + { + localVarQueryParams[utility::conversions::to_string_t("searchFilters")] = ApiClient::parameterToString(*searchFilters); + } + if (afterId) + { + localVarQueryParams[utility::conversions::to_string_t("afterId")] = ApiClient::parameterToString(*afterId); + } + if (demo) + { + localVarQueryParams[utility::conversions::to_string_t("demo")] = ApiClient::parameterToString(*demo); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getApiIds does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getApiIds: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getApiIds: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationAPIGetCommentIdsResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getApiIds: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getBanUsersFromComment(utility::string_t commentId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getBanUsersFromComment does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getBanUsersFromComment does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getBanUsersFromComment: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getBanUsersFromComment: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetBannedUsersFromCommentResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getBanUsersFromComment: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getCommentBanStatus(utility::string_t commentId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getCommentBanStatus does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getCommentBanStatus does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getCommentBanStatus: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCommentBanStatus: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetCommentBanStatusResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCommentBanStatus: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getCommentChildren(utility::string_t commentId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/comment-children/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getCommentChildren does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getCommentChildren does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getCommentChildren: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCommentChildren: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationAPIChildCommentsResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCommentChildren: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getCount(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filter, boost::optional searchFilters, boost::optional demo, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/count"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getCount does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (textSearch) + { + localVarQueryParams[utility::conversions::to_string_t("text-search")] = ApiClient::parameterToString(*textSearch); + } + if (byIPFromComment) + { + localVarQueryParams[utility::conversions::to_string_t("byIPFromComment")] = ApiClient::parameterToString(*byIPFromComment); + } + if (filter) + { + localVarQueryParams[utility::conversions::to_string_t("filter")] = ApiClient::parameterToString(*filter); + } + if (searchFilters) + { + localVarQueryParams[utility::conversions::to_string_t("searchFilters")] = ApiClient::parameterToString(*searchFilters); + } + if (demo) + { + localVarQueryParams[utility::conversions::to_string_t("demo")] = ApiClient::parameterToString(*demo); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getCount does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getCount: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCount: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationAPICountCommentsResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCount: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getCounts(boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/banned-users/counts"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getCounts does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getCounts does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getCounts: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCounts: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetBannedUsersCountResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCounts: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getLogs(utility::string_t commentId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/logs/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getLogs does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getLogs does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getLogs: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getLogs: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationAPIGetLogsResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getLogs: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getManualBadges(boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/get-manual-badges"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getManualBadges does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getManualBadges does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getManualBadges: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getManualBadges: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetTenantManualBadgesResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getManualBadges: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getManualBadgesForUser(boost::optional badgesUserId, boost::optional commentId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/get-manual-badges-for-user"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getManualBadgesForUser does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (badgesUserId) + { + localVarQueryParams[utility::conversions::to_string_t("badgesUserId")] = ApiClient::parameterToString(*badgesUserId); + } + if (commentId) + { + localVarQueryParams[utility::conversions::to_string_t("commentId")] = ApiClient::parameterToString(*commentId); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getManualBadgesForUser does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getManualBadgesForUser: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getManualBadgesForUser: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetUserManualBadgesResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getManualBadgesForUser: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getModerationComment(utility::string_t commentId, boost::optional includeEmail, boost::optional includeIP, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/comment/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getModerationComment does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (includeEmail) + { + localVarQueryParams[utility::conversions::to_string_t("includeEmail")] = ApiClient::parameterToString(*includeEmail); + } + if (includeIP) + { + localVarQueryParams[utility::conversions::to_string_t("includeIP")] = ApiClient::parameterToString(*includeIP); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getModerationComment does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getModerationComment: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getModerationComment: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationAPICommentResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getModerationComment: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getModerationCommentText(utility::string_t commentId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/get-comment-text/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getModerationCommentText does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getModerationCommentText does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getModerationCommentText: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getModerationCommentText: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetCommentTextResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getModerationCommentText: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getPreBanSummary(utility::string_t commentId, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/pre-ban-summary/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getPreBanSummary does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (includeByUserIdAndEmail) + { + localVarQueryParams[utility::conversions::to_string_t("includeByUserIdAndEmail")] = ApiClient::parameterToString(*includeByUserIdAndEmail); + } + if (includeByIP) + { + localVarQueryParams[utility::conversions::to_string_t("includeByIP")] = ApiClient::parameterToString(*includeByIP); + } + if (includeByEmailDomain) + { + localVarQueryParams[utility::conversions::to_string_t("includeByEmailDomain")] = ApiClient::parameterToString(*includeByEmailDomain); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getPreBanSummary does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getPreBanSummary: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getPreBanSummary: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new PreBanSummary()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getPreBanSummary: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getSearchCommentsSummary(boost::optional value, boost::optional filters, boost::optional searchFilters, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/search/comments/summary"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getSearchCommentsSummary does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (value) + { + localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); + } + if (filters) + { + localVarQueryParams[utility::conversions::to_string_t("filters")] = ApiClient::parameterToString(*filters); + } + if (searchFilters) + { + localVarQueryParams[utility::conversions::to_string_t("searchFilters")] = ApiClient::parameterToString(*searchFilters); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getSearchCommentsSummary does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getSearchCommentsSummary: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getSearchCommentsSummary: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationCommentSearchResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getSearchCommentsSummary: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getSearchPages(boost::optional value, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/search/pages"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getSearchPages does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (value) + { + localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getSearchPages does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getSearchPages: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getSearchPages: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationPageSearchResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getSearchPages: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getSearchSites(boost::optional value, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/search/sites"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getSearchSites does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (value) + { + localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getSearchSites does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getSearchSites: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getSearchSites: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationSiteSearchResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getSearchSites: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getSearchSuggest(boost::optional textSearch, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/search/suggest"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getSearchSuggest does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (textSearch) + { + localVarQueryParams[utility::conversions::to_string_t("text-search")] = ApiClient::parameterToString(*textSearch); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getSearchSuggest does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getSearchSuggest: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getSearchSuggest: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationSuggestResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getSearchSuggest: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getSearchUsers(boost::optional value, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/search/users"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getSearchUsers does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (value) + { + localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getSearchUsers does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getSearchUsers: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getSearchUsers: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationUserSearchResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getSearchUsers: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getTrustFactor(boost::optional userId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/get-trust-factor"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getTrustFactor does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (userId) + { + localVarQueryParams[utility::conversions::to_string_t("userId")] = ApiClient::parameterToString(*userId); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getTrustFactor does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getTrustFactor: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getTrustFactor: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetUserTrustFactorResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getTrustFactor: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getUserBanPreference(boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/user-ban-preference"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getUserBanPreference does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getUserBanPreference does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getUserBanPreference: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getUserBanPreference: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new APIModerateGetUserBanPreferencesResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getUserBanPreference: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::getUserInternalProfile(boost::optional commentId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/get-user-internal-profile"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->getUserInternalProfile does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (commentId) + { + localVarQueryParams[utility::conversions::to_string_t("commentId")] = ApiClient::parameterToString(*commentId); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->getUserInternalProfile does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getUserInternalProfile: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getUserInternalProfile: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetUserInternalProfileResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getUserInternalProfile: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postAdjustCommentVotes(utility::string_t commentId, std::shared_ptr adjustCommentVotesParams, boost::optional sso) const +{ + + // verify the required parameter 'adjustCommentVotesParams' is set + if (adjustCommentVotesParams == nullptr) + { + throw ApiException(400, utility::conversions::to_string_t("Missing required parameter 'adjustCommentVotesParams' when calling ModerationApi->postAdjustCommentVotes")); + } + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postAdjustCommentVotes does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + web::json::value localVarJson; + + localVarJson = ModelBase::toJson(adjustCommentVotesParams); + + + localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + std::shared_ptr localVarMultipart(new MultipartFormData); + + if(adjustCommentVotesParams.get()) + { + adjustCommentVotesParams->toMultipart(localVarMultipart, utility::conversions::to_string_t("adjustCommentVotesParams")); + } + + + localVarHttpBody = localVarMultipart; + localVarRequestHttpContentType += utility::conversions::to_string_t("; boundary=") + localVarMultipart->getBoundary(); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postAdjustCommentVotes does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postAdjustCommentVotes: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postAdjustCommentVotes: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new AdjustVotesResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postAdjustCommentVotes: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postApiExport(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional sorts, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/api/export"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postApiExport does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (textSearch) + { + localVarQueryParams[utility::conversions::to_string_t("text-search")] = ApiClient::parameterToString(*textSearch); + } + if (byIPFromComment) + { + localVarQueryParams[utility::conversions::to_string_t("byIPFromComment")] = ApiClient::parameterToString(*byIPFromComment); + } + if (filters) + { + localVarQueryParams[utility::conversions::to_string_t("filters")] = ApiClient::parameterToString(*filters); + } + if (searchFilters) + { + localVarQueryParams[utility::conversions::to_string_t("searchFilters")] = ApiClient::parameterToString(*searchFilters); + } + if (sorts) + { + localVarQueryParams[utility::conversions::to_string_t("sorts")] = ApiClient::parameterToString(*sorts); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postApiExport does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postApiExport: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postApiExport: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationExportResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postApiExport: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postBanUserFromComment(utility::string_t commentId, boost::optional banEmail, boost::optional banEmailDomain, boost::optional banIP, boost::optional deleteAllUsersComments, boost::optional bannedUntil, boost::optional isShadowBan, boost::optional updateId, boost::optional banReason, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postBanUserFromComment does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (banEmail) + { + localVarQueryParams[utility::conversions::to_string_t("banEmail")] = ApiClient::parameterToString(*banEmail); + } + if (banEmailDomain) + { + localVarQueryParams[utility::conversions::to_string_t("banEmailDomain")] = ApiClient::parameterToString(*banEmailDomain); + } + if (banIP) + { + localVarQueryParams[utility::conversions::to_string_t("banIP")] = ApiClient::parameterToString(*banIP); + } + if (deleteAllUsersComments) + { + localVarQueryParams[utility::conversions::to_string_t("deleteAllUsersComments")] = ApiClient::parameterToString(*deleteAllUsersComments); + } + if (bannedUntil) + { + localVarQueryParams[utility::conversions::to_string_t("bannedUntil")] = ApiClient::parameterToString(*bannedUntil); + } + if (isShadowBan) + { + localVarQueryParams[utility::conversions::to_string_t("isShadowBan")] = ApiClient::parameterToString(*isShadowBan); + } + if (updateId) + { + localVarQueryParams[utility::conversions::to_string_t("updateId")] = ApiClient::parameterToString(*updateId); + } + if (banReason) + { + localVarQueryParams[utility::conversions::to_string_t("banReason")] = ApiClient::parameterToString(*banReason); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postBanUserFromComment does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postBanUserFromComment: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postBanUserFromComment: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new BanUserFromCommentResult()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postBanUserFromComment: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postBanUserUndo(std::shared_ptr banUserUndoParams, boost::optional sso) const +{ + + // verify the required parameter 'banUserUndoParams' is set + if (banUserUndoParams == nullptr) + { + throw ApiException(400, utility::conversions::to_string_t("Missing required parameter 'banUserUndoParams' when calling ModerationApi->postBanUserUndo")); + } + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/ban-user/undo"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postBanUserUndo does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + web::json::value localVarJson; + + localVarJson = ModelBase::toJson(banUserUndoParams); + + + localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + std::shared_ptr localVarMultipart(new MultipartFormData); + + if(banUserUndoParams.get()) + { + banUserUndoParams->toMultipart(localVarMultipart, utility::conversions::to_string_t("banUserUndoParams")); + } + + + localVarHttpBody = localVarMultipart; + localVarRequestHttpContentType += utility::conversions::to_string_t("; boundary=") + localVarMultipart->getBoundary(); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postBanUserUndo does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postBanUserUndo: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postBanUserUndo: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new APIEmptyResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postBanUserUndo: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postBulkPreBanSummary(std::shared_ptr bulkPreBanParams, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, boost::optional sso) const +{ + + // verify the required parameter 'bulkPreBanParams' is set + if (bulkPreBanParams == nullptr) + { + throw ApiException(400, utility::conversions::to_string_t("Missing required parameter 'bulkPreBanParams' when calling ModerationApi->postBulkPreBanSummary")); + } + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/bulk-pre-ban-summary"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postBulkPreBanSummary does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + if (includeByUserIdAndEmail) + { + localVarQueryParams[utility::conversions::to_string_t("includeByUserIdAndEmail")] = ApiClient::parameterToString(*includeByUserIdAndEmail); + } + if (includeByIP) + { + localVarQueryParams[utility::conversions::to_string_t("includeByIP")] = ApiClient::parameterToString(*includeByIP); + } + if (includeByEmailDomain) + { + localVarQueryParams[utility::conversions::to_string_t("includeByEmailDomain")] = ApiClient::parameterToString(*includeByEmailDomain); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + web::json::value localVarJson; + + localVarJson = ModelBase::toJson(bulkPreBanParams); + + + localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + std::shared_ptr localVarMultipart(new MultipartFormData); + + if(bulkPreBanParams.get()) + { + bulkPreBanParams->toMultipart(localVarMultipart, utility::conversions::to_string_t("bulkPreBanParams")); + } + + + localVarHttpBody = localVarMultipart; + localVarRequestHttpContentType += utility::conversions::to_string_t("; boundary=") + localVarMultipart->getBoundary(); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postBulkPreBanSummary does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postBulkPreBanSummary: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postBulkPreBanSummary: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new BulkPreBanSummary()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postBulkPreBanSummary: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postCommentsByIds(std::shared_ptr commentsByIdsParams, boost::optional sso) const +{ + + // verify the required parameter 'commentsByIdsParams' is set + if (commentsByIdsParams == nullptr) + { + throw ApiException(400, utility::conversions::to_string_t("Missing required parameter 'commentsByIdsParams' when calling ModerationApi->postCommentsByIds")); + } + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/comments-by-ids"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postCommentsByIds does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + web::json::value localVarJson; + + localVarJson = ModelBase::toJson(commentsByIdsParams); + + + localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + std::shared_ptr localVarMultipart(new MultipartFormData); + + if(commentsByIdsParams.get()) + { + commentsByIdsParams->toMultipart(localVarMultipart, utility::conversions::to_string_t("commentsByIdsParams")); + } + + + localVarHttpBody = localVarMultipart; + localVarRequestHttpContentType += utility::conversions::to_string_t("; boundary=") + localVarMultipart->getBoundary(); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postCommentsByIds does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postCommentsByIds: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postCommentsByIds: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new ModerationAPIChildCommentsResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postCommentsByIds: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postFlagComment(utility::string_t commentId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/flag-comment/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postFlagComment does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postFlagComment does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postFlagComment: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postFlagComment: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new APIEmptyResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postFlagComment: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postRemoveComment(utility::string_t commentId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/remove-comment/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postRemoveComment does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postRemoveComment does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postRemoveComment: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postRemoveComment: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new PostRemoveCommentResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postRemoveComment: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postRestoreDeletedComment(utility::string_t commentId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postRestoreDeletedComment does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postRestoreDeletedComment does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postRestoreDeletedComment: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postRestoreDeletedComment: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new APIEmptyResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postRestoreDeletedComment: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postSetCommentApprovalStatus(utility::string_t commentId, boost::optional approved, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postSetCommentApprovalStatus does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (approved) + { + localVarQueryParams[utility::conversions::to_string_t("approved")] = ApiClient::parameterToString(*approved); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postSetCommentApprovalStatus does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postSetCommentApprovalStatus: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postSetCommentApprovalStatus: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new SetCommentApprovedResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postSetCommentApprovalStatus: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postSetCommentReviewStatus(utility::string_t commentId, boost::optional reviewed, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/set-comment-review-status/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postSetCommentReviewStatus does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (reviewed) + { + localVarQueryParams[utility::conversions::to_string_t("reviewed")] = ApiClient::parameterToString(*reviewed); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postSetCommentReviewStatus does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postSetCommentReviewStatus: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postSetCommentReviewStatus: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new APIEmptyResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postSetCommentReviewStatus: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postSetCommentSpamStatus(utility::string_t commentId, boost::optional spam, boost::optional permNotSpam, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postSetCommentSpamStatus does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (spam) + { + localVarQueryParams[utility::conversions::to_string_t("spam")] = ApiClient::parameterToString(*spam); + } + if (permNotSpam) + { + localVarQueryParams[utility::conversions::to_string_t("permNotSpam")] = ApiClient::parameterToString(*permNotSpam); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postSetCommentSpamStatus does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postSetCommentSpamStatus: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postSetCommentSpamStatus: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new APIEmptyResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postSetCommentSpamStatus: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postSetCommentText(utility::string_t commentId, std::shared_ptr setCommentTextParams, boost::optional sso) const +{ + + // verify the required parameter 'setCommentTextParams' is set + if (setCommentTextParams == nullptr) + { + throw ApiException(400, utility::conversions::to_string_t("Missing required parameter 'setCommentTextParams' when calling ModerationApi->postSetCommentText")); + } + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/set-comment-text/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postSetCommentText does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + web::json::value localVarJson; + + localVarJson = ModelBase::toJson(setCommentTextParams); + + + localVarHttpBody = std::shared_ptr( new JsonBody( localVarJson ) ); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + std::shared_ptr localVarMultipart(new MultipartFormData); + + if(setCommentTextParams.get()) + { + setCommentTextParams->toMultipart(localVarMultipart, utility::conversions::to_string_t("setCommentTextParams")); + } + + + localVarHttpBody = localVarMultipart; + localVarRequestHttpContentType += utility::conversions::to_string_t("; boundary=") + localVarMultipart->getBoundary(); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postSetCommentText does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postSetCommentText: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postSetCommentText: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new SetCommentTextResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postSetCommentText: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postUnFlagComment(utility::string_t commentId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/un-flag-comment/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postUnFlagComment does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postUnFlagComment does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postUnFlagComment: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postUnFlagComment: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new APIEmptyResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postUnFlagComment: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::postVote(utility::string_t commentId, boost::optional direction, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/vote/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->postVote does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (direction) + { + localVarQueryParams[utility::conversions::to_string_t("direction")] = ApiClient::parameterToString(*direction); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->postVote does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling postVote: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postVote: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new VoteResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling postVote: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::putAwardBadge(utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/award-badge"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->putAwardBadge does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + { + localVarQueryParams[utility::conversions::to_string_t("badgeId")] = ApiClient::parameterToString(badgeId); + } + if (userId) + { + localVarQueryParams[utility::conversions::to_string_t("userId")] = ApiClient::parameterToString(*userId); + } + if (commentId) + { + localVarQueryParams[utility::conversions::to_string_t("commentId")] = ApiClient::parameterToString(*commentId); + } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->putAwardBadge does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("PUT"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling putAwardBadge: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling putAwardBadge: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new AwardUserBadgeResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling putAwardBadge: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::putCloseThread(utility::string_t urlId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/close-thread"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->putCloseThread does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + { + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->putCloseThread does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("PUT"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling putCloseThread: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling putCloseThread: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new APIEmptyResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling putCloseThread: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::putRemoveBadge(utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/remove-badge"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->putRemoveBadge does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + { + localVarQueryParams[utility::conversions::to_string_t("badgeId")] = ApiClient::parameterToString(badgeId); + } + if (userId) + { + localVarQueryParams[utility::conversions::to_string_t("userId")] = ApiClient::parameterToString(*userId); + } + if (commentId) + { + localVarQueryParams[utility::conversions::to_string_t("commentId")] = ApiClient::parameterToString(*commentId); + } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->putRemoveBadge does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("PUT"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling putRemoveBadge: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling putRemoveBadge: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new RemoveUserBadgeResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling putRemoveBadge: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::putReopenThread(utility::string_t urlId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/reopen-thread"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->putReopenThread does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + { + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->putReopenThread does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("PUT"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling putReopenThread: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling putReopenThread: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new APIEmptyResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling putReopenThread: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> ModerationApi::setTrustFactor(boost::optional userId, boost::optional trustFactor, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/my-account/moderate-comments/set-trust-factor"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("ModerationApi->setTrustFactor does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (userId) + { + localVarQueryParams[utility::conversions::to_string_t("userId")] = ApiClient::parameterToString(*userId); + } + if (trustFactor) + { + localVarQueryParams[utility::conversions::to_string_t("trustFactor")] = ApiClient::parameterToString(*trustFactor); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("ModerationApi->setTrustFactor does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("PUT"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling setTrustFactor: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling setTrustFactor: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new SetUserTrustFactorResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling setTrustFactor: unsupported response type")); + } + + return localVarResult; + }); +} + +} +} +} +} + diff --git a/client/src/api/PublicApi.cpp b/client/src/api/PublicApi.cpp index 829757c..f2ecb4f 100644 --- a/client/src/api/PublicApi.cpp +++ b/client/src/api/PublicApi.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -35,7 +35,7 @@ PublicApi::~PublicApi() { } -pplx::task> PublicApi::blockFromCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const +pplx::task> PublicApi::blockFromCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const { // verify the required parameter 'publicBlockFromCommentParams' is set @@ -167,7 +167,7 @@ pplx::task> PublicApi::bloc }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new BlockFromCommentPublic_200_response()); + std::shared_ptr localVarResult(new BlockSuccess()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -188,7 +188,7 @@ pplx::task> PublicApi::bloc return localVarResult; }); } -pplx::task> PublicApi::checkedCommentsForBlocked(utility::string_t tenantId, utility::string_t commentIds, boost::optional sso) const +pplx::task> PublicApi::checkedCommentsForBlocked(utility::string_t tenantId, utility::string_t commentIds, boost::optional sso) const { @@ -299,7 +299,7 @@ pplx::task> PublicApi::c }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CheckedCommentsForBlocked_200_response()); + std::shared_ptr localVarResult(new CheckBlockedCommentsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -320,7 +320,7 @@ pplx::task> PublicApi::c return localVarResult; }); } -pplx::task> PublicApi::createCommentPublic(utility::string_t tenantId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr commentData, boost::optional sessionId, boost::optional sso) const +pplx::task> PublicApi::createCommentPublic(utility::string_t tenantId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr commentData, boost::optional sessionId, boost::optional sso) const { // verify the required parameter 'commentData' is set @@ -459,7 +459,7 @@ pplx::task> PublicApi::createC }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateCommentPublic_200_response()); + std::shared_ptr localVarResult(new SaveCommentsResponseWithPresence()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -480,7 +480,7 @@ pplx::task> PublicApi::createC return localVarResult; }); } -pplx::task> PublicApi::createFeedPostPublic(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::createFeedPostPublic(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional sso) const { // verify the required parameter 'createFeedPostParams' is set @@ -613,7 +613,7 @@ pplx::task> PublicApi::create }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateFeedPostPublic_200_response()); + std::shared_ptr localVarResult(new CreateFeedPostResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -634,14 +634,13 @@ pplx::task> PublicApi::create return localVarResult; }); } -pplx::task> PublicApi::deleteCommentPublic(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::createV1PageReact(utility::string_t tenantId, utility::string_t urlId, boost::optional title) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/comments/{tenantId}/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/page-reacts/v1/likes/{tenantId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); - boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -670,7 +669,7 @@ pplx::task> PublicApi::deleteC } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->deleteCommentPublic does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->createV1PageReact does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; @@ -678,15 +677,11 @@ pplx::task> PublicApi::deleteC std::unordered_set localVarConsumeHttpContentTypes; { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(broadcastId); - } - if (editKey) - { - localVarQueryParams[utility::conversions::to_string_t("editKey")] = ApiClient::parameterToString(*editKey); + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); } - if (sso) + if (title) { - localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + localVarQueryParams[utility::conversions::to_string_t("title")] = ApiClient::parameterToString(*title); } std::shared_ptr localVarHttpBody; @@ -708,11 +703,11 @@ pplx::task> PublicApi::deleteC } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->deleteCommentPublic does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->createV1PageReact does not consume any supported media type")); } - return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("DELETE"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) .then([=, this](web::http::http_response localVarResponse) { if (m_ApiClient->getResponseHandler()) @@ -728,7 +723,7 @@ pplx::task> PublicApi::deleteC if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling deleteCommentPublic: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling createV1PageReact: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -739,7 +734,7 @@ pplx::task> PublicApi::deleteC if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling deleteCommentPublic: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling createV1PageReact: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -748,7 +743,7 @@ pplx::task> PublicApi::deleteC }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteCommentPublic_200_response()); + std::shared_ptr localVarResult(new CreateV1PageReact()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -763,21 +758,19 @@ pplx::task> PublicApi::deleteC else { throw ApiException(500 - , utility::conversions::to_string_t("error calling deleteCommentPublic: unsupported response type")); + , utility::conversions::to_string_t("error calling createV1PageReact: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::deleteCommentVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t voteId, utility::string_t urlId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::createV2PageReact(utility::string_t tenantId, utility::string_t urlId, utility::string_t id, boost::optional title) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/comments/{tenantId}/{commentId}/vote/{voteId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/page-reacts/v2/{tenantId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); - boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); - boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("voteId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(voteId))); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -806,7 +799,7 @@ pplx::task> PublicApi::deleteCom } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->deleteCommentVote does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->createV2PageReact does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; @@ -817,15 +810,11 @@ pplx::task> PublicApi::deleteCom localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); } { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(broadcastId); - } - if (editKey) - { - localVarQueryParams[utility::conversions::to_string_t("editKey")] = ApiClient::parameterToString(*editKey); + localVarQueryParams[utility::conversions::to_string_t("id")] = ApiClient::parameterToString(id); } - if (sso) + if (title) { - localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + localVarQueryParams[utility::conversions::to_string_t("title")] = ApiClient::parameterToString(*title); } std::shared_ptr localVarHttpBody; @@ -847,11 +836,11 @@ pplx::task> PublicApi::deleteCom } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->deleteCommentVote does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->createV2PageReact does not consume any supported media type")); } - return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("DELETE"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) .then([=, this](web::http::http_response localVarResponse) { if (m_ApiClient->getResponseHandler()) @@ -867,7 +856,7 @@ pplx::task> PublicApi::deleteCom if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling deleteCommentVote: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling createV2PageReact: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -878,7 +867,7 @@ pplx::task> PublicApi::deleteCom if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling deleteCommentVote: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling createV2PageReact: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -887,7 +876,7 @@ pplx::task> PublicApi::deleteCom }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteCommentVote_200_response()); + std::shared_ptr localVarResult(new CreateV1PageReact()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -902,20 +891,20 @@ pplx::task> PublicApi::deleteCom else { throw ApiException(500 - , utility::conversions::to_string_t("error calling deleteCommentVote: unsupported response type")); + , utility::conversions::to_string_t("error calling createV2PageReact: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::deleteFeedPostPublic(utility::string_t tenantId, utility::string_t postId, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::deleteCommentPublic(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/feed-posts/{tenantId}/{postId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/comments/{tenantId}/{commentId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); - boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("postId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(postId))); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -944,16 +933,19 @@ pplx::task> PublicApi::delete } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->deleteFeedPostPublic does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->deleteCommentPublic does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; std::unordered_set localVarConsumeHttpContentTypes; - if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(broadcastId); + } + if (editKey) + { + localVarQueryParams[utility::conversions::to_string_t("editKey")] = ApiClient::parameterToString(*editKey); } if (sso) { @@ -979,7 +971,7 @@ pplx::task> PublicApi::delete } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->deleteFeedPostPublic does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->deleteCommentPublic does not consume any supported media type")); } @@ -999,7 +991,7 @@ pplx::task> PublicApi::delete if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling deleteFeedPostPublic: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling deleteCommentPublic: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -1010,7 +1002,7 @@ pplx::task> PublicApi::delete if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling deleteFeedPostPublic: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling deleteCommentPublic: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -1019,7 +1011,7 @@ pplx::task> PublicApi::delete }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteFeedPostPublic_200_response()); + std::shared_ptr localVarResult(new PublicAPIDeleteCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1034,19 +1026,21 @@ pplx::task> PublicApi::delete else { throw ApiException(500 - , utility::conversions::to_string_t("error calling deleteFeedPostPublic: unsupported response type")); + , utility::conversions::to_string_t("error calling deleteCommentPublic: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::flagCommentPublic(utility::string_t tenantId, utility::string_t commentId, bool isFlagged, boost::optional sso) const +pplx::task> PublicApi::deleteCommentVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t voteId, utility::string_t urlId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/flag-comment/{commentId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/comments/{tenantId}/{commentId}/vote/{voteId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("voteId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(voteId))); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -1075,7 +1069,7 @@ pplx::task> PublicApi::flagComme } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->flagCommentPublic does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->deleteCommentVote does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; @@ -1083,10 +1077,14 @@ pplx::task> PublicApi::flagComme std::unordered_set localVarConsumeHttpContentTypes; { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); } { - localVarQueryParams[utility::conversions::to_string_t("isFlagged")] = ApiClient::parameterToString(isFlagged); + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(broadcastId); + } + if (editKey) + { + localVarQueryParams[utility::conversions::to_string_t("editKey")] = ApiClient::parameterToString(*editKey); } if (sso) { @@ -1112,11 +1110,11 @@ pplx::task> PublicApi::flagComme } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->flagCommentPublic does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->deleteCommentVote does not consume any supported media type")); } - return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("DELETE"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) .then([=, this](web::http::http_response localVarResponse) { if (m_ApiClient->getResponseHandler()) @@ -1132,7 +1130,7 @@ pplx::task> PublicApi::flagComme if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling flagCommentPublic: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling deleteCommentVote: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -1143,7 +1141,7 @@ pplx::task> PublicApi::flagComme if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling flagCommentPublic: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling deleteCommentVote: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -1152,7 +1150,7 @@ pplx::task> PublicApi::flagComme }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublic_200_response()); + std::shared_ptr localVarResult(new VoteDeleteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1167,20 +1165,20 @@ pplx::task> PublicApi::flagComme else { throw ApiException(500 - , utility::conversions::to_string_t("error calling flagCommentPublic: unsupported response type")); + , utility::conversions::to_string_t("error calling deleteCommentVote: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::getCommentText(utility::string_t tenantId, utility::string_t commentId, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::deleteFeedPostPublic(utility::string_t tenantId, utility::string_t postId, boost::optional broadcastId, boost::optional sso) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/comments/{tenantId}/{commentId}/text"); + utility::string_t localVarPath = utility::conversions::to_string_t("/feed-posts/{tenantId}/{postId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); - boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("postId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(postId))); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -1209,16 +1207,16 @@ pplx::task> PublicApi::getCommentTe } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->getCommentText does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->deleteFeedPostPublic does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; std::unordered_set localVarConsumeHttpContentTypes; - if (editKey) + if (broadcastId) { - localVarQueryParams[utility::conversions::to_string_t("editKey")] = ApiClient::parameterToString(*editKey); + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } if (sso) { @@ -1244,11 +1242,11 @@ pplx::task> PublicApi::getCommentTe } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->getCommentText does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->deleteFeedPostPublic does not consume any supported media type")); } - return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("DELETE"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) .then([=, this](web::http::http_response localVarResponse) { if (m_ApiClient->getResponseHandler()) @@ -1264,7 +1262,7 @@ pplx::task> PublicApi::getCommentTe if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling getCommentText: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling deleteFeedPostPublic: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -1275,7 +1273,7 @@ pplx::task> PublicApi::getCommentTe if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling getCommentText: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling deleteFeedPostPublic: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -1284,7 +1282,7 @@ pplx::task> PublicApi::getCommentTe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentText_200_response()); + std::shared_ptr localVarResult(new DeleteFeedPostPublicResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1299,20 +1297,19 @@ pplx::task> PublicApi::getCommentTe else { throw ApiException(500 - , utility::conversions::to_string_t("error calling getCommentText: unsupported response type")); + , utility::conversions::to_string_t("error calling deleteFeedPostPublic: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::getCommentVoteUserNames(utility::string_t tenantId, utility::string_t commentId, int32_t dir, boost::optional sso) const +pplx::task> PublicApi::deleteV1PageReact(utility::string_t tenantId, utility::string_t urlId) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/comments/{tenantId}/{commentId}/votes"); + utility::string_t localVarPath = utility::conversions::to_string_t("/page-reacts/v1/likes/{tenantId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); - boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -1341,7 +1338,7 @@ pplx::task> PublicApi::get } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->getCommentVoteUserNames does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->deleteV1PageReact does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; @@ -1349,11 +1346,7 @@ pplx::task> PublicApi::get std::unordered_set localVarConsumeHttpContentTypes; { - localVarQueryParams[utility::conversions::to_string_t("dir")] = ApiClient::parameterToString(dir); - } - if (sso) - { - localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); } std::shared_ptr localVarHttpBody; @@ -1375,11 +1368,11 @@ pplx::task> PublicApi::get } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->getCommentVoteUserNames does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->deleteV1PageReact does not consume any supported media type")); } - return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("DELETE"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) .then([=, this](web::http::http_response localVarResponse) { if (m_ApiClient->getResponseHandler()) @@ -1395,7 +1388,7 @@ pplx::task> PublicApi::get if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling getCommentVoteUserNames: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling deleteV1PageReact: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -1406,7 +1399,7 @@ pplx::task> PublicApi::get if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling getCommentVoteUserNames: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling deleteV1PageReact: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -1415,7 +1408,7 @@ pplx::task> PublicApi::get }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentVoteUserNames_200_response()); + std::shared_ptr localVarResult(new CreateV1PageReact()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1430,18 +1423,18 @@ pplx::task> PublicApi::get else { throw ApiException(500 - , utility::conversions::to_string_t("error calling getCommentVoteUserNames: unsupported response type")); + , utility::conversions::to_string_t("error calling deleteV1PageReact: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::getCommentsPublic(utility::string_t tenantId, utility::string_t urlId, boost::optional page, boost::optional> direction, boost::optional sso, boost::optional skip, boost::optional skipChildren, boost::optional limit, boost::optional limitChildren, boost::optional countChildren, boost::optional fetchPageForCommentId, boost::optional includeConfig, boost::optional countAll, boost::optional includei10n, boost::optional locale, boost::optional modules, boost::optional isCrawler, boost::optional includeNotificationCount, boost::optional asTree, boost::optional maxTreeDepth, boost::optional useFullTranslationIds, boost::optional parentId, boost::optional searchText, boost::optional> hashTags, boost::optional userId, boost::optional customConfigStr, boost::optional afterCommentId, boost::optional beforeCommentId) const +pplx::task> PublicApi::deleteV2PageReact(utility::string_t tenantId, utility::string_t urlId, utility::string_t id) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/comments/{tenantId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/page-reacts/v2/{tenantId}"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); std::map localVarQueryParams; @@ -1471,7 +1464,7 @@ pplx::task> PublicApi::getCommen } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->getCommentsPublic does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->deleteV2PageReact does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; @@ -1481,109 +1474,2404 @@ pplx::task> PublicApi::getCommen { localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); } - if (page) { - localVarQueryParams[utility::conversions::to_string_t("page")] = ApiClient::parameterToString(*page); + localVarQueryParams[utility::conversions::to_string_t("id")] = ApiClient::parameterToString(id); } - if (direction && *direction != nullptr) + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) { - localVarQueryParams[utility::conversions::to_string_t("direction")] = ApiClient::parameterToString(*direction); + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); } - if (sso) + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) { - localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); } - if (skip) + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) { - localVarQueryParams[utility::conversions::to_string_t("skip")] = ApiClient::parameterToString(*skip); + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); } - if (skipChildren) + else { - localVarQueryParams[utility::conversions::to_string_t("skipChildren")] = ApiClient::parameterToString(*skipChildren); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->deleteV2PageReact does not consume any supported media type")); } - if (limit) + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("DELETE"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) { - localVarQueryParams[utility::conversions::to_string_t("limit")] = ApiClient::parameterToString(*limit); - } - if (limitChildren) + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling deleteV2PageReact: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling deleteV2PageReact: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) { - localVarQueryParams[utility::conversions::to_string_t("limitChildren")] = ApiClient::parameterToString(*limitChildren); - } - if (countChildren) + std::shared_ptr localVarResult(new CreateV1PageReact()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling deleteV2PageReact: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::flagCommentPublic(utility::string_t tenantId, utility::string_t commentId, bool isFlagged, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/flag-comment/{commentId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) { - localVarQueryParams[utility::conversions::to_string_t("countChildren")] = ApiClient::parameterToString(*countChildren); + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); } - if (fetchPageForCommentId) + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) { - localVarQueryParams[utility::conversions::to_string_t("fetchPageForCommentId")] = ApiClient::parameterToString(*fetchPageForCommentId); + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); } - if (includeConfig) + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) { - localVarQueryParams[utility::conversions::to_string_t("includeConfig")] = ApiClient::parameterToString(*includeConfig); + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); } - if (countAll) + else { - localVarQueryParams[utility::conversions::to_string_t("countAll")] = ApiClient::parameterToString(*countAll); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->flagCommentPublic does not produce any supported media type")); } - if (includei10n) + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + { - localVarQueryParams[utility::conversions::to_string_t("includei10n")] = ApiClient::parameterToString(*includei10n); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (locale) { - localVarQueryParams[utility::conversions::to_string_t("locale")] = ApiClient::parameterToString(*locale); + localVarQueryParams[utility::conversions::to_string_t("isFlagged")] = ApiClient::parameterToString(isFlagged); } - if (modules) + if (sso) { - localVarQueryParams[utility::conversions::to_string_t("modules")] = ApiClient::parameterToString(*modules); + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); } - if (isCrawler) + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->flagCommentPublic does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling flagCommentPublic: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling flagCommentPublic: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new APIEmptyResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling flagCommentPublic: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getCommentText(utility::string_t tenantId, utility::string_t commentId, boost::optional editKey, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/comments/{tenantId}/{commentId}/text"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getCommentText does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (editKey) + { + localVarQueryParams[utility::conversions::to_string_t("editKey")] = ApiClient::parameterToString(*editKey); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getCommentText does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getCommentText: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCommentText: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new PublicAPIGetCommentTextResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCommentText: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getCommentVoteUserNames(utility::string_t tenantId, utility::string_t commentId, int32_t dir, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/comments/{tenantId}/{commentId}/votes"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getCommentVoteUserNames does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + { + localVarQueryParams[utility::conversions::to_string_t("dir")] = ApiClient::parameterToString(dir); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getCommentVoteUserNames does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getCommentVoteUserNames: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCommentVoteUserNames: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetCommentVoteUserNamesSuccessResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCommentVoteUserNames: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getCommentsForUser(boost::optional userId, boost::optional> direction, boost::optional repliesToUserId, boost::optional page, boost::optional includei10n, boost::optional locale, boost::optional isCrawler) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/comments-for-user"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getCommentsForUser does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (userId) + { + localVarQueryParams[utility::conversions::to_string_t("userId")] = ApiClient::parameterToString(*userId); + } + if (direction && *direction != nullptr) + { + localVarQueryParams[utility::conversions::to_string_t("direction")] = ApiClient::parameterToString(*direction); + } + if (repliesToUserId) + { + localVarQueryParams[utility::conversions::to_string_t("repliesToUserId")] = ApiClient::parameterToString(*repliesToUserId); + } + if (page) + { + localVarQueryParams[utility::conversions::to_string_t("page")] = ApiClient::parameterToString(*page); + } + if (includei10n) + { + localVarQueryParams[utility::conversions::to_string_t("includei10n")] = ApiClient::parameterToString(*includei10n); + } + if (locale) + { + localVarQueryParams[utility::conversions::to_string_t("locale")] = ApiClient::parameterToString(*locale); + } + if (isCrawler) + { + localVarQueryParams[utility::conversions::to_string_t("isCrawler")] = ApiClient::parameterToString(*isCrawler); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getCommentsForUser does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getCommentsForUser: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCommentsForUser: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetCommentsForUserResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCommentsForUser: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getCommentsPublic(utility::string_t tenantId, utility::string_t urlId, boost::optional page, boost::optional> direction, boost::optional sso, boost::optional skip, boost::optional skipChildren, boost::optional limit, boost::optional limitChildren, boost::optional countChildren, boost::optional fetchPageForCommentId, boost::optional includeConfig, boost::optional countAll, boost::optional includei10n, boost::optional locale, boost::optional modules, boost::optional isCrawler, boost::optional includeNotificationCount, boost::optional asTree, boost::optional maxTreeDepth, boost::optional useFullTranslationIds, boost::optional parentId, boost::optional searchText, boost::optional> hashTags, boost::optional userId, boost::optional customConfigStr, boost::optional afterCommentId, boost::optional beforeCommentId) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/comments/{tenantId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getCommentsPublic does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + { + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); + } + if (page) + { + localVarQueryParams[utility::conversions::to_string_t("page")] = ApiClient::parameterToString(*page); + } + if (direction && *direction != nullptr) + { + localVarQueryParams[utility::conversions::to_string_t("direction")] = ApiClient::parameterToString(*direction); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + if (skip) + { + localVarQueryParams[utility::conversions::to_string_t("skip")] = ApiClient::parameterToString(*skip); + } + if (skipChildren) + { + localVarQueryParams[utility::conversions::to_string_t("skipChildren")] = ApiClient::parameterToString(*skipChildren); + } + if (limit) + { + localVarQueryParams[utility::conversions::to_string_t("limit")] = ApiClient::parameterToString(*limit); + } + if (limitChildren) + { + localVarQueryParams[utility::conversions::to_string_t("limitChildren")] = ApiClient::parameterToString(*limitChildren); + } + if (countChildren) + { + localVarQueryParams[utility::conversions::to_string_t("countChildren")] = ApiClient::parameterToString(*countChildren); + } + if (fetchPageForCommentId) + { + localVarQueryParams[utility::conversions::to_string_t("fetchPageForCommentId")] = ApiClient::parameterToString(*fetchPageForCommentId); + } + if (includeConfig) + { + localVarQueryParams[utility::conversions::to_string_t("includeConfig")] = ApiClient::parameterToString(*includeConfig); + } + if (countAll) + { + localVarQueryParams[utility::conversions::to_string_t("countAll")] = ApiClient::parameterToString(*countAll); + } + if (includei10n) + { + localVarQueryParams[utility::conversions::to_string_t("includei10n")] = ApiClient::parameterToString(*includei10n); + } + if (locale) + { + localVarQueryParams[utility::conversions::to_string_t("locale")] = ApiClient::parameterToString(*locale); + } + if (modules) + { + localVarQueryParams[utility::conversions::to_string_t("modules")] = ApiClient::parameterToString(*modules); + } + if (isCrawler) + { + localVarQueryParams[utility::conversions::to_string_t("isCrawler")] = ApiClient::parameterToString(*isCrawler); + } + if (includeNotificationCount) + { + localVarQueryParams[utility::conversions::to_string_t("includeNotificationCount")] = ApiClient::parameterToString(*includeNotificationCount); + } + if (asTree) + { + localVarQueryParams[utility::conversions::to_string_t("asTree")] = ApiClient::parameterToString(*asTree); + } + if (maxTreeDepth) + { + localVarQueryParams[utility::conversions::to_string_t("maxTreeDepth")] = ApiClient::parameterToString(*maxTreeDepth); + } + if (useFullTranslationIds) + { + localVarQueryParams[utility::conversions::to_string_t("useFullTranslationIds")] = ApiClient::parameterToString(*useFullTranslationIds); + } + if (parentId) + { + localVarQueryParams[utility::conversions::to_string_t("parentId")] = ApiClient::parameterToString(*parentId); + } + if (searchText) + { + localVarQueryParams[utility::conversions::to_string_t("searchText")] = ApiClient::parameterToString(*searchText); + } + if (hashTags) + { + localVarQueryParams[utility::conversions::to_string_t("hashTags")] = ApiClient::parameterToString(*hashTags); + } + if (userId) + { + localVarQueryParams[utility::conversions::to_string_t("userId")] = ApiClient::parameterToString(*userId); + } + if (customConfigStr) + { + localVarQueryParams[utility::conversions::to_string_t("customConfigStr")] = ApiClient::parameterToString(*customConfigStr); + } + if (afterCommentId) + { + localVarQueryParams[utility::conversions::to_string_t("afterCommentId")] = ApiClient::parameterToString(*afterCommentId); + } + if (beforeCommentId) + { + localVarQueryParams[utility::conversions::to_string_t("beforeCommentId")] = ApiClient::parameterToString(*beforeCommentId); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getCommentsPublic does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getCommentsPublic: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCommentsPublic: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetCommentsResponseWithPresence_PublicComment_()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getCommentsPublic: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, boost::optional endTime) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/event-log/{tenantId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getEventLog does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + { + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); + } + { + localVarQueryParams[utility::conversions::to_string_t("userIdWS")] = ApiClient::parameterToString(userIdWS); + } + { + localVarQueryParams[utility::conversions::to_string_t("startTime")] = ApiClient::parameterToString(startTime); + } + if (endTime) + { + localVarQueryParams[utility::conversions::to_string_t("endTime")] = ApiClient::parameterToString(*endTime); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getEventLog does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getEventLog: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getEventLog: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetEventLogResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getEventLog: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getFeedPostsPublic(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags, boost::optional sso, boost::optional isCrawler, boost::optional includeUserInfo) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/feed-posts/{tenantId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getFeedPostsPublic does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (afterId) + { + localVarQueryParams[utility::conversions::to_string_t("afterId")] = ApiClient::parameterToString(*afterId); + } + if (limit) + { + localVarQueryParams[utility::conversions::to_string_t("limit")] = ApiClient::parameterToString(*limit); + } + if (tags) + { + localVarQueryParams[utility::conversions::to_string_t("tags")] = ApiClient::parameterToString(*tags); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + if (isCrawler) { localVarQueryParams[utility::conversions::to_string_t("isCrawler")] = ApiClient::parameterToString(*isCrawler); } - if (includeNotificationCount) + if (includeUserInfo) + { + localVarQueryParams[utility::conversions::to_string_t("includeUserInfo")] = ApiClient::parameterToString(*includeUserInfo); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getFeedPostsPublic does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getFeedPostsPublic: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getFeedPostsPublic: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new PublicFeedPostsResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getFeedPostsPublic: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getFeedPostsStats(utility::string_t tenantId, std::vector postIds, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/feed-posts/{tenantId}/stats"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getFeedPostsStats does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + { + localVarQueryParams[utility::conversions::to_string_t("postIds")] = ApiClient::parameterToString(postIds); + } + if (sso) + { + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getFeedPostsStats does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getFeedPostsStats: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getFeedPostsStats: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new FeedPostsStatsResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getFeedPostsStats: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getGifLarge(utility::string_t tenantId, utility::string_t largeInternalURLSanitized) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/gifs/get-large/{tenantId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getGifLarge does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + { + localVarQueryParams[utility::conversions::to_string_t("largeInternalURLSanitized")] = ApiClient::parameterToString(largeInternalURLSanitized); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getGifLarge does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getGifLarge: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getGifLarge: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GifGetLargeResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getGifLarge: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getGifsSearch(utility::string_t tenantId, utility::string_t search, boost::optional locale, boost::optional rating, boost::optional page) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/gifs/search/{tenantId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getGifsSearch does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + { + localVarQueryParams[utility::conversions::to_string_t("search")] = ApiClient::parameterToString(search); + } + if (locale) + { + localVarQueryParams[utility::conversions::to_string_t("locale")] = ApiClient::parameterToString(*locale); + } + if (rating) + { + localVarQueryParams[utility::conversions::to_string_t("rating")] = ApiClient::parameterToString(*rating); + } + if (page) + { + localVarQueryParams[utility::conversions::to_string_t("page")] = ApiClient::parameterToString(*page); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getGifsSearch does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getGifsSearch: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getGifsSearch: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetGifsSearchResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getGifsSearch: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getGifsTrending(utility::string_t tenantId, boost::optional locale, boost::optional rating, boost::optional page) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/gifs/trending/{tenantId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getGifsTrending does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (locale) + { + localVarQueryParams[utility::conversions::to_string_t("locale")] = ApiClient::parameterToString(*locale); + } + if (rating) + { + localVarQueryParams[utility::conversions::to_string_t("rating")] = ApiClient::parameterToString(*rating); + } + if (page) + { + localVarQueryParams[utility::conversions::to_string_t("page")] = ApiClient::parameterToString(*page); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getGifsTrending does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getGifsTrending: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getGifsTrending: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetGifsTrendingResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getGifsTrending: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getGlobalEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, boost::optional endTime) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/event-log/global/{tenantId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getGlobalEventLog does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + { + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); + } + { + localVarQueryParams[utility::conversions::to_string_t("userIdWS")] = ApiClient::parameterToString(userIdWS); + } + { + localVarQueryParams[utility::conversions::to_string_t("startTime")] = ApiClient::parameterToString(startTime); + } + if (endTime) + { + localVarQueryParams[utility::conversions::to_string_t("endTime")] = ApiClient::parameterToString(*endTime); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getGlobalEventLog does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getGlobalEventLog: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getGlobalEventLog: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetEventLogResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getGlobalEventLog: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getOfflineUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, boost::optional afterUserId) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/pages/{tenantId}/users/offline"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getOfflineUsers does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + { + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); + } + if (afterName) + { + localVarQueryParams[utility::conversions::to_string_t("afterName")] = ApiClient::parameterToString(*afterName); + } + if (afterUserId) + { + localVarQueryParams[utility::conversions::to_string_t("afterUserId")] = ApiClient::parameterToString(*afterUserId); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getOfflineUsers does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getOfflineUsers: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getOfflineUsers: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new PageUsersOfflineResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getOfflineUsers: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getOnlineUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, boost::optional afterUserId) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/pages/{tenantId}/users/online"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getOnlineUsers does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + { + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); + } + if (afterName) + { + localVarQueryParams[utility::conversions::to_string_t("afterName")] = ApiClient::parameterToString(*afterName); + } + if (afterUserId) + { + localVarQueryParams[utility::conversions::to_string_t("afterUserId")] = ApiClient::parameterToString(*afterUserId); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getOnlineUsers does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getOnlineUsers: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getOnlineUsers: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new PageUsersOnlineResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getOnlineUsers: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getPagesPublic(utility::string_t tenantId, boost::optional cursor, boost::optional limit, boost::optional q, boost::optional> sortBy, boost::optional hasComments) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/pages/{tenantId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) { - localVarQueryParams[utility::conversions::to_string_t("includeNotificationCount")] = ApiClient::parameterToString(*includeNotificationCount); + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); } - if (asTree) + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) { - localVarQueryParams[utility::conversions::to_string_t("asTree")] = ApiClient::parameterToString(*asTree); + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); } - if (maxTreeDepth) + else { - localVarQueryParams[utility::conversions::to_string_t("maxTreeDepth")] = ApiClient::parameterToString(*maxTreeDepth); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getPagesPublic does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (cursor) + { + localVarQueryParams[utility::conversions::to_string_t("cursor")] = ApiClient::parameterToString(*cursor); + } + if (limit) + { + localVarQueryParams[utility::conversions::to_string_t("limit")] = ApiClient::parameterToString(*limit); + } + if (q) + { + localVarQueryParams[utility::conversions::to_string_t("q")] = ApiClient::parameterToString(*q); + } + if (sortBy && *sortBy != nullptr) + { + localVarQueryParams[utility::conversions::to_string_t("sortBy")] = ApiClient::parameterToString(*sortBy); + } + if (hasComments) + { + localVarQueryParams[utility::conversions::to_string_t("hasComments")] = ApiClient::parameterToString(*hasComments); + } + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getPagesPublic does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getPagesPublic: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getPagesPublic: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetPublicPagesResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getPagesPublic: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getTranslations(utility::string_t r_namespace, utility::string_t component, boost::optional locale, boost::optional useFullTranslationIds) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/translations/{namespace}/{component}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("namespace") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(r_namespace))); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("component") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(component))); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); + } + else + { + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getTranslations does not produce any supported media type")); + } + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + + if (locale) + { + localVarQueryParams[utility::conversions::to_string_t("locale")] = ApiClient::parameterToString(*locale); } if (useFullTranslationIds) { localVarQueryParams[utility::conversions::to_string_t("useFullTranslationIds")] = ApiClient::parameterToString(*useFullTranslationIds); } - if (parentId) + + std::shared_ptr localVarHttpBody; + utility::string_t localVarRequestHttpContentType; + + // use JSON if possible + if ( localVarConsumeHttpContentTypes.size() == 0 || localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarConsumeHttpContentTypes.end() ) { - localVarQueryParams[utility::conversions::to_string_t("parentId")] = ApiClient::parameterToString(*parentId); + localVarRequestHttpContentType = utility::conversions::to_string_t("application/json"); } - if (searchText) + // multipart formdata + else if( localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarConsumeHttpContentTypes.end() ) { - localVarQueryParams[utility::conversions::to_string_t("searchText")] = ApiClient::parameterToString(*searchText); + localVarRequestHttpContentType = utility::conversions::to_string_t("multipart/form-data"); } - if (hashTags) + else if (localVarConsumeHttpContentTypes.find(utility::conversions::to_string_t("application/x-www-form-urlencoded")) != localVarConsumeHttpContentTypes.end()) + { + localVarRequestHttpContentType = utility::conversions::to_string_t("application/x-www-form-urlencoded"); + } + else + { + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getTranslations does not consume any supported media type")); + } + + + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + .then([=, this](web::http::http_response localVarResponse) + { + if (m_ApiClient->getResponseHandler()) + { + m_ApiClient->getResponseHandler()(localVarResponse.status_code(), localVarResponse.headers()); + } + + // 1xx - informational : OK + // 2xx - successful : OK + // 3xx - redirection : OK + // 4xx - client error : not OK + // 5xx - client error : not OK + if (localVarResponse.status_code() >= 400) + { + throw ApiException(localVarResponse.status_code() + , utility::conversions::to_string_t("error calling getTranslations: ") + localVarResponse.reason_phrase() + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + + // check response content type + if(localVarResponse.headers().has(utility::conversions::to_string_t("Content-Type"))) + { + utility::string_t localVarContentType = localVarResponse.headers()[utility::conversions::to_string_t("Content-Type")]; + if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getTranslations: unexpected response type: ") + localVarContentType + , std::make_shared(localVarResponse.extract_utf8string(true).get())); + } + } + + return localVarResponse.extract_string(); + }) + .then([=, this](utility::string_t localVarResponse) + { + std::shared_ptr localVarResult(new GetTranslationsResponse()); + + if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) + { + web::json::value localVarJson = web::json::value::parse(localVarResponse); + + ModelBase::fromJson(localVarJson, localVarResult); + } + // else if(localVarResponseHttpContentType == utility::conversions::to_string_t("multipart/form-data")) + // { + // TODO multipart response parsing + // } + else + { + throw ApiException(500 + , utility::conversions::to_string_t("error calling getTranslations: unsupported response type")); + } + + return localVarResult; + }); +} +pplx::task> PublicApi::getUserNotificationCount(utility::string_t tenantId, boost::optional sso) const +{ + + + std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); + utility::string_t localVarPath = utility::conversions::to_string_t("/user-notifications/get-count"); + + std::map localVarQueryParams; + std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); + std::map localVarFormParams; + std::map> localVarFileParams; + + std::unordered_set localVarResponseHttpContentTypes; + localVarResponseHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + + utility::string_t localVarResponseHttpContentType; + + // use JSON if possible + if ( localVarResponseHttpContentTypes.size() == 0 ) + { + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); + } + // JSON + else if ( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("application/json")) != localVarResponseHttpContentTypes.end() ) { - localVarQueryParams[utility::conversions::to_string_t("hashTags")] = ApiClient::parameterToString(*hashTags); + localVarResponseHttpContentType = utility::conversions::to_string_t("application/json"); } - if (userId) + // multipart formdata + else if( localVarResponseHttpContentTypes.find(utility::conversions::to_string_t("multipart/form-data")) != localVarResponseHttpContentTypes.end() ) { - localVarQueryParams[utility::conversions::to_string_t("userId")] = ApiClient::parameterToString(*userId); + localVarResponseHttpContentType = utility::conversions::to_string_t("multipart/form-data"); } - if (customConfigStr) + else { - localVarQueryParams[utility::conversions::to_string_t("customConfigStr")] = ApiClient::parameterToString(*customConfigStr); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getUserNotificationCount does not produce any supported media type")); } - if (afterCommentId) + + localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; + + std::unordered_set localVarConsumeHttpContentTypes; + { - localVarQueryParams[utility::conversions::to_string_t("afterCommentId")] = ApiClient::parameterToString(*afterCommentId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (beforeCommentId) + if (sso) { - localVarQueryParams[utility::conversions::to_string_t("beforeCommentId")] = ApiClient::parameterToString(*beforeCommentId); + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); } std::shared_ptr localVarHttpBody; @@ -1605,7 +3893,7 @@ pplx::task> PublicApi::getCommen } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->getCommentsPublic does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getUserNotificationCount does not consume any supported media type")); } @@ -1625,7 +3913,7 @@ pplx::task> PublicApi::getCommen if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling getCommentsPublic: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling getUserNotificationCount: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -1636,7 +3924,7 @@ pplx::task> PublicApi::getCommen if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling getCommentsPublic: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling getUserNotificationCount: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -1645,7 +3933,7 @@ pplx::task> PublicApi::getCommen }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentsPublic_200_response()); + std::shared_ptr localVarResult(new GetUserNotificationCountResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1660,19 +3948,18 @@ pplx::task> PublicApi::getCommen else { throw ApiException(500 - , utility::conversions::to_string_t("error calling getCommentsPublic: unsupported response type")); + , utility::conversions::to_string_t("error calling getUserNotificationCount: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::getEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, int64_t endTime) const +pplx::task> PublicApi::getUserNotifications(utility::string_t tenantId, boost::optional urlId, boost::optional pageSize, boost::optional afterId, boost::optional includeContext, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional includeTranslations, boost::optional includeTenantNotifications, boost::optional sso) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/event-log/{tenantId}"); - boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + utility::string_t localVarPath = utility::conversions::to_string_t("/user-notifications"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -1701,7 +3988,7 @@ pplx::task> PublicApi::getEventLog(uti } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->getEventLog does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getUserNotifications does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; @@ -1709,16 +3996,51 @@ pplx::task> PublicApi::getEventLog(uti std::unordered_set localVarConsumeHttpContentTypes; { - localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } + if (urlId) { - localVarQueryParams[utility::conversions::to_string_t("userIdWS")] = ApiClient::parameterToString(userIdWS); + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(*urlId); } + if (pageSize) { - localVarQueryParams[utility::conversions::to_string_t("startTime")] = ApiClient::parameterToString(startTime); + localVarQueryParams[utility::conversions::to_string_t("pageSize")] = ApiClient::parameterToString(*pageSize); + } + if (afterId) + { + localVarQueryParams[utility::conversions::to_string_t("afterId")] = ApiClient::parameterToString(*afterId); + } + if (includeContext) + { + localVarQueryParams[utility::conversions::to_string_t("includeContext")] = ApiClient::parameterToString(*includeContext); + } + if (afterCreatedAt) + { + localVarQueryParams[utility::conversions::to_string_t("afterCreatedAt")] = ApiClient::parameterToString(*afterCreatedAt); + } + if (unreadOnly) + { + localVarQueryParams[utility::conversions::to_string_t("unreadOnly")] = ApiClient::parameterToString(*unreadOnly); + } + if (dmOnly) + { + localVarQueryParams[utility::conversions::to_string_t("dmOnly")] = ApiClient::parameterToString(*dmOnly); + } + if (noDm) + { + localVarQueryParams[utility::conversions::to_string_t("noDm")] = ApiClient::parameterToString(*noDm); + } + if (includeTranslations) + { + localVarQueryParams[utility::conversions::to_string_t("includeTranslations")] = ApiClient::parameterToString(*includeTranslations); + } + if (includeTenantNotifications) + { + localVarQueryParams[utility::conversions::to_string_t("includeTenantNotifications")] = ApiClient::parameterToString(*includeTenantNotifications); } + if (sso) { - localVarQueryParams[utility::conversions::to_string_t("endTime")] = ApiClient::parameterToString(endTime); + localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); } std::shared_ptr localVarHttpBody; @@ -1740,7 +4062,7 @@ pplx::task> PublicApi::getEventLog(uti } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->getEventLog does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getUserNotifications does not consume any supported media type")); } @@ -1760,7 +4082,7 @@ pplx::task> PublicApi::getEventLog(uti if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling getEventLog: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling getUserNotifications: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -1771,7 +4093,7 @@ pplx::task> PublicApi::getEventLog(uti if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling getEventLog: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling getUserNotifications: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -1780,7 +4102,7 @@ pplx::task> PublicApi::getEventLog(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEventLog_200_response()); + std::shared_ptr localVarResult(new GetMyNotificationsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1795,19 +4117,18 @@ pplx::task> PublicApi::getEventLog(uti else { throw ApiException(500 - , utility::conversions::to_string_t("error calling getEventLog: unsupported response type")); + , utility::conversions::to_string_t("error calling getUserNotifications: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::getFeedPostsPublic(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags, boost::optional sso, boost::optional isCrawler, boost::optional includeUserInfo) const +pplx::task> PublicApi::getUserPresenceStatuses(utility::string_t tenantId, utility::string_t urlIdWS, utility::string_t userIds) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/feed-posts/{tenantId}"); - boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + utility::string_t localVarPath = utility::conversions::to_string_t("/user-presence-status"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -1836,36 +4157,21 @@ pplx::task> PublicApi::getFeedP } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->getFeedPostsPublic does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getUserPresenceStatuses does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; std::unordered_set localVarConsumeHttpContentTypes; - if (afterId) - { - localVarQueryParams[utility::conversions::to_string_t("afterId")] = ApiClient::parameterToString(*afterId); - } - if (limit) { - localVarQueryParams[utility::conversions::to_string_t("limit")] = ApiClient::parameterToString(*limit); - } - if (tags) - { - localVarQueryParams[utility::conversions::to_string_t("tags")] = ApiClient::parameterToString(*tags); - } - if (sso) - { - localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); } - if (isCrawler) { - localVarQueryParams[utility::conversions::to_string_t("isCrawler")] = ApiClient::parameterToString(*isCrawler); + localVarQueryParams[utility::conversions::to_string_t("urlIdWS")] = ApiClient::parameterToString(urlIdWS); } - if (includeUserInfo) { - localVarQueryParams[utility::conversions::to_string_t("includeUserInfo")] = ApiClient::parameterToString(*includeUserInfo); + localVarQueryParams[utility::conversions::to_string_t("userIds")] = ApiClient::parameterToString(userIds); } std::shared_ptr localVarHttpBody; @@ -1887,7 +4193,7 @@ pplx::task> PublicApi::getFeedP } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->getFeedPostsPublic does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getUserPresenceStatuses does not consume any supported media type")); } @@ -1907,7 +4213,7 @@ pplx::task> PublicApi::getFeedP if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling getFeedPostsPublic: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling getUserPresenceStatuses: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -1918,7 +4224,7 @@ pplx::task> PublicApi::getFeedP if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling getFeedPostsPublic: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling getUserPresenceStatuses: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -1927,7 +4233,7 @@ pplx::task> PublicApi::getFeedP }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetFeedPostsPublic_200_response()); + std::shared_ptr localVarResult(new GetUserPresenceStatusesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1942,18 +4248,18 @@ pplx::task> PublicApi::getFeedP else { throw ApiException(500 - , utility::conversions::to_string_t("error calling getFeedPostsPublic: unsupported response type")); + , utility::conversions::to_string_t("error calling getUserPresenceStatuses: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::getFeedPostsStats(utility::string_t tenantId, std::vector postIds, boost::optional sso) const +pplx::task> PublicApi::getUserReactsPublic(utility::string_t tenantId, boost::optional> postIds, boost::optional sso) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/feed-posts/{tenantId}/stats"); + utility::string_t localVarPath = utility::conversions::to_string_t("/feed-posts/{tenantId}/user-reacts"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); std::map localVarQueryParams; @@ -1983,15 +4289,16 @@ pplx::task> PublicApi::getFeedPo } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->getFeedPostsStats does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getUserReactsPublic does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; std::unordered_set localVarConsumeHttpContentTypes; + if (postIds) { - localVarQueryParams[utility::conversions::to_string_t("postIds")] = ApiClient::parameterToString(postIds); + localVarQueryParams[utility::conversions::to_string_t("postIds")] = ApiClient::parameterToString(*postIds); } if (sso) { @@ -2017,7 +4324,7 @@ pplx::task> PublicApi::getFeedPo } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->getFeedPostsStats does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getUserReactsPublic does not consume any supported media type")); } @@ -2037,7 +4344,7 @@ pplx::task> PublicApi::getFeedPo if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling getFeedPostsStats: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling getUserReactsPublic: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -2048,7 +4355,7 @@ pplx::task> PublicApi::getFeedPo if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling getFeedPostsStats: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling getUserReactsPublic: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -2057,7 +4364,7 @@ pplx::task> PublicApi::getFeedPo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetFeedPostsStats_200_response()); + std::shared_ptr localVarResult(new UserReactsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2072,18 +4379,18 @@ pplx::task> PublicApi::getFeedPo else { throw ApiException(500 - , utility::conversions::to_string_t("error calling getFeedPostsStats: unsupported response type")); + , utility::conversions::to_string_t("error calling getUserReactsPublic: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::getGlobalEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, int64_t endTime) const +pplx::task> PublicApi::getUsersInfo(utility::string_t tenantId, utility::string_t ids) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/event-log/global/{tenantId}"); + utility::string_t localVarPath = utility::conversions::to_string_t("/pages/{tenantId}/users/info"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); std::map localVarQueryParams; @@ -2113,7 +4420,7 @@ pplx::task> PublicApi::getGlobalEventL } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->getGlobalEventLog does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getUsersInfo does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; @@ -2121,16 +4428,7 @@ pplx::task> PublicApi::getGlobalEventL std::unordered_set localVarConsumeHttpContentTypes; { - localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); - } - { - localVarQueryParams[utility::conversions::to_string_t("userIdWS")] = ApiClient::parameterToString(userIdWS); - } - { - localVarQueryParams[utility::conversions::to_string_t("startTime")] = ApiClient::parameterToString(startTime); - } - { - localVarQueryParams[utility::conversions::to_string_t("endTime")] = ApiClient::parameterToString(endTime); + localVarQueryParams[utility::conversions::to_string_t("ids")] = ApiClient::parameterToString(ids); } std::shared_ptr localVarHttpBody; @@ -2152,7 +4450,7 @@ pplx::task> PublicApi::getGlobalEventL } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->getGlobalEventLog does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getUsersInfo does not consume any supported media type")); } @@ -2172,7 +4470,7 @@ pplx::task> PublicApi::getGlobalEventL if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling getGlobalEventLog: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling getUsersInfo: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -2183,7 +4481,7 @@ pplx::task> PublicApi::getGlobalEventL if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling getGlobalEventLog: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling getUsersInfo: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -2192,7 +4490,7 @@ pplx::task> PublicApi::getGlobalEventL }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEventLog_200_response()); + std::shared_ptr localVarResult(new PageUsersInfoResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2207,18 +4505,19 @@ pplx::task> PublicApi::getGlobalEventL else { throw ApiException(500 - , utility::conversions::to_string_t("error calling getGlobalEventLog: unsupported response type")); + , utility::conversions::to_string_t("error calling getUsersInfo: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::getUserNotificationCount(utility::string_t tenantId, boost::optional sso) const +pplx::task> PublicApi::getV1PageLikes(utility::string_t tenantId, utility::string_t urlId) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/user-notifications/get-count"); + utility::string_t localVarPath = utility::conversions::to_string_t("/page-reacts/v1/likes/{tenantId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -2247,7 +4546,7 @@ pplx::task> PublicApi::ge } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->getUserNotificationCount does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getV1PageLikes does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; @@ -2255,11 +4554,7 @@ pplx::task> PublicApi::ge std::unordered_set localVarConsumeHttpContentTypes; { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); - } - if (sso) - { - localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); } std::shared_ptr localVarHttpBody; @@ -2281,7 +4576,7 @@ pplx::task> PublicApi::ge } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->getUserNotificationCount does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getV1PageLikes does not consume any supported media type")); } @@ -2301,7 +4596,7 @@ pplx::task> PublicApi::ge if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling getUserNotificationCount: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling getV1PageLikes: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -2312,7 +4607,7 @@ pplx::task> PublicApi::ge if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling getUserNotificationCount: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling getV1PageLikes: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -2321,7 +4616,7 @@ pplx::task> PublicApi::ge }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserNotificationCount_200_response()); + std::shared_ptr localVarResult(new GetV1PageLikes()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2336,18 +4631,19 @@ pplx::task> PublicApi::ge else { throw ApiException(500 - , utility::conversions::to_string_t("error calling getUserNotificationCount: unsupported response type")); + , utility::conversions::to_string_t("error calling getV1PageLikes: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::getUserNotifications(utility::string_t tenantId, boost::optional pageSize, boost::optional afterId, boost::optional includeContext, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional includeTranslations, boost::optional sso) const +pplx::task> PublicApi::getV2PageReactUsers(utility::string_t tenantId, utility::string_t urlId, utility::string_t id) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/user-notifications"); + utility::string_t localVarPath = utility::conversions::to_string_t("/page-reacts/v2/{tenantId}/list"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -2376,7 +4672,7 @@ pplx::task> PublicApi::getUse } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->getUserNotifications does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getV2PageReactUsers does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; @@ -2384,43 +4680,10 @@ pplx::task> PublicApi::getUse std::unordered_set localVarConsumeHttpContentTypes; { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); - } - if (pageSize) - { - localVarQueryParams[utility::conversions::to_string_t("pageSize")] = ApiClient::parameterToString(*pageSize); - } - if (afterId) - { - localVarQueryParams[utility::conversions::to_string_t("afterId")] = ApiClient::parameterToString(*afterId); - } - if (includeContext) - { - localVarQueryParams[utility::conversions::to_string_t("includeContext")] = ApiClient::parameterToString(*includeContext); - } - if (afterCreatedAt) - { - localVarQueryParams[utility::conversions::to_string_t("afterCreatedAt")] = ApiClient::parameterToString(*afterCreatedAt); - } - if (unreadOnly) - { - localVarQueryParams[utility::conversions::to_string_t("unreadOnly")] = ApiClient::parameterToString(*unreadOnly); - } - if (dmOnly) - { - localVarQueryParams[utility::conversions::to_string_t("dmOnly")] = ApiClient::parameterToString(*dmOnly); - } - if (noDm) - { - localVarQueryParams[utility::conversions::to_string_t("noDm")] = ApiClient::parameterToString(*noDm); - } - if (includeTranslations) - { - localVarQueryParams[utility::conversions::to_string_t("includeTranslations")] = ApiClient::parameterToString(*includeTranslations); + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); } - if (sso) { - localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); + localVarQueryParams[utility::conversions::to_string_t("id")] = ApiClient::parameterToString(id); } std::shared_ptr localVarHttpBody; @@ -2442,7 +4705,7 @@ pplx::task> PublicApi::getUse } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->getUserNotifications does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getV2PageReactUsers does not consume any supported media type")); } @@ -2462,7 +4725,7 @@ pplx::task> PublicApi::getUse if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling getUserNotifications: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling getV2PageReactUsers: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -2473,7 +4736,7 @@ pplx::task> PublicApi::getUse if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling getUserNotifications: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling getV2PageReactUsers: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -2482,7 +4745,7 @@ pplx::task> PublicApi::getUse }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserNotifications_200_response()); + std::shared_ptr localVarResult(new GetV2PageReactUsersResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2497,18 +4760,19 @@ pplx::task> PublicApi::getUse else { throw ApiException(500 - , utility::conversions::to_string_t("error calling getUserNotifications: unsupported response type")); + , utility::conversions::to_string_t("error calling getV2PageReactUsers: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::getUserPresenceStatuses(utility::string_t tenantId, utility::string_t urlIdWS, utility::string_t userIds) const +pplx::task> PublicApi::getV2PageReacts(utility::string_t tenantId, utility::string_t urlId) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/user-presence-status"); + utility::string_t localVarPath = utility::conversions::to_string_t("/page-reacts/v2/{tenantId}"); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -2537,7 +4801,7 @@ pplx::task> PublicApi::get } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->getUserPresenceStatuses does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->getV2PageReacts does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; @@ -2545,13 +4809,7 @@ pplx::task> PublicApi::get std::unordered_set localVarConsumeHttpContentTypes; { - localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(tenantId); - } - { - localVarQueryParams[utility::conversions::to_string_t("urlIdWS")] = ApiClient::parameterToString(urlIdWS); - } - { - localVarQueryParams[utility::conversions::to_string_t("userIds")] = ApiClient::parameterToString(userIds); + localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); } std::shared_ptr localVarHttpBody; @@ -2573,7 +4831,7 @@ pplx::task> PublicApi::get } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->getUserPresenceStatuses does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->getV2PageReacts does not consume any supported media type")); } @@ -2593,7 +4851,7 @@ pplx::task> PublicApi::get if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling getUserPresenceStatuses: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling getV2PageReacts: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -2604,7 +4862,7 @@ pplx::task> PublicApi::get if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling getUserPresenceStatuses: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling getV2PageReacts: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -2613,7 +4871,7 @@ pplx::task> PublicApi::get }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserPresenceStatuses_200_response()); + std::shared_ptr localVarResult(new GetV2PageReacts()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2628,19 +4886,20 @@ pplx::task> PublicApi::get else { throw ApiException(500 - , utility::conversions::to_string_t("error calling getUserPresenceStatuses: unsupported response type")); + , utility::conversions::to_string_t("error calling getV2PageReacts: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::getUserReactsPublic(utility::string_t tenantId, boost::optional> postIds, boost::optional sso) const +pplx::task> PublicApi::lockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/feed-posts/{tenantId}/user-reacts"); + utility::string_t localVarPath = utility::conversions::to_string_t("/comments/{tenantId}/{commentId}/lock"); boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); + boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -2669,16 +4928,15 @@ pplx::task> PublicApi::getUser } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->getUserReactsPublic does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->lockComment does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; std::unordered_set localVarConsumeHttpContentTypes; - if (postIds) { - localVarQueryParams[utility::conversions::to_string_t("postIds")] = ApiClient::parameterToString(*postIds); + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(broadcastId); } if (sso) { @@ -2704,11 +4962,11 @@ pplx::task> PublicApi::getUser } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->getUserReactsPublic does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->lockComment does not consume any supported media type")); } - return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("GET"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) .then([=, this](web::http::http_response localVarResponse) { if (m_ApiClient->getResponseHandler()) @@ -2724,7 +4982,7 @@ pplx::task> PublicApi::getUser if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling getUserReactsPublic: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling lockComment: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -2735,7 +4993,7 @@ pplx::task> PublicApi::getUser if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling getUserReactsPublic: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling lockComment: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -2744,7 +5002,7 @@ pplx::task> PublicApi::getUser }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserReactsPublic_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2759,20 +5017,18 @@ pplx::task> PublicApi::getUser else { throw ApiException(500 - , utility::conversions::to_string_t("error calling getUserReactsPublic: unsupported response type")); + , utility::conversions::to_string_t("error calling lockComment: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::lockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::logoutPublic() const { std::shared_ptr localVarApiConfiguration( m_ApiClient->getConfiguration() ); - utility::string_t localVarPath = utility::conversions::to_string_t("/comments/{tenantId}/{commentId}/lock"); - boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("tenantId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(tenantId))); - boost::replace_all(localVarPath, utility::conversions::to_string_t("{") + utility::conversions::to_string_t("commentId") + utility::conversions::to_string_t("}"), web::uri::encode_uri(ApiClient::parameterToString(commentId))); + utility::string_t localVarPath = utility::conversions::to_string_t("/auth/logout"); std::map localVarQueryParams; std::map localVarHeaderParams( localVarApiConfiguration->getDefaultHeaders() ); @@ -2801,20 +5057,13 @@ pplx::task> PublicApi::lockComment(uti } else { - throw ApiException(400, utility::conversions::to_string_t("PublicApi->lockComment does not produce any supported media type")); + throw ApiException(400, utility::conversions::to_string_t("PublicApi->logoutPublic does not produce any supported media type")); } localVarHeaderParams[utility::conversions::to_string_t("Accept")] = localVarResponseHttpContentType; std::unordered_set localVarConsumeHttpContentTypes; - { - localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(broadcastId); - } - if (sso) - { - localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); - } std::shared_ptr localVarHttpBody; utility::string_t localVarRequestHttpContentType; @@ -2835,11 +5084,11 @@ pplx::task> PublicApi::lockComment(uti } else { - throw ApiException(415, utility::conversions::to_string_t("PublicApi->lockComment does not consume any supported media type")); + throw ApiException(415, utility::conversions::to_string_t("PublicApi->logoutPublic does not consume any supported media type")); } - return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("POST"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) + return m_ApiClient->callApi(localVarPath, utility::conversions::to_string_t("PUT"), localVarQueryParams, localVarHttpBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarRequestHttpContentType) .then([=, this](web::http::http_response localVarResponse) { if (m_ApiClient->getResponseHandler()) @@ -2855,7 +5104,7 @@ pplx::task> PublicApi::lockComment(uti if (localVarResponse.status_code() >= 400) { throw ApiException(localVarResponse.status_code() - , utility::conversions::to_string_t("error calling lockComment: ") + localVarResponse.reason_phrase() + , utility::conversions::to_string_t("error calling logoutPublic: ") + localVarResponse.reason_phrase() , std::make_shared(localVarResponse.extract_utf8string(true).get())); } @@ -2866,7 +5115,7 @@ pplx::task> PublicApi::lockComment(uti if( localVarContentType.find(localVarResponseHttpContentType) == std::string::npos ) { throw ApiException(500 - , utility::conversions::to_string_t("error calling lockComment: unexpected response type: ") + localVarContentType + , utility::conversions::to_string_t("error calling logoutPublic: unexpected response type: ") + localVarContentType , std::make_shared(localVarResponse.extract_utf8string(true).get())); } } @@ -2875,7 +5124,7 @@ pplx::task> PublicApi::lockComment(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new LockComment_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2890,13 +5139,13 @@ pplx::task> PublicApi::lockComment(uti else { throw ApiException(500 - , utility::conversions::to_string_t("error calling lockComment: unsupported response type")); + , utility::conversions::to_string_t("error calling logoutPublic: unsupported response type")); } return localVarResult; }); } -pplx::task> PublicApi::pinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::pinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const { @@ -3006,7 +5255,7 @@ pplx::task> PublicApi::pinComment(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PinComment_200_response()); + std::shared_ptr localVarResult(new ChangeCommentPinStatusResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3027,7 +5276,7 @@ pplx::task> PublicApi::pinComment(utili return localVarResult; }); } -pplx::task> PublicApi::reactFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr reactBodyParams, boost::optional isUndo, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::reactFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr reactBodyParams, boost::optional isUndo, boost::optional broadcastId, boost::optional sso) const { // verify the required parameter 'reactBodyParams' is set @@ -3165,7 +5414,7 @@ pplx::task> PublicApi::reactFe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ReactFeedPostPublic_200_response()); + std::shared_ptr localVarResult(new ReactFeedPostResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3186,7 +5435,7 @@ pplx::task> PublicApi::reactFe return localVarResult; }); } -pplx::task> PublicApi::resetUserNotificationCount(utility::string_t tenantId, boost::optional sso) const +pplx::task> PublicApi::resetUserNotificationCount(utility::string_t tenantId, boost::optional sso) const { @@ -3294,7 +5543,7 @@ pplx::task> PublicApi::rese }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ResetUserNotifications_200_response()); + std::shared_ptr localVarResult(new ResetUserNotificationsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3315,7 +5564,7 @@ pplx::task> PublicApi::rese return localVarResult; }); } -pplx::task> PublicApi::resetUserNotifications(utility::string_t tenantId, boost::optional afterId, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional sso) const +pplx::task> PublicApi::resetUserNotifications(utility::string_t tenantId, boost::optional afterId, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional sso) const { @@ -3443,7 +5692,7 @@ pplx::task> PublicApi::rese }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ResetUserNotifications_200_response()); + std::shared_ptr localVarResult(new ResetUserNotificationsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3464,7 +5713,7 @@ pplx::task> PublicApi::rese return localVarResult; }); } -pplx::task> PublicApi::searchUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional usernameStartsWith, boost::optional> mentionGroupIds, boost::optional sso, boost::optional searchSection) const +pplx::task> PublicApi::searchUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional usernameStartsWith, boost::optional> mentionGroupIds, boost::optional sso, boost::optional searchSection) const { @@ -3585,7 +5834,7 @@ pplx::task> PublicApi::searchUsers(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SearchUsers_200_response()); + std::shared_ptr localVarResult(new SearchUsersResult()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3606,7 +5855,7 @@ pplx::task> PublicApi::searchUsers(uti return localVarResult; }); } -pplx::task> PublicApi::setCommentText(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, std::shared_ptr commentTextUpdateRequest, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::setCommentText(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, std::shared_ptr commentTextUpdateRequest, boost::optional editKey, boost::optional sso) const { // verify the required parameter 'commentTextUpdateRequest' is set @@ -3743,7 +5992,7 @@ pplx::task> PublicApi::setCommentTe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SetCommentText_200_response()); + std::shared_ptr localVarResult(new PublicAPISetCommentTextResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3764,7 +6013,7 @@ pplx::task> PublicApi::setCommentTe return localVarResult; }); } -pplx::task> PublicApi::unBlockCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const +pplx::task> PublicApi::unBlockCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const { // verify the required parameter 'publicBlockFromCommentParams' is set @@ -3896,7 +6145,7 @@ pplx::task> PublicApi::unBloc }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UnBlockCommentPublic_200_response()); + std::shared_ptr localVarResult(new UnblockSuccess()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3917,7 +6166,7 @@ pplx::task> PublicApi::unBloc return localVarResult; }); } -pplx::task> PublicApi::unLockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::unLockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const { @@ -4027,7 +6276,7 @@ pplx::task> PublicApi::unLockComment(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new LockComment_200_response()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4048,7 +6297,7 @@ pplx::task> PublicApi::unLockComment(u return localVarResult; }); } -pplx::task> PublicApi::unPinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::unPinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const { @@ -4158,7 +6407,7 @@ pplx::task> PublicApi::unPinComment(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PinComment_200_response()); + std::shared_ptr localVarResult(new ChangeCommentPinStatusResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4179,7 +6428,7 @@ pplx::task> PublicApi::unPinComment(uti return localVarResult; }); } -pplx::task> PublicApi::updateFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr updateFeedPostParams, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::updateFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr updateFeedPostParams, boost::optional broadcastId, boost::optional sso) const { // verify the required parameter 'updateFeedPostParams' is set @@ -4313,7 +6562,7 @@ pplx::task> PublicApi::update }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateFeedPostPublic_200_response()); + std::shared_ptr localVarResult(new CreateFeedPostResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4334,7 +6583,7 @@ pplx::task> PublicApi::update return localVarResult; }); } -pplx::task> PublicApi::updateUserNotificationCommentSubscriptionStatus(utility::string_t tenantId, utility::string_t notificationId, utility::string_t optedInOrOut, utility::string_t commentId, boost::optional sso) const +pplx::task> PublicApi::updateUserNotificationCommentSubscriptionStatus(utility::string_t tenantId, utility::string_t notificationId, utility::string_t optedInOrOut, utility::string_t commentId, boost::optional sso) const { @@ -4447,7 +6696,7 @@ pplx::task> PublicApi }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateUserNotificationStatus_200_response()); + std::shared_ptr localVarResult(new UpdateUserNotificationCommentSubscriptionStatusResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4468,7 +6717,7 @@ pplx::task> PublicApi return localVarResult; }); } -pplx::task> PublicApi::updateUserNotificationPageSubscriptionStatus(utility::string_t tenantId, utility::string_t urlId, utility::string_t url, utility::string_t pageTitle, utility::string_t subscribedOrUnsubscribed, boost::optional sso) const +pplx::task> PublicApi::updateUserNotificationPageSubscriptionStatus(utility::string_t tenantId, utility::string_t urlId, utility::string_t url, utility::string_t pageTitle, utility::string_t subscribedOrUnsubscribed, boost::optional sso) const { @@ -4586,7 +6835,7 @@ pplx::task> PublicApi }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateUserNotificationStatus_200_response()); + std::shared_ptr localVarResult(new UpdateUserNotificationPageSubscriptionStatusResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4607,7 +6856,7 @@ pplx::task> PublicApi return localVarResult; }); } -pplx::task> PublicApi::updateUserNotificationStatus(utility::string_t tenantId, utility::string_t notificationId, utility::string_t newStatus, boost::optional sso) const +pplx::task> PublicApi::updateUserNotificationStatus(utility::string_t tenantId, utility::string_t notificationId, utility::string_t newStatus, boost::optional sso) const { @@ -4717,7 +6966,7 @@ pplx::task> PublicApi }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateUserNotificationStatus_200_response()); + std::shared_ptr localVarResult(new UpdateUserNotificationStatusResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4873,7 +7122,7 @@ pplx::task> PublicApi::uploadImage(utility: return localVarResult; }); } -pplx::task> PublicApi::voteComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr voteBodyParams, boost::optional sessionId, boost::optional sso) const +pplx::task> PublicApi::voteComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr voteBodyParams, boost::optional sessionId, boost::optional sso) const { // verify the required parameter 'voteBodyParams' is set @@ -5013,7 +7262,7 @@ pplx::task> PublicApi::voteComment(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new VoteComment_200_response()); + std::shared_ptr localVarResult(new VoteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { diff --git a/client/src/model/APIAuditLog.cpp b/client/src/model/APIAuditLog.cpp index 2e646a5..85718e3 100644 --- a/client/src/model/APIAuditLog.cpp +++ b/client/src/model/APIAuditLog.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,12 +30,17 @@ APIAuditLog::APIAuditLog() m_ResourceNameIsSet = false; m_CrudTypeIsSet = false; m_FromIsSet = false; + m_Url = utility::conversions::to_string_t(""); + m_UrlIsSet = false; + m_Ip = utility::conversions::to_string_t(""); + m_IpIsSet = false; m_When = utility::datetime(); m_WhenIsSet = false; m_Description = utility::conversions::to_string_t(""); m_DescriptionIsSet = false; m_ServerStartDate = utility::datetime(); m_ServerStartDateIsSet = false; + m_ObjectDetailsIsSet = false; } APIAuditLog::~APIAuditLog() @@ -51,68 +56,68 @@ web::json::value APIAuditLog::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_ResourceNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("resourceName"))] = ModelBase::toJson(m_ResourceName); } if(m_CrudTypeIsSet) - { + { utility::string_t refVal = fromCrudTypeEnum(m_CrudType); val[utility::conversions::to_string_t(_XPLATSTR("crudType"))] = ModelBase::toJson(refVal); } if(m_FromIsSet) - { + { utility::string_t refVal = fromFromEnum(m_From); val[utility::conversions::to_string_t(_XPLATSTR("from"))] = ModelBase::toJson(refVal); } - if(m_Url.has_value()) - { + if(m_UrlIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url.get()); + val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } - if(m_Ip.has_value()) - { + if(m_IpIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("ip"))] = ModelBase::toJson(m_Ip.get()); + val[utility::conversions::to_string_t(_XPLATSTR("ip"))] = ModelBase::toJson(m_Ip); } if(m_WhenIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("when"))] = ModelBase::toJson(m_When); } if(m_DescriptionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if(m_ServerStartDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("serverStartDate"))] = ModelBase::toJson(m_ServerStartDate); } - if(m_ObjectDetails.has_value()) - { + if(m_ObjectDetailsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("objectDetails"))] = ModelBase::toJson(m_ObjectDetails.get()); + val[utility::conversions::to_string_t(_XPLATSTR("objectDetails"))] = ModelBase::toJson(m_ObjectDetails); } return val; @@ -289,13 +294,13 @@ void APIAuditLog::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("from")), fromFromEnum(m_From))); } - if(m_Url.has_value()) + if(m_UrlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } - if(m_Ip.has_value()) + if(m_IpIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ip")), m_Ip.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ip")), m_Ip)); } if(m_WhenIsSet) { @@ -309,9 +314,9 @@ void APIAuditLog::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("serverStartDate")), m_ServerStartDate)); } - if(m_ObjectDetails.has_value()) + if(m_ObjectDetailsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("objectDetails")), m_ObjectDetails.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("objectDetails")), m_ObjectDetails)); } } @@ -606,43 +611,45 @@ void APIAuditLog::unsetFrom() } utility::string_t APIAuditLog::getUrl() const { - return m_Url.get(); + return m_Url; } void APIAuditLog::setUrl(const utility::string_t& value) { m_Url = value; + m_UrlIsSet = true; } bool APIAuditLog::urlIsSet() const { - return m_Url.has_value(); + return m_UrlIsSet; } void APIAuditLog::unsetUrl() { - m_Url.reset(); + m_UrlIsSet = false; } utility::string_t APIAuditLog::getIp() const { - return m_Ip.get(); + return m_Ip; } void APIAuditLog::setIp(const utility::string_t& value) { m_Ip = value; + m_IpIsSet = true; } bool APIAuditLog::ipIsSet() const { - return m_Ip.has_value(); + return m_IpIsSet; } void APIAuditLog::unsetIp() { - m_Ip.reset(); + m_IpIsSet = false; } utility::datetime APIAuditLog::getWhen() const { @@ -709,23 +716,24 @@ void APIAuditLog::unsetServerStartDate() } std::map> APIAuditLog::getObjectDetails() const { - return m_ObjectDetails.get(); + return m_ObjectDetails; } void APIAuditLog::setObjectDetails(const std::map>& value) { m_ObjectDetails = value; + m_ObjectDetailsIsSet = true; } bool APIAuditLog::objectDetailsIsSet() const { - return m_ObjectDetails.has_value(); + return m_ObjectDetailsIsSet; } void APIAuditLog::unsetObjectDetails() { - m_ObjectDetails.reset(); + m_ObjectDetailsIsSet = false; } } diff --git a/client/src/model/APIBanUserChangeLog.cpp b/client/src/model/APIBanUserChangeLog.cpp new file mode 100644 index 0000000..f4de9ca --- /dev/null +++ b/client/src/model/APIBanUserChangeLog.cpp @@ -0,0 +1,269 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/APIBanUserChangeLog.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +APIBanUserChangeLog::APIBanUserChangeLog() +{ + m_CreatedBannedUserId = utility::conversions::to_string_t(""); + m_CreatedBannedUserIdIsSet = false; + m_UpdatedBannedUserId = utility::conversions::to_string_t(""); + m_UpdatedBannedUserIdIsSet = false; + m_DeletedBannedUsersIsSet = false; + m_ChangedValuesBeforeIsSet = false; +} + +APIBanUserChangeLog::~APIBanUserChangeLog() +{ +} + +void APIBanUserChangeLog::validate() +{ + // TODO: implement validation +} + +web::json::value APIBanUserChangeLog::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CreatedBannedUserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("createdBannedUserId"))] = ModelBase::toJson(m_CreatedBannedUserId); + } + if(m_UpdatedBannedUserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("updatedBannedUserId"))] = ModelBase::toJson(m_UpdatedBannedUserId); + } + if(m_DeletedBannedUsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("deletedBannedUsers"))] = ModelBase::toJson(m_DeletedBannedUsers); + } + if(m_ChangedValuesBeforeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("changedValuesBefore"))] = ModelBase::toJson(m_ChangedValuesBefore); + } + + return val; +} + +bool APIBanUserChangeLog::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("createdBannedUserId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("createdBannedUserId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCreatedBannedUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setCreatedBannedUserId); + setCreatedBannedUserId(refVal_setCreatedBannedUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("updatedBannedUserId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("updatedBannedUserId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUpdatedBannedUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUpdatedBannedUserId); + setUpdatedBannedUserId(refVal_setUpdatedBannedUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("deletedBannedUsers")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("deletedBannedUsers"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setDeletedBannedUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setDeletedBannedUsers); + setDeletedBannedUsers(refVal_setDeletedBannedUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("changedValuesBefore")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("changedValuesBefore"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setChangedValuesBefore; + ok &= ModelBase::fromJson(fieldValue, refVal_setChangedValuesBefore); + setChangedValuesBefore(refVal_setChangedValuesBefore); + + } + } + return ok; +} + +void APIBanUserChangeLog::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CreatedBannedUserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdBannedUserId")), m_CreatedBannedUserId)); + } + if(m_UpdatedBannedUserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("updatedBannedUserId")), m_UpdatedBannedUserId)); + } + if(m_DeletedBannedUsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("deletedBannedUsers")), m_DeletedBannedUsers)); + } + if(m_ChangedValuesBeforeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("changedValuesBefore")), m_ChangedValuesBefore)); + } +} + +bool APIBanUserChangeLog::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("createdBannedUserId")))) + { + utility::string_t refVal_setCreatedBannedUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("createdBannedUserId"))), refVal_setCreatedBannedUserId ); + setCreatedBannedUserId(refVal_setCreatedBannedUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("updatedBannedUserId")))) + { + utility::string_t refVal_setUpdatedBannedUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updatedBannedUserId"))), refVal_setUpdatedBannedUserId ); + setUpdatedBannedUserId(refVal_setUpdatedBannedUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("deletedBannedUsers")))) + { + std::vector> refVal_setDeletedBannedUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("deletedBannedUsers"))), refVal_setDeletedBannedUsers ); + setDeletedBannedUsers(refVal_setDeletedBannedUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("changedValuesBefore")))) + { + std::shared_ptr refVal_setChangedValuesBefore; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("changedValuesBefore"))), refVal_setChangedValuesBefore ); + setChangedValuesBefore(refVal_setChangedValuesBefore); + } + return ok; +} + + +utility::string_t APIBanUserChangeLog::getCreatedBannedUserId() const +{ + return m_CreatedBannedUserId; +} + + +void APIBanUserChangeLog::setCreatedBannedUserId(const utility::string_t& value) +{ + m_CreatedBannedUserId = value; + m_CreatedBannedUserIdIsSet = true; +} + +bool APIBanUserChangeLog::createdBannedUserIdIsSet() const +{ + return m_CreatedBannedUserIdIsSet; +} + +void APIBanUserChangeLog::unsetCreatedBannedUserId() +{ + m_CreatedBannedUserIdIsSet = false; +} +utility::string_t APIBanUserChangeLog::getUpdatedBannedUserId() const +{ + return m_UpdatedBannedUserId; +} + + +void APIBanUserChangeLog::setUpdatedBannedUserId(const utility::string_t& value) +{ + m_UpdatedBannedUserId = value; + m_UpdatedBannedUserIdIsSet = true; +} + +bool APIBanUserChangeLog::updatedBannedUserIdIsSet() const +{ + return m_UpdatedBannedUserIdIsSet; +} + +void APIBanUserChangeLog::unsetUpdatedBannedUserId() +{ + m_UpdatedBannedUserIdIsSet = false; +} +std::vector> APIBanUserChangeLog::getDeletedBannedUsers() const +{ + return m_DeletedBannedUsers; +} + + +void APIBanUserChangeLog::setDeletedBannedUsers(const std::vector>& value) +{ + m_DeletedBannedUsers = value; + m_DeletedBannedUsersIsSet = true; +} + +bool APIBanUserChangeLog::deletedBannedUsersIsSet() const +{ + return m_DeletedBannedUsersIsSet; +} + +void APIBanUserChangeLog::unsetDeletedBannedUsers() +{ + m_DeletedBannedUsersIsSet = false; +} +std::shared_ptr APIBanUserChangeLog::getChangedValuesBefore() const +{ + return m_ChangedValuesBefore; +} + + +void APIBanUserChangeLog::setChangedValuesBefore(const std::shared_ptr& value) +{ + m_ChangedValuesBefore = value; + m_ChangedValuesBeforeIsSet = true; +} + +bool APIBanUserChangeLog::changedValuesBeforeIsSet() const +{ + return m_ChangedValuesBeforeIsSet; +} + +void APIBanUserChangeLog::unsetChangedValuesBefore() +{ + m_ChangedValuesBeforeIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/APIBanUserChangedValues.cpp b/client/src/model/APIBanUserChangedValues.cpp new file mode 100644 index 0000000..b763e8b --- /dev/null +++ b/client/src/model/APIBanUserChangedValues.cpp @@ -0,0 +1,711 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/APIBanUserChangedValues.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +APIBanUserChangedValues::APIBanUserChangedValues() +{ + m__id = utility::conversions::to_string_t(""); + m__idIsSet = false; + m_TenantId = utility::conversions::to_string_t(""); + m_TenantIdIsSet = false; + m_UserId = utility::conversions::to_string_t(""); + m_UserIdIsSet = false; + m_Email = utility::conversions::to_string_t(""); + m_EmailIsSet = false; + m_Username = utility::conversions::to_string_t(""); + m_UsernameIsSet = false; + m_IpHash = utility::conversions::to_string_t(""); + m_IpHashIsSet = false; + m_CreatedAt = utility::datetime(); + m_CreatedAtIsSet = false; + m_BannedByUserId = utility::conversions::to_string_t(""); + m_BannedByUserIdIsSet = false; + m_BannedCommentText = utility::conversions::to_string_t(""); + m_BannedCommentTextIsSet = false; + m_BanType = utility::conversions::to_string_t(""); + m_BanTypeIsSet = false; + m_BannedUntil = utility::datetime(); + m_BannedUntilIsSet = false; + m_HasEmailWildcard = false; + m_HasEmailWildcardIsSet = false; + m_BanReason = utility::conversions::to_string_t(""); + m_BanReasonIsSet = false; +} + +APIBanUserChangedValues::~APIBanUserChangedValues() +{ +} + +void APIBanUserChangedValues::validate() +{ + // TODO: implement validation +} + +web::json::value APIBanUserChangedValues::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m__idIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); + } + if(m_TenantIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); + } + if(m_UserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + } + if(m_EmailIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); + } + if(m_UsernameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); + } + if(m_IpHashIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); + } + if(m_CreatedAtIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); + } + if(m_BannedByUserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedByUserId"))] = ModelBase::toJson(m_BannedByUserId); + } + if(m_BannedCommentTextIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedCommentText"))] = ModelBase::toJson(m_BannedCommentText); + } + if(m_BanTypeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("banType"))] = ModelBase::toJson(m_BanType); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_HasEmailWildcardIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))] = ModelBase::toJson(m_HasEmailWildcard); + } + if(m_BanReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("banReason"))] = ModelBase::toJson(m_BanReason); + } + + return val; +} + +bool APIBanUserChangedValues::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("_id"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromJson(fieldValue, refVal_setId); + setId(refVal_setId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTenantId; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantId); + setTenantId(refVal_setTenantId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserId); + setUserId(refVal_setUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("email")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("email"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setEmail; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmail); + setEmail(refVal_setEmail); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("username")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("username"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUsername; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsername); + setUsername(refVal_setUsername); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ipHash")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ipHash"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setIpHash; + ok &= ModelBase::fromJson(fieldValue, refVal_setIpHash); + setIpHash(refVal_setIpHash); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("createdAt")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("createdAt"))); + if(!fieldValue.is_null()) + { + utility::datetime refVal_setCreatedAt; + ok &= ModelBase::fromJson(fieldValue, refVal_setCreatedAt); + setCreatedAt(refVal_setCreatedAt); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedByUserId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedByUserId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBannedByUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedByUserId); + setBannedByUserId(refVal_setBannedByUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedCommentText")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedCommentText"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBannedCommentText; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedCommentText); + setBannedCommentText(refVal_setBannedCommentText); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("banType")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banType"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBanType; + ok &= ModelBase::fromJson(fieldValue, refVal_setBanType); + setBanType(refVal_setBanType); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + utility::datetime refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))); + if(!fieldValue.is_null()) + { + bool refVal_setHasEmailWildcard; + ok &= ModelBase::fromJson(fieldValue, refVal_setHasEmailWildcard); + setHasEmailWildcard(refVal_setHasEmailWildcard); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("banReason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banReason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBanReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setBanReason); + setBanReason(refVal_setBanReason); + + } + } + return ok; +} + +void APIBanUserChangedValues::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m__idIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); + } + if(m_TenantIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); + } + if(m_UserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + } + if(m_EmailIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); + } + if(m_UsernameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username)); + } + if(m_IpHashIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash)); + } + if(m_CreatedAtIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); + } + if(m_BannedByUserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedByUserId")), m_BannedByUserId)); + } + if(m_BannedCommentTextIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedCommentText")), m_BannedCommentText)); + } + if(m_BanTypeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("banType")), m_BanType)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_HasEmailWildcardIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard")), m_HasEmailWildcard)); + } + if(m_BanReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("banReason")), m_BanReason)); + } +} + +bool APIBanUserChangedValues::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("_id"))), refVal_setId ); + setId(refVal_setId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantId")))) + { + utility::string_t refVal_setTenantId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantId"))), refVal_setTenantId ); + setTenantId(refVal_setTenantId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userId"))), refVal_setUserId ); + setUserId(refVal_setUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("email")))) + { + utility::string_t refVal_setEmail; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("email"))), refVal_setEmail ); + setEmail(refVal_setEmail); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("username")))) + { + utility::string_t refVal_setUsername; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("username"))), refVal_setUsername ); + setUsername(refVal_setUsername); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ipHash")))) + { + utility::string_t refVal_setIpHash; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ipHash"))), refVal_setIpHash ); + setIpHash(refVal_setIpHash); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("createdAt")))) + { + utility::datetime refVal_setCreatedAt; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("createdAt"))), refVal_setCreatedAt ); + setCreatedAt(refVal_setCreatedAt); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedByUserId")))) + { + utility::string_t refVal_setBannedByUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedByUserId"))), refVal_setBannedByUserId ); + setBannedByUserId(refVal_setBannedByUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedCommentText")))) + { + utility::string_t refVal_setBannedCommentText; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedCommentText"))), refVal_setBannedCommentText ); + setBannedCommentText(refVal_setBannedCommentText); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banType")))) + { + utility::string_t refVal_setBanType; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banType"))), refVal_setBanType ); + setBanType(refVal_setBanType); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + utility::datetime refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard")))) + { + bool refVal_setHasEmailWildcard; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))), refVal_setHasEmailWildcard ); + setHasEmailWildcard(refVal_setHasEmailWildcard); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banReason")))) + { + utility::string_t refVal_setBanReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banReason"))), refVal_setBanReason ); + setBanReason(refVal_setBanReason); + } + return ok; +} + + +utility::string_t APIBanUserChangedValues::getId() const +{ + return m__id; +} + + +void APIBanUserChangedValues::setId(const utility::string_t& value) +{ + m__id = value; + m__idIsSet = true; +} + +bool APIBanUserChangedValues::idIsSet() const +{ + return m__idIsSet; +} + +void APIBanUserChangedValues::unset_id() +{ + m__idIsSet = false; +} +utility::string_t APIBanUserChangedValues::getTenantId() const +{ + return m_TenantId; +} + + +void APIBanUserChangedValues::setTenantId(const utility::string_t& value) +{ + m_TenantId = value; + m_TenantIdIsSet = true; +} + +bool APIBanUserChangedValues::tenantIdIsSet() const +{ + return m_TenantIdIsSet; +} + +void APIBanUserChangedValues::unsetTenantId() +{ + m_TenantIdIsSet = false; +} +utility::string_t APIBanUserChangedValues::getUserId() const +{ + return m_UserId; +} + + +void APIBanUserChangedValues::setUserId(const utility::string_t& value) +{ + m_UserId = value; + m_UserIdIsSet = true; +} + +bool APIBanUserChangedValues::userIdIsSet() const +{ + return m_UserIdIsSet; +} + +void APIBanUserChangedValues::unsetUserId() +{ + m_UserIdIsSet = false; +} +utility::string_t APIBanUserChangedValues::getEmail() const +{ + return m_Email; +} + + +void APIBanUserChangedValues::setEmail(const utility::string_t& value) +{ + m_Email = value; + m_EmailIsSet = true; +} + +bool APIBanUserChangedValues::emailIsSet() const +{ + return m_EmailIsSet; +} + +void APIBanUserChangedValues::unsetEmail() +{ + m_EmailIsSet = false; +} +utility::string_t APIBanUserChangedValues::getUsername() const +{ + return m_Username; +} + + +void APIBanUserChangedValues::setUsername(const utility::string_t& value) +{ + m_Username = value; + m_UsernameIsSet = true; +} + +bool APIBanUserChangedValues::usernameIsSet() const +{ + return m_UsernameIsSet; +} + +void APIBanUserChangedValues::unsetUsername() +{ + m_UsernameIsSet = false; +} +utility::string_t APIBanUserChangedValues::getIpHash() const +{ + return m_IpHash; +} + + +void APIBanUserChangedValues::setIpHash(const utility::string_t& value) +{ + m_IpHash = value; + m_IpHashIsSet = true; +} + +bool APIBanUserChangedValues::ipHashIsSet() const +{ + return m_IpHashIsSet; +} + +void APIBanUserChangedValues::unsetIpHash() +{ + m_IpHashIsSet = false; +} +utility::datetime APIBanUserChangedValues::getCreatedAt() const +{ + return m_CreatedAt; +} + + +void APIBanUserChangedValues::setCreatedAt(const utility::datetime& value) +{ + m_CreatedAt = value; + m_CreatedAtIsSet = true; +} + +bool APIBanUserChangedValues::createdAtIsSet() const +{ + return m_CreatedAtIsSet; +} + +void APIBanUserChangedValues::unsetCreatedAt() +{ + m_CreatedAtIsSet = false; +} +utility::string_t APIBanUserChangedValues::getBannedByUserId() const +{ + return m_BannedByUserId; +} + + +void APIBanUserChangedValues::setBannedByUserId(const utility::string_t& value) +{ + m_BannedByUserId = value; + m_BannedByUserIdIsSet = true; +} + +bool APIBanUserChangedValues::bannedByUserIdIsSet() const +{ + return m_BannedByUserIdIsSet; +} + +void APIBanUserChangedValues::unsetBannedByUserId() +{ + m_BannedByUserIdIsSet = false; +} +utility::string_t APIBanUserChangedValues::getBannedCommentText() const +{ + return m_BannedCommentText; +} + + +void APIBanUserChangedValues::setBannedCommentText(const utility::string_t& value) +{ + m_BannedCommentText = value; + m_BannedCommentTextIsSet = true; +} + +bool APIBanUserChangedValues::bannedCommentTextIsSet() const +{ + return m_BannedCommentTextIsSet; +} + +void APIBanUserChangedValues::unsetBannedCommentText() +{ + m_BannedCommentTextIsSet = false; +} +utility::string_t APIBanUserChangedValues::getBanType() const +{ + return m_BanType; +} + + +void APIBanUserChangedValues::setBanType(const utility::string_t& value) +{ + m_BanType = value; + m_BanTypeIsSet = true; +} + +bool APIBanUserChangedValues::banTypeIsSet() const +{ + return m_BanTypeIsSet; +} + +void APIBanUserChangedValues::unsetBanType() +{ + m_BanTypeIsSet = false; +} +utility::datetime APIBanUserChangedValues::getBannedUntil() const +{ + return m_BannedUntil; +} + + +void APIBanUserChangedValues::setBannedUntil(const utility::datetime& value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool APIBanUserChangedValues::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void APIBanUserChangedValues::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +bool APIBanUserChangedValues::isHasEmailWildcard() const +{ + return m_HasEmailWildcard; +} + +void APIBanUserChangedValues::setHasEmailWildcard(bool value) +{ + m_HasEmailWildcard = value; + m_HasEmailWildcardIsSet = true; +} + +bool APIBanUserChangedValues::hasEmailWildcardIsSet() const +{ + return m_HasEmailWildcardIsSet; +} + +void APIBanUserChangedValues::unsetHasEmailWildcard() +{ + m_HasEmailWildcardIsSet = false; +} +utility::string_t APIBanUserChangedValues::getBanReason() const +{ + return m_BanReason; +} + + +void APIBanUserChangedValues::setBanReason(const utility::string_t& value) +{ + m_BanReason = value; + m_BanReasonIsSet = true; +} + +bool APIBanUserChangedValues::banReasonIsSet() const +{ + return m_BanReasonIsSet; +} + +void APIBanUserChangedValues::unsetBanReason() +{ + m_BanReasonIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/APIBannedUser.cpp b/client/src/model/APIBannedUser.cpp new file mode 100644 index 0000000..5158271 --- /dev/null +++ b/client/src/model/APIBannedUser.cpp @@ -0,0 +1,711 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/APIBannedUser.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +APIBannedUser::APIBannedUser() +{ + m__id = utility::conversions::to_string_t(""); + m__idIsSet = false; + m_TenantId = utility::conversions::to_string_t(""); + m_TenantIdIsSet = false; + m_UserId = utility::conversions::to_string_t(""); + m_UserIdIsSet = false; + m_Email = utility::conversions::to_string_t(""); + m_EmailIsSet = false; + m_Username = utility::conversions::to_string_t(""); + m_UsernameIsSet = false; + m_IpHash = utility::conversions::to_string_t(""); + m_IpHashIsSet = false; + m_CreatedAt = utility::datetime(); + m_CreatedAtIsSet = false; + m_BannedByUserId = utility::conversions::to_string_t(""); + m_BannedByUserIdIsSet = false; + m_BannedCommentText = utility::conversions::to_string_t(""); + m_BannedCommentTextIsSet = false; + m_BanType = utility::conversions::to_string_t(""); + m_BanTypeIsSet = false; + m_BannedUntil = utility::datetime(); + m_BannedUntilIsSet = false; + m_HasEmailWildcard = false; + m_HasEmailWildcardIsSet = false; + m_BanReason = utility::conversions::to_string_t(""); + m_BanReasonIsSet = false; +} + +APIBannedUser::~APIBannedUser() +{ +} + +void APIBannedUser::validate() +{ + // TODO: implement validation +} + +web::json::value APIBannedUser::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m__idIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); + } + if(m_TenantIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); + } + if(m_UserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + } + if(m_EmailIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); + } + if(m_UsernameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); + } + if(m_IpHashIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); + } + if(m_CreatedAtIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); + } + if(m_BannedByUserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedByUserId"))] = ModelBase::toJson(m_BannedByUserId); + } + if(m_BannedCommentTextIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedCommentText"))] = ModelBase::toJson(m_BannedCommentText); + } + if(m_BanTypeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("banType"))] = ModelBase::toJson(m_BanType); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_HasEmailWildcardIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))] = ModelBase::toJson(m_HasEmailWildcard); + } + if(m_BanReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("banReason"))] = ModelBase::toJson(m_BanReason); + } + + return val; +} + +bool APIBannedUser::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("_id"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromJson(fieldValue, refVal_setId); + setId(refVal_setId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTenantId; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantId); + setTenantId(refVal_setTenantId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserId); + setUserId(refVal_setUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("email")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("email"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setEmail; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmail); + setEmail(refVal_setEmail); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("username")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("username"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUsername; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsername); + setUsername(refVal_setUsername); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ipHash")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ipHash"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setIpHash; + ok &= ModelBase::fromJson(fieldValue, refVal_setIpHash); + setIpHash(refVal_setIpHash); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("createdAt")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("createdAt"))); + if(!fieldValue.is_null()) + { + utility::datetime refVal_setCreatedAt; + ok &= ModelBase::fromJson(fieldValue, refVal_setCreatedAt); + setCreatedAt(refVal_setCreatedAt); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedByUserId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedByUserId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBannedByUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedByUserId); + setBannedByUserId(refVal_setBannedByUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedCommentText")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedCommentText"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBannedCommentText; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedCommentText); + setBannedCommentText(refVal_setBannedCommentText); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("banType")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banType"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBanType; + ok &= ModelBase::fromJson(fieldValue, refVal_setBanType); + setBanType(refVal_setBanType); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + utility::datetime refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))); + if(!fieldValue.is_null()) + { + bool refVal_setHasEmailWildcard; + ok &= ModelBase::fromJson(fieldValue, refVal_setHasEmailWildcard); + setHasEmailWildcard(refVal_setHasEmailWildcard); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("banReason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banReason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBanReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setBanReason); + setBanReason(refVal_setBanReason); + + } + } + return ok; +} + +void APIBannedUser::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m__idIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); + } + if(m_TenantIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); + } + if(m_UserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + } + if(m_EmailIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); + } + if(m_UsernameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username)); + } + if(m_IpHashIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash)); + } + if(m_CreatedAtIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); + } + if(m_BannedByUserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedByUserId")), m_BannedByUserId)); + } + if(m_BannedCommentTextIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedCommentText")), m_BannedCommentText)); + } + if(m_BanTypeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("banType")), m_BanType)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_HasEmailWildcardIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard")), m_HasEmailWildcard)); + } + if(m_BanReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("banReason")), m_BanReason)); + } +} + +bool APIBannedUser::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("_id"))), refVal_setId ); + setId(refVal_setId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantId")))) + { + utility::string_t refVal_setTenantId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantId"))), refVal_setTenantId ); + setTenantId(refVal_setTenantId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userId"))), refVal_setUserId ); + setUserId(refVal_setUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("email")))) + { + utility::string_t refVal_setEmail; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("email"))), refVal_setEmail ); + setEmail(refVal_setEmail); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("username")))) + { + utility::string_t refVal_setUsername; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("username"))), refVal_setUsername ); + setUsername(refVal_setUsername); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ipHash")))) + { + utility::string_t refVal_setIpHash; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ipHash"))), refVal_setIpHash ); + setIpHash(refVal_setIpHash); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("createdAt")))) + { + utility::datetime refVal_setCreatedAt; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("createdAt"))), refVal_setCreatedAt ); + setCreatedAt(refVal_setCreatedAt); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedByUserId")))) + { + utility::string_t refVal_setBannedByUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedByUserId"))), refVal_setBannedByUserId ); + setBannedByUserId(refVal_setBannedByUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedCommentText")))) + { + utility::string_t refVal_setBannedCommentText; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedCommentText"))), refVal_setBannedCommentText ); + setBannedCommentText(refVal_setBannedCommentText); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banType")))) + { + utility::string_t refVal_setBanType; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banType"))), refVal_setBanType ); + setBanType(refVal_setBanType); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + utility::datetime refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard")))) + { + bool refVal_setHasEmailWildcard; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))), refVal_setHasEmailWildcard ); + setHasEmailWildcard(refVal_setHasEmailWildcard); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banReason")))) + { + utility::string_t refVal_setBanReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banReason"))), refVal_setBanReason ); + setBanReason(refVal_setBanReason); + } + return ok; +} + + +utility::string_t APIBannedUser::getId() const +{ + return m__id; +} + + +void APIBannedUser::setId(const utility::string_t& value) +{ + m__id = value; + m__idIsSet = true; +} + +bool APIBannedUser::idIsSet() const +{ + return m__idIsSet; +} + +void APIBannedUser::unset_id() +{ + m__idIsSet = false; +} +utility::string_t APIBannedUser::getTenantId() const +{ + return m_TenantId; +} + + +void APIBannedUser::setTenantId(const utility::string_t& value) +{ + m_TenantId = value; + m_TenantIdIsSet = true; +} + +bool APIBannedUser::tenantIdIsSet() const +{ + return m_TenantIdIsSet; +} + +void APIBannedUser::unsetTenantId() +{ + m_TenantIdIsSet = false; +} +utility::string_t APIBannedUser::getUserId() const +{ + return m_UserId; +} + + +void APIBannedUser::setUserId(const utility::string_t& value) +{ + m_UserId = value; + m_UserIdIsSet = true; +} + +bool APIBannedUser::userIdIsSet() const +{ + return m_UserIdIsSet; +} + +void APIBannedUser::unsetUserId() +{ + m_UserIdIsSet = false; +} +utility::string_t APIBannedUser::getEmail() const +{ + return m_Email; +} + + +void APIBannedUser::setEmail(const utility::string_t& value) +{ + m_Email = value; + m_EmailIsSet = true; +} + +bool APIBannedUser::emailIsSet() const +{ + return m_EmailIsSet; +} + +void APIBannedUser::unsetEmail() +{ + m_EmailIsSet = false; +} +utility::string_t APIBannedUser::getUsername() const +{ + return m_Username; +} + + +void APIBannedUser::setUsername(const utility::string_t& value) +{ + m_Username = value; + m_UsernameIsSet = true; +} + +bool APIBannedUser::usernameIsSet() const +{ + return m_UsernameIsSet; +} + +void APIBannedUser::unsetUsername() +{ + m_UsernameIsSet = false; +} +utility::string_t APIBannedUser::getIpHash() const +{ + return m_IpHash; +} + + +void APIBannedUser::setIpHash(const utility::string_t& value) +{ + m_IpHash = value; + m_IpHashIsSet = true; +} + +bool APIBannedUser::ipHashIsSet() const +{ + return m_IpHashIsSet; +} + +void APIBannedUser::unsetIpHash() +{ + m_IpHashIsSet = false; +} +utility::datetime APIBannedUser::getCreatedAt() const +{ + return m_CreatedAt; +} + + +void APIBannedUser::setCreatedAt(const utility::datetime& value) +{ + m_CreatedAt = value; + m_CreatedAtIsSet = true; +} + +bool APIBannedUser::createdAtIsSet() const +{ + return m_CreatedAtIsSet; +} + +void APIBannedUser::unsetCreatedAt() +{ + m_CreatedAtIsSet = false; +} +utility::string_t APIBannedUser::getBannedByUserId() const +{ + return m_BannedByUserId; +} + + +void APIBannedUser::setBannedByUserId(const utility::string_t& value) +{ + m_BannedByUserId = value; + m_BannedByUserIdIsSet = true; +} + +bool APIBannedUser::bannedByUserIdIsSet() const +{ + return m_BannedByUserIdIsSet; +} + +void APIBannedUser::unsetBannedByUserId() +{ + m_BannedByUserIdIsSet = false; +} +utility::string_t APIBannedUser::getBannedCommentText() const +{ + return m_BannedCommentText; +} + + +void APIBannedUser::setBannedCommentText(const utility::string_t& value) +{ + m_BannedCommentText = value; + m_BannedCommentTextIsSet = true; +} + +bool APIBannedUser::bannedCommentTextIsSet() const +{ + return m_BannedCommentTextIsSet; +} + +void APIBannedUser::unsetBannedCommentText() +{ + m_BannedCommentTextIsSet = false; +} +utility::string_t APIBannedUser::getBanType() const +{ + return m_BanType; +} + + +void APIBannedUser::setBanType(const utility::string_t& value) +{ + m_BanType = value; + m_BanTypeIsSet = true; +} + +bool APIBannedUser::banTypeIsSet() const +{ + return m_BanTypeIsSet; +} + +void APIBannedUser::unsetBanType() +{ + m_BanTypeIsSet = false; +} +utility::datetime APIBannedUser::getBannedUntil() const +{ + return m_BannedUntil; +} + + +void APIBannedUser::setBannedUntil(const utility::datetime& value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool APIBannedUser::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void APIBannedUser::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +bool APIBannedUser::isHasEmailWildcard() const +{ + return m_HasEmailWildcard; +} + +void APIBannedUser::setHasEmailWildcard(bool value) +{ + m_HasEmailWildcard = value; + m_HasEmailWildcardIsSet = true; +} + +bool APIBannedUser::hasEmailWildcardIsSet() const +{ + return m_HasEmailWildcardIsSet; +} + +void APIBannedUser::unsetHasEmailWildcard() +{ + m_HasEmailWildcardIsSet = false; +} +utility::string_t APIBannedUser::getBanReason() const +{ + return m_BanReason; +} + + +void APIBannedUser::setBanReason(const utility::string_t& value) +{ + m_BanReason = value; + m_BanReasonIsSet = true; +} + +bool APIBannedUser::banReasonIsSet() const +{ + return m_BanReasonIsSet; +} + +void APIBannedUser::unsetBanReason() +{ + m_BanReasonIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/APIBannedUserWithMultiMatchInfo.cpp b/client/src/model/APIBannedUserWithMultiMatchInfo.cpp new file mode 100644 index 0000000..900ac7f --- /dev/null +++ b/client/src/model/APIBannedUserWithMultiMatchInfo.cpp @@ -0,0 +1,514 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +APIBannedUserWithMultiMatchInfo::APIBannedUserWithMultiMatchInfo() +{ + m__id = utility::conversions::to_string_t(""); + m__idIsSet = false; + m_UserId = utility::conversions::to_string_t(""); + m_UserIdIsSet = false; + m_BanType = utility::conversions::to_string_t(""); + m_BanTypeIsSet = false; + m_Email = utility::conversions::to_string_t(""); + m_EmailIsSet = false; + m_IpHash = utility::conversions::to_string_t(""); + m_IpHashIsSet = false; + m_BannedUntil = utility::datetime(); + m_BannedUntilIsSet = false; + m_HasEmailWildcard = false; + m_HasEmailWildcardIsSet = false; + m_BanReason = utility::conversions::to_string_t(""); + m_BanReasonIsSet = false; + m_MatchesIsSet = false; +} + +APIBannedUserWithMultiMatchInfo::~APIBannedUserWithMultiMatchInfo() +{ +} + +void APIBannedUserWithMultiMatchInfo::validate() +{ + // TODO: implement validation +} + +web::json::value APIBannedUserWithMultiMatchInfo::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m__idIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); + } + if(m_UserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + } + if(m_BanTypeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("banType"))] = ModelBase::toJson(m_BanType); + } + if(m_EmailIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); + } + if(m_IpHashIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_HasEmailWildcardIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))] = ModelBase::toJson(m_HasEmailWildcard); + } + if(m_BanReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("banReason"))] = ModelBase::toJson(m_BanReason); + } + if(m_MatchesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("matches"))] = ModelBase::toJson(m_Matches); + } + + return val; +} + +bool APIBannedUserWithMultiMatchInfo::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("_id"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromJson(fieldValue, refVal_setId); + setId(refVal_setId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserId); + setUserId(refVal_setUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("banType")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banType"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBanType; + ok &= ModelBase::fromJson(fieldValue, refVal_setBanType); + setBanType(refVal_setBanType); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("email")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("email"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setEmail; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmail); + setEmail(refVal_setEmail); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ipHash")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ipHash"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setIpHash; + ok &= ModelBase::fromJson(fieldValue, refVal_setIpHash); + setIpHash(refVal_setIpHash); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + utility::datetime refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))); + if(!fieldValue.is_null()) + { + bool refVal_setHasEmailWildcard; + ok &= ModelBase::fromJson(fieldValue, refVal_setHasEmailWildcard); + setHasEmailWildcard(refVal_setHasEmailWildcard); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("banReason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banReason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBanReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setBanReason); + setBanReason(refVal_setBanReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("matches")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("matches"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setMatches; + ok &= ModelBase::fromJson(fieldValue, refVal_setMatches); + setMatches(refVal_setMatches); + + } + } + return ok; +} + +void APIBannedUserWithMultiMatchInfo::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m__idIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); + } + if(m_UserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + } + if(m_BanTypeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("banType")), m_BanType)); + } + if(m_EmailIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); + } + if(m_IpHashIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_HasEmailWildcardIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard")), m_HasEmailWildcard)); + } + if(m_BanReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("banReason")), m_BanReason)); + } + if(m_MatchesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("matches")), m_Matches)); + } +} + +bool APIBannedUserWithMultiMatchInfo::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("_id"))), refVal_setId ); + setId(refVal_setId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userId"))), refVal_setUserId ); + setUserId(refVal_setUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banType")))) + { + utility::string_t refVal_setBanType; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banType"))), refVal_setBanType ); + setBanType(refVal_setBanType); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("email")))) + { + utility::string_t refVal_setEmail; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("email"))), refVal_setEmail ); + setEmail(refVal_setEmail); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ipHash")))) + { + utility::string_t refVal_setIpHash; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ipHash"))), refVal_setIpHash ); + setIpHash(refVal_setIpHash); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + utility::datetime refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard")))) + { + bool refVal_setHasEmailWildcard; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))), refVal_setHasEmailWildcard ); + setHasEmailWildcard(refVal_setHasEmailWildcard); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banReason")))) + { + utility::string_t refVal_setBanReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banReason"))), refVal_setBanReason ); + setBanReason(refVal_setBanReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("matches")))) + { + std::vector> refVal_setMatches; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("matches"))), refVal_setMatches ); + setMatches(refVal_setMatches); + } + return ok; +} + + +utility::string_t APIBannedUserWithMultiMatchInfo::getId() const +{ + return m__id; +} + + +void APIBannedUserWithMultiMatchInfo::setId(const utility::string_t& value) +{ + m__id = value; + m__idIsSet = true; +} + +bool APIBannedUserWithMultiMatchInfo::idIsSet() const +{ + return m__idIsSet; +} + +void APIBannedUserWithMultiMatchInfo::unset_id() +{ + m__idIsSet = false; +} +utility::string_t APIBannedUserWithMultiMatchInfo::getUserId() const +{ + return m_UserId; +} + + +void APIBannedUserWithMultiMatchInfo::setUserId(const utility::string_t& value) +{ + m_UserId = value; + m_UserIdIsSet = true; +} + +bool APIBannedUserWithMultiMatchInfo::userIdIsSet() const +{ + return m_UserIdIsSet; +} + +void APIBannedUserWithMultiMatchInfo::unsetUserId() +{ + m_UserIdIsSet = false; +} +utility::string_t APIBannedUserWithMultiMatchInfo::getBanType() const +{ + return m_BanType; +} + + +void APIBannedUserWithMultiMatchInfo::setBanType(const utility::string_t& value) +{ + m_BanType = value; + m_BanTypeIsSet = true; +} + +bool APIBannedUserWithMultiMatchInfo::banTypeIsSet() const +{ + return m_BanTypeIsSet; +} + +void APIBannedUserWithMultiMatchInfo::unsetBanType() +{ + m_BanTypeIsSet = false; +} +utility::string_t APIBannedUserWithMultiMatchInfo::getEmail() const +{ + return m_Email; +} + + +void APIBannedUserWithMultiMatchInfo::setEmail(const utility::string_t& value) +{ + m_Email = value; + m_EmailIsSet = true; +} + +bool APIBannedUserWithMultiMatchInfo::emailIsSet() const +{ + return m_EmailIsSet; +} + +void APIBannedUserWithMultiMatchInfo::unsetEmail() +{ + m_EmailIsSet = false; +} +utility::string_t APIBannedUserWithMultiMatchInfo::getIpHash() const +{ + return m_IpHash; +} + + +void APIBannedUserWithMultiMatchInfo::setIpHash(const utility::string_t& value) +{ + m_IpHash = value; + m_IpHashIsSet = true; +} + +bool APIBannedUserWithMultiMatchInfo::ipHashIsSet() const +{ + return m_IpHashIsSet; +} + +void APIBannedUserWithMultiMatchInfo::unsetIpHash() +{ + m_IpHashIsSet = false; +} +utility::datetime APIBannedUserWithMultiMatchInfo::getBannedUntil() const +{ + return m_BannedUntil; +} + + +void APIBannedUserWithMultiMatchInfo::setBannedUntil(const utility::datetime& value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool APIBannedUserWithMultiMatchInfo::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void APIBannedUserWithMultiMatchInfo::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +bool APIBannedUserWithMultiMatchInfo::isHasEmailWildcard() const +{ + return m_HasEmailWildcard; +} + +void APIBannedUserWithMultiMatchInfo::setHasEmailWildcard(bool value) +{ + m_HasEmailWildcard = value; + m_HasEmailWildcardIsSet = true; +} + +bool APIBannedUserWithMultiMatchInfo::hasEmailWildcardIsSet() const +{ + return m_HasEmailWildcardIsSet; +} + +void APIBannedUserWithMultiMatchInfo::unsetHasEmailWildcard() +{ + m_HasEmailWildcardIsSet = false; +} +utility::string_t APIBannedUserWithMultiMatchInfo::getBanReason() const +{ + return m_BanReason; +} + + +void APIBannedUserWithMultiMatchInfo::setBanReason(const utility::string_t& value) +{ + m_BanReason = value; + m_BanReasonIsSet = true; +} + +bool APIBannedUserWithMultiMatchInfo::banReasonIsSet() const +{ + return m_BanReasonIsSet; +} + +void APIBannedUserWithMultiMatchInfo::unsetBanReason() +{ + m_BanReasonIsSet = false; +} +std::vector> APIBannedUserWithMultiMatchInfo::getMatches() const +{ + return m_Matches; +} + + +void APIBannedUserWithMultiMatchInfo::setMatches(const std::vector>& value) +{ + m_Matches = value; + m_MatchesIsSet = true; +} + +bool APIBannedUserWithMultiMatchInfo::matchesIsSet() const +{ + return m_MatchesIsSet; +} + +void APIBannedUserWithMultiMatchInfo::unsetMatches() +{ + m_MatchesIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/APIComment.cpp b/client/src/model/APIComment.cpp index 68e4730..ae03510 100644 --- a/client/src/model/APIComment.cpp +++ b/client/src/model/APIComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,21 +20,42 @@ namespace model { APIComment::APIComment() { - m__id = utility::conversions::to_string_t(""); - m__idIsSet = false; + m_Id = utility::conversions::to_string_t(""); + m_IdIsSet = false; m_AiDeterminedSpam = false; m_AiDeterminedSpamIsSet = false; + m_AnonUserId = utility::conversions::to_string_t(""); + m_AnonUserIdIsSet = false; m_Approved = false; m_ApprovedIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; + m_BadgesIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; + m_CommenterEmail = utility::conversions::to_string_t(""); + m_CommenterEmailIsSet = false; + m_CommenterLink = utility::conversions::to_string_t(""); + m_CommenterLinkIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; + m_date = 0.0; + m_dateIsSet = false; + m_DisplayLabel = utility::conversions::to_string_t(""); + m_DisplayLabelIsSet = false; + m_Domain = nullptr; + m_DomainIsSet = false; m_ExternalId = utility::conversions::to_string_t(""); m_ExternalIdIsSet = false; + m_ExternalParentId = utility::conversions::to_string_t(""); + m_ExternalParentIdIsSet = false; + m_ExpireAt = utility::datetime(); + m_ExpireAtIsSet = false; m_FeedbackIdsIsSet = false; + m_FlagCount = 0; + m_FlagCountIsSet = false; m_FromProductId = 0; m_FromProductIdIsSet = false; m_HasCode = false; @@ -52,13 +73,31 @@ APIComment::APIComment() m_IsDeletedIsSet = false; m_IsDeletedUser = false; m_IsDeletedUserIsSet = false; + m_IsPinned = false; + m_IsPinnedIsSet = false; + m_IsLocked = false; + m_IsLockedIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; + m_LocalDateHours = 0; + m_LocalDateHoursIsSet = false; + m_LocalDateString = utility::conversions::to_string_t(""); + m_LocalDateStringIsSet = false; + m_Locale = utility::conversions::to_string_t(""); + m_LocaleIsSet = false; m_MentionsIsSet = false; + m_MetaIsSet = false; + m_ModerationGroupIdsIsSet = false; m_NotificationSentForParent = false; m_NotificationSentForParentIsSet = false; m_NotificationSentForParentTenant = false; m_NotificationSentForParentTenantIsSet = false; + m_PageTitle = utility::conversions::to_string_t(""); + m_PageTitleIsSet = false; + m_ParentId = utility::conversions::to_string_t(""); + m_ParentIdIsSet = false; + m_Rating = 0.0; + m_RatingIsSet = false; m_Reviewed = false; m_ReviewedIsSet = false; m_TenantId = utility::conversions::to_string_t(""); @@ -69,8 +108,18 @@ APIComment::APIComment() m_UrlIdIsSet = false; m_UrlIdRaw = utility::conversions::to_string_t(""); m_UrlIdRawIsSet = false; + m_UserId = nullptr; + m_UserIdIsSet = false; m_Verified = false; m_VerifiedIsSet = false; + m_VerifiedDate = utility::datetime(); + m_VerifiedDateIsSet = false; + m_Votes = 0; + m_VotesIsSet = false; + m_VotesDown = 0; + m_VotesDownIsSet = false; + m_VotesUp = 0; + m_VotesUpIsSet = false; } APIComment::~APIComment() @@ -85,270 +134,270 @@ void APIComment::validate() web::json::value APIComment::toJson() const { web::json::value val = web::json::value::object(); - if(m__idIsSet) - { + if(m_IdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_AiDeterminedSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("aiDeterminedSpam"))] = ModelBase::toJson(m_AiDeterminedSpam); } - if(m_AnonUserId.has_value()) - { + if(m_AnonUserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } - if(m_AvatarSrc.has_value()) - { + if(m_AvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } - if(m_Badges.has_value()) - { + if(m_BadgesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } - if(m_CommenterEmail.has_value()) - { + if(m_CommenterEmailIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); } - if(m_CommenterLink.has_value()) - { + if(m_CommenterLinkIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_date.has_value()) - { + if(m_dateIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); } - if(m_DisplayLabel.has_value()) - { + if(m_DisplayLabelIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } - if(m_Domain.has_value()) - { + if(m_DomainIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain.get()); + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_ExternalIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("externalId"))] = ModelBase::toJson(m_ExternalId); } - if(m_ExternalParentId.has_value()) - { + if(m_ExternalParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId); } - if(m_ExpireAt.has_value()) - { + if(m_ExpireAtIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt.get()); + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } - if(m_FlagCount.has_value()) - { + if(m_FlagCountIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); } if(m_FromProductIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromProductId"))] = ModelBase::toJson(m_FromProductId); } if(m_HasCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasCode"))] = ModelBase::toJson(m_HasCode); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } if(m_HasLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLinks"))] = ModelBase::toJson(m_HasLinks); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } - if(m_IsPinned.has_value()) - { + if(m_IsPinnedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); } - if(m_IsLocked.has_value()) - { + if(m_IsLockedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } - if(m_LocalDateHours.has_value()) - { + if(m_LocalDateHoursIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours.get()); + val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours); } - if(m_LocalDateString.has_value()) - { + if(m_LocalDateStringIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString.get()); + val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); } - if(m_Locale.has_value()) - { + if(m_LocaleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale.get()); + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_MentionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("mentions"))] = ModelBase::toJson(m_Mentions); } - if(m_Meta.has_value()) - { + if(m_MetaIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } - if(m_ModerationGroupIds.has_value()) - { + if(m_ModerationGroupIdsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds.get()); + val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } if(m_NotificationSentForParentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParent"))] = ModelBase::toJson(m_NotificationSentForParent); } if(m_NotificationSentForParentTenantIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParentTenant"))] = ModelBase::toJson(m_NotificationSentForParentTenant); } - if(m_PageTitle.has_value()) - { + if(m_PageTitleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } - if(m_ParentId.has_value()) - { + if(m_ParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); } - if(m_Rating.has_value()) - { + if(m_RatingIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIdRawIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdRaw"))] = ModelBase::toJson(m_UrlIdRaw); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_VerifiedDate.has_value()) - { + if(m_VerifiedDateIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate.get()); + val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate); } - if(m_Votes.has_value()) - { + if(m_VotesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); } - if(m_VotesDown.has_value()) - { + if(m_VotesDownIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); } - if(m_VotesUp.has_value()) - { + if(m_VotesUpIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); } return val; @@ -357,9 +406,9 @@ web::json::value APIComment::toJson() const bool APIComment::fromJson(const web::json::value& val) { bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("_id")))) + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("_id"))); + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if(!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -950,29 +999,29 @@ void APIComment::toMultipart(std::shared_ptr multipart, const { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m__idIsSet) + if(m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if(m_AiDeterminedSpamIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("aiDeterminedSpam")), m_AiDeterminedSpam)); } - if(m_AnonUserId.has_value()) + if(m_AnonUserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); } if(m_ApprovedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); } - if(m_AvatarSrc.has_value()) + if(m_AvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); } - if(m_Badges.has_value()) + if(m_BadgesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); } if(m_CommentIsSet) { @@ -982,49 +1031,49 @@ void APIComment::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); } - if(m_CommenterEmail.has_value()) + if(m_CommenterEmailIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); } - if(m_CommenterLink.has_value()) + if(m_CommenterLinkIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); } if(m_CommenterNameIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_date.has_value()) + if(m_dateIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); } - if(m_DisplayLabel.has_value()) + if(m_DisplayLabelIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); } - if(m_Domain.has_value()) + if(m_DomainIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); } if(m_ExternalIdIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalId")), m_ExternalId)); } - if(m_ExternalParentId.has_value()) + if(m_ExternalParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId)); } - if(m_ExpireAt.has_value()) + if(m_ExpireAtIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); } if(m_FeedbackIdsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedbackIds")), m_FeedbackIds)); } - if(m_FlagCount.has_value()) + if(m_FlagCountIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); } if(m_FromProductIdIsSet) { @@ -1062,41 +1111,41 @@ void APIComment::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isDeletedUser")), m_IsDeletedUser)); } - if(m_IsPinned.has_value()) + if(m_IsPinnedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); } - if(m_IsLocked.has_value()) + if(m_IsLockedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); } if(m_IsSpamIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); } - if(m_LocalDateHours.has_value()) + if(m_LocalDateHoursIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours)); } - if(m_LocalDateString.has_value()) + if(m_LocalDateStringIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString)); } - if(m_Locale.has_value()) + if(m_LocaleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); } if(m_MentionsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("mentions")), m_Mentions)); } - if(m_Meta.has_value()) + if(m_MetaIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); } - if(m_ModerationGroupIds.has_value()) + if(m_ModerationGroupIdsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds)); } if(m_NotificationSentForParentIsSet) { @@ -1106,17 +1155,17 @@ void APIComment::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notificationSentForParentTenant")), m_NotificationSentForParentTenant)); } - if(m_PageTitle.has_value()) + if(m_PageTitleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); } - if(m_ParentId.has_value()) + if(m_ParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); } - if(m_Rating.has_value()) + if(m_RatingIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); } if(m_ReviewedIsSet) { @@ -1138,29 +1187,29 @@ void APIComment::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdRaw")), m_UrlIdRaw)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_VerifiedDate.has_value()) + if(m_VerifiedDateIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate)); } - if(m_Votes.has_value()) + if(m_VotesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); } - if(m_VotesDown.has_value()) + if(m_VotesDownIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); } - if(m_VotesUp.has_value()) + if(m_VotesUpIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); } } @@ -1173,10 +1222,10 @@ bool APIComment::fromMultiPart(std::shared_ptr multipart, con namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("_id")))) + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("_id"))), refVal_setId ); + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId ); setId(refVal_setId); } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("aiDeterminedSpam")))) @@ -1497,24 +1546,24 @@ bool APIComment::fromMultiPart(std::shared_ptr multipart, con utility::string_t APIComment::getId() const { - return m__id; + return m_Id; } void APIComment::setId(const utility::string_t& value) { - m__id = value; - m__idIsSet = true; + m_Id = value; + m_IdIsSet = true; } bool APIComment::idIsSet() const { - return m__idIsSet; + return m_IdIsSet; } -void APIComment::unset_id() +void APIComment::unsetId() { - m__idIsSet = false; + m_IdIsSet = false; } bool APIComment::isAiDeterminedSpam() const { @@ -1538,23 +1587,24 @@ void APIComment::unsetAiDeterminedSpam() } utility::string_t APIComment::getAnonUserId() const { - return m_AnonUserId.get(); + return m_AnonUserId; } void APIComment::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; + m_AnonUserIdIsSet = true; } bool APIComment::anonUserIdIsSet() const { - return m_AnonUserId.has_value(); + return m_AnonUserIdIsSet; } void APIComment::unsetAnonUserId() { - m_AnonUserId.reset(); + m_AnonUserIdIsSet = false; } bool APIComment::isApproved() const { @@ -1578,43 +1628,45 @@ void APIComment::unsetApproved() } utility::string_t APIComment::getAvatarSrc() const { - return m_AvatarSrc.get(); + return m_AvatarSrc; } void APIComment::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; + m_AvatarSrcIsSet = true; } bool APIComment::avatarSrcIsSet() const { - return m_AvatarSrc.has_value(); + return m_AvatarSrcIsSet; } void APIComment::unsetAvatarSrc() { - m_AvatarSrc.reset(); + m_AvatarSrcIsSet = false; } std::vector> APIComment::getBadges() const { - return m_Badges.get(); + return m_Badges; } void APIComment::setBadges(const std::vector>& value) { m_Badges = value; + m_BadgesIsSet = true; } bool APIComment::badgesIsSet() const { - return m_Badges.has_value(); + return m_BadgesIsSet; } void APIComment::unsetBadges() { - m_Badges.reset(); + m_BadgesIsSet = false; } utility::string_t APIComment::getComment() const { @@ -1660,43 +1712,45 @@ void APIComment::unsetCommentHTML() } utility::string_t APIComment::getCommenterEmail() const { - return m_CommenterEmail.get(); + return m_CommenterEmail; } void APIComment::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; + m_CommenterEmailIsSet = true; } bool APIComment::commenterEmailIsSet() const { - return m_CommenterEmail.has_value(); + return m_CommenterEmailIsSet; } void APIComment::unsetCommenterEmail() { - m_CommenterEmail.reset(); + m_CommenterEmailIsSet = false; } utility::string_t APIComment::getCommenterLink() const { - return m_CommenterLink.get(); + return m_CommenterLink; } void APIComment::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; + m_CommenterLinkIsSet = true; } bool APIComment::commenterLinkIsSet() const { - return m_CommenterLink.has_value(); + return m_CommenterLinkIsSet; } void APIComment::unsetCommenterLink() { - m_CommenterLink.reset(); + m_CommenterLinkIsSet = false; } utility::string_t APIComment::getCommenterName() const { @@ -1721,62 +1775,65 @@ void APIComment::unsetCommenterName() } double APIComment::getDate() const { - return m_date.get(); + return m_date; } void APIComment::setDate(double value) { m_date = value; + m_dateIsSet = true; } bool APIComment::dateIsSet() const { - return m_date.has_value(); + return m_dateIsSet; } void APIComment::unsetdate() { - m_date.reset(); + m_dateIsSet = false; } utility::string_t APIComment::getDisplayLabel() const { - return m_DisplayLabel.get(); + return m_DisplayLabel; } void APIComment::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; + m_DisplayLabelIsSet = true; } bool APIComment::displayLabelIsSet() const { - return m_DisplayLabel.has_value(); + return m_DisplayLabelIsSet; } void APIComment::unsetDisplayLabel() { - m_DisplayLabel.reset(); + m_DisplayLabelIsSet = false; } utility::string_t APIComment::getDomain() const { - return m_Domain.get(); + return m_Domain; } void APIComment::setDomain(const utility::string_t& value) { m_Domain = value; + m_DomainIsSet = true; } bool APIComment::domainIsSet() const { - return m_Domain.has_value(); + return m_DomainIsSet; } void APIComment::unsetDomain() { - m_Domain.reset(); + m_DomainIsSet = false; } utility::string_t APIComment::getExternalId() const { @@ -1801,43 +1858,45 @@ void APIComment::unsetExternalId() } utility::string_t APIComment::getExternalParentId() const { - return m_ExternalParentId.get(); + return m_ExternalParentId; } void APIComment::setExternalParentId(const utility::string_t& value) { m_ExternalParentId = value; + m_ExternalParentIdIsSet = true; } bool APIComment::externalParentIdIsSet() const { - return m_ExternalParentId.has_value(); + return m_ExternalParentIdIsSet; } void APIComment::unsetExternalParentId() { - m_ExternalParentId.reset(); + m_ExternalParentIdIsSet = false; } utility::datetime APIComment::getExpireAt() const { - return m_ExpireAt.get(); + return m_ExpireAt; } void APIComment::setExpireAt(const utility::datetime& value) { m_ExpireAt = value; + m_ExpireAtIsSet = true; } bool APIComment::expireAtIsSet() const { - return m_ExpireAt.has_value(); + return m_ExpireAtIsSet; } void APIComment::unsetExpireAt() { - m_ExpireAt.reset(); + m_ExpireAtIsSet = false; } std::vector APIComment::getFeedbackIds() const { @@ -1862,22 +1921,23 @@ void APIComment::unsetFeedbackIds() } int32_t APIComment::getFlagCount() const { - return m_FlagCount.get(); + return m_FlagCount; } void APIComment::setFlagCount(int32_t value) { m_FlagCount = value; + m_FlagCountIsSet = true; } bool APIComment::flagCountIsSet() const { - return m_FlagCount.has_value(); + return m_FlagCountIsSet; } void APIComment::unsetFlagCount() { - m_FlagCount.reset(); + m_FlagCountIsSet = false; } int32_t APIComment::getFromProductId() const { @@ -2062,41 +2122,43 @@ void APIComment::unsetIsDeletedUser() } bool APIComment::isIsPinned() const { - return m_IsPinned.get(); + return m_IsPinned; } void APIComment::setIsPinned(bool value) { m_IsPinned = value; + m_IsPinnedIsSet = true; } bool APIComment::isPinnedIsSet() const { - return m_IsPinned.has_value(); + return m_IsPinnedIsSet; } void APIComment::unsetIsPinned() { - m_IsPinned.reset(); + m_IsPinnedIsSet = false; } bool APIComment::isIsLocked() const { - return m_IsLocked.get(); + return m_IsLocked; } void APIComment::setIsLocked(bool value) { m_IsLocked = value; + m_IsLockedIsSet = true; } bool APIComment::isLockedIsSet() const { - return m_IsLocked.has_value(); + return m_IsLockedIsSet; } void APIComment::unsetIsLocked() { - m_IsLocked.reset(); + m_IsLockedIsSet = false; } bool APIComment::isIsSpam() const { @@ -2120,62 +2182,65 @@ void APIComment::unsetIsSpam() } int32_t APIComment::getLocalDateHours() const { - return m_LocalDateHours.get(); + return m_LocalDateHours; } void APIComment::setLocalDateHours(int32_t value) { m_LocalDateHours = value; + m_LocalDateHoursIsSet = true; } bool APIComment::localDateHoursIsSet() const { - return m_LocalDateHours.has_value(); + return m_LocalDateHoursIsSet; } void APIComment::unsetLocalDateHours() { - m_LocalDateHours.reset(); + m_LocalDateHoursIsSet = false; } utility::string_t APIComment::getLocalDateString() const { - return m_LocalDateString.get(); + return m_LocalDateString; } void APIComment::setLocalDateString(const utility::string_t& value) { m_LocalDateString = value; + m_LocalDateStringIsSet = true; } bool APIComment::localDateStringIsSet() const { - return m_LocalDateString.has_value(); + return m_LocalDateStringIsSet; } void APIComment::unsetLocalDateString() { - m_LocalDateString.reset(); + m_LocalDateStringIsSet = false; } utility::string_t APIComment::getLocale() const { - return m_Locale.get(); + return m_Locale; } void APIComment::setLocale(const utility::string_t& value) { m_Locale = value; + m_LocaleIsSet = true; } bool APIComment::localeIsSet() const { - return m_Locale.has_value(); + return m_LocaleIsSet; } void APIComment::unsetLocale() { - m_Locale.reset(); + m_LocaleIsSet = false; } std::vector> APIComment::getMentions() const { @@ -2200,43 +2265,45 @@ void APIComment::unsetMentions() } std::shared_ptr APIComment::getMeta() const { - return m_Meta.get(); + return m_Meta; } void APIComment::setMeta(const std::shared_ptr& value) { m_Meta = value; + m_MetaIsSet = true; } bool APIComment::metaIsSet() const { - return m_Meta.has_value(); + return m_MetaIsSet; } void APIComment::unsetMeta() { - m_Meta.reset(); + m_MetaIsSet = false; } std::vector APIComment::getModerationGroupIds() const { - return m_ModerationGroupIds.get(); + return m_ModerationGroupIds; } void APIComment::setModerationGroupIds(const std::vector& value) { m_ModerationGroupIds = value; + m_ModerationGroupIdsIsSet = true; } bool APIComment::moderationGroupIdsIsSet() const { - return m_ModerationGroupIds.has_value(); + return m_ModerationGroupIdsIsSet; } void APIComment::unsetModerationGroupIds() { - m_ModerationGroupIds.reset(); + m_ModerationGroupIdsIsSet = false; } bool APIComment::isNotificationSentForParent() const { @@ -2280,62 +2347,65 @@ void APIComment::unsetNotificationSentForParentTenant() } utility::string_t APIComment::getPageTitle() const { - return m_PageTitle.get(); + return m_PageTitle; } void APIComment::setPageTitle(const utility::string_t& value) { m_PageTitle = value; + m_PageTitleIsSet = true; } bool APIComment::pageTitleIsSet() const { - return m_PageTitle.has_value(); + return m_PageTitleIsSet; } void APIComment::unsetPageTitle() { - m_PageTitle.reset(); + m_PageTitleIsSet = false; } utility::string_t APIComment::getParentId() const { - return m_ParentId.get(); + return m_ParentId; } void APIComment::setParentId(const utility::string_t& value) { m_ParentId = value; + m_ParentIdIsSet = true; } bool APIComment::parentIdIsSet() const { - return m_ParentId.has_value(); + return m_ParentIdIsSet; } void APIComment::unsetParentId() { - m_ParentId.reset(); + m_ParentIdIsSet = false; } double APIComment::getRating() const { - return m_Rating.get(); + return m_Rating; } void APIComment::setRating(double value) { m_Rating = value; + m_RatingIsSet = true; } bool APIComment::ratingIsSet() const { - return m_Rating.has_value(); + return m_RatingIsSet; } void APIComment::unsetRating() { - m_Rating.reset(); + m_RatingIsSet = false; } bool APIComment::isReviewed() const { @@ -2443,23 +2513,24 @@ void APIComment::unsetUrlIdRaw() } utility::string_t APIComment::getUserId() const { - return m_UserId.get(); + return m_UserId; } void APIComment::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool APIComment::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void APIComment::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } bool APIComment::isVerified() const { @@ -2483,80 +2554,84 @@ void APIComment::unsetVerified() } utility::datetime APIComment::getVerifiedDate() const { - return m_VerifiedDate.get(); + return m_VerifiedDate; } void APIComment::setVerifiedDate(const utility::datetime& value) { m_VerifiedDate = value; + m_VerifiedDateIsSet = true; } bool APIComment::verifiedDateIsSet() const { - return m_VerifiedDate.has_value(); + return m_VerifiedDateIsSet; } void APIComment::unsetVerifiedDate() { - m_VerifiedDate.reset(); + m_VerifiedDateIsSet = false; } int32_t APIComment::getVotes() const { - return m_Votes.get(); + return m_Votes; } void APIComment::setVotes(int32_t value) { m_Votes = value; + m_VotesIsSet = true; } bool APIComment::votesIsSet() const { - return m_Votes.has_value(); + return m_VotesIsSet; } void APIComment::unsetVotes() { - m_Votes.reset(); + m_VotesIsSet = false; } int32_t APIComment::getVotesDown() const { - return m_VotesDown.get(); + return m_VotesDown; } void APIComment::setVotesDown(int32_t value) { m_VotesDown = value; + m_VotesDownIsSet = true; } bool APIComment::votesDownIsSet() const { - return m_VotesDown.has_value(); + return m_VotesDownIsSet; } void APIComment::unsetVotesDown() { - m_VotesDown.reset(); + m_VotesDownIsSet = false; } int32_t APIComment::getVotesUp() const { - return m_VotesUp.get(); + return m_VotesUp; } void APIComment::setVotesUp(int32_t value) { m_VotesUp = value; + m_VotesUpIsSet = true; } bool APIComment::votesUpIsSet() const { - return m_VotesUp.has_value(); + return m_VotesUpIsSet; } void APIComment::unsetVotesUp() { - m_VotesUp.reset(); + m_VotesUpIsSet = false; } } diff --git a/client/src/model/APICommentBase.cpp b/client/src/model/APICommentBase.cpp index 656bf86..e0c3975 100644 --- a/client/src/model/APICommentBase.cpp +++ b/client/src/model/APICommentBase.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,21 +20,42 @@ namespace model { APICommentBase::APICommentBase() { - m__id = utility::conversions::to_string_t(""); - m__idIsSet = false; + m_Id = utility::conversions::to_string_t(""); + m_IdIsSet = false; m_AiDeterminedSpam = false; m_AiDeterminedSpamIsSet = false; + m_AnonUserId = utility::conversions::to_string_t(""); + m_AnonUserIdIsSet = false; m_Approved = false; m_ApprovedIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; + m_BadgesIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; + m_CommenterEmail = utility::conversions::to_string_t(""); + m_CommenterEmailIsSet = false; + m_CommenterLink = utility::conversions::to_string_t(""); + m_CommenterLinkIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; + m_date = utility::datetime(); + m_dateIsSet = false; + m_DisplayLabel = utility::conversions::to_string_t(""); + m_DisplayLabelIsSet = false; + m_Domain = nullptr; + m_DomainIsSet = false; m_ExternalId = utility::conversions::to_string_t(""); m_ExternalIdIsSet = false; + m_ExternalParentId = utility::conversions::to_string_t(""); + m_ExternalParentIdIsSet = false; + m_ExpireAt = utility::datetime(); + m_ExpireAtIsSet = false; m_FeedbackIdsIsSet = false; + m_FlagCount = 0; + m_FlagCountIsSet = false; m_FromProductId = 0; m_FromProductIdIsSet = false; m_HasCode = false; @@ -52,13 +73,31 @@ APICommentBase::APICommentBase() m_IsDeletedIsSet = false; m_IsDeletedUser = false; m_IsDeletedUserIsSet = false; + m_IsPinned = false; + m_IsPinnedIsSet = false; + m_IsLocked = false; + m_IsLockedIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; + m_LocalDateHours = 0; + m_LocalDateHoursIsSet = false; + m_LocalDateString = utility::conversions::to_string_t(""); + m_LocalDateStringIsSet = false; + m_Locale = utility::conversions::to_string_t(""); + m_LocaleIsSet = false; m_MentionsIsSet = false; + m_MetaIsSet = false; + m_ModerationGroupIdsIsSet = false; m_NotificationSentForParent = false; m_NotificationSentForParentIsSet = false; m_NotificationSentForParentTenant = false; m_NotificationSentForParentTenantIsSet = false; + m_PageTitle = utility::conversions::to_string_t(""); + m_PageTitleIsSet = false; + m_ParentId = utility::conversions::to_string_t(""); + m_ParentIdIsSet = false; + m_Rating = 0.0; + m_RatingIsSet = false; m_Reviewed = false; m_ReviewedIsSet = false; m_TenantId = utility::conversions::to_string_t(""); @@ -69,8 +108,18 @@ APICommentBase::APICommentBase() m_UrlIdIsSet = false; m_UrlIdRaw = utility::conversions::to_string_t(""); m_UrlIdRawIsSet = false; + m_UserId = nullptr; + m_UserIdIsSet = false; m_Verified = false; m_VerifiedIsSet = false; + m_VerifiedDate = utility::datetime(); + m_VerifiedDateIsSet = false; + m_Votes = 0; + m_VotesIsSet = false; + m_VotesDown = 0; + m_VotesDownIsSet = false; + m_VotesUp = 0; + m_VotesUpIsSet = false; } APICommentBase::~APICommentBase() @@ -85,270 +134,270 @@ void APICommentBase::validate() web::json::value APICommentBase::toJson() const { web::json::value val = web::json::value::object(); - if(m__idIsSet) - { + if(m_IdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_AiDeterminedSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("aiDeterminedSpam"))] = ModelBase::toJson(m_AiDeterminedSpam); } - if(m_AnonUserId.has_value()) - { + if(m_AnonUserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } - if(m_AvatarSrc.has_value()) - { + if(m_AvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } - if(m_Badges.has_value()) - { + if(m_BadgesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } - if(m_CommenterEmail.has_value()) - { + if(m_CommenterEmailIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); } - if(m_CommenterLink.has_value()) - { + if(m_CommenterLinkIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_date.has_value()) - { + if(m_dateIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); } - if(m_DisplayLabel.has_value()) - { + if(m_DisplayLabelIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } - if(m_Domain.has_value()) - { + if(m_DomainIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain.get()); + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_ExternalIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("externalId"))] = ModelBase::toJson(m_ExternalId); } - if(m_ExternalParentId.has_value()) - { + if(m_ExternalParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId); } - if(m_ExpireAt.has_value()) - { + if(m_ExpireAtIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt.get()); + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } - if(m_FlagCount.has_value()) - { + if(m_FlagCountIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); } if(m_FromProductIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromProductId"))] = ModelBase::toJson(m_FromProductId); } if(m_HasCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasCode"))] = ModelBase::toJson(m_HasCode); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } if(m_HasLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLinks"))] = ModelBase::toJson(m_HasLinks); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } - if(m_IsPinned.has_value()) - { + if(m_IsPinnedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); } - if(m_IsLocked.has_value()) - { + if(m_IsLockedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } - if(m_LocalDateHours.has_value()) - { + if(m_LocalDateHoursIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours.get()); + val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours); } - if(m_LocalDateString.has_value()) - { + if(m_LocalDateStringIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString.get()); + val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); } - if(m_Locale.has_value()) - { + if(m_LocaleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale.get()); + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_MentionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("mentions"))] = ModelBase::toJson(m_Mentions); } - if(m_Meta.has_value()) - { + if(m_MetaIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } - if(m_ModerationGroupIds.has_value()) - { + if(m_ModerationGroupIdsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds.get()); + val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } if(m_NotificationSentForParentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParent"))] = ModelBase::toJson(m_NotificationSentForParent); } if(m_NotificationSentForParentTenantIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParentTenant"))] = ModelBase::toJson(m_NotificationSentForParentTenant); } - if(m_PageTitle.has_value()) - { + if(m_PageTitleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } - if(m_ParentId.has_value()) - { + if(m_ParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); } - if(m_Rating.has_value()) - { + if(m_RatingIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIdRawIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdRaw"))] = ModelBase::toJson(m_UrlIdRaw); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_VerifiedDate.has_value()) - { + if(m_VerifiedDateIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate.get()); + val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate); } - if(m_Votes.has_value()) - { + if(m_VotesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); } - if(m_VotesDown.has_value()) - { + if(m_VotesDownIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); } - if(m_VotesUp.has_value()) - { + if(m_VotesUpIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); } return val; @@ -357,9 +406,9 @@ web::json::value APICommentBase::toJson() const bool APICommentBase::fromJson(const web::json::value& val) { bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("_id")))) + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("_id"))); + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if(!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -950,29 +999,29 @@ void APICommentBase::toMultipart(std::shared_ptr multipart, c { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m__idIsSet) + if(m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if(m_AiDeterminedSpamIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("aiDeterminedSpam")), m_AiDeterminedSpam)); } - if(m_AnonUserId.has_value()) + if(m_AnonUserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); } if(m_ApprovedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); } - if(m_AvatarSrc.has_value()) + if(m_AvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); } - if(m_Badges.has_value()) + if(m_BadgesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); } if(m_CommentIsSet) { @@ -982,49 +1031,49 @@ void APICommentBase::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); } - if(m_CommenterEmail.has_value()) + if(m_CommenterEmailIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); } - if(m_CommenterLink.has_value()) + if(m_CommenterLinkIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); } if(m_CommenterNameIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_date.has_value()) + if(m_dateIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); } - if(m_DisplayLabel.has_value()) + if(m_DisplayLabelIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); } - if(m_Domain.has_value()) + if(m_DomainIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); } if(m_ExternalIdIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalId")), m_ExternalId)); } - if(m_ExternalParentId.has_value()) + if(m_ExternalParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId)); } - if(m_ExpireAt.has_value()) + if(m_ExpireAtIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); } if(m_FeedbackIdsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedbackIds")), m_FeedbackIds)); } - if(m_FlagCount.has_value()) + if(m_FlagCountIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); } if(m_FromProductIdIsSet) { @@ -1062,41 +1111,41 @@ void APICommentBase::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isDeletedUser")), m_IsDeletedUser)); } - if(m_IsPinned.has_value()) + if(m_IsPinnedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); } - if(m_IsLocked.has_value()) + if(m_IsLockedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); } if(m_IsSpamIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); } - if(m_LocalDateHours.has_value()) + if(m_LocalDateHoursIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours)); } - if(m_LocalDateString.has_value()) + if(m_LocalDateStringIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString)); } - if(m_Locale.has_value()) + if(m_LocaleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); } if(m_MentionsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("mentions")), m_Mentions)); } - if(m_Meta.has_value()) + if(m_MetaIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); } - if(m_ModerationGroupIds.has_value()) + if(m_ModerationGroupIdsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds)); } if(m_NotificationSentForParentIsSet) { @@ -1106,17 +1155,17 @@ void APICommentBase::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notificationSentForParentTenant")), m_NotificationSentForParentTenant)); } - if(m_PageTitle.has_value()) + if(m_PageTitleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); } - if(m_ParentId.has_value()) + if(m_ParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); } - if(m_Rating.has_value()) + if(m_RatingIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); } if(m_ReviewedIsSet) { @@ -1138,29 +1187,29 @@ void APICommentBase::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdRaw")), m_UrlIdRaw)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_VerifiedDate.has_value()) + if(m_VerifiedDateIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate)); } - if(m_Votes.has_value()) + if(m_VotesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); } - if(m_VotesDown.has_value()) + if(m_VotesDownIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); } - if(m_VotesUp.has_value()) + if(m_VotesUpIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); } } @@ -1173,10 +1222,10 @@ bool APICommentBase::fromMultiPart(std::shared_ptr multipart, namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("_id")))) + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("_id"))), refVal_setId ); + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId ); setId(refVal_setId); } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("aiDeterminedSpam")))) @@ -1497,24 +1546,24 @@ bool APICommentBase::fromMultiPart(std::shared_ptr multipart, utility::string_t APICommentBase::getId() const { - return m__id; + return m_Id; } void APICommentBase::setId(const utility::string_t& value) { - m__id = value; - m__idIsSet = true; + m_Id = value; + m_IdIsSet = true; } bool APICommentBase::idIsSet() const { - return m__idIsSet; + return m_IdIsSet; } -void APICommentBase::unset_id() +void APICommentBase::unsetId() { - m__idIsSet = false; + m_IdIsSet = false; } bool APICommentBase::isAiDeterminedSpam() const { @@ -1538,23 +1587,24 @@ void APICommentBase::unsetAiDeterminedSpam() } utility::string_t APICommentBase::getAnonUserId() const { - return m_AnonUserId.get(); + return m_AnonUserId; } void APICommentBase::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; + m_AnonUserIdIsSet = true; } bool APICommentBase::anonUserIdIsSet() const { - return m_AnonUserId.has_value(); + return m_AnonUserIdIsSet; } void APICommentBase::unsetAnonUserId() { - m_AnonUserId.reset(); + m_AnonUserIdIsSet = false; } bool APICommentBase::isApproved() const { @@ -1578,43 +1628,45 @@ void APICommentBase::unsetApproved() } utility::string_t APICommentBase::getAvatarSrc() const { - return m_AvatarSrc.get(); + return m_AvatarSrc; } void APICommentBase::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; + m_AvatarSrcIsSet = true; } bool APICommentBase::avatarSrcIsSet() const { - return m_AvatarSrc.has_value(); + return m_AvatarSrcIsSet; } void APICommentBase::unsetAvatarSrc() { - m_AvatarSrc.reset(); + m_AvatarSrcIsSet = false; } std::vector> APICommentBase::getBadges() const { - return m_Badges.get(); + return m_Badges; } void APICommentBase::setBadges(const std::vector>& value) { m_Badges = value; + m_BadgesIsSet = true; } bool APICommentBase::badgesIsSet() const { - return m_Badges.has_value(); + return m_BadgesIsSet; } void APICommentBase::unsetBadges() { - m_Badges.reset(); + m_BadgesIsSet = false; } utility::string_t APICommentBase::getComment() const { @@ -1660,43 +1712,45 @@ void APICommentBase::unsetCommentHTML() } utility::string_t APICommentBase::getCommenterEmail() const { - return m_CommenterEmail.get(); + return m_CommenterEmail; } void APICommentBase::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; + m_CommenterEmailIsSet = true; } bool APICommentBase::commenterEmailIsSet() const { - return m_CommenterEmail.has_value(); + return m_CommenterEmailIsSet; } void APICommentBase::unsetCommenterEmail() { - m_CommenterEmail.reset(); + m_CommenterEmailIsSet = false; } utility::string_t APICommentBase::getCommenterLink() const { - return m_CommenterLink.get(); + return m_CommenterLink; } void APICommentBase::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; + m_CommenterLinkIsSet = true; } bool APICommentBase::commenterLinkIsSet() const { - return m_CommenterLink.has_value(); + return m_CommenterLinkIsSet; } void APICommentBase::unsetCommenterLink() { - m_CommenterLink.reset(); + m_CommenterLinkIsSet = false; } utility::string_t APICommentBase::getCommenterName() const { @@ -1721,63 +1775,66 @@ void APICommentBase::unsetCommenterName() } utility::datetime APICommentBase::getDate() const { - return m_date.get(); + return m_date; } void APICommentBase::setDate(const utility::datetime& value) { m_date = value; + m_dateIsSet = true; } bool APICommentBase::dateIsSet() const { - return m_date.has_value(); + return m_dateIsSet; } void APICommentBase::unsetdate() { - m_date.reset(); + m_dateIsSet = false; } utility::string_t APICommentBase::getDisplayLabel() const { - return m_DisplayLabel.get(); + return m_DisplayLabel; } void APICommentBase::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; + m_DisplayLabelIsSet = true; } bool APICommentBase::displayLabelIsSet() const { - return m_DisplayLabel.has_value(); + return m_DisplayLabelIsSet; } void APICommentBase::unsetDisplayLabel() { - m_DisplayLabel.reset(); + m_DisplayLabelIsSet = false; } utility::string_t APICommentBase::getDomain() const { - return m_Domain.get(); + return m_Domain; } void APICommentBase::setDomain(const utility::string_t& value) { m_Domain = value; + m_DomainIsSet = true; } bool APICommentBase::domainIsSet() const { - return m_Domain.has_value(); + return m_DomainIsSet; } void APICommentBase::unsetDomain() { - m_Domain.reset(); + m_DomainIsSet = false; } utility::string_t APICommentBase::getExternalId() const { @@ -1802,43 +1859,45 @@ void APICommentBase::unsetExternalId() } utility::string_t APICommentBase::getExternalParentId() const { - return m_ExternalParentId.get(); + return m_ExternalParentId; } void APICommentBase::setExternalParentId(const utility::string_t& value) { m_ExternalParentId = value; + m_ExternalParentIdIsSet = true; } bool APICommentBase::externalParentIdIsSet() const { - return m_ExternalParentId.has_value(); + return m_ExternalParentIdIsSet; } void APICommentBase::unsetExternalParentId() { - m_ExternalParentId.reset(); + m_ExternalParentIdIsSet = false; } utility::datetime APICommentBase::getExpireAt() const { - return m_ExpireAt.get(); + return m_ExpireAt; } void APICommentBase::setExpireAt(const utility::datetime& value) { m_ExpireAt = value; + m_ExpireAtIsSet = true; } bool APICommentBase::expireAtIsSet() const { - return m_ExpireAt.has_value(); + return m_ExpireAtIsSet; } void APICommentBase::unsetExpireAt() { - m_ExpireAt.reset(); + m_ExpireAtIsSet = false; } std::vector APICommentBase::getFeedbackIds() const { @@ -1863,22 +1922,23 @@ void APICommentBase::unsetFeedbackIds() } int32_t APICommentBase::getFlagCount() const { - return m_FlagCount.get(); + return m_FlagCount; } void APICommentBase::setFlagCount(int32_t value) { m_FlagCount = value; + m_FlagCountIsSet = true; } bool APICommentBase::flagCountIsSet() const { - return m_FlagCount.has_value(); + return m_FlagCountIsSet; } void APICommentBase::unsetFlagCount() { - m_FlagCount.reset(); + m_FlagCountIsSet = false; } int32_t APICommentBase::getFromProductId() const { @@ -2063,41 +2123,43 @@ void APICommentBase::unsetIsDeletedUser() } bool APICommentBase::isIsPinned() const { - return m_IsPinned.get(); + return m_IsPinned; } void APICommentBase::setIsPinned(bool value) { m_IsPinned = value; + m_IsPinnedIsSet = true; } bool APICommentBase::isPinnedIsSet() const { - return m_IsPinned.has_value(); + return m_IsPinnedIsSet; } void APICommentBase::unsetIsPinned() { - m_IsPinned.reset(); + m_IsPinnedIsSet = false; } bool APICommentBase::isIsLocked() const { - return m_IsLocked.get(); + return m_IsLocked; } void APICommentBase::setIsLocked(bool value) { m_IsLocked = value; + m_IsLockedIsSet = true; } bool APICommentBase::isLockedIsSet() const { - return m_IsLocked.has_value(); + return m_IsLockedIsSet; } void APICommentBase::unsetIsLocked() { - m_IsLocked.reset(); + m_IsLockedIsSet = false; } bool APICommentBase::isIsSpam() const { @@ -2121,62 +2183,65 @@ void APICommentBase::unsetIsSpam() } int32_t APICommentBase::getLocalDateHours() const { - return m_LocalDateHours.get(); + return m_LocalDateHours; } void APICommentBase::setLocalDateHours(int32_t value) { m_LocalDateHours = value; + m_LocalDateHoursIsSet = true; } bool APICommentBase::localDateHoursIsSet() const { - return m_LocalDateHours.has_value(); + return m_LocalDateHoursIsSet; } void APICommentBase::unsetLocalDateHours() { - m_LocalDateHours.reset(); + m_LocalDateHoursIsSet = false; } utility::string_t APICommentBase::getLocalDateString() const { - return m_LocalDateString.get(); + return m_LocalDateString; } void APICommentBase::setLocalDateString(const utility::string_t& value) { m_LocalDateString = value; + m_LocalDateStringIsSet = true; } bool APICommentBase::localDateStringIsSet() const { - return m_LocalDateString.has_value(); + return m_LocalDateStringIsSet; } void APICommentBase::unsetLocalDateString() { - m_LocalDateString.reset(); + m_LocalDateStringIsSet = false; } utility::string_t APICommentBase::getLocale() const { - return m_Locale.get(); + return m_Locale; } void APICommentBase::setLocale(const utility::string_t& value) { m_Locale = value; + m_LocaleIsSet = true; } bool APICommentBase::localeIsSet() const { - return m_Locale.has_value(); + return m_LocaleIsSet; } void APICommentBase::unsetLocale() { - m_Locale.reset(); + m_LocaleIsSet = false; } std::vector> APICommentBase::getMentions() const { @@ -2201,43 +2266,45 @@ void APICommentBase::unsetMentions() } std::shared_ptr APICommentBase::getMeta() const { - return m_Meta.get(); + return m_Meta; } void APICommentBase::setMeta(const std::shared_ptr& value) { m_Meta = value; + m_MetaIsSet = true; } bool APICommentBase::metaIsSet() const { - return m_Meta.has_value(); + return m_MetaIsSet; } void APICommentBase::unsetMeta() { - m_Meta.reset(); + m_MetaIsSet = false; } std::vector APICommentBase::getModerationGroupIds() const { - return m_ModerationGroupIds.get(); + return m_ModerationGroupIds; } void APICommentBase::setModerationGroupIds(const std::vector& value) { m_ModerationGroupIds = value; + m_ModerationGroupIdsIsSet = true; } bool APICommentBase::moderationGroupIdsIsSet() const { - return m_ModerationGroupIds.has_value(); + return m_ModerationGroupIdsIsSet; } void APICommentBase::unsetModerationGroupIds() { - m_ModerationGroupIds.reset(); + m_ModerationGroupIdsIsSet = false; } bool APICommentBase::isNotificationSentForParent() const { @@ -2281,62 +2348,65 @@ void APICommentBase::unsetNotificationSentForParentTenant() } utility::string_t APICommentBase::getPageTitle() const { - return m_PageTitle.get(); + return m_PageTitle; } void APICommentBase::setPageTitle(const utility::string_t& value) { m_PageTitle = value; + m_PageTitleIsSet = true; } bool APICommentBase::pageTitleIsSet() const { - return m_PageTitle.has_value(); + return m_PageTitleIsSet; } void APICommentBase::unsetPageTitle() { - m_PageTitle.reset(); + m_PageTitleIsSet = false; } utility::string_t APICommentBase::getParentId() const { - return m_ParentId.get(); + return m_ParentId; } void APICommentBase::setParentId(const utility::string_t& value) { m_ParentId = value; + m_ParentIdIsSet = true; } bool APICommentBase::parentIdIsSet() const { - return m_ParentId.has_value(); + return m_ParentIdIsSet; } void APICommentBase::unsetParentId() { - m_ParentId.reset(); + m_ParentIdIsSet = false; } double APICommentBase::getRating() const { - return m_Rating.get(); + return m_Rating; } void APICommentBase::setRating(double value) { m_Rating = value; + m_RatingIsSet = true; } bool APICommentBase::ratingIsSet() const { - return m_Rating.has_value(); + return m_RatingIsSet; } void APICommentBase::unsetRating() { - m_Rating.reset(); + m_RatingIsSet = false; } bool APICommentBase::isReviewed() const { @@ -2444,23 +2514,24 @@ void APICommentBase::unsetUrlIdRaw() } utility::string_t APICommentBase::getUserId() const { - return m_UserId.get(); + return m_UserId; } void APICommentBase::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool APICommentBase::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void APICommentBase::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } bool APICommentBase::isVerified() const { @@ -2484,80 +2555,84 @@ void APICommentBase::unsetVerified() } utility::datetime APICommentBase::getVerifiedDate() const { - return m_VerifiedDate.get(); + return m_VerifiedDate; } void APICommentBase::setVerifiedDate(const utility::datetime& value) { m_VerifiedDate = value; + m_VerifiedDateIsSet = true; } bool APICommentBase::verifiedDateIsSet() const { - return m_VerifiedDate.has_value(); + return m_VerifiedDateIsSet; } void APICommentBase::unsetVerifiedDate() { - m_VerifiedDate.reset(); + m_VerifiedDateIsSet = false; } int32_t APICommentBase::getVotes() const { - return m_Votes.get(); + return m_Votes; } void APICommentBase::setVotes(int32_t value) { m_Votes = value; + m_VotesIsSet = true; } bool APICommentBase::votesIsSet() const { - return m_Votes.has_value(); + return m_VotesIsSet; } void APICommentBase::unsetVotes() { - m_Votes.reset(); + m_VotesIsSet = false; } int32_t APICommentBase::getVotesDown() const { - return m_VotesDown.get(); + return m_VotesDown; } void APICommentBase::setVotesDown(int32_t value) { m_VotesDown = value; + m_VotesDownIsSet = true; } bool APICommentBase::votesDownIsSet() const { - return m_VotesDown.has_value(); + return m_VotesDownIsSet; } void APICommentBase::unsetVotesDown() { - m_VotesDown.reset(); + m_VotesDownIsSet = false; } int32_t APICommentBase::getVotesUp() const { - return m_VotesUp.get(); + return m_VotesUp; } void APICommentBase::setVotesUp(int32_t value) { m_VotesUp = value; + m_VotesUpIsSet = true; } bool APICommentBase::votesUpIsSet() const { - return m_VotesUp.has_value(); + return m_VotesUpIsSet; } void APICommentBase::unsetVotesUp() { - m_VotesUp.reset(); + m_VotesUpIsSet = false; } } diff --git a/client/src/model/APICommentBase_meta.cpp b/client/src/model/APICommentBase_meta.cpp index 8f925b9..79f3bdb 100644 --- a/client/src/model/APICommentBase_meta.cpp +++ b/client/src/model/APICommentBase_meta.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,7 +24,6 @@ APICommentBase_meta::APICommentBase_meta() m_WpUserIdIsSet = false; m_WpPostId = utility::conversions::to_string_t(""); m_WpPostIdIsSet = false; - m_AdditionalPropertiesIsSet = false; } APICommentBase_meta::~APICommentBase_meta() @@ -40,23 +39,15 @@ web::json::value APICommentBase_meta::toJson() const { web::json::value val = web::json::value::object(); if(m_WpUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wpUserId"))] = ModelBase::toJson(m_WpUserId); } if(m_WpPostIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wpPostId"))] = ModelBase::toJson(m_WpPostId); } - // Serialize additional properties - if(m_AdditionalPropertiesIsSet) - { - for(const auto& item : m_AdditionalProperties) - { - val[item.first] = item.second; - } - } return val; } @@ -86,19 +77,6 @@ bool APICommentBase_meta::fromJson(const web::json::value& val) } } - // Capture additional properties (keys not defined in the schema) - if(val.is_object()) - { - for(const auto& item : val.as_object()) - { - // Skip known properties - if(item.first == utility::conversions::to_string_t(_XPLATSTR("wpUserId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("wpPostId"))) continue; - // This is an additional property - m_AdditionalProperties[item.first] = item.second; - m_AdditionalPropertiesIsSet = true; - } - } return ok; } @@ -187,34 +165,6 @@ void APICommentBase_meta::unsetWpPostId() m_WpPostIdIsSet = false; } - -std::map APICommentBase_meta::getAdditionalProperties() const -{ - return m_AdditionalProperties; -} - -void APICommentBase_meta::setAdditionalProperties(const std::map& value) -{ - m_AdditionalProperties = value; - m_AdditionalPropertiesIsSet = true; -} - -void APICommentBase_meta::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) -{ - m_AdditionalProperties[key] = value; - m_AdditionalPropertiesIsSet = true; -} - -bool APICommentBase_meta::additionalPropertiesIsSet() const -{ - return m_AdditionalPropertiesIsSet; -} - -void APICommentBase_meta::unsetAdditionalProperties() -{ - m_AdditionalProperties.clear(); - m_AdditionalPropertiesIsSet = false; -} } } } diff --git a/client/src/model/APICommentCommonBannedUser.cpp b/client/src/model/APICommentCommonBannedUser.cpp new file mode 100644 index 0000000..56c8268 --- /dev/null +++ b/client/src/model/APICommentCommonBannedUser.cpp @@ -0,0 +1,466 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/APICommentCommonBannedUser.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +APICommentCommonBannedUser::APICommentCommonBannedUser() +{ + m__id = utility::conversions::to_string_t(""); + m__idIsSet = false; + m_UserId = utility::conversions::to_string_t(""); + m_UserIdIsSet = false; + m_BanType = utility::conversions::to_string_t(""); + m_BanTypeIsSet = false; + m_Email = utility::conversions::to_string_t(""); + m_EmailIsSet = false; + m_IpHash = utility::conversions::to_string_t(""); + m_IpHashIsSet = false; + m_BannedUntil = utility::datetime(); + m_BannedUntilIsSet = false; + m_HasEmailWildcard = false; + m_HasEmailWildcardIsSet = false; + m_BanReason = utility::conversions::to_string_t(""); + m_BanReasonIsSet = false; +} + +APICommentCommonBannedUser::~APICommentCommonBannedUser() +{ +} + +void APICommentCommonBannedUser::validate() +{ + // TODO: implement validation +} + +web::json::value APICommentCommonBannedUser::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m__idIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); + } + if(m_UserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + } + if(m_BanTypeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("banType"))] = ModelBase::toJson(m_BanType); + } + if(m_EmailIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); + } + if(m_IpHashIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_HasEmailWildcardIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))] = ModelBase::toJson(m_HasEmailWildcard); + } + if(m_BanReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("banReason"))] = ModelBase::toJson(m_BanReason); + } + + return val; +} + +bool APICommentCommonBannedUser::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("_id"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromJson(fieldValue, refVal_setId); + setId(refVal_setId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserId); + setUserId(refVal_setUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("banType")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banType"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBanType; + ok &= ModelBase::fromJson(fieldValue, refVal_setBanType); + setBanType(refVal_setBanType); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("email")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("email"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setEmail; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmail); + setEmail(refVal_setEmail); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ipHash")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ipHash"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setIpHash; + ok &= ModelBase::fromJson(fieldValue, refVal_setIpHash); + setIpHash(refVal_setIpHash); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + utility::datetime refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))); + if(!fieldValue.is_null()) + { + bool refVal_setHasEmailWildcard; + ok &= ModelBase::fromJson(fieldValue, refVal_setHasEmailWildcard); + setHasEmailWildcard(refVal_setHasEmailWildcard); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("banReason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banReason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBanReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setBanReason); + setBanReason(refVal_setBanReason); + + } + } + return ok; +} + +void APICommentCommonBannedUser::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m__idIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); + } + if(m_UserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + } + if(m_BanTypeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("banType")), m_BanType)); + } + if(m_EmailIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); + } + if(m_IpHashIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_HasEmailWildcardIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard")), m_HasEmailWildcard)); + } + if(m_BanReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("banReason")), m_BanReason)); + } +} + +bool APICommentCommonBannedUser::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("_id"))), refVal_setId ); + setId(refVal_setId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userId"))), refVal_setUserId ); + setUserId(refVal_setUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banType")))) + { + utility::string_t refVal_setBanType; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banType"))), refVal_setBanType ); + setBanType(refVal_setBanType); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("email")))) + { + utility::string_t refVal_setEmail; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("email"))), refVal_setEmail ); + setEmail(refVal_setEmail); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ipHash")))) + { + utility::string_t refVal_setIpHash; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ipHash"))), refVal_setIpHash ); + setIpHash(refVal_setIpHash); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + utility::datetime refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard")))) + { + bool refVal_setHasEmailWildcard; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))), refVal_setHasEmailWildcard ); + setHasEmailWildcard(refVal_setHasEmailWildcard); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banReason")))) + { + utility::string_t refVal_setBanReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banReason"))), refVal_setBanReason ); + setBanReason(refVal_setBanReason); + } + return ok; +} + + +utility::string_t APICommentCommonBannedUser::getId() const +{ + return m__id; +} + + +void APICommentCommonBannedUser::setId(const utility::string_t& value) +{ + m__id = value; + m__idIsSet = true; +} + +bool APICommentCommonBannedUser::idIsSet() const +{ + return m__idIsSet; +} + +void APICommentCommonBannedUser::unset_id() +{ + m__idIsSet = false; +} +utility::string_t APICommentCommonBannedUser::getUserId() const +{ + return m_UserId; +} + + +void APICommentCommonBannedUser::setUserId(const utility::string_t& value) +{ + m_UserId = value; + m_UserIdIsSet = true; +} + +bool APICommentCommonBannedUser::userIdIsSet() const +{ + return m_UserIdIsSet; +} + +void APICommentCommonBannedUser::unsetUserId() +{ + m_UserIdIsSet = false; +} +utility::string_t APICommentCommonBannedUser::getBanType() const +{ + return m_BanType; +} + + +void APICommentCommonBannedUser::setBanType(const utility::string_t& value) +{ + m_BanType = value; + m_BanTypeIsSet = true; +} + +bool APICommentCommonBannedUser::banTypeIsSet() const +{ + return m_BanTypeIsSet; +} + +void APICommentCommonBannedUser::unsetBanType() +{ + m_BanTypeIsSet = false; +} +utility::string_t APICommentCommonBannedUser::getEmail() const +{ + return m_Email; +} + + +void APICommentCommonBannedUser::setEmail(const utility::string_t& value) +{ + m_Email = value; + m_EmailIsSet = true; +} + +bool APICommentCommonBannedUser::emailIsSet() const +{ + return m_EmailIsSet; +} + +void APICommentCommonBannedUser::unsetEmail() +{ + m_EmailIsSet = false; +} +utility::string_t APICommentCommonBannedUser::getIpHash() const +{ + return m_IpHash; +} + + +void APICommentCommonBannedUser::setIpHash(const utility::string_t& value) +{ + m_IpHash = value; + m_IpHashIsSet = true; +} + +bool APICommentCommonBannedUser::ipHashIsSet() const +{ + return m_IpHashIsSet; +} + +void APICommentCommonBannedUser::unsetIpHash() +{ + m_IpHashIsSet = false; +} +utility::datetime APICommentCommonBannedUser::getBannedUntil() const +{ + return m_BannedUntil; +} + + +void APICommentCommonBannedUser::setBannedUntil(const utility::datetime& value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool APICommentCommonBannedUser::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void APICommentCommonBannedUser::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +bool APICommentCommonBannedUser::isHasEmailWildcard() const +{ + return m_HasEmailWildcard; +} + +void APICommentCommonBannedUser::setHasEmailWildcard(bool value) +{ + m_HasEmailWildcard = value; + m_HasEmailWildcardIsSet = true; +} + +bool APICommentCommonBannedUser::hasEmailWildcardIsSet() const +{ + return m_HasEmailWildcardIsSet; +} + +void APICommentCommonBannedUser::unsetHasEmailWildcard() +{ + m_HasEmailWildcardIsSet = false; +} +utility::string_t APICommentCommonBannedUser::getBanReason() const +{ + return m_BanReason; +} + + +void APICommentCommonBannedUser::setBanReason(const utility::string_t& value) +{ + m_BanReason = value; + m_BanReasonIsSet = true; +} + +bool APICommentCommonBannedUser::banReasonIsSet() const +{ + return m_BanReasonIsSet; +} + +void APICommentCommonBannedUser::unsetBanReason() +{ + m_BanReasonIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/APICreateUserBadgeResponse.cpp b/client/src/model/APICreateUserBadgeResponse.cpp index f4dd8b1..9f0c480 100644 --- a/client/src/model/APICreateUserBadgeResponse.cpp +++ b/client/src/model/APICreateUserBadgeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,17 +38,17 @@ web::json::value APICreateUserBadgeResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserBadgeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userBadge"))] = ModelBase::toJson(m_UserBadge); } if(m_NotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notes"))] = ModelBase::toJson(m_Notes); } diff --git a/client/src/model/APIDomainConfiguration.cpp b/client/src/model/APIDomainConfiguration.cpp index 28a80eb..3782434 100644 --- a/client/src/model/APIDomainConfiguration.cpp +++ b/client/src/model/APIDomainConfiguration.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,14 +24,26 @@ APIDomainConfiguration::APIDomainConfiguration() m_IdIsSet = false; m_Domain = utility::conversions::to_string_t(""); m_DomainIsSet = false; + m_EmailFromName = utility::conversions::to_string_t(""); + m_EmailFromNameIsSet = false; + m_EmailFromEmail = utility::conversions::to_string_t(""); + m_EmailFromEmailIsSet = false; m_EmailHeadersIsSet = false; + m_WpSyncToken = utility::conversions::to_string_t(""); + m_WpSyncTokenIsSet = false; m_WpSynced = false; m_WpSyncedIsSet = false; + m_WpURL = utility::conversions::to_string_t(""); + m_WpURLIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; m_AutoAddedDate = utility::datetime(); m_AutoAddedDateIsSet = false; m_SiteTypeIsSet = false; + m_LogoSrc = utility::conversions::to_string_t(""); + m_LogoSrcIsSet = false; + m_LogoSrc100px = utility::conversions::to_string_t(""); + m_LogoSrc100pxIsSet = false; m_FooterUnsubscribeURL = utility::conversions::to_string_t(""); m_FooterUnsubscribeURLIsSet = false; m_DisableUnsubscribeLinks = false; @@ -51,77 +63,77 @@ web::json::value APIDomainConfiguration::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } - if(m_EmailFromName.has_value()) - { + if(m_EmailFromNameIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("emailFromName"))] = ModelBase::toJson(m_EmailFromName.get()); + val[utility::conversions::to_string_t(_XPLATSTR("emailFromName"))] = ModelBase::toJson(m_EmailFromName); } - if(m_EmailFromEmail.has_value()) - { + if(m_EmailFromEmailIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("emailFromEmail"))] = ModelBase::toJson(m_EmailFromEmail.get()); + val[utility::conversions::to_string_t(_XPLATSTR("emailFromEmail"))] = ModelBase::toJson(m_EmailFromEmail); } if(m_EmailHeadersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailHeaders"))] = ModelBase::toJson(m_EmailHeaders); } - if(m_WpSyncToken.has_value()) - { + if(m_WpSyncTokenIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("wpSyncToken"))] = ModelBase::toJson(m_WpSyncToken.get()); + val[utility::conversions::to_string_t(_XPLATSTR("wpSyncToken"))] = ModelBase::toJson(m_WpSyncToken); } if(m_WpSyncedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wpSynced"))] = ModelBase::toJson(m_WpSynced); } - if(m_WpURL.has_value()) - { + if(m_WpURLIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("wpURL"))] = ModelBase::toJson(m_WpURL.get()); + val[utility::conversions::to_string_t(_XPLATSTR("wpURL"))] = ModelBase::toJson(m_WpURL); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_AutoAddedDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoAddedDate"))] = ModelBase::toJson(m_AutoAddedDate); } if(m_SiteTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("siteType"))] = ModelBase::toJson(m_SiteType); } - if(m_LogoSrc.has_value()) - { + if(m_LogoSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("logoSrc"))] = ModelBase::toJson(m_LogoSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("logoSrc"))] = ModelBase::toJson(m_LogoSrc); } - if(m_LogoSrc100px.has_value()) - { + if(m_LogoSrc100pxIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px.get()); + val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px); } if(m_FooterUnsubscribeURLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("footerUnsubscribeURL"))] = ModelBase::toJson(m_FooterUnsubscribeURL); } if(m_DisableUnsubscribeLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableUnsubscribeLinks"))] = ModelBase::toJson(m_DisableUnsubscribeLinks); } @@ -315,29 +327,29 @@ void APIDomainConfiguration::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); } - if(m_EmailFromName.has_value()) + if(m_EmailFromNameIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailFromName")), m_EmailFromName.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailFromName")), m_EmailFromName)); } - if(m_EmailFromEmail.has_value()) + if(m_EmailFromEmailIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailFromEmail")), m_EmailFromEmail.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailFromEmail")), m_EmailFromEmail)); } if(m_EmailHeadersIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailHeaders")), m_EmailHeaders)); } - if(m_WpSyncToken.has_value()) + if(m_WpSyncTokenIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wpSyncToken")), m_WpSyncToken.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wpSyncToken")), m_WpSyncToken)); } if(m_WpSyncedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wpSynced")), m_WpSynced)); } - if(m_WpURL.has_value()) + if(m_WpURLIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wpURL")), m_WpURL.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wpURL")), m_WpURL)); } if(m_CreatedAtIsSet) { @@ -351,13 +363,13 @@ void APIDomainConfiguration::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("siteType")), m_SiteType)); } - if(m_LogoSrc.has_value()) + if(m_LogoSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logoSrc")), m_LogoSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logoSrc")), m_LogoSrc)); } - if(m_LogoSrc100px.has_value()) + if(m_LogoSrc100pxIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logoSrc100px")), m_LogoSrc100px.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logoSrc100px")), m_LogoSrc100px)); } if(m_FooterUnsubscribeURLIsSet) { @@ -516,43 +528,45 @@ void APIDomainConfiguration::unsetDomain() } utility::string_t APIDomainConfiguration::getEmailFromName() const { - return m_EmailFromName.get(); + return m_EmailFromName; } void APIDomainConfiguration::setEmailFromName(const utility::string_t& value) { m_EmailFromName = value; + m_EmailFromNameIsSet = true; } bool APIDomainConfiguration::emailFromNameIsSet() const { - return m_EmailFromName.has_value(); + return m_EmailFromNameIsSet; } void APIDomainConfiguration::unsetEmailFromName() { - m_EmailFromName.reset(); + m_EmailFromNameIsSet = false; } utility::string_t APIDomainConfiguration::getEmailFromEmail() const { - return m_EmailFromEmail.get(); + return m_EmailFromEmail; } void APIDomainConfiguration::setEmailFromEmail(const utility::string_t& value) { m_EmailFromEmail = value; + m_EmailFromEmailIsSet = true; } bool APIDomainConfiguration::emailFromEmailIsSet() const { - return m_EmailFromEmail.has_value(); + return m_EmailFromEmailIsSet; } void APIDomainConfiguration::unsetEmailFromEmail() { - m_EmailFromEmail.reset(); + m_EmailFromEmailIsSet = false; } std::map APIDomainConfiguration::getEmailHeaders() const { @@ -577,23 +591,24 @@ void APIDomainConfiguration::unsetEmailHeaders() } utility::string_t APIDomainConfiguration::getWpSyncToken() const { - return m_WpSyncToken.get(); + return m_WpSyncToken; } void APIDomainConfiguration::setWpSyncToken(const utility::string_t& value) { m_WpSyncToken = value; + m_WpSyncTokenIsSet = true; } bool APIDomainConfiguration::wpSyncTokenIsSet() const { - return m_WpSyncToken.has_value(); + return m_WpSyncTokenIsSet; } void APIDomainConfiguration::unsetWpSyncToken() { - m_WpSyncToken.reset(); + m_WpSyncTokenIsSet = false; } bool APIDomainConfiguration::isWpSynced() const { @@ -617,23 +632,24 @@ void APIDomainConfiguration::unsetWpSynced() } utility::string_t APIDomainConfiguration::getWpURL() const { - return m_WpURL.get(); + return m_WpURL; } void APIDomainConfiguration::setWpURL(const utility::string_t& value) { m_WpURL = value; + m_WpURLIsSet = true; } bool APIDomainConfiguration::wpURLIsSet() const { - return m_WpURL.has_value(); + return m_WpURLIsSet; } void APIDomainConfiguration::unsetWpURL() { - m_WpURL.reset(); + m_WpURLIsSet = false; } utility::datetime APIDomainConfiguration::getCreatedAt() const { @@ -700,43 +716,45 @@ void APIDomainConfiguration::unsetSiteType() } utility::string_t APIDomainConfiguration::getLogoSrc() const { - return m_LogoSrc.get(); + return m_LogoSrc; } void APIDomainConfiguration::setLogoSrc(const utility::string_t& value) { m_LogoSrc = value; + m_LogoSrcIsSet = true; } bool APIDomainConfiguration::logoSrcIsSet() const { - return m_LogoSrc.has_value(); + return m_LogoSrcIsSet; } void APIDomainConfiguration::unsetLogoSrc() { - m_LogoSrc.reset(); + m_LogoSrcIsSet = false; } utility::string_t APIDomainConfiguration::getLogoSrc100px() const { - return m_LogoSrc100px.get(); + return m_LogoSrc100px; } void APIDomainConfiguration::setLogoSrc100px(const utility::string_t& value) { m_LogoSrc100px = value; + m_LogoSrc100pxIsSet = true; } bool APIDomainConfiguration::logoSrc100pxIsSet() const { - return m_LogoSrc100px.has_value(); + return m_LogoSrc100pxIsSet; } void APIDomainConfiguration::unsetLogoSrc100px() { - m_LogoSrc100px.reset(); + m_LogoSrc100pxIsSet = false; } utility::string_t APIDomainConfiguration::getFooterUnsubscribeURL() const { diff --git a/client/src/model/APIEmptyResponse.cpp b/client/src/model/APIEmptyResponse.cpp index 3d8317f..1dd5c95 100644 --- a/client/src/model/APIEmptyResponse.cpp +++ b/client/src/model/APIEmptyResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value APIEmptyResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/APIEmptySuccessResponse.cpp b/client/src/model/APIEmptySuccessResponse.cpp index 0596443..e69d04d 100644 --- a/client/src/model/APIEmptySuccessResponse.cpp +++ b/client/src/model/APIEmptySuccessResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value APIEmptySuccessResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/APIError.cpp b/client/src/model/APIError.cpp index 52890c9..5fa8454 100644 --- a/client/src/model/APIError.cpp +++ b/client/src/model/APIError.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -49,42 +49,42 @@ web::json::value APIError::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_SecondaryCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); } if(m_BannedUntilIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); } if(m_MaxCharacterLengthIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); } if(m_TranslatedErrorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); } if(m_CustomConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); } diff --git a/client/src/model/APIGetCommentResponse.cpp b/client/src/model/APIGetCommentResponse.cpp index 7ee6a7c..2b1cc3d 100644 --- a/client/src/model/APIGetCommentResponse.cpp +++ b/client/src/model/APIGetCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value APIGetCommentResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } diff --git a/client/src/model/APIGetCommentsResponse.cpp b/client/src/model/APIGetCommentsResponse.cpp index 0a9fcdb..d275530 100644 --- a/client/src/model/APIGetCommentsResponse.cpp +++ b/client/src/model/APIGetCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value APIGetCommentsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); } diff --git a/client/src/model/APIGetUserBadgeProgressListResponse.cpp b/client/src/model/APIGetUserBadgeProgressListResponse.cpp index ce711bd..d3f5ee7 100644 --- a/client/src/model/APIGetUserBadgeProgressListResponse.cpp +++ b/client/src/model/APIGetUserBadgeProgressListResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value APIGetUserBadgeProgressListResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserBadgeProgressesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses"))] = ModelBase::toJson(m_UserBadgeProgresses); } diff --git a/client/src/model/APIGetUserBadgeProgressResponse.cpp b/client/src/model/APIGetUserBadgeProgressResponse.cpp index 3dc17de..f60dea0 100644 --- a/client/src/model/APIGetUserBadgeProgressResponse.cpp +++ b/client/src/model/APIGetUserBadgeProgressResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value APIGetUserBadgeProgressResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserBadgeProgressIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))] = ModelBase::toJson(m_UserBadgeProgress); } diff --git a/client/src/model/APIGetUserBadgeResponse.cpp b/client/src/model/APIGetUserBadgeResponse.cpp index 04f043e..57823f5 100644 --- a/client/src/model/APIGetUserBadgeResponse.cpp +++ b/client/src/model/APIGetUserBadgeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value APIGetUserBadgeResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserBadgeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userBadge"))] = ModelBase::toJson(m_UserBadge); } diff --git a/client/src/model/APIGetUserBadgesResponse.cpp b/client/src/model/APIGetUserBadgesResponse.cpp index f099ace..c873220 100644 --- a/client/src/model/APIGetUserBadgesResponse.cpp +++ b/client/src/model/APIGetUserBadgesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value APIGetUserBadgesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserBadgesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userBadges"))] = ModelBase::toJson(m_UserBadges); } diff --git a/client/src/model/APIModerateGetUserBanPreferencesResponse.cpp b/client/src/model/APIModerateGetUserBanPreferencesResponse.cpp new file mode 100644 index 0000000..9c6f67a --- /dev/null +++ b/client/src/model/APIModerateGetUserBanPreferencesResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +APIModerateGetUserBanPreferencesResponse::APIModerateGetUserBanPreferencesResponse() +{ + m_PreferencesIsSet = false; + m_StatusIsSet = false; +} + +APIModerateGetUserBanPreferencesResponse::~APIModerateGetUserBanPreferencesResponse() +{ +} + +void APIModerateGetUserBanPreferencesResponse::validate() +{ + // TODO: implement validation +} + +web::json::value APIModerateGetUserBanPreferencesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_PreferencesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("preferences"))] = ModelBase::toJson(m_Preferences); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool APIModerateGetUserBanPreferencesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("preferences")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("preferences"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setPreferences; + ok &= ModelBase::fromJson(fieldValue, refVal_setPreferences); + setPreferences(refVal_setPreferences); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void APIModerateGetUserBanPreferencesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_PreferencesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("preferences")), m_Preferences)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool APIModerateGetUserBanPreferencesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("preferences")))) + { + std::shared_ptr refVal_setPreferences; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("preferences"))), refVal_setPreferences ); + setPreferences(refVal_setPreferences); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::shared_ptr APIModerateGetUserBanPreferencesResponse::getPreferences() const +{ + return m_Preferences; +} + + +void APIModerateGetUserBanPreferencesResponse::setPreferences(const std::shared_ptr& value) +{ + m_Preferences = value; + m_PreferencesIsSet = true; +} + +bool APIModerateGetUserBanPreferencesResponse::preferencesIsSet() const +{ + return m_PreferencesIsSet; +} + +void APIModerateGetUserBanPreferencesResponse::unsetPreferences() +{ + m_PreferencesIsSet = false; +} +std::shared_ptr APIModerateGetUserBanPreferencesResponse::getStatus() const +{ + return m_Status; +} + + +void APIModerateGetUserBanPreferencesResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool APIModerateGetUserBanPreferencesResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void APIModerateGetUserBanPreferencesResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/APIModerateUserBanPreferences.cpp b/client/src/model/APIModerateUserBanPreferences.cpp new file mode 100644 index 0000000..4787b16 --- /dev/null +++ b/client/src/model/APIModerateUserBanPreferences.cpp @@ -0,0 +1,269 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/APIModerateUserBanPreferences.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +APIModerateUserBanPreferences::APIModerateUserBanPreferences() +{ + m_ShouldBanEmail = false; + m_ShouldBanEmailIsSet = false; + m_ShouldBanByIP = false; + m_ShouldBanByIPIsSet = false; + m_LastBanType = utility::conversions::to_string_t(""); + m_LastBanTypeIsSet = false; + m_LastBanDuration = utility::conversions::to_string_t(""); + m_LastBanDurationIsSet = false; +} + +APIModerateUserBanPreferences::~APIModerateUserBanPreferences() +{ +} + +void APIModerateUserBanPreferences::validate() +{ + // TODO: implement validation +} + +web::json::value APIModerateUserBanPreferences::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ShouldBanEmailIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("shouldBanEmail"))] = ModelBase::toJson(m_ShouldBanEmail); + } + if(m_ShouldBanByIPIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("shouldBanByIP"))] = ModelBase::toJson(m_ShouldBanByIP); + } + if(m_LastBanTypeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("lastBanType"))] = ModelBase::toJson(m_LastBanType); + } + if(m_LastBanDurationIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("lastBanDuration"))] = ModelBase::toJson(m_LastBanDuration); + } + + return val; +} + +bool APIModerateUserBanPreferences::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("shouldBanEmail")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("shouldBanEmail"))); + if(!fieldValue.is_null()) + { + bool refVal_setShouldBanEmail; + ok &= ModelBase::fromJson(fieldValue, refVal_setShouldBanEmail); + setShouldBanEmail(refVal_setShouldBanEmail); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("shouldBanByIP")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("shouldBanByIP"))); + if(!fieldValue.is_null()) + { + bool refVal_setShouldBanByIP; + ok &= ModelBase::fromJson(fieldValue, refVal_setShouldBanByIP); + setShouldBanByIP(refVal_setShouldBanByIP); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("lastBanType")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("lastBanType"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setLastBanType; + ok &= ModelBase::fromJson(fieldValue, refVal_setLastBanType); + setLastBanType(refVal_setLastBanType); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("lastBanDuration")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("lastBanDuration"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setLastBanDuration; + ok &= ModelBase::fromJson(fieldValue, refVal_setLastBanDuration); + setLastBanDuration(refVal_setLastBanDuration); + + } + } + return ok; +} + +void APIModerateUserBanPreferences::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ShouldBanEmailIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("shouldBanEmail")), m_ShouldBanEmail)); + } + if(m_ShouldBanByIPIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("shouldBanByIP")), m_ShouldBanByIP)); + } + if(m_LastBanTypeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastBanType")), m_LastBanType)); + } + if(m_LastBanDurationIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastBanDuration")), m_LastBanDuration)); + } +} + +bool APIModerateUserBanPreferences::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("shouldBanEmail")))) + { + bool refVal_setShouldBanEmail; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("shouldBanEmail"))), refVal_setShouldBanEmail ); + setShouldBanEmail(refVal_setShouldBanEmail); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("shouldBanByIP")))) + { + bool refVal_setShouldBanByIP; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("shouldBanByIP"))), refVal_setShouldBanByIP ); + setShouldBanByIP(refVal_setShouldBanByIP); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("lastBanType")))) + { + utility::string_t refVal_setLastBanType; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("lastBanType"))), refVal_setLastBanType ); + setLastBanType(refVal_setLastBanType); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("lastBanDuration")))) + { + utility::string_t refVal_setLastBanDuration; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("lastBanDuration"))), refVal_setLastBanDuration ); + setLastBanDuration(refVal_setLastBanDuration); + } + return ok; +} + + +bool APIModerateUserBanPreferences::isShouldBanEmail() const +{ + return m_ShouldBanEmail; +} + +void APIModerateUserBanPreferences::setShouldBanEmail(bool value) +{ + m_ShouldBanEmail = value; + m_ShouldBanEmailIsSet = true; +} + +bool APIModerateUserBanPreferences::shouldBanEmailIsSet() const +{ + return m_ShouldBanEmailIsSet; +} + +void APIModerateUserBanPreferences::unsetShouldBanEmail() +{ + m_ShouldBanEmailIsSet = false; +} +bool APIModerateUserBanPreferences::isShouldBanByIP() const +{ + return m_ShouldBanByIP; +} + +void APIModerateUserBanPreferences::setShouldBanByIP(bool value) +{ + m_ShouldBanByIP = value; + m_ShouldBanByIPIsSet = true; +} + +bool APIModerateUserBanPreferences::shouldBanByIPIsSet() const +{ + return m_ShouldBanByIPIsSet; +} + +void APIModerateUserBanPreferences::unsetShouldBanByIP() +{ + m_ShouldBanByIPIsSet = false; +} +utility::string_t APIModerateUserBanPreferences::getLastBanType() const +{ + return m_LastBanType; +} + + +void APIModerateUserBanPreferences::setLastBanType(const utility::string_t& value) +{ + m_LastBanType = value; + m_LastBanTypeIsSet = true; +} + +bool APIModerateUserBanPreferences::lastBanTypeIsSet() const +{ + return m_LastBanTypeIsSet; +} + +void APIModerateUserBanPreferences::unsetLastBanType() +{ + m_LastBanTypeIsSet = false; +} +utility::string_t APIModerateUserBanPreferences::getLastBanDuration() const +{ + return m_LastBanDuration; +} + + +void APIModerateUserBanPreferences::setLastBanDuration(const utility::string_t& value) +{ + m_LastBanDuration = value; + m_LastBanDurationIsSet = true; +} + +bool APIModerateUserBanPreferences::lastBanDurationIsSet() const +{ + return m_LastBanDurationIsSet; +} + +void APIModerateUserBanPreferences::unsetLastBanDuration() +{ + m_LastBanDurationIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/APIPage.cpp b/client/src/model/APIPage.cpp index 6066c02..9915339 100644 --- a/client/src/model/APIPage.cpp +++ b/client/src/model/APIPage.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -52,47 +52,47 @@ web::json::value APIPage::toJson() const { web::json::value val = web::json::value::object(); if(m_IsClosedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isClosed"))] = ModelBase::toJson(m_IsClosed); } if(m_AccessibleByGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("accessibleByGroupIds"))] = ModelBase::toJson(m_AccessibleByGroupIds); } if(m_RootCommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("rootCommentCount"))] = ModelBase::toJson(m_RootCommentCount); } if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } diff --git a/client/src/model/APISSOUser.cpp b/client/src/model/APISSOUser.cpp index 4fa5d56..f2f2231 100644 --- a/client/src/model/APISSOUser.cpp +++ b/client/src/model/APISSOUser.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -74,102 +74,102 @@ web::json::value APISSOUser::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_CreatedFromUrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId"))] = ModelBase::toJson(m_CreatedFromUrlId); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_AvatarSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_OptedInSubscriptionNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInSubscriptionNotifications"))] = ModelBase::toJson(m_OptedInSubscriptionNotifications); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsProfileActivityPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileActivityPrivate"))] = ModelBase::toJson(m_IsProfileActivityPrivate); } if(m_IsProfileCommentsPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileCommentsPrivate"))] = ModelBase::toJson(m_IsProfileCommentsPrivate); } if(m_IsProfileDMDisabledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileDMDisabled"))] = ModelBase::toJson(m_IsProfileDMDisabled); } if(m_HasBlockedUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBlockedUsers"))] = ModelBase::toJson(m_HasBlockedUsers); } if(m_GroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); } diff --git a/client/src/model/SaveCommentResponse.cpp b/client/src/model/APISaveCommentResponse.cpp similarity index 73% rename from client/src/model/SaveCommentResponse.cpp rename to client/src/model/APISaveCommentResponse.cpp index 9b1382c..62dbc06 100644 --- a/client/src/model/SaveCommentResponse.cpp +++ b/client/src/model/APISaveCommentResponse.cpp @@ -4,56 +4,57 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/SaveCommentResponse.h" +#include "FastCommentsClient/model/APISaveCommentResponse.h" namespace org { namespace openapitools { namespace client { namespace model { -SaveCommentResponse::SaveCommentResponse() +APISaveCommentResponse::APISaveCommentResponse() { m_StatusIsSet = false; m_CommentIsSet = false; + m_UserIsSet = false; m_ModuleDataIsSet = false; } -SaveCommentResponse::~SaveCommentResponse() +APISaveCommentResponse::~APISaveCommentResponse() { } -void SaveCommentResponse::validate() +void APISaveCommentResponse::validate() { // TODO: implement validation } -web::json::value SaveCommentResponse::toJson() const +web::json::value APISaveCommentResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_User.has_value()) - { + if(m_UserIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_ModuleDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); } @@ -61,7 +62,7 @@ web::json::value SaveCommentResponse::toJson() const return val; } -bool SaveCommentResponse::fromJson(const web::json::value& val) +bool APISaveCommentResponse::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) @@ -80,7 +81,7 @@ bool SaveCommentResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); if(!fieldValue.is_null()) { - std::shared_ptr refVal_setComment; + std::shared_ptr refVal_setComment; ok &= ModelBase::fromJson(fieldValue, refVal_setComment); setComment(refVal_setComment); @@ -111,7 +112,7 @@ bool SaveCommentResponse::fromJson(const web::json::value& val) return ok; } -void SaveCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void APISaveCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) @@ -126,9 +127,9 @@ void SaveCommentResponse::toMultipart(std::shared_ptr multipa { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_User.has_value()) + if(m_UserIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); } if(m_ModuleDataIsSet) { @@ -136,7 +137,7 @@ void SaveCommentResponse::toMultipart(std::shared_ptr multipa } } -bool SaveCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool APISaveCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -153,7 +154,7 @@ bool SaveCommentResponse::fromMultiPart(std::shared_ptr multi } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) { - std::shared_ptr refVal_setComment; + std::shared_ptr refVal_setComment; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); setComment(refVal_setComment); } @@ -173,86 +174,87 @@ bool SaveCommentResponse::fromMultiPart(std::shared_ptr multi } -std::shared_ptr SaveCommentResponse::getStatus() const +std::shared_ptr APISaveCommentResponse::getStatus() const { return m_Status; } -void SaveCommentResponse::setStatus(const std::shared_ptr& value) +void APISaveCommentResponse::setStatus(const std::shared_ptr& value) { m_Status = value; m_StatusIsSet = true; } -bool SaveCommentResponse::statusIsSet() const +bool APISaveCommentResponse::statusIsSet() const { return m_StatusIsSet; } -void SaveCommentResponse::unsetStatus() +void APISaveCommentResponse::unsetStatus() { m_StatusIsSet = false; } -std::shared_ptr SaveCommentResponse::getComment() const +std::shared_ptr APISaveCommentResponse::getComment() const { return m_Comment; } -void SaveCommentResponse::setComment(const std::shared_ptr& value) +void APISaveCommentResponse::setComment(const std::shared_ptr& value) { m_Comment = value; m_CommentIsSet = true; } -bool SaveCommentResponse::commentIsSet() const +bool APISaveCommentResponse::commentIsSet() const { return m_CommentIsSet; } -void SaveCommentResponse::unsetComment() +void APISaveCommentResponse::unsetComment() { m_CommentIsSet = false; } -std::shared_ptr SaveCommentResponse::getUser() const +std::shared_ptr APISaveCommentResponse::getUser() const { - return m_User.get(); + return m_User; } -void SaveCommentResponse::setUser(const std::shared_ptr& value) +void APISaveCommentResponse::setUser(const std::shared_ptr& value) { m_User = value; + m_UserIsSet = true; } -bool SaveCommentResponse::userIsSet() const +bool APISaveCommentResponse::userIsSet() const { - return m_User.has_value(); + return m_UserIsSet; } -void SaveCommentResponse::unsetUser() +void APISaveCommentResponse::unsetUser() { - m_User.reset(); + m_UserIsSet = false; } -std::map> SaveCommentResponse::getModuleData() const +std::map> APISaveCommentResponse::getModuleData() const { return m_ModuleData; } -void SaveCommentResponse::setModuleData(const std::map>& value) +void APISaveCommentResponse::setModuleData(const std::map>& value) { m_ModuleData = value; m_ModuleDataIsSet = true; } -bool SaveCommentResponse::moduleDataIsSet() const +bool APISaveCommentResponse::moduleDataIsSet() const { return m_ModuleDataIsSet; } -void SaveCommentResponse::unsetModuleData() +void APISaveCommentResponse::unsetModuleData() { m_ModuleDataIsSet = false; } diff --git a/client/src/model/APIStatus.cpp b/client/src/model/APIStatus.cpp index 5f05012..9174c3f 100644 --- a/client/src/model/APIStatus.cpp +++ b/client/src/model/APIStatus.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APITenant.cpp b/client/src/model/APITenant.cpp index 792d989..f39d5b6 100644 --- a/client/src/model/APITenant.cpp +++ b/client/src/model/APITenant.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -56,6 +56,8 @@ APITenant::APITenant() m_LastBillingIssueReminderDateIsSet = false; m_RemoveUnverifiedComments = false; m_RemoveUnverifiedCommentsIsSet = false; + m_UnverifiedCommentsTTLms = 0.0; + m_UnverifiedCommentsTTLmsIsSet = false; m_CommentsRequireApproval = false; m_CommentsRequireApprovalIsSet = false; m_AutoApproveCommentOnVerification = false; @@ -86,142 +88,142 @@ web::json::value APITenant::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_PackageIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("packageId"))] = ModelBase::toJson(m_PackageId); } if(m_PaymentFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("paymentFrequency"))] = ModelBase::toJson(m_PaymentFrequency); } if(m_BillingInfoValidIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingInfoValid"))] = ModelBase::toJson(m_BillingInfoValid); } if(m_BillingHandledExternallyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingHandledExternally"))] = ModelBase::toJson(m_BillingHandledExternally); } if(m_CreatedByIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdBy"))] = ModelBase::toJson(m_CreatedBy); } if(m_IsSetupIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSetup"))] = ModelBase::toJson(m_IsSetup); } if(m_DomainConfigurationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domainConfiguration"))] = ModelBase::toJson(m_DomainConfiguration); } if(m_BillingInfoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingInfo"))] = ModelBase::toJson(m_BillingInfo); } if(m_StripeCustomerIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripeCustomerId"))] = ModelBase::toJson(m_StripeCustomerId); } if(m_StripeSubscriptionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripeSubscriptionId"))] = ModelBase::toJson(m_StripeSubscriptionId); } if(m_StripePlanIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripePlanId"))] = ModelBase::toJson(m_StripePlanId); } if(m_EnableProfanityFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableProfanityFilter"))] = ModelBase::toJson(m_EnableProfanityFilter); } if(m_EnableSpamFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSpamFilter"))] = ModelBase::toJson(m_EnableSpamFilter); } if(m_LastBillingIssueReminderDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastBillingIssueReminderDate"))] = ModelBase::toJson(m_LastBillingIssueReminderDate); } if(m_RemoveUnverifiedCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("removeUnverifiedComments"))] = ModelBase::toJson(m_RemoveUnverifiedComments); } - if(m_UnverifiedCommentsTTLms.has_value()) - { + if(m_UnverifiedCommentsTTLmsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("unverifiedCommentsTTLms"))] = ModelBase::toJson(m_UnverifiedCommentsTTLms.get()); + val[utility::conversions::to_string_t(_XPLATSTR("unverifiedCommentsTTLms"))] = ModelBase::toJson(m_UnverifiedCommentsTTLms); } if(m_CommentsRequireApprovalIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentsRequireApproval"))] = ModelBase::toJson(m_CommentsRequireApproval); } if(m_AutoApproveCommentOnVerificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoApproveCommentOnVerification"))] = ModelBase::toJson(m_AutoApproveCommentOnVerification); } if(m_SendProfaneToSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sendProfaneToSpam"))] = ModelBase::toJson(m_SendProfaneToSpam); } if(m_HasFlexPricingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasFlexPricing"))] = ModelBase::toJson(m_HasFlexPricing); } if(m_HasAuditingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasAuditing"))] = ModelBase::toJson(m_HasAuditing); } if(m_FlexLastBilledAmountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexLastBilledAmount"))] = ModelBase::toJson(m_FlexLastBilledAmount); } if(m_DeAnonIpAddrIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("deAnonIpAddr"))] = ModelBase::toJson(m_DeAnonIpAddr); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } @@ -626,9 +628,9 @@ void APITenant::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("removeUnverifiedComments")), m_RemoveUnverifiedComments)); } - if(m_UnverifiedCommentsTTLms.has_value()) + if(m_UnverifiedCommentsTTLmsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("unverifiedCommentsTTLms")), m_UnverifiedCommentsTTLms.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("unverifiedCommentsTTLms")), m_UnverifiedCommentsTTLms)); } if(m_CommentsRequireApprovalIsSet) { @@ -1238,22 +1240,23 @@ void APITenant::unsetRemoveUnverifiedComments() } double APITenant::getUnverifiedCommentsTTLms() const { - return m_UnverifiedCommentsTTLms.get(); + return m_UnverifiedCommentsTTLms; } void APITenant::setUnverifiedCommentsTTLms(double value) { m_UnverifiedCommentsTTLms = value; + m_UnverifiedCommentsTTLmsIsSet = true; } bool APITenant::unverifiedCommentsTTLmsIsSet() const { - return m_UnverifiedCommentsTTLms.has_value(); + return m_UnverifiedCommentsTTLmsIsSet; } void APITenant::unsetUnverifiedCommentsTTLms() { - m_UnverifiedCommentsTTLms.reset(); + m_UnverifiedCommentsTTLmsIsSet = false; } bool APITenant::isCommentsRequireApproval() const { diff --git a/client/src/model/APITenantDailyUsage.cpp b/client/src/model/APITenantDailyUsage.cpp index f0b0407..ae4dd4e 100644 --- a/client/src/model/APITenantDailyUsage.cpp +++ b/client/src/model/APITenantDailyUsage.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -73,97 +73,97 @@ web::json::value APITenantDailyUsage::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_YearNumberIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("yearNumber"))] = ModelBase::toJson(m_YearNumber); } if(m_MonthNumberIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("monthNumber"))] = ModelBase::toJson(m_MonthNumber); } if(m_DayNumberIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("dayNumber"))] = ModelBase::toJson(m_DayNumber); } if(m_CommentFetchCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentFetchCount"))] = ModelBase::toJson(m_CommentFetchCount); } if(m_CommentCreateCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCreateCount"))] = ModelBase::toJson(m_CommentCreateCount); } if(m_ConversationCreateCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("conversationCreateCount"))] = ModelBase::toJson(m_ConversationCreateCount); } if(m_VoteCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("voteCount"))] = ModelBase::toJson(m_VoteCount); } if(m_AccountCreatedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("accountCreatedCount"))] = ModelBase::toJson(m_AccountCreatedCount); } if(m_UserMentionSearchIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userMentionSearch"))] = ModelBase::toJson(m_UserMentionSearch); } if(m_HashTagSearchIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTagSearch"))] = ModelBase::toJson(m_HashTagSearch); } if(m_GifSearchTrendingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("gifSearchTrending"))] = ModelBase::toJson(m_GifSearchTrending); } if(m_GifSearchIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("gifSearch"))] = ModelBase::toJson(m_GifSearch); } if(m_ApiCreditsUsedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("apiCreditsUsed"))] = ModelBase::toJson(m_ApiCreditsUsed); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_BilledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billed"))] = ModelBase::toJson(m_Billed); } if(m_IgnoredIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ignored"))] = ModelBase::toJson(m_Ignored); } if(m_ApiErrorCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("apiErrorCount"))] = ModelBase::toJson(m_ApiErrorCount); } diff --git a/client/src/model/APITicket.cpp b/client/src/model/APITicket.cpp index 7698a40..58513a1 100644 --- a/client/src/model/APITicket.cpp +++ b/client/src/model/APITicket.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -52,47 +52,47 @@ web::json::value APITicket::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_ManagedByTenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("managedByTenantId"))] = ModelBase::toJson(m_ManagedByTenantId); } if(m_AssignedUserIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("assignedUserIds"))] = ModelBase::toJson(m_AssignedUserIds); } if(m_SubjectIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subject"))] = ModelBase::toJson(m_Subject); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_StateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("state"))] = ModelBase::toJson(m_State); } if(m_FileCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fileCount"))] = ModelBase::toJson(m_FileCount); } diff --git a/client/src/model/APITicketDetail.cpp b/client/src/model/APITicketDetail.cpp index ba2b86f..6087b24 100644 --- a/client/src/model/APITicketDetail.cpp +++ b/client/src/model/APITicketDetail.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,6 +38,12 @@ APITicketDetail::APITicketDetail() m_FileCount = 0; m_FileCountIsSet = false; m_FilesIsSet = false; + m_ReopenedAt = utility::conversions::to_string_t(""); + m_ReopenedAtIsSet = false; + m_ResolvedAt = utility::conversions::to_string_t(""); + m_ResolvedAtIsSet = false; + m_AckAt = utility::conversions::to_string_t(""); + m_AckAtIsSet = false; } APITicketDetail::~APITicketDetail() @@ -53,69 +59,69 @@ web::json::value APITicketDetail::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_ManagedByTenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("managedByTenantId"))] = ModelBase::toJson(m_ManagedByTenantId); } if(m_AssignedUserIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("assignedUserIds"))] = ModelBase::toJson(m_AssignedUserIds); } if(m_SubjectIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subject"))] = ModelBase::toJson(m_Subject); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_StateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("state"))] = ModelBase::toJson(m_State); } if(m_FileCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fileCount"))] = ModelBase::toJson(m_FileCount); } if(m_FilesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("files"))] = ModelBase::toJson(m_Files); } - if(m_ReopenedAt.has_value()) - { + if(m_ReopenedAtIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("reopenedAt"))] = ModelBase::toJson(m_ReopenedAt.get()); + val[utility::conversions::to_string_t(_XPLATSTR("reopenedAt"))] = ModelBase::toJson(m_ReopenedAt); } - if(m_ResolvedAt.has_value()) - { + if(m_ResolvedAtIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("resolvedAt"))] = ModelBase::toJson(m_ResolvedAt.get()); + val[utility::conversions::to_string_t(_XPLATSTR("resolvedAt"))] = ModelBase::toJson(m_ResolvedAt); } - if(m_AckAt.has_value()) - { + if(m_AckAtIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("ackAt"))] = ModelBase::toJson(m_AckAt.get()); + val[utility::conversions::to_string_t(_XPLATSTR("ackAt"))] = ModelBase::toJson(m_AckAt); } return val; @@ -317,17 +323,17 @@ void APITicketDetail::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("files")), m_Files)); } - if(m_ReopenedAt.has_value()) + if(m_ReopenedAtIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reopenedAt")), m_ReopenedAt.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reopenedAt")), m_ReopenedAt)); } - if(m_ResolvedAt.has_value()) + if(m_ResolvedAtIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("resolvedAt")), m_ResolvedAt.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("resolvedAt")), m_ResolvedAt)); } - if(m_AckAt.has_value()) + if(m_AckAtIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ackAt")), m_AckAt.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ackAt")), m_AckAt)); } } @@ -632,63 +638,66 @@ void APITicketDetail::unsetFiles() } utility::string_t APITicketDetail::getReopenedAt() const { - return m_ReopenedAt.get(); + return m_ReopenedAt; } void APITicketDetail::setReopenedAt(const utility::string_t& value) { m_ReopenedAt = value; + m_ReopenedAtIsSet = true; } bool APITicketDetail::reopenedAtIsSet() const { - return m_ReopenedAt.has_value(); + return m_ReopenedAtIsSet; } void APITicketDetail::unsetReopenedAt() { - m_ReopenedAt.reset(); + m_ReopenedAtIsSet = false; } utility::string_t APITicketDetail::getResolvedAt() const { - return m_ResolvedAt.get(); + return m_ResolvedAt; } void APITicketDetail::setResolvedAt(const utility::string_t& value) { m_ResolvedAt = value; + m_ResolvedAtIsSet = true; } bool APITicketDetail::resolvedAtIsSet() const { - return m_ResolvedAt.has_value(); + return m_ResolvedAtIsSet; } void APITicketDetail::unsetResolvedAt() { - m_ResolvedAt.reset(); + m_ResolvedAtIsSet = false; } utility::string_t APITicketDetail::getAckAt() const { - return m_AckAt.get(); + return m_AckAt; } void APITicketDetail::setAckAt(const utility::string_t& value) { m_AckAt = value; + m_AckAtIsSet = true; } bool APITicketDetail::ackAtIsSet() const { - return m_AckAt.has_value(); + return m_AckAtIsSet; } void APITicketDetail::unsetAckAt() { - m_AckAt.reset(); + m_AckAtIsSet = false; } } diff --git a/client/src/model/APITicketFile.cpp b/client/src/model/APITicketFile.cpp index f3155b8..22e058b 100644 --- a/client/src/model/APITicketFile.cpp +++ b/client/src/model/APITicketFile.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -55,52 +55,52 @@ web::json::value APITicketFile::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_S3KeyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("s3Key"))] = ModelBase::toJson(m_S3Key); } if(m_OriginalFileNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("originalFileName"))] = ModelBase::toJson(m_OriginalFileName); } if(m_SizeBytesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sizeBytes"))] = ModelBase::toJson(m_SizeBytes); } if(m_ContentTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("contentType"))] = ModelBase::toJson(m_ContentType); } if(m_UploadedByUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("uploadedByUserId"))] = ModelBase::toJson(m_UploadedByUserId); } if(m_UploadedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("uploadedAt"))] = ModelBase::toJson(m_UploadedAt); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_ExpiresAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("expiresAt"))] = ModelBase::toJson(m_ExpiresAt); } if(m_ExpiredIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("expired"))] = ModelBase::toJson(m_Expired); } diff --git a/client/src/model/APIUserSubscription.cpp b/client/src/model/APIUserSubscription.cpp index 54844a2..963203c 100644 --- a/client/src/model/APIUserSubscription.cpp +++ b/client/src/model/APIUserSubscription.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -51,42 +51,42 @@ web::json::value APIUserSubscription::toJson() const { web::json::value val = web::json::value::object(); if(m_NotificationFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationFrequency"))] = ModelBase::toJson(m_NotificationFrequency); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_PageTitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_AnonUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } diff --git a/client/src/model/AddDomainConfigParams.cpp b/client/src/model/AddDomainConfigParams.cpp index cf6b94b..bffd3c0 100644 --- a/client/src/model/AddDomainConfigParams.cpp +++ b/client/src/model/AddDomainConfigParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -48,37 +48,37 @@ web::json::value AddDomainConfigParams::toJson() const { web::json::value val = web::json::value::object(); if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_EmailFromNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailFromName"))] = ModelBase::toJson(m_EmailFromName); } if(m_EmailFromEmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailFromEmail"))] = ModelBase::toJson(m_EmailFromEmail); } if(m_LogoSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("logoSrc"))] = ModelBase::toJson(m_LogoSrc); } if(m_LogoSrc100pxIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px); } if(m_FooterUnsubscribeURLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("footerUnsubscribeURL"))] = ModelBase::toJson(m_FooterUnsubscribeURL); } if(m_EmailHeadersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailHeaders"))] = ModelBase::toJson(m_EmailHeaders); } diff --git a/client/src/model/GetDomainConfig_200_response.cpp b/client/src/model/AddDomainConfigResponse.cpp similarity index 71% rename from client/src/model/GetDomainConfig_200_response.cpp rename to client/src/model/AddDomainConfigResponse.cpp index 85b211b..1a8598b 100644 --- a/client/src/model/GetDomainConfig_200_response.cpp +++ b/client/src/model/AddDomainConfigResponse.cpp @@ -4,129 +4,123 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/GetDomainConfig_200_response.h" +#include "FastCommentsClient/model/AddDomainConfigResponse.h" namespace org { namespace openapitools { namespace client { namespace model { -GetDomainConfig_200_response::GetDomainConfig_200_response() +AddDomainConfigResponse::AddDomainConfigResponse() { m_Reason = utility::conversions::to_string_t(""); m_ReasonIsSet = false; m_Code = utility::conversions::to_string_t(""); m_CodeIsSet = false; + m_StatusIsSet = false; + m_ConfigurationIsSet = false; } -GetDomainConfig_200_response::~GetDomainConfig_200_response() +AddDomainConfigResponse::~AddDomainConfigResponse() { } -void GetDomainConfig_200_response::validate() +void AddDomainConfigResponse::validate() { // TODO: implement validation } -web::json::value GetDomainConfig_200_response::toJson() const +web::json::value AddDomainConfigResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_Configuration.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration.get()); - } - if(m_Status.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); - } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ConfigurationIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration); + } return val; } -bool GetDomainConfig_200_response::fromJson(const web::json::value& val) +bool AddDomainConfigResponse::fromJson(const web::json::value& val) { bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("configuration")))) + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("configuration"))); + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); if(!fieldValue.is_null()) { - std::shared_ptr refVal_setConfiguration; - ok &= ModelBase::fromJson(fieldValue, refVal_setConfiguration); - setConfiguration(refVal_setConfiguration); + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); if(!fieldValue.is_null()) { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); if(!fieldValue.is_null()) { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("configuration")))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("configuration"))); if(!fieldValue.is_null()) { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); + std::shared_ptr refVal_setConfiguration; + ok &= ModelBase::fromJson(fieldValue, refVal_setConfiguration); + setConfiguration(refVal_setConfiguration); } } return ok; } -void GetDomainConfig_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void AddDomainConfigResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_Configuration.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration.get())); - } - if(m_Status.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); - } if(m_ReasonIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); @@ -135,9 +129,17 @@ void GetDomainConfig_200_response::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ConfigurationIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration)); + } } -bool GetDomainConfig_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool AddDomainConfigResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -146,18 +148,6 @@ bool GetDomainConfig_200_response::fromMultiPart(std::shared_ptrhasContent(utility::conversions::to_string_t(_XPLATSTR("configuration")))) - { - std::shared_ptr refVal_setConfiguration; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("configuration"))), refVal_setConfiguration ); - setConfiguration(refVal_setConfiguration); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) { utility::string_t refVal_setReason; @@ -170,91 +160,105 @@ bool GetDomainConfig_200_response::fromMultiPart(std::shared_ptrgetContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); setCode(refVal_setCode); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("configuration")))) + { + std::shared_ptr refVal_setConfiguration; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("configuration"))), refVal_setConfiguration ); + setConfiguration(refVal_setConfiguration); + } return ok; } -std::shared_ptr GetDomainConfig_200_response::getConfiguration() const +utility::string_t AddDomainConfigResponse::getReason() const { - return m_Configuration.get(); + return m_Reason; } -void GetDomainConfig_200_response::setConfiguration(const std::shared_ptr& value) +void AddDomainConfigResponse::setReason(const utility::string_t& value) { - m_Configuration = value; + m_Reason = value; + m_ReasonIsSet = true; } -bool GetDomainConfig_200_response::configurationIsSet() const +bool AddDomainConfigResponse::reasonIsSet() const { - return m_Configuration.has_value(); + return m_ReasonIsSet; } -void GetDomainConfig_200_response::unsetConfiguration() +void AddDomainConfigResponse::unsetReason() { - m_Configuration.reset(); + m_ReasonIsSet = false; } -std::shared_ptr GetDomainConfig_200_response::getStatus() const +utility::string_t AddDomainConfigResponse::getCode() const { - return m_Status.get(); + return m_Code; } -void GetDomainConfig_200_response::setStatus(const std::shared_ptr& value) +void AddDomainConfigResponse::setCode(const utility::string_t& value) { - m_Status = value; + m_Code = value; + m_CodeIsSet = true; } -bool GetDomainConfig_200_response::statusIsSet() const +bool AddDomainConfigResponse::codeIsSet() const { - return m_Status.has_value(); + return m_CodeIsSet; } -void GetDomainConfig_200_response::unsetStatus() +void AddDomainConfigResponse::unsetCode() { - m_Status.reset(); + m_CodeIsSet = false; } -utility::string_t GetDomainConfig_200_response::getReason() const +std::shared_ptr AddDomainConfigResponse::getStatus() const { - return m_Reason; + return m_Status; } -void GetDomainConfig_200_response::setReason(const utility::string_t& value) +void AddDomainConfigResponse::setStatus(const std::shared_ptr& value) { - m_Reason = value; - m_ReasonIsSet = true; + m_Status = value; + m_StatusIsSet = true; } -bool GetDomainConfig_200_response::reasonIsSet() const +bool AddDomainConfigResponse::statusIsSet() const { - return m_ReasonIsSet; + return m_StatusIsSet; } -void GetDomainConfig_200_response::unsetReason() +void AddDomainConfigResponse::unsetStatus() { - m_ReasonIsSet = false; + m_StatusIsSet = false; } -utility::string_t GetDomainConfig_200_response::getCode() const +std::shared_ptr AddDomainConfigResponse::getConfiguration() const { - return m_Code; + return m_Configuration; } -void GetDomainConfig_200_response::setCode(const utility::string_t& value) +void AddDomainConfigResponse::setConfiguration(const std::shared_ptr& value) { - m_Code = value; - m_CodeIsSet = true; + m_Configuration = value; + m_ConfigurationIsSet = true; } -bool GetDomainConfig_200_response::codeIsSet() const +bool AddDomainConfigResponse::configurationIsSet() const { - return m_CodeIsSet; + return m_ConfigurationIsSet; } -void GetDomainConfig_200_response::unsetCode() +void AddDomainConfigResponse::unsetConfiguration() { - m_CodeIsSet = false; + m_ConfigurationIsSet = false; } } diff --git a/client/src/model/AddDomainConfig_200_response_anyOf.cpp b/client/src/model/AddDomainConfigResponse_anyOf.cpp similarity index 62% rename from client/src/model/AddDomainConfig_200_response_anyOf.cpp rename to client/src/model/AddDomainConfigResponse_anyOf.cpp index 9dada31..6f8c7f1 100644 --- a/client/src/model/AddDomainConfig_200_response_anyOf.cpp +++ b/client/src/model/AddDomainConfigResponse_anyOf.cpp @@ -4,51 +4,53 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/AddDomainConfig_200_response_anyOf.h" +#include "FastCommentsClient/model/AddDomainConfigResponse_anyOf.h" namespace org { namespace openapitools { namespace client { namespace model { -AddDomainConfig_200_response_anyOf::AddDomainConfig_200_response_anyOf() +AddDomainConfigResponse_anyOf::AddDomainConfigResponse_anyOf() { + m_ConfigurationIsSet = false; + m_StatusIsSet = false; } -AddDomainConfig_200_response_anyOf::~AddDomainConfig_200_response_anyOf() +AddDomainConfigResponse_anyOf::~AddDomainConfigResponse_anyOf() { } -void AddDomainConfig_200_response_anyOf::validate() +void AddDomainConfigResponse_anyOf::validate() { // TODO: implement validation } -web::json::value AddDomainConfig_200_response_anyOf::toJson() const +web::json::value AddDomainConfigResponse_anyOf::toJson() const { web::json::value val = web::json::value::object(); - if(m_Configuration.has_value()) - { + if(m_ConfigurationIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration.get()); + val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration); } - if(m_Status.has_value()) - { + if(m_StatusIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } return val; } -bool AddDomainConfig_200_response_anyOf::fromJson(const web::json::value& val) +bool AddDomainConfigResponse_anyOf::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("configuration")))) @@ -76,24 +78,24 @@ bool AddDomainConfig_200_response_anyOf::fromJson(const web::json::value& val) return ok; } -void AddDomainConfig_200_response_anyOf::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void AddDomainConfigResponse_anyOf::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_Configuration.has_value()) + if(m_ConfigurationIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration)); } - if(m_Status.has_value()) + if(m_StatusIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } } -bool AddDomainConfig_200_response_anyOf::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool AddDomainConfigResponse_anyOf::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -118,45 +120,47 @@ bool AddDomainConfig_200_response_anyOf::fromMultiPart(std::shared_ptr AddDomainConfig_200_response_anyOf::getConfiguration() const +std::shared_ptr AddDomainConfigResponse_anyOf::getConfiguration() const { - return m_Configuration.get(); + return m_Configuration; } -void AddDomainConfig_200_response_anyOf::setConfiguration(const std::shared_ptr& value) +void AddDomainConfigResponse_anyOf::setConfiguration(const std::shared_ptr& value) { m_Configuration = value; + m_ConfigurationIsSet = true; } -bool AddDomainConfig_200_response_anyOf::configurationIsSet() const +bool AddDomainConfigResponse_anyOf::configurationIsSet() const { - return m_Configuration.has_value(); + return m_ConfigurationIsSet; } -void AddDomainConfig_200_response_anyOf::unsetConfiguration() +void AddDomainConfigResponse_anyOf::unsetConfiguration() { - m_Configuration.reset(); + m_ConfigurationIsSet = false; } -std::shared_ptr AddDomainConfig_200_response_anyOf::getStatus() const +std::shared_ptr AddDomainConfigResponse_anyOf::getStatus() const { - return m_Status.get(); + return m_Status; } -void AddDomainConfig_200_response_anyOf::setStatus(const std::shared_ptr& value) +void AddDomainConfigResponse_anyOf::setStatus(const std::shared_ptr& value) { m_Status = value; + m_StatusIsSet = true; } -bool AddDomainConfig_200_response_anyOf::statusIsSet() const +bool AddDomainConfigResponse_anyOf::statusIsSet() const { - return m_Status.has_value(); + return m_StatusIsSet; } -void AddDomainConfig_200_response_anyOf::unsetStatus() +void AddDomainConfigResponse_anyOf::unsetStatus() { - m_Status.reset(); + m_StatusIsSet = false; } } diff --git a/client/src/model/AddHashTag_200_response.cpp b/client/src/model/AddHashTag_200_response.cpp deleted file mode 100644 index cadbde1..0000000 --- a/client/src/model/AddHashTag_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/AddHashTag_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -AddHashTag_200_response::AddHashTag_200_response() -{ - m_StatusIsSet = false; - m_HashTagIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -AddHashTag_200_response::~AddHashTag_200_response() -{ -} - -void AddHashTag_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value AddHashTag_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_HashTagIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hashTag"))] = ModelBase::toJson(m_HashTag); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool AddHashTag_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hashTag")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hashTag"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setHashTag; - ok &= ModelBase::fromJson(fieldValue, refVal_setHashTag); - setHashTag(refVal_setHashTag); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void AddHashTag_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_HashTagIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hashTag")), m_HashTag)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool AddHashTag_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hashTag")))) - { - std::shared_ptr refVal_setHashTag; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hashTag"))), refVal_setHashTag ); - setHashTag(refVal_setHashTag); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr AddHashTag_200_response::getStatus() const -{ - return m_Status; -} - - -void AddHashTag_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool AddHashTag_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void AddHashTag_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr AddHashTag_200_response::getHashTag() const -{ - return m_HashTag; -} - - -void AddHashTag_200_response::setHashTag(const std::shared_ptr& value) -{ - m_HashTag = value; - m_HashTagIsSet = true; -} - -bool AddHashTag_200_response::hashTagIsSet() const -{ - return m_HashTagIsSet; -} - -void AddHashTag_200_response::unsetHashTag() -{ - m_HashTagIsSet = false; -} -utility::string_t AddHashTag_200_response::getReason() const -{ - return m_Reason; -} - - -void AddHashTag_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool AddHashTag_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void AddHashTag_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t AddHashTag_200_response::getCode() const -{ - return m_Code; -} - - -void AddHashTag_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool AddHashTag_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void AddHashTag_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t AddHashTag_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void AddHashTag_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool AddHashTag_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void AddHashTag_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t AddHashTag_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void AddHashTag_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool AddHashTag_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void AddHashTag_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t AddHashTag_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void AddHashTag_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool AddHashTag_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void AddHashTag_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t AddHashTag_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void AddHashTag_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool AddHashTag_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void AddHashTag_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr AddHashTag_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void AddHashTag_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool AddHashTag_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void AddHashTag_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/AddHashTagsBulk_200_response.cpp b/client/src/model/AddHashTagsBulk_200_response.cpp deleted file mode 100644 index 7ce9fda..0000000 --- a/client/src/model/AddHashTagsBulk_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/AddHashTagsBulk_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -AddHashTagsBulk_200_response::AddHashTagsBulk_200_response() -{ - m_StatusIsSet = false; - m_ResultsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -AddHashTagsBulk_200_response::~AddHashTagsBulk_200_response() -{ -} - -void AddHashTagsBulk_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value AddHashTagsBulk_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ResultsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("results"))] = ModelBase::toJson(m_Results); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool AddHashTagsBulk_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("results")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("results"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setResults; - ok &= ModelBase::fromJson(fieldValue, refVal_setResults); - setResults(refVal_setResults); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void AddHashTagsBulk_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ResultsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("results")), m_Results)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool AddHashTagsBulk_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("results")))) - { - std::vector> refVal_setResults; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("results"))), refVal_setResults ); - setResults(refVal_setResults); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr AddHashTagsBulk_200_response::getStatus() const -{ - return m_Status; -} - - -void AddHashTagsBulk_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool AddHashTagsBulk_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void AddHashTagsBulk_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> AddHashTagsBulk_200_response::getResults() const -{ - return m_Results; -} - - -void AddHashTagsBulk_200_response::setResults(const std::vector>& value) -{ - m_Results = value; - m_ResultsIsSet = true; -} - -bool AddHashTagsBulk_200_response::resultsIsSet() const -{ - return m_ResultsIsSet; -} - -void AddHashTagsBulk_200_response::unsetResults() -{ - m_ResultsIsSet = false; -} -utility::string_t AddHashTagsBulk_200_response::getReason() const -{ - return m_Reason; -} - - -void AddHashTagsBulk_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool AddHashTagsBulk_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void AddHashTagsBulk_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t AddHashTagsBulk_200_response::getCode() const -{ - return m_Code; -} - - -void AddHashTagsBulk_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool AddHashTagsBulk_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void AddHashTagsBulk_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t AddHashTagsBulk_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void AddHashTagsBulk_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool AddHashTagsBulk_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void AddHashTagsBulk_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t AddHashTagsBulk_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void AddHashTagsBulk_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool AddHashTagsBulk_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void AddHashTagsBulk_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t AddHashTagsBulk_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void AddHashTagsBulk_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool AddHashTagsBulk_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void AddHashTagsBulk_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t AddHashTagsBulk_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void AddHashTagsBulk_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool AddHashTagsBulk_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void AddHashTagsBulk_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr AddHashTagsBulk_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void AddHashTagsBulk_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool AddHashTagsBulk_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void AddHashTagsBulk_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/AddPageAPIResponse.cpp b/client/src/model/AddPageAPIResponse.cpp index 7ee1145..b913289 100644 --- a/client/src/model/AddPageAPIResponse.cpp +++ b/client/src/model/AddPageAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value AddPageAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_PageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("page"))] = ModelBase::toJson(m_Page); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/AddSSOUserAPIResponse.cpp b/client/src/model/AddSSOUserAPIResponse.cpp index 9031b34..1bca4b3 100644 --- a/client/src/model/AddSSOUserAPIResponse.cpp +++ b/client/src/model/AddSSOUserAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value AddSSOUserAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/AdjustCommentVotesParams.cpp b/client/src/model/AdjustCommentVotesParams.cpp new file mode 100644 index 0000000..b8a4b4d --- /dev/null +++ b/client/src/model/AdjustCommentVotesParams.cpp @@ -0,0 +1,123 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/AdjustCommentVotesParams.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +AdjustCommentVotesParams::AdjustCommentVotesParams() +{ + m_AdjustVoteAmount = 0.0; + m_AdjustVoteAmountIsSet = false; +} + +AdjustCommentVotesParams::~AdjustCommentVotesParams() +{ +} + +void AdjustCommentVotesParams::validate() +{ + // TODO: implement validation +} + +web::json::value AdjustCommentVotesParams::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_AdjustVoteAmountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("adjustVoteAmount"))] = ModelBase::toJson(m_AdjustVoteAmount); + } + + return val; +} + +bool AdjustCommentVotesParams::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("adjustVoteAmount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("adjustVoteAmount"))); + if(!fieldValue.is_null()) + { + double refVal_setAdjustVoteAmount; + ok &= ModelBase::fromJson(fieldValue, refVal_setAdjustVoteAmount); + setAdjustVoteAmount(refVal_setAdjustVoteAmount); + + } + } + return ok; +} + +void AdjustCommentVotesParams::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_AdjustVoteAmountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("adjustVoteAmount")), m_AdjustVoteAmount)); + } +} + +bool AdjustCommentVotesParams::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("adjustVoteAmount")))) + { + double refVal_setAdjustVoteAmount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("adjustVoteAmount"))), refVal_setAdjustVoteAmount ); + setAdjustVoteAmount(refVal_setAdjustVoteAmount); + } + return ok; +} + + +double AdjustCommentVotesParams::getAdjustVoteAmount() const +{ + return m_AdjustVoteAmount; +} + +void AdjustCommentVotesParams::setAdjustVoteAmount(double value) +{ + m_AdjustVoteAmount = value; + m_AdjustVoteAmountIsSet = true; +} + +bool AdjustCommentVotesParams::adjustVoteAmountIsSet() const +{ + return m_AdjustVoteAmountIsSet; +} + +void AdjustCommentVotesParams::unsetAdjustVoteAmount() +{ + m_AdjustVoteAmountIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/AdjustVotesResponse.cpp b/client/src/model/AdjustVotesResponse.cpp new file mode 100644 index 0000000..29a7981 --- /dev/null +++ b/client/src/model/AdjustVotesResponse.cpp @@ -0,0 +1,172 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/AdjustVotesResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +AdjustVotesResponse::AdjustVotesResponse() +{ + m_Status = utility::conversions::to_string_t(""); + m_StatusIsSet = false; + m_NewCommentVotes = 0; + m_NewCommentVotesIsSet = false; +} + +AdjustVotesResponse::~AdjustVotesResponse() +{ +} + +void AdjustVotesResponse::validate() +{ + // TODO: implement validation +} + +web::json::value AdjustVotesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_NewCommentVotesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("newCommentVotes"))] = ModelBase::toJson(m_NewCommentVotes); + } + + return val; +} + +bool AdjustVotesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("newCommentVotes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("newCommentVotes"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setNewCommentVotes; + ok &= ModelBase::fromJson(fieldValue, refVal_setNewCommentVotes); + setNewCommentVotes(refVal_setNewCommentVotes); + + } + } + return ok; +} + +void AdjustVotesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_NewCommentVotesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("newCommentVotes")), m_NewCommentVotes)); + } +} + +bool AdjustVotesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("newCommentVotes")))) + { + int32_t refVal_setNewCommentVotes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("newCommentVotes"))), refVal_setNewCommentVotes ); + setNewCommentVotes(refVal_setNewCommentVotes); + } + return ok; +} + + +utility::string_t AdjustVotesResponse::getStatus() const +{ + return m_Status; +} + + +void AdjustVotesResponse::setStatus(const utility::string_t& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool AdjustVotesResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void AdjustVotesResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +int32_t AdjustVotesResponse::getNewCommentVotes() const +{ + return m_NewCommentVotes; +} + +void AdjustVotesResponse::setNewCommentVotes(int32_t value) +{ + m_NewCommentVotes = value; + m_NewCommentVotesIsSet = true; +} + +bool AdjustVotesResponse::newCommentVotesIsSet() const +{ + return m_NewCommentVotesIsSet; +} + +void AdjustVotesResponse::unsetNewCommentVotes() +{ + m_NewCommentVotesIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/AggregateQuestionResultsResponse.cpp b/client/src/model/AggregateQuestionResultsResponse.cpp index c0ee195..e501bbc 100644 --- a/client/src/model/AggregateQuestionResultsResponse.cpp +++ b/client/src/model/AggregateQuestionResultsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value AggregateQuestionResultsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_DataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); } diff --git a/client/src/model/AggregateQuestionResults_200_response.cpp b/client/src/model/AggregateQuestionResults_200_response.cpp deleted file mode 100644 index 158c64c..0000000 --- a/client/src/model/AggregateQuestionResults_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/AggregateQuestionResults_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -AggregateQuestionResults_200_response::AggregateQuestionResults_200_response() -{ - m_StatusIsSet = false; - m_DataIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -AggregateQuestionResults_200_response::~AggregateQuestionResults_200_response() -{ -} - -void AggregateQuestionResults_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value AggregateQuestionResults_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_DataIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool AggregateQuestionResults_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("data"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setData; - ok &= ModelBase::fromJson(fieldValue, refVal_setData); - setData(refVal_setData); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void AggregateQuestionResults_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_DataIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("data")), m_Data)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool AggregateQuestionResults_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - std::shared_ptr refVal_setData; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("data"))), refVal_setData ); - setData(refVal_setData); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr AggregateQuestionResults_200_response::getStatus() const -{ - return m_Status; -} - - -void AggregateQuestionResults_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool AggregateQuestionResults_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void AggregateQuestionResults_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr AggregateQuestionResults_200_response::getData() const -{ - return m_Data; -} - - -void AggregateQuestionResults_200_response::setData(const std::shared_ptr& value) -{ - m_Data = value; - m_DataIsSet = true; -} - -bool AggregateQuestionResults_200_response::dataIsSet() const -{ - return m_DataIsSet; -} - -void AggregateQuestionResults_200_response::unsetData() -{ - m_DataIsSet = false; -} -utility::string_t AggregateQuestionResults_200_response::getReason() const -{ - return m_Reason; -} - - -void AggregateQuestionResults_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool AggregateQuestionResults_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void AggregateQuestionResults_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t AggregateQuestionResults_200_response::getCode() const -{ - return m_Code; -} - - -void AggregateQuestionResults_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool AggregateQuestionResults_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void AggregateQuestionResults_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t AggregateQuestionResults_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void AggregateQuestionResults_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool AggregateQuestionResults_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void AggregateQuestionResults_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t AggregateQuestionResults_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void AggregateQuestionResults_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool AggregateQuestionResults_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void AggregateQuestionResults_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t AggregateQuestionResults_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void AggregateQuestionResults_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool AggregateQuestionResults_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void AggregateQuestionResults_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t AggregateQuestionResults_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void AggregateQuestionResults_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool AggregateQuestionResults_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void AggregateQuestionResults_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr AggregateQuestionResults_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void AggregateQuestionResults_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool AggregateQuestionResults_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void AggregateQuestionResults_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/AggregateResponse.cpp b/client/src/model/AggregateResponse.cpp new file mode 100644 index 0000000..6bd6bb1 --- /dev/null +++ b/client/src/model/AggregateResponse.cpp @@ -0,0 +1,365 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/AggregateResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +AggregateResponse::AggregateResponse() +{ + m_StatusIsSet = false; + m_DataIsSet = false; + m_StatsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_ValidResourceNamesIsSet = false; +} + +AggregateResponse::~AggregateResponse() +{ +} + +void AggregateResponse::validate() +{ + // TODO: implement validation +} + +web::json::value AggregateResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_DataIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); + } + if(m_StatsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("stats"))] = ModelBase::toJson(m_Stats); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_ValidResourceNamesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("validResourceNames"))] = ModelBase::toJson(m_ValidResourceNames); + } + + return val; +} + +bool AggregateResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("data")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("data"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setData; + ok &= ModelBase::fromJson(fieldValue, refVal_setData); + setData(refVal_setData); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("stats")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("stats"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStats; + ok &= ModelBase::fromJson(fieldValue, refVal_setStats); + setStats(refVal_setStats); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("validResourceNames")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("validResourceNames"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setValidResourceNames; + ok &= ModelBase::fromJson(fieldValue, refVal_setValidResourceNames); + setValidResourceNames(refVal_setValidResourceNames); + + } + } + return ok; +} + +void AggregateResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_DataIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("data")), m_Data)); + } + if(m_StatsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("stats")), m_Stats)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_ValidResourceNamesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("validResourceNames")), m_ValidResourceNames)); + } +} + +bool AggregateResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("data")))) + { + std::vector> refVal_setData; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("data"))), refVal_setData ); + setData(refVal_setData); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("stats")))) + { + std::shared_ptr refVal_setStats; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("stats"))), refVal_setStats ); + setStats(refVal_setStats); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("validResourceNames")))) + { + std::vector refVal_setValidResourceNames; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("validResourceNames"))), refVal_setValidResourceNames ); + setValidResourceNames(refVal_setValidResourceNames); + } + return ok; +} + + +std::shared_ptr AggregateResponse::getStatus() const +{ + return m_Status; +} + + +void AggregateResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool AggregateResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void AggregateResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> AggregateResponse::getData() const +{ + return m_Data; +} + + +void AggregateResponse::setData(const std::vector>& value) +{ + m_Data = value; + m_DataIsSet = true; +} + +bool AggregateResponse::dataIsSet() const +{ + return m_DataIsSet; +} + +void AggregateResponse::unsetData() +{ + m_DataIsSet = false; +} +std::shared_ptr AggregateResponse::getStats() const +{ + return m_Stats; +} + + +void AggregateResponse::setStats(const std::shared_ptr& value) +{ + m_Stats = value; + m_StatsIsSet = true; +} + +bool AggregateResponse::statsIsSet() const +{ + return m_StatsIsSet; +} + +void AggregateResponse::unsetStats() +{ + m_StatsIsSet = false; +} +utility::string_t AggregateResponse::getReason() const +{ + return m_Reason; +} + + +void AggregateResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool AggregateResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void AggregateResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t AggregateResponse::getCode() const +{ + return m_Code; +} + + +void AggregateResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool AggregateResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void AggregateResponse::unsetCode() +{ + m_CodeIsSet = false; +} +std::vector AggregateResponse::getValidResourceNames() const +{ + return m_ValidResourceNames; +} + + +void AggregateResponse::setValidResourceNames(const std::vector& value) +{ + m_ValidResourceNames = value; + m_ValidResourceNamesIsSet = true; +} + +bool AggregateResponse::validResourceNamesIsSet() const +{ + return m_ValidResourceNamesIsSet; +} + +void AggregateResponse::unsetValidResourceNames() +{ + m_ValidResourceNamesIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/AggregateTimeBucket.cpp b/client/src/model/AggregateTimeBucket.cpp index 9093ce1..e53638b 100644 --- a/client/src/model/AggregateTimeBucket.cpp +++ b/client/src/model/AggregateTimeBucket.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregationAPIError.cpp b/client/src/model/AggregationAPIError.cpp new file mode 100644 index 0000000..048f3a2 --- /dev/null +++ b/client/src/model/AggregationAPIError.cpp @@ -0,0 +1,269 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/AggregationAPIError.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +AggregationAPIError::AggregationAPIError() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_ValidResourceNamesIsSet = false; +} + +AggregationAPIError::~AggregationAPIError() +{ +} + +void AggregationAPIError::validate() +{ + // TODO: implement validation +} + +web::json::value AggregationAPIError::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_ValidResourceNamesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("validResourceNames"))] = ModelBase::toJson(m_ValidResourceNames); + } + + return val; +} + +bool AggregationAPIError::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("validResourceNames")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("validResourceNames"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setValidResourceNames; + ok &= ModelBase::fromJson(fieldValue, refVal_setValidResourceNames); + setValidResourceNames(refVal_setValidResourceNames); + + } + } + return ok; +} + +void AggregationAPIError::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_ValidResourceNamesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("validResourceNames")), m_ValidResourceNames)); + } +} + +bool AggregationAPIError::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("validResourceNames")))) + { + std::vector refVal_setValidResourceNames; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("validResourceNames"))), refVal_setValidResourceNames ); + setValidResourceNames(refVal_setValidResourceNames); + } + return ok; +} + + +std::shared_ptr AggregationAPIError::getStatus() const +{ + return m_Status; +} + + +void AggregationAPIError::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool AggregationAPIError::statusIsSet() const +{ + return m_StatusIsSet; +} + +void AggregationAPIError::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t AggregationAPIError::getReason() const +{ + return m_Reason; +} + + +void AggregationAPIError::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool AggregationAPIError::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void AggregationAPIError::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t AggregationAPIError::getCode() const +{ + return m_Code; +} + + +void AggregationAPIError::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool AggregationAPIError::codeIsSet() const +{ + return m_CodeIsSet; +} + +void AggregationAPIError::unsetCode() +{ + m_CodeIsSet = false; +} +std::vector AggregationAPIError::getValidResourceNames() const +{ + return m_ValidResourceNames; +} + + +void AggregationAPIError::setValidResourceNames(const std::vector& value) +{ + m_ValidResourceNames = value; + m_ValidResourceNamesIsSet = true; +} + +bool AggregationAPIError::validResourceNamesIsSet() const +{ + return m_ValidResourceNamesIsSet; +} + +void AggregationAPIError::unsetValidResourceNames() +{ + m_ValidResourceNamesIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/AggregationItem.cpp b/client/src/model/AggregationItem.cpp index e4dbbd3..14223a6 100644 --- a/client/src/model/AggregationItem.cpp +++ b/client/src/model/AggregationItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value AggregationItem::toJson() const { web::json::value val = web::json::value::object(); if(m_GroupsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groups"))] = ModelBase::toJson(m_Groups); } diff --git a/client/src/model/AggregationOpType.cpp b/client/src/model/AggregationOpType.cpp index 5a46c2e..a30782f 100644 --- a/client/src/model/AggregationOpType.cpp +++ b/client/src/model/AggregationOpType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregationOperation.cpp b/client/src/model/AggregationOperation.cpp index 13f75d9..40263ff 100644 --- a/client/src/model/AggregationOperation.cpp +++ b/client/src/model/AggregationOperation.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value AggregationOperation::toJson() const { web::json::value val = web::json::value::object(); if(m_FieldIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("field"))] = ModelBase::toJson(m_Field); } if(m_OpIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("op"))] = ModelBase::toJson(m_Op); } if(m_AliasIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("alias"))] = ModelBase::toJson(m_Alias); } if(m_ExpandArrayIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("expandArray"))] = ModelBase::toJson(m_ExpandArray); } diff --git a/client/src/model/AggregationRequest.cpp b/client/src/model/AggregationRequest.cpp index b8d5f35..e241a11 100644 --- a/client/src/model/AggregationRequest.cpp +++ b/client/src/model/AggregationRequest.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,27 +41,27 @@ web::json::value AggregationRequest::toJson() const { web::json::value val = web::json::value::object(); if(m_QueryIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("query"))] = ModelBase::toJson(m_Query); } if(m_ResourceNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("resourceName"))] = ModelBase::toJson(m_ResourceName); } if(m_GroupByIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groupBy"))] = ModelBase::toJson(m_GroupBy); } if(m_OperationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("operations"))] = ModelBase::toJson(m_Operations); } if(m_SortIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sort"))] = ModelBase::toJson(m_Sort); } diff --git a/client/src/model/AggregationRequest_sort.cpp b/client/src/model/AggregationRequest_sort.cpp index 4142e0c..448645d 100644 --- a/client/src/model/AggregationRequest_sort.cpp +++ b/client/src/model/AggregationRequest_sort.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,14 +38,14 @@ web::json::value AggregationRequest_sort::toJson() const { web::json::value val = web::json::value::object(); if(m_DirIsSet) - { + { utility::string_t refVal = fromDirEnum(m_Dir); val[utility::conversions::to_string_t(_XPLATSTR("dir"))] = ModelBase::toJson(refVal); } if(m_FieldIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("field"))] = ModelBase::toJson(m_Field); } diff --git a/client/src/model/AggregationResponse.cpp b/client/src/model/AggregationResponse.cpp index d85c619..7eba019 100644 --- a/client/src/model/AggregationResponse.cpp +++ b/client/src/model/AggregationResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,17 +38,17 @@ web::json::value AggregationResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_DataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); } if(m_StatsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stats"))] = ModelBase::toJson(m_Stats); } diff --git a/client/src/model/AggregationResponse_stats.cpp b/client/src/model/AggregationResponse_stats.cpp index d281943..ce3367e 100644 --- a/client/src/model/AggregationResponse_stats.cpp +++ b/client/src/model/AggregationResponse_stats.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value AggregationResponse_stats::toJson() const { web::json::value val = web::json::value::object(); if(m_TimeMSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("timeMS"))] = ModelBase::toJson(m_TimeMS); } if(m_ScannedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("scanned"))] = ModelBase::toJson(m_Scanned); } diff --git a/client/src/model/AggregationValue.cpp b/client/src/model/AggregationValue.cpp index 5db6d7c..5bf2881 100644 --- a/client/src/model/AggregationValue.cpp +++ b/client/src/model/AggregationValue.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,27 +43,27 @@ web::json::value AggregationValue::toJson() const { web::json::value val = web::json::value::object(); if(m_GroupsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groups"))] = ModelBase::toJson(m_Groups); } if(m_StringValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stringValue"))] = ModelBase::toJson(m_StringValue); } if(m_NumericValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("numericValue"))] = ModelBase::toJson(m_NumericValue); } if(m_DistinctCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("distinctCount"))] = ModelBase::toJson(m_DistinctCount); } if(m_DistinctCountsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("distinctCounts"))] = ModelBase::toJson(m_DistinctCounts); } diff --git a/client/src/model/AwardUserBadgeResponse.cpp b/client/src/model/AwardUserBadgeResponse.cpp new file mode 100644 index 0000000..2623a44 --- /dev/null +++ b/client/src/model/AwardUserBadgeResponse.cpp @@ -0,0 +1,219 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/AwardUserBadgeResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +AwardUserBadgeResponse::AwardUserBadgeResponse() +{ + m_NotesIsSet = false; + m_BadgesIsSet = false; + m_StatusIsSet = false; +} + +AwardUserBadgeResponse::~AwardUserBadgeResponse() +{ +} + +void AwardUserBadgeResponse::validate() +{ + // TODO: implement validation +} + +web::json::value AwardUserBadgeResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_NotesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("notes"))] = ModelBase::toJson(m_Notes); + } + if(m_BadgesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool AwardUserBadgeResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notes"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setNotes; + ok &= ModelBase::fromJson(fieldValue, refVal_setNotes); + setNotes(refVal_setNotes); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("badges"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromJson(fieldValue, refVal_setBadges); + setBadges(refVal_setBadges); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void AwardUserBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_NotesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notes")), m_Notes)); + } + if(m_BadgesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool AwardUserBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notes")))) + { + std::vector refVal_setNotes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notes"))), refVal_setNotes ); + setNotes(refVal_setNotes); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badges"))), refVal_setBadges ); + setBadges(refVal_setBadges); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector AwardUserBadgeResponse::getNotes() const +{ + return m_Notes; +} + + +void AwardUserBadgeResponse::setNotes(const std::vector& value) +{ + m_Notes = value; + m_NotesIsSet = true; +} + +bool AwardUserBadgeResponse::notesIsSet() const +{ + return m_NotesIsSet; +} + +void AwardUserBadgeResponse::unsetNotes() +{ + m_NotesIsSet = false; +} +std::vector> AwardUserBadgeResponse::getBadges() const +{ + return m_Badges; +} + + +void AwardUserBadgeResponse::setBadges(const std::vector>& value) +{ + m_Badges = value; + m_BadgesIsSet = true; +} + +bool AwardUserBadgeResponse::badgesIsSet() const +{ + return m_BadgesIsSet; +} + +void AwardUserBadgeResponse::unsetBadges() +{ + m_BadgesIsSet = false; +} +std::shared_ptr AwardUserBadgeResponse::getStatus() const +{ + return m_Status; +} + + +void AwardUserBadgeResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool AwardUserBadgeResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void AwardUserBadgeResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/BanUserFromCommentResult.cpp b/client/src/model/BanUserFromCommentResult.cpp new file mode 100644 index 0000000..0af735d --- /dev/null +++ b/client/src/model/BanUserFromCommentResult.cpp @@ -0,0 +1,270 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/BanUserFromCommentResult.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +BanUserFromCommentResult::BanUserFromCommentResult() +{ + m_Status = utility::conversions::to_string_t(""); + m_StatusIsSet = false; + m_ChangelogIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; +} + +BanUserFromCommentResult::~BanUserFromCommentResult() +{ +} + +void BanUserFromCommentResult::validate() +{ + // TODO: implement validation +} + +web::json::value BanUserFromCommentResult::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ChangelogIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("changelog"))] = ModelBase::toJson(m_Changelog); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + + return val; +} + +bool BanUserFromCommentResult::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("changelog")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("changelog"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setChangelog; + ok &= ModelBase::fromJson(fieldValue, refVal_setChangelog); + setChangelog(refVal_setChangelog); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + return ok; +} + +void BanUserFromCommentResult::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ChangelogIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("changelog")), m_Changelog)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } +} + +bool BanUserFromCommentResult::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("changelog")))) + { + std::shared_ptr refVal_setChangelog; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("changelog"))), refVal_setChangelog ); + setChangelog(refVal_setChangelog); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + return ok; +} + + +utility::string_t BanUserFromCommentResult::getStatus() const +{ + return m_Status; +} + + +void BanUserFromCommentResult::setStatus(const utility::string_t& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool BanUserFromCommentResult::statusIsSet() const +{ + return m_StatusIsSet; +} + +void BanUserFromCommentResult::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr BanUserFromCommentResult::getChangelog() const +{ + return m_Changelog; +} + + +void BanUserFromCommentResult::setChangelog(const std::shared_ptr& value) +{ + m_Changelog = value; + m_ChangelogIsSet = true; +} + +bool BanUserFromCommentResult::changelogIsSet() const +{ + return m_ChangelogIsSet; +} + +void BanUserFromCommentResult::unsetChangelog() +{ + m_ChangelogIsSet = false; +} +utility::string_t BanUserFromCommentResult::getCode() const +{ + return m_Code; +} + + +void BanUserFromCommentResult::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool BanUserFromCommentResult::codeIsSet() const +{ + return m_CodeIsSet; +} + +void BanUserFromCommentResult::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t BanUserFromCommentResult::getReason() const +{ + return m_Reason; +} + + +void BanUserFromCommentResult::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool BanUserFromCommentResult::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void BanUserFromCommentResult::unsetReason() +{ + m_ReasonIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/BanUserUndoParams.cpp b/client/src/model/BanUserUndoParams.cpp new file mode 100644 index 0000000..bf99fcc --- /dev/null +++ b/client/src/model/BanUserUndoParams.cpp @@ -0,0 +1,123 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/BanUserUndoParams.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +BanUserUndoParams::BanUserUndoParams() +{ + m_ChangelogIsSet = false; +} + +BanUserUndoParams::~BanUserUndoParams() +{ +} + +void BanUserUndoParams::validate() +{ + // TODO: implement validation +} + +web::json::value BanUserUndoParams::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ChangelogIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("changelog"))] = ModelBase::toJson(m_Changelog); + } + + return val; +} + +bool BanUserUndoParams::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("changelog")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("changelog"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setChangelog; + ok &= ModelBase::fromJson(fieldValue, refVal_setChangelog); + setChangelog(refVal_setChangelog); + + } + } + return ok; +} + +void BanUserUndoParams::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ChangelogIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("changelog")), m_Changelog)); + } +} + +bool BanUserUndoParams::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("changelog")))) + { + std::shared_ptr refVal_setChangelog; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("changelog"))), refVal_setChangelog ); + setChangelog(refVal_setChangelog); + } + return ok; +} + + +std::shared_ptr BanUserUndoParams::getChangelog() const +{ + return m_Changelog; +} + + +void BanUserUndoParams::setChangelog(const std::shared_ptr& value) +{ + m_Changelog = value; + m_ChangelogIsSet = true; +} + +bool BanUserUndoParams::changelogIsSet() const +{ + return m_ChangelogIsSet; +} + +void BanUserUndoParams::unsetChangelog() +{ + m_ChangelogIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/BannedUserMatch.cpp b/client/src/model/BannedUserMatch.cpp new file mode 100644 index 0000000..9a31b54 --- /dev/null +++ b/client/src/model/BannedUserMatch.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/BannedUserMatch.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +BannedUserMatch::BannedUserMatch() +{ + m_MatchedOnIsSet = false; + m_MatchedOnValueIsSet = false; +} + +BannedUserMatch::~BannedUserMatch() +{ +} + +void BannedUserMatch::validate() +{ + // TODO: implement validation +} + +web::json::value BannedUserMatch::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_MatchedOnIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("matchedOn"))] = ModelBase::toJson(m_MatchedOn); + } + if(m_MatchedOnValueIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("matchedOnValue"))] = ModelBase::toJson(m_MatchedOnValue); + } + + return val; +} + +bool BannedUserMatch::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("matchedOn")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("matchedOn"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setMatchedOn; + ok &= ModelBase::fromJson(fieldValue, refVal_setMatchedOn); + setMatchedOn(refVal_setMatchedOn); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("matchedOnValue")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("matchedOnValue"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setMatchedOnValue; + ok &= ModelBase::fromJson(fieldValue, refVal_setMatchedOnValue); + setMatchedOnValue(refVal_setMatchedOnValue); + + } + } + return ok; +} + +void BannedUserMatch::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_MatchedOnIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("matchedOn")), m_MatchedOn)); + } + if(m_MatchedOnValueIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("matchedOnValue")), m_MatchedOnValue)); + } +} + +bool BannedUserMatch::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("matchedOn")))) + { + std::shared_ptr refVal_setMatchedOn; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("matchedOn"))), refVal_setMatchedOn ); + setMatchedOn(refVal_setMatchedOn); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("matchedOnValue")))) + { + std::shared_ptr refVal_setMatchedOnValue; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("matchedOnValue"))), refVal_setMatchedOnValue ); + setMatchedOnValue(refVal_setMatchedOnValue); + } + return ok; +} + + +std::shared_ptr BannedUserMatch::getMatchedOn() const +{ + return m_MatchedOn; +} + + +void BannedUserMatch::setMatchedOn(const std::shared_ptr& value) +{ + m_MatchedOn = value; + m_MatchedOnIsSet = true; +} + +bool BannedUserMatch::matchedOnIsSet() const +{ + return m_MatchedOnIsSet; +} + +void BannedUserMatch::unsetMatchedOn() +{ + m_MatchedOnIsSet = false; +} +std::shared_ptr BannedUserMatch::getMatchedOnValue() const +{ + return m_MatchedOnValue; +} + + +void BannedUserMatch::setMatchedOnValue(const std::shared_ptr& value) +{ + m_MatchedOnValue = value; + m_MatchedOnValueIsSet = true; +} + +bool BannedUserMatch::matchedOnValueIsSet() const +{ + return m_MatchedOnValueIsSet; +} + +void BannedUserMatch::unsetMatchedOnValue() +{ + m_MatchedOnValueIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/BannedUserMatchType.cpp b/client/src/model/BannedUserMatchType.cpp new file mode 100644 index 0000000..f7bcc3a --- /dev/null +++ b/client/src/model/BannedUserMatchType.cpp @@ -0,0 +1,133 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/BannedUserMatchType.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +namespace +{ +using EnumUnderlyingType = utility::string_t; + +BannedUserMatchType::eBannedUserMatchType toEnum(const EnumUnderlyingType& val) +{ + if (val == utility::conversions::to_string_t(_XPLATSTR("userId"))) + return BannedUserMatchType::eBannedUserMatchType::USERID; + if (val == utility::conversions::to_string_t(_XPLATSTR("email"))) + return BannedUserMatchType::eBannedUserMatchType::EMAIL; + if (val == utility::conversions::to_string_t(_XPLATSTR("email-wildcard"))) + return BannedUserMatchType::eBannedUserMatchType::EMAIL_WILDCARD; + if (val == utility::conversions::to_string_t(_XPLATSTR("IP"))) + return BannedUserMatchType::eBannedUserMatchType::IP; + return {}; +} + +EnumUnderlyingType fromEnum(BannedUserMatchType::eBannedUserMatchType e) +{ + switch (e) + { + case BannedUserMatchType::eBannedUserMatchType::USERID: + return _XPLATSTR("userId"); + case BannedUserMatchType::eBannedUserMatchType::EMAIL: + return _XPLATSTR("email"); + case BannedUserMatchType::eBannedUserMatchType::EMAIL_WILDCARD: + return _XPLATSTR("email-wildcard"); + case BannedUserMatchType::eBannedUserMatchType::IP: + return _XPLATSTR("IP"); + default: + break; + } + return {}; +} +} + +BannedUserMatchType::BannedUserMatchType() +{ +} + +BannedUserMatchType::~BannedUserMatchType() +{ +} + +void BannedUserMatchType::validate() +{ + // TODO: implement validation +} + +web::json::value BannedUserMatchType::toJson() const +{ + auto val = fromEnum(m_value); + return web::json::value(val); +} + +bool BannedUserMatchType::fromJson(const web::json::value& val) +{ + m_value = toEnum(val.as_string()); + return true; +} + +void BannedUserMatchType::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) + { + namePrefix.push_back(_XPLATSTR('.')); + } + + auto e = fromEnum(m_value); + multipart->add(ModelBase::toHttpContent(namePrefix, e)); +} + +bool BannedUserMatchType::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) + { + namePrefix.push_back(_XPLATSTR('.')); + } + { + EnumUnderlyingType e; + ok = ModelBase::fromHttpContent(multipart->getContent(namePrefix), e); + if (ok) + { + auto v = toEnum(e); + setValue(v); + } + } + return ok; +} + +BannedUserMatchType::eBannedUserMatchType BannedUserMatchType::getValue() const +{ + return m_value; +} + +void BannedUserMatchType::setValue(BannedUserMatchType::eBannedUserMatchType const value) +{ + m_value = value; +} + +BannedUserMatchType::BannedUserMatchType(utility::string_t str){ + setValue( strToEnumMap[str] ); +} + +} +} +} +} + + diff --git a/client/src/model/Record_string_string_or_number__value.cpp b/client/src/model/BannedUserMatch_matchedOnValue.cpp similarity index 57% rename from client/src/model/Record_string_string_or_number__value.cpp rename to client/src/model/BannedUserMatch_matchedOnValue.cpp index b925f14..c529b53 100644 --- a/client/src/model/Record_string_string_or_number__value.cpp +++ b/client/src/model/BannedUserMatch_matchedOnValue.cpp @@ -4,47 +4,47 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/Record_string_string_or_number__value.h" +#include "FastCommentsClient/model/BannedUserMatch_matchedOnValue.h" namespace org { namespace openapitools { namespace client { namespace model { -Record_string_string_or_number__value::Record_string_string_or_number__value() +BannedUserMatch_matchedOnValue::BannedUserMatch_matchedOnValue() { } -Record_string_string_or_number__value::~Record_string_string_or_number__value() +BannedUserMatch_matchedOnValue::~BannedUserMatch_matchedOnValue() { } -void Record_string_string_or_number__value::validate() +void BannedUserMatch_matchedOnValue::validate() { // TODO: implement validation } -web::json::value Record_string_string_or_number__value::toJson() const +web::json::value BannedUserMatch_matchedOnValue::toJson() const { web::json::value val = web::json::value::object(); return val; } -bool Record_string_string_or_number__value::fromJson(const web::json::value& val) +bool BannedUserMatch_matchedOnValue::fromJson(const web::json::value& val) { bool ok = true; return ok; } -void Record_string_string_or_number__value::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void BannedUserMatch_matchedOnValue::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) @@ -53,7 +53,7 @@ void Record_string_string_or_number__value::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) +bool BannedUserMatch_matchedOnValue::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; diff --git a/client/src/model/BillingInfo.cpp b/client/src/model/BillingInfo.cpp index d375f18..4417415 100644 --- a/client/src/model/BillingInfo.cpp +++ b/client/src/model/BillingInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -32,6 +32,8 @@ BillingInfo::BillingInfo() m_ZipIsSet = false; m_Country = utility::conversions::to_string_t(""); m_CountryIsSet = false; + m_Currency = utility::conversions::to_string_t(""); + m_CurrencyIsSet = false; m_Email = utility::conversions::to_string_t(""); m_EmailIsSet = false; } @@ -49,42 +51,42 @@ web::json::value BillingInfo::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_AddressIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("address"))] = ModelBase::toJson(m_Address); } if(m_CityIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("city"))] = ModelBase::toJson(m_City); } if(m_StateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("state"))] = ModelBase::toJson(m_State); } if(m_ZipIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("zip"))] = ModelBase::toJson(m_Zip); } if(m_CountryIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("country"))] = ModelBase::toJson(m_Country); } - if(m_Currency.has_value()) - { + if(m_CurrencyIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("currency"))] = ModelBase::toJson(m_Currency.get()); + val[utility::conversions::to_string_t(_XPLATSTR("currency"))] = ModelBase::toJson(m_Currency); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } @@ -217,9 +219,9 @@ void BillingInfo::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("country")), m_Country)); } - if(m_Currency.has_value()) + if(m_CurrencyIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("currency")), m_Currency.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("currency")), m_Currency)); } if(m_EmailIsSet) { @@ -416,23 +418,24 @@ void BillingInfo::unsetCountry() } utility::string_t BillingInfo::getCurrency() const { - return m_Currency.get(); + return m_Currency; } void BillingInfo::setCurrency(const utility::string_t& value) { m_Currency = value; + m_CurrencyIsSet = true; } bool BillingInfo::currencyIsSet() const { - return m_Currency.has_value(); + return m_CurrencyIsSet; } void BillingInfo::unsetCurrency() { - m_Currency.reset(); + m_CurrencyIsSet = false; } utility::string_t BillingInfo::getEmail() const { diff --git a/client/src/model/BlockFromCommentParams.cpp b/client/src/model/BlockFromCommentParams.cpp index ae3a8bb..97434e8 100644 --- a/client/src/model/BlockFromCommentParams.cpp +++ b/client/src/model/BlockFromCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value BlockFromCommentParams::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentIdsToCheckIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentIdsToCheck"))] = ModelBase::toJson(m_CommentIdsToCheck); } diff --git a/client/src/model/BlockFromCommentPublic_200_response.cpp b/client/src/model/BlockFromCommentPublic_200_response.cpp deleted file mode 100644 index 8b6ffa4..0000000 --- a/client/src/model/BlockFromCommentPublic_200_response.cpp +++ /dev/null @@ -1,510 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/BlockFromCommentPublic_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -BlockFromCommentPublic_200_response::BlockFromCommentPublic_200_response() -{ - m_StatusIsSet = false; - m_CommentStatusesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -BlockFromCommentPublic_200_response::~BlockFromCommentPublic_200_response() -{ -} - -void BlockFromCommentPublic_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value BlockFromCommentPublic_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentStatusesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool BlockFromCommentPublic_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))); - if(!fieldValue.is_null()) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentStatuses); - setCommentStatuses(refVal_setCommentStatuses); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void BlockFromCommentPublic_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentStatusesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentStatuses")), m_CommentStatuses)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool BlockFromCommentPublic_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))), refVal_setCommentStatuses ); - setCommentStatuses(refVal_setCommentStatuses); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr BlockFromCommentPublic_200_response::getStatus() const -{ - return m_Status; -} - - -void BlockFromCommentPublic_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool BlockFromCommentPublic_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void BlockFromCommentPublic_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map BlockFromCommentPublic_200_response::getCommentStatuses() const -{ - return m_CommentStatuses; -} - -void BlockFromCommentPublic_200_response::setCommentStatuses(std::map value) -{ - m_CommentStatuses = value; - m_CommentStatusesIsSet = true; -} - -bool BlockFromCommentPublic_200_response::commentStatusesIsSet() const -{ - return m_CommentStatusesIsSet; -} - -void BlockFromCommentPublic_200_response::unsetCommentStatuses() -{ - m_CommentStatusesIsSet = false; -} -utility::string_t BlockFromCommentPublic_200_response::getReason() const -{ - return m_Reason; -} - - -void BlockFromCommentPublic_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool BlockFromCommentPublic_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void BlockFromCommentPublic_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t BlockFromCommentPublic_200_response::getCode() const -{ - return m_Code; -} - - -void BlockFromCommentPublic_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool BlockFromCommentPublic_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void BlockFromCommentPublic_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t BlockFromCommentPublic_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void BlockFromCommentPublic_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool BlockFromCommentPublic_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void BlockFromCommentPublic_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t BlockFromCommentPublic_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void BlockFromCommentPublic_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool BlockFromCommentPublic_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void BlockFromCommentPublic_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t BlockFromCommentPublic_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void BlockFromCommentPublic_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool BlockFromCommentPublic_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void BlockFromCommentPublic_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t BlockFromCommentPublic_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void BlockFromCommentPublic_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool BlockFromCommentPublic_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void BlockFromCommentPublic_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr BlockFromCommentPublic_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void BlockFromCommentPublic_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool BlockFromCommentPublic_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void BlockFromCommentPublic_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/BlockSuccess.cpp b/client/src/model/BlockSuccess.cpp index 124384c..652a403 100644 --- a/client/src/model/BlockSuccess.cpp +++ b/client/src/model/BlockSuccess.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value BlockSuccess::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentStatusesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); } diff --git a/client/src/model/BuildModerationFilterParams.cpp b/client/src/model/BuildModerationFilterParams.cpp new file mode 100644 index 0000000..28577a0 --- /dev/null +++ b/client/src/model/BuildModerationFilterParams.cpp @@ -0,0 +1,320 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/BuildModerationFilterParams.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +BuildModerationFilterParams::BuildModerationFilterParams() +{ + m_UserId = utility::conversions::to_string_t(""); + m_UserIdIsSet = false; + m_TenantId = utility::conversions::to_string_t(""); + m_TenantIdIsSet = false; + m_Filters = utility::conversions::to_string_t(""); + m_FiltersIsSet = false; + m_SearchFilters = utility::conversions::to_string_t(""); + m_SearchFiltersIsSet = false; + m_TextSearch = utility::conversions::to_string_t(""); + m_TextSearchIsSet = false; +} + +BuildModerationFilterParams::~BuildModerationFilterParams() +{ +} + +void BuildModerationFilterParams::validate() +{ + // TODO: implement validation +} + +web::json::value BuildModerationFilterParams::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_UserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + } + if(m_TenantIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); + } + if(m_FiltersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("filters"))] = ModelBase::toJson(m_Filters); + } + if(m_SearchFiltersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("searchFilters"))] = ModelBase::toJson(m_SearchFilters); + } + if(m_TextSearchIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("textSearch"))] = ModelBase::toJson(m_TextSearch); + } + + return val; +} + +bool BuildModerationFilterParams::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserId); + setUserId(refVal_setUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTenantId; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantId); + setTenantId(refVal_setTenantId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("filters")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("filters"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setFilters; + ok &= ModelBase::fromJson(fieldValue, refVal_setFilters); + setFilters(refVal_setFilters); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("searchFilters")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("searchFilters"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSearchFilters; + ok &= ModelBase::fromJson(fieldValue, refVal_setSearchFilters); + setSearchFilters(refVal_setSearchFilters); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("textSearch")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("textSearch"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTextSearch; + ok &= ModelBase::fromJson(fieldValue, refVal_setTextSearch); + setTextSearch(refVal_setTextSearch); + + } + } + return ok; +} + +void BuildModerationFilterParams::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_UserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + } + if(m_TenantIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); + } + if(m_FiltersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("filters")), m_Filters)); + } + if(m_SearchFiltersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("searchFilters")), m_SearchFilters)); + } + if(m_TextSearchIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textSearch")), m_TextSearch)); + } +} + +bool BuildModerationFilterParams::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userId"))), refVal_setUserId ); + setUserId(refVal_setUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantId")))) + { + utility::string_t refVal_setTenantId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantId"))), refVal_setTenantId ); + setTenantId(refVal_setTenantId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("filters")))) + { + utility::string_t refVal_setFilters; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("filters"))), refVal_setFilters ); + setFilters(refVal_setFilters); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("searchFilters")))) + { + utility::string_t refVal_setSearchFilters; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("searchFilters"))), refVal_setSearchFilters ); + setSearchFilters(refVal_setSearchFilters); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("textSearch")))) + { + utility::string_t refVal_setTextSearch; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("textSearch"))), refVal_setTextSearch ); + setTextSearch(refVal_setTextSearch); + } + return ok; +} + + +utility::string_t BuildModerationFilterParams::getUserId() const +{ + return m_UserId; +} + + +void BuildModerationFilterParams::setUserId(const utility::string_t& value) +{ + m_UserId = value; + m_UserIdIsSet = true; +} + +bool BuildModerationFilterParams::userIdIsSet() const +{ + return m_UserIdIsSet; +} + +void BuildModerationFilterParams::unsetUserId() +{ + m_UserIdIsSet = false; +} +utility::string_t BuildModerationFilterParams::getTenantId() const +{ + return m_TenantId; +} + + +void BuildModerationFilterParams::setTenantId(const utility::string_t& value) +{ + m_TenantId = value; + m_TenantIdIsSet = true; +} + +bool BuildModerationFilterParams::tenantIdIsSet() const +{ + return m_TenantIdIsSet; +} + +void BuildModerationFilterParams::unsetTenantId() +{ + m_TenantIdIsSet = false; +} +utility::string_t BuildModerationFilterParams::getFilters() const +{ + return m_Filters; +} + + +void BuildModerationFilterParams::setFilters(const utility::string_t& value) +{ + m_Filters = value; + m_FiltersIsSet = true; +} + +bool BuildModerationFilterParams::filtersIsSet() const +{ + return m_FiltersIsSet; +} + +void BuildModerationFilterParams::unsetFilters() +{ + m_FiltersIsSet = false; +} +utility::string_t BuildModerationFilterParams::getSearchFilters() const +{ + return m_SearchFilters; +} + + +void BuildModerationFilterParams::setSearchFilters(const utility::string_t& value) +{ + m_SearchFilters = value; + m_SearchFiltersIsSet = true; +} + +bool BuildModerationFilterParams::searchFiltersIsSet() const +{ + return m_SearchFiltersIsSet; +} + +void BuildModerationFilterParams::unsetSearchFilters() +{ + m_SearchFiltersIsSet = false; +} +utility::string_t BuildModerationFilterParams::getTextSearch() const +{ + return m_TextSearch; +} + + +void BuildModerationFilterParams::setTextSearch(const utility::string_t& value) +{ + m_TextSearch = value; + m_TextSearchIsSet = true; +} + +bool BuildModerationFilterParams::textSearchIsSet() const +{ + return m_TextSearchIsSet; +} + +void BuildModerationFilterParams::unsetTextSearch() +{ + m_TextSearchIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/BuildModerationFilterResponse.cpp b/client/src/model/BuildModerationFilterResponse.cpp new file mode 100644 index 0000000..fe23118 --- /dev/null +++ b/client/src/model/BuildModerationFilterResponse.cpp @@ -0,0 +1,172 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/BuildModerationFilterResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +BuildModerationFilterResponse::BuildModerationFilterResponse() +{ + m_Status = utility::conversions::to_string_t(""); + m_StatusIsSet = false; + m_ModerationFilterIsSet = false; +} + +BuildModerationFilterResponse::~BuildModerationFilterResponse() +{ +} + +void BuildModerationFilterResponse::validate() +{ + // TODO: implement validation +} + +web::json::value BuildModerationFilterResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ModerationFilterIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))] = ModelBase::toJson(m_ModerationFilter); + } + + return val; +} + +bool BuildModerationFilterResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderationFilter")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setModerationFilter; + ok &= ModelBase::fromJson(fieldValue, refVal_setModerationFilter); + setModerationFilter(refVal_setModerationFilter); + + } + } + return ok; +} + +void BuildModerationFilterResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ModerationFilterIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationFilter")), m_ModerationFilter)); + } +} + +bool BuildModerationFilterResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderationFilter")))) + { + std::shared_ptr refVal_setModerationFilter; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))), refVal_setModerationFilter ); + setModerationFilter(refVal_setModerationFilter); + } + return ok; +} + + +utility::string_t BuildModerationFilterResponse::getStatus() const +{ + return m_Status; +} + + +void BuildModerationFilterResponse::setStatus(const utility::string_t& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool BuildModerationFilterResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void BuildModerationFilterResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr BuildModerationFilterResponse::getModerationFilter() const +{ + return m_ModerationFilter; +} + + +void BuildModerationFilterResponse::setModerationFilter(const std::shared_ptr& value) +{ + m_ModerationFilter = value; + m_ModerationFilterIsSet = true; +} + +bool BuildModerationFilterResponse::moderationFilterIsSet() const +{ + return m_ModerationFilterIsSet; +} + +void BuildModerationFilterResponse::unsetModerationFilter() +{ + m_ModerationFilterIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/BulkAggregateQuestionItem.cpp b/client/src/model/BulkAggregateQuestionItem.cpp index e6c2bc9..944b4fe 100644 --- a/client/src/model/BulkAggregateQuestionItem.cpp +++ b/client/src/model/BulkAggregateQuestionItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -45,32 +45,32 @@ web::json::value BulkAggregateQuestionItem::toJson() const { web::json::value val = web::json::value::object(); if(m_AggIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("aggId"))] = ModelBase::toJson(m_AggId); } if(m_QuestionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionId"))] = ModelBase::toJson(m_QuestionId); } if(m_QuestionIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionIds"))] = ModelBase::toJson(m_QuestionIds); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_TimeBucketIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("timeBucket"))] = ModelBase::toJson(m_TimeBucket); } if(m_StartDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("startDate"))] = ModelBase::toJson(m_StartDate); } diff --git a/client/src/model/BulkAggregateQuestionResultsRequest.cpp b/client/src/model/BulkAggregateQuestionResultsRequest.cpp index b791f13..aabebf8 100644 --- a/client/src/model/BulkAggregateQuestionResultsRequest.cpp +++ b/client/src/model/BulkAggregateQuestionResultsRequest.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value BulkAggregateQuestionResultsRequest::toJson() const { web::json::value val = web::json::value::object(); if(m_AggregationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("aggregations"))] = ModelBase::toJson(m_Aggregations); } diff --git a/client/src/model/BulkAggregateQuestionResultsResponse.cpp b/client/src/model/BulkAggregateQuestionResultsResponse.cpp index ba2fb60..3fa4aed 100644 --- a/client/src/model/BulkAggregateQuestionResultsResponse.cpp +++ b/client/src/model/BulkAggregateQuestionResultsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value BulkAggregateQuestionResultsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_DataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); } diff --git a/client/src/model/BulkAggregateQuestionResults_200_response.cpp b/client/src/model/BulkAggregateQuestionResults_200_response.cpp deleted file mode 100644 index 40d2552..0000000 --- a/client/src/model/BulkAggregateQuestionResults_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/BulkAggregateQuestionResults_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -BulkAggregateQuestionResults_200_response::BulkAggregateQuestionResults_200_response() -{ - m_StatusIsSet = false; - m_DataIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -BulkAggregateQuestionResults_200_response::~BulkAggregateQuestionResults_200_response() -{ -} - -void BulkAggregateQuestionResults_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value BulkAggregateQuestionResults_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_DataIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool BulkAggregateQuestionResults_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("data"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setData; - ok &= ModelBase::fromJson(fieldValue, refVal_setData); - setData(refVal_setData); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void BulkAggregateQuestionResults_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_DataIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("data")), m_Data)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool BulkAggregateQuestionResults_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - std::map> refVal_setData; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("data"))), refVal_setData ); - setData(refVal_setData); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr BulkAggregateQuestionResults_200_response::getStatus() const -{ - return m_Status; -} - - -void BulkAggregateQuestionResults_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool BulkAggregateQuestionResults_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void BulkAggregateQuestionResults_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map> BulkAggregateQuestionResults_200_response::getData() const -{ - return m_Data; -} - - -void BulkAggregateQuestionResults_200_response::setData(const std::map>& value) -{ - m_Data = value; - m_DataIsSet = true; -} - -bool BulkAggregateQuestionResults_200_response::dataIsSet() const -{ - return m_DataIsSet; -} - -void BulkAggregateQuestionResults_200_response::unsetData() -{ - m_DataIsSet = false; -} -utility::string_t BulkAggregateQuestionResults_200_response::getReason() const -{ - return m_Reason; -} - - -void BulkAggregateQuestionResults_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool BulkAggregateQuestionResults_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void BulkAggregateQuestionResults_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t BulkAggregateQuestionResults_200_response::getCode() const -{ - return m_Code; -} - - -void BulkAggregateQuestionResults_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool BulkAggregateQuestionResults_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void BulkAggregateQuestionResults_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t BulkAggregateQuestionResults_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void BulkAggregateQuestionResults_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool BulkAggregateQuestionResults_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void BulkAggregateQuestionResults_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t BulkAggregateQuestionResults_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void BulkAggregateQuestionResults_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool BulkAggregateQuestionResults_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void BulkAggregateQuestionResults_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t BulkAggregateQuestionResults_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void BulkAggregateQuestionResults_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool BulkAggregateQuestionResults_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void BulkAggregateQuestionResults_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t BulkAggregateQuestionResults_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void BulkAggregateQuestionResults_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool BulkAggregateQuestionResults_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void BulkAggregateQuestionResults_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr BulkAggregateQuestionResults_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void BulkAggregateQuestionResults_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool BulkAggregateQuestionResults_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void BulkAggregateQuestionResults_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/BulkCreateHashTagsBody.cpp b/client/src/model/BulkCreateHashTagsBody.cpp index a82ec87..3b0fd68 100644 --- a/client/src/model/BulkCreateHashTagsBody.cpp +++ b/client/src/model/BulkCreateHashTagsBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value BulkCreateHashTagsBody::toJson() const { web::json::value val = web::json::value::object(); if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_TagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tags"))] = ModelBase::toJson(m_Tags); } diff --git a/client/src/model/BulkCreateHashTagsBody_tags_inner.cpp b/client/src/model/BulkCreateHashTagsBody_tags_inner.cpp index 63597a4..b35e122 100644 --- a/client/src/model/BulkCreateHashTagsBody_tags_inner.cpp +++ b/client/src/model/BulkCreateHashTagsBody_tags_inner.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value BulkCreateHashTagsBody_tags_inner::toJson() const { web::json::value val = web::json::value::object(); if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_TagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } diff --git a/client/src/model/BulkCreateHashTagsResponse.cpp b/client/src/model/BulkCreateHashTagsResponse.cpp index 09a2dcf..3547720 100644 --- a/client/src/model/BulkCreateHashTagsResponse.cpp +++ b/client/src/model/BulkCreateHashTagsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value BulkCreateHashTagsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ResultsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("results"))] = ModelBase::toJson(m_Results); } @@ -69,7 +69,7 @@ bool BulkCreateHashTagsResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("results"))); if(!fieldValue.is_null()) { - std::vector> refVal_setResults; + std::vector> refVal_setResults; ok &= ModelBase::fromJson(fieldValue, refVal_setResults); setResults(refVal_setResults); @@ -112,7 +112,7 @@ bool BulkCreateHashTagsResponse::fromMultiPart(std::shared_ptrhasContent(utility::conversions::to_string_t(_XPLATSTR("results")))) { - std::vector> refVal_setResults; + std::vector> refVal_setResults; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("results"))), refVal_setResults ); setResults(refVal_setResults); } @@ -141,13 +141,13 @@ void BulkCreateHashTagsResponse::unsetStatus() { m_StatusIsSet = false; } -std::vector> BulkCreateHashTagsResponse::getResults() const +std::vector> BulkCreateHashTagsResponse::getResults() const { return m_Results; } -void BulkCreateHashTagsResponse::setResults(const std::vector>& value) +void BulkCreateHashTagsResponse::setResults(const std::vector>& value) { m_Results = value; m_ResultsIsSet = true; diff --git a/client/src/model/PatchHashTag_200_response.cpp b/client/src/model/BulkCreateHashTagsResponse_results_inner.cpp similarity index 77% rename from client/src/model/PatchHashTag_200_response.cpp rename to client/src/model/BulkCreateHashTagsResponse_results_inner.cpp index 8d52f3c..fcb205d 100644 --- a/client/src/model/PatchHashTag_200_response.cpp +++ b/client/src/model/BulkCreateHashTagsResponse_results_inner.cpp @@ -4,21 +4,21 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/PatchHashTag_200_response.h" +#include "FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h" namespace org { namespace openapitools { namespace client { namespace model { -PatchHashTag_200_response::PatchHashTag_200_response() +BulkCreateHashTagsResponse_results_inner::BulkCreateHashTagsResponse_results_inner() { m_StatusIsSet = false; m_HashTagIsSet = false; @@ -37,60 +37,60 @@ PatchHashTag_200_response::PatchHashTag_200_response() m_CustomConfigIsSet = false; } -PatchHashTag_200_response::~PatchHashTag_200_response() +BulkCreateHashTagsResponse_results_inner::~BulkCreateHashTagsResponse_results_inner() { } -void PatchHashTag_200_response::validate() +void BulkCreateHashTagsResponse_results_inner::validate() { // TODO: implement validation } -web::json::value PatchHashTag_200_response::toJson() const +web::json::value BulkCreateHashTagsResponse_results_inner::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_HashTagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTag"))] = ModelBase::toJson(m_HashTag); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_SecondaryCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); } if(m_BannedUntilIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); } if(m_MaxCharacterLengthIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); } if(m_TranslatedErrorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); } if(m_CustomConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); } @@ -98,7 +98,7 @@ web::json::value PatchHashTag_200_response::toJson() const return val; } -bool PatchHashTag_200_response::fromJson(const web::json::value& val) +bool BulkCreateHashTagsResponse_results_inner::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) @@ -203,7 +203,7 @@ bool PatchHashTag_200_response::fromJson(const web::json::value& val) return ok; } -void PatchHashTag_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void BulkCreateHashTagsResponse_results_inner::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) @@ -248,7 +248,7 @@ void PatchHashTag_200_response::toMultipart(std::shared_ptr m } } -bool PatchHashTag_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool BulkCreateHashTagsResponse_results_inner::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -315,190 +315,190 @@ bool PatchHashTag_200_response::fromMultiPart(std::shared_ptr } -std::shared_ptr PatchHashTag_200_response::getStatus() const +std::shared_ptr BulkCreateHashTagsResponse_results_inner::getStatus() const { return m_Status; } -void PatchHashTag_200_response::setStatus(const std::shared_ptr& value) +void BulkCreateHashTagsResponse_results_inner::setStatus(const std::shared_ptr& value) { m_Status = value; m_StatusIsSet = true; } -bool PatchHashTag_200_response::statusIsSet() const +bool BulkCreateHashTagsResponse_results_inner::statusIsSet() const { return m_StatusIsSet; } -void PatchHashTag_200_response::unsetStatus() +void BulkCreateHashTagsResponse_results_inner::unsetStatus() { m_StatusIsSet = false; } -std::shared_ptr PatchHashTag_200_response::getHashTag() const +std::shared_ptr BulkCreateHashTagsResponse_results_inner::getHashTag() const { return m_HashTag; } -void PatchHashTag_200_response::setHashTag(const std::shared_ptr& value) +void BulkCreateHashTagsResponse_results_inner::setHashTag(const std::shared_ptr& value) { m_HashTag = value; m_HashTagIsSet = true; } -bool PatchHashTag_200_response::hashTagIsSet() const +bool BulkCreateHashTagsResponse_results_inner::hashTagIsSet() const { return m_HashTagIsSet; } -void PatchHashTag_200_response::unsetHashTag() +void BulkCreateHashTagsResponse_results_inner::unsetHashTag() { m_HashTagIsSet = false; } -utility::string_t PatchHashTag_200_response::getReason() const +utility::string_t BulkCreateHashTagsResponse_results_inner::getReason() const { return m_Reason; } -void PatchHashTag_200_response::setReason(const utility::string_t& value) +void BulkCreateHashTagsResponse_results_inner::setReason(const utility::string_t& value) { m_Reason = value; m_ReasonIsSet = true; } -bool PatchHashTag_200_response::reasonIsSet() const +bool BulkCreateHashTagsResponse_results_inner::reasonIsSet() const { return m_ReasonIsSet; } -void PatchHashTag_200_response::unsetReason() +void BulkCreateHashTagsResponse_results_inner::unsetReason() { m_ReasonIsSet = false; } -utility::string_t PatchHashTag_200_response::getCode() const +utility::string_t BulkCreateHashTagsResponse_results_inner::getCode() const { return m_Code; } -void PatchHashTag_200_response::setCode(const utility::string_t& value) +void BulkCreateHashTagsResponse_results_inner::setCode(const utility::string_t& value) { m_Code = value; m_CodeIsSet = true; } -bool PatchHashTag_200_response::codeIsSet() const +bool BulkCreateHashTagsResponse_results_inner::codeIsSet() const { return m_CodeIsSet; } -void PatchHashTag_200_response::unsetCode() +void BulkCreateHashTagsResponse_results_inner::unsetCode() { m_CodeIsSet = false; } -utility::string_t PatchHashTag_200_response::getSecondaryCode() const +utility::string_t BulkCreateHashTagsResponse_results_inner::getSecondaryCode() const { return m_SecondaryCode; } -void PatchHashTag_200_response::setSecondaryCode(const utility::string_t& value) +void BulkCreateHashTagsResponse_results_inner::setSecondaryCode(const utility::string_t& value) { m_SecondaryCode = value; m_SecondaryCodeIsSet = true; } -bool PatchHashTag_200_response::secondaryCodeIsSet() const +bool BulkCreateHashTagsResponse_results_inner::secondaryCodeIsSet() const { return m_SecondaryCodeIsSet; } -void PatchHashTag_200_response::unsetSecondaryCode() +void BulkCreateHashTagsResponse_results_inner::unsetSecondaryCode() { m_SecondaryCodeIsSet = false; } -int64_t PatchHashTag_200_response::getBannedUntil() const +int64_t BulkCreateHashTagsResponse_results_inner::getBannedUntil() const { return m_BannedUntil; } -void PatchHashTag_200_response::setBannedUntil(int64_t value) +void BulkCreateHashTagsResponse_results_inner::setBannedUntil(int64_t value) { m_BannedUntil = value; m_BannedUntilIsSet = true; } -bool PatchHashTag_200_response::bannedUntilIsSet() const +bool BulkCreateHashTagsResponse_results_inner::bannedUntilIsSet() const { return m_BannedUntilIsSet; } -void PatchHashTag_200_response::unsetBannedUntil() +void BulkCreateHashTagsResponse_results_inner::unsetBannedUntil() { m_BannedUntilIsSet = false; } -int32_t PatchHashTag_200_response::getMaxCharacterLength() const +int32_t BulkCreateHashTagsResponse_results_inner::getMaxCharacterLength() const { return m_MaxCharacterLength; } -void PatchHashTag_200_response::setMaxCharacterLength(int32_t value) +void BulkCreateHashTagsResponse_results_inner::setMaxCharacterLength(int32_t value) { m_MaxCharacterLength = value; m_MaxCharacterLengthIsSet = true; } -bool PatchHashTag_200_response::maxCharacterLengthIsSet() const +bool BulkCreateHashTagsResponse_results_inner::maxCharacterLengthIsSet() const { return m_MaxCharacterLengthIsSet; } -void PatchHashTag_200_response::unsetMaxCharacterLength() +void BulkCreateHashTagsResponse_results_inner::unsetMaxCharacterLength() { m_MaxCharacterLengthIsSet = false; } -utility::string_t PatchHashTag_200_response::getTranslatedError() const +utility::string_t BulkCreateHashTagsResponse_results_inner::getTranslatedError() const { return m_TranslatedError; } -void PatchHashTag_200_response::setTranslatedError(const utility::string_t& value) +void BulkCreateHashTagsResponse_results_inner::setTranslatedError(const utility::string_t& value) { m_TranslatedError = value; m_TranslatedErrorIsSet = true; } -bool PatchHashTag_200_response::translatedErrorIsSet() const +bool BulkCreateHashTagsResponse_results_inner::translatedErrorIsSet() const { return m_TranslatedErrorIsSet; } -void PatchHashTag_200_response::unsetTranslatedError() +void BulkCreateHashTagsResponse_results_inner::unsetTranslatedError() { m_TranslatedErrorIsSet = false; } -std::shared_ptr PatchHashTag_200_response::getCustomConfig() const +std::shared_ptr BulkCreateHashTagsResponse_results_inner::getCustomConfig() const { return m_CustomConfig; } -void PatchHashTag_200_response::setCustomConfig(const std::shared_ptr& value) +void BulkCreateHashTagsResponse_results_inner::setCustomConfig(const std::shared_ptr& value) { m_CustomConfig = value; m_CustomConfigIsSet = true; } -bool PatchHashTag_200_response::customConfigIsSet() const +bool BulkCreateHashTagsResponse_results_inner::customConfigIsSet() const { return m_CustomConfigIsSet; } -void PatchHashTag_200_response::unsetCustomConfig() +void BulkCreateHashTagsResponse_results_inner::unsetCustomConfig() { m_CustomConfigIsSet = false; } diff --git a/client/src/model/BulkPreBanParams.cpp b/client/src/model/BulkPreBanParams.cpp new file mode 100644 index 0000000..5adfbfd --- /dev/null +++ b/client/src/model/BulkPreBanParams.cpp @@ -0,0 +1,123 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/BulkPreBanParams.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +BulkPreBanParams::BulkPreBanParams() +{ + m_CommentIdsIsSet = false; +} + +BulkPreBanParams::~BulkPreBanParams() +{ +} + +void BulkPreBanParams::validate() +{ + // TODO: implement validation +} + +web::json::value BulkPreBanParams::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentIdsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentIds"))] = ModelBase::toJson(m_CommentIds); + } + + return val; +} + +bool BulkPreBanParams::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentIds")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentIds"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setCommentIds; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentIds); + setCommentIds(refVal_setCommentIds); + + } + } + return ok; +} + +void BulkPreBanParams::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentIdsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentIds")), m_CommentIds)); + } +} + +bool BulkPreBanParams::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentIds")))) + { + std::vector refVal_setCommentIds; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentIds"))), refVal_setCommentIds ); + setCommentIds(refVal_setCommentIds); + } + return ok; +} + + +std::vector BulkPreBanParams::getCommentIds() const +{ + return m_CommentIds; +} + + +void BulkPreBanParams::setCommentIds(const std::vector& value) +{ + m_CommentIds = value; + m_CommentIdsIsSet = true; +} + +bool BulkPreBanParams::commentIdsIsSet() const +{ + return m_CommentIdsIsSet; +} + +void BulkPreBanParams::unsetCommentIds() +{ + m_CommentIdsIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/BulkPreBanSummary.cpp b/client/src/model/BulkPreBanSummary.cpp new file mode 100644 index 0000000..1fefcc4 --- /dev/null +++ b/client/src/model/BulkPreBanSummary.cpp @@ -0,0 +1,364 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/BulkPreBanSummary.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +BulkPreBanSummary::BulkPreBanSummary() +{ + m_Status = utility::conversions::to_string_t(""); + m_StatusIsSet = false; + m_TotalRelatedCommentCount = 0; + m_TotalRelatedCommentCountIsSet = false; + m_EmailDomainsIsSet = false; + m_EmailsIsSet = false; + m_UserIdsIsSet = false; + m_IpHashesIsSet = false; +} + +BulkPreBanSummary::~BulkPreBanSummary() +{ +} + +void BulkPreBanSummary::validate() +{ + // TODO: implement validation +} + +web::json::value BulkPreBanSummary::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TotalRelatedCommentCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount"))] = ModelBase::toJson(m_TotalRelatedCommentCount); + } + if(m_EmailDomainsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("emailDomains"))] = ModelBase::toJson(m_EmailDomains); + } + if(m_EmailsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("emails"))] = ModelBase::toJson(m_Emails); + } + if(m_UserIdsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userIds"))] = ModelBase::toJson(m_UserIds); + } + if(m_IpHashesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ipHashes"))] = ModelBase::toJson(m_IpHashes); + } + + return val; +} + +bool BulkPreBanSummary::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setTotalRelatedCommentCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setTotalRelatedCommentCount); + setTotalRelatedCommentCount(refVal_setTotalRelatedCommentCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailDomains")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailDomains"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setEmailDomains; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmailDomains); + setEmailDomains(refVal_setEmailDomains); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emails")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emails"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setEmails; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmails); + setEmails(refVal_setEmails); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIds")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIds"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setUserIds; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserIds); + setUserIds(refVal_setUserIds); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ipHashes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ipHashes"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setIpHashes; + ok &= ModelBase::fromJson(fieldValue, refVal_setIpHashes); + setIpHashes(refVal_setIpHashes); + + } + } + return ok; +} + +void BulkPreBanSummary::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TotalRelatedCommentCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount")), m_TotalRelatedCommentCount)); + } + if(m_EmailDomainsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailDomains")), m_EmailDomains)); + } + if(m_EmailsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emails")), m_Emails)); + } + if(m_UserIdsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIds")), m_UserIds)); + } + if(m_IpHashesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHashes")), m_IpHashes)); + } +} + +bool BulkPreBanSummary::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount")))) + { + int32_t refVal_setTotalRelatedCommentCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount"))), refVal_setTotalRelatedCommentCount ); + setTotalRelatedCommentCount(refVal_setTotalRelatedCommentCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailDomains")))) + { + std::vector refVal_setEmailDomains; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailDomains"))), refVal_setEmailDomains ); + setEmailDomains(refVal_setEmailDomains); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emails")))) + { + std::vector refVal_setEmails; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emails"))), refVal_setEmails ); + setEmails(refVal_setEmails); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIds")))) + { + std::vector refVal_setUserIds; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIds"))), refVal_setUserIds ); + setUserIds(refVal_setUserIds); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ipHashes")))) + { + std::vector refVal_setIpHashes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ipHashes"))), refVal_setIpHashes ); + setIpHashes(refVal_setIpHashes); + } + return ok; +} + + +utility::string_t BulkPreBanSummary::getStatus() const +{ + return m_Status; +} + + +void BulkPreBanSummary::setStatus(const utility::string_t& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool BulkPreBanSummary::statusIsSet() const +{ + return m_StatusIsSet; +} + +void BulkPreBanSummary::unsetStatus() +{ + m_StatusIsSet = false; +} +int32_t BulkPreBanSummary::getTotalRelatedCommentCount() const +{ + return m_TotalRelatedCommentCount; +} + +void BulkPreBanSummary::setTotalRelatedCommentCount(int32_t value) +{ + m_TotalRelatedCommentCount = value; + m_TotalRelatedCommentCountIsSet = true; +} + +bool BulkPreBanSummary::totalRelatedCommentCountIsSet() const +{ + return m_TotalRelatedCommentCountIsSet; +} + +void BulkPreBanSummary::unsetTotalRelatedCommentCount() +{ + m_TotalRelatedCommentCountIsSet = false; +} +std::vector BulkPreBanSummary::getEmailDomains() const +{ + return m_EmailDomains; +} + + +void BulkPreBanSummary::setEmailDomains(const std::vector& value) +{ + m_EmailDomains = value; + m_EmailDomainsIsSet = true; +} + +bool BulkPreBanSummary::emailDomainsIsSet() const +{ + return m_EmailDomainsIsSet; +} + +void BulkPreBanSummary::unsetEmailDomains() +{ + m_EmailDomainsIsSet = false; +} +std::vector BulkPreBanSummary::getEmails() const +{ + return m_Emails; +} + + +void BulkPreBanSummary::setEmails(const std::vector& value) +{ + m_Emails = value; + m_EmailsIsSet = true; +} + +bool BulkPreBanSummary::emailsIsSet() const +{ + return m_EmailsIsSet; +} + +void BulkPreBanSummary::unsetEmails() +{ + m_EmailsIsSet = false; +} +std::vector BulkPreBanSummary::getUserIds() const +{ + return m_UserIds; +} + + +void BulkPreBanSummary::setUserIds(const std::vector& value) +{ + m_UserIds = value; + m_UserIdsIsSet = true; +} + +bool BulkPreBanSummary::userIdsIsSet() const +{ + return m_UserIdsIsSet; +} + +void BulkPreBanSummary::unsetUserIds() +{ + m_UserIdsIsSet = false; +} +std::vector BulkPreBanSummary::getIpHashes() const +{ + return m_IpHashes; +} + + +void BulkPreBanSummary::setIpHashes(const std::vector& value) +{ + m_IpHashes = value; + m_IpHashesIsSet = true; +} + +bool BulkPreBanSummary::ipHashesIsSet() const +{ + return m_IpHashesIsSet; +} + +void BulkPreBanSummary::unsetIpHashes() +{ + m_IpHashesIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ChangeCommentPinStatusResponse.cpp b/client/src/model/ChangeCommentPinStatusResponse.cpp index b02140e..2e9e3c2 100644 --- a/client/src/model/ChangeCommentPinStatusResponse.cpp +++ b/client/src/model/ChangeCommentPinStatusResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value ChangeCommentPinStatusResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentPositionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentPositions"))] = ModelBase::toJson(m_CommentPositions); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/ChangeTicketStateBody.cpp b/client/src/model/ChangeTicketStateBody.cpp index b0b90b2..f208d46 100644 --- a/client/src/model/ChangeTicketStateBody.cpp +++ b/client/src/model/ChangeTicketStateBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,7 @@ web::json::value ChangeTicketStateBody::toJson() const { web::json::value val = web::json::value::object(); if(m_StateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("state"))] = ModelBase::toJson(m_State); } diff --git a/client/src/model/ChangeTicketStateResponse.cpp b/client/src/model/ChangeTicketStateResponse.cpp index e7cf777..8a446bd 100644 --- a/client/src/model/ChangeTicketStateResponse.cpp +++ b/client/src/model/ChangeTicketStateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value ChangeTicketStateResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TicketIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); } diff --git a/client/src/model/ChangeTicketState_200_response.cpp b/client/src/model/ChangeTicketState_200_response.cpp deleted file mode 100644 index 6661ede..0000000 --- a/client/src/model/ChangeTicketState_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/ChangeTicketState_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -ChangeTicketState_200_response::ChangeTicketState_200_response() -{ - m_StatusIsSet = false; - m_TicketIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -ChangeTicketState_200_response::~ChangeTicketState_200_response() -{ -} - -void ChangeTicketState_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value ChangeTicketState_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TicketIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool ChangeTicketState_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ticket")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ticket"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTicket; - ok &= ModelBase::fromJson(fieldValue, refVal_setTicket); - setTicket(refVal_setTicket); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void ChangeTicketState_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TicketIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ticket")), m_Ticket)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool ChangeTicketState_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ticket")))) - { - std::shared_ptr refVal_setTicket; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ticket"))), refVal_setTicket ); - setTicket(refVal_setTicket); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr ChangeTicketState_200_response::getStatus() const -{ - return m_Status; -} - - -void ChangeTicketState_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool ChangeTicketState_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void ChangeTicketState_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr ChangeTicketState_200_response::getTicket() const -{ - return m_Ticket; -} - - -void ChangeTicketState_200_response::setTicket(const std::shared_ptr& value) -{ - m_Ticket = value; - m_TicketIsSet = true; -} - -bool ChangeTicketState_200_response::ticketIsSet() const -{ - return m_TicketIsSet; -} - -void ChangeTicketState_200_response::unsetTicket() -{ - m_TicketIsSet = false; -} -utility::string_t ChangeTicketState_200_response::getReason() const -{ - return m_Reason; -} - - -void ChangeTicketState_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool ChangeTicketState_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void ChangeTicketState_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t ChangeTicketState_200_response::getCode() const -{ - return m_Code; -} - - -void ChangeTicketState_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool ChangeTicketState_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void ChangeTicketState_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t ChangeTicketState_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void ChangeTicketState_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool ChangeTicketState_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void ChangeTicketState_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t ChangeTicketState_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void ChangeTicketState_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool ChangeTicketState_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void ChangeTicketState_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t ChangeTicketState_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void ChangeTicketState_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool ChangeTicketState_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void ChangeTicketState_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t ChangeTicketState_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void ChangeTicketState_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool ChangeTicketState_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void ChangeTicketState_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr ChangeTicketState_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void ChangeTicketState_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool ChangeTicketState_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void ChangeTicketState_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CheckBlockedCommentsResponse.cpp b/client/src/model/CheckBlockedCommentsResponse.cpp index b74a14c..da4b525 100644 --- a/client/src/model/CheckBlockedCommentsResponse.cpp +++ b/client/src/model/CheckBlockedCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CheckBlockedCommentsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentStatusesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/CheckedCommentsForBlocked_200_response.cpp b/client/src/model/CheckedCommentsForBlocked_200_response.cpp deleted file mode 100644 index d012ab4..0000000 --- a/client/src/model/CheckedCommentsForBlocked_200_response.cpp +++ /dev/null @@ -1,510 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CheckedCommentsForBlocked_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CheckedCommentsForBlocked_200_response::CheckedCommentsForBlocked_200_response() -{ - m_CommentStatusesIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CheckedCommentsForBlocked_200_response::~CheckedCommentsForBlocked_200_response() -{ -} - -void CheckedCommentsForBlocked_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CheckedCommentsForBlocked_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CommentStatusesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CheckedCommentsForBlocked_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))); - if(!fieldValue.is_null()) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentStatuses); - setCommentStatuses(refVal_setCommentStatuses); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CheckedCommentsForBlocked_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CommentStatusesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentStatuses")), m_CommentStatuses)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CheckedCommentsForBlocked_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))), refVal_setCommentStatuses ); - setCommentStatuses(refVal_setCommentStatuses); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::map CheckedCommentsForBlocked_200_response::getCommentStatuses() const -{ - return m_CommentStatuses; -} - -void CheckedCommentsForBlocked_200_response::setCommentStatuses(std::map value) -{ - m_CommentStatuses = value; - m_CommentStatusesIsSet = true; -} - -bool CheckedCommentsForBlocked_200_response::commentStatusesIsSet() const -{ - return m_CommentStatusesIsSet; -} - -void CheckedCommentsForBlocked_200_response::unsetCommentStatuses() -{ - m_CommentStatusesIsSet = false; -} -std::shared_ptr CheckedCommentsForBlocked_200_response::getStatus() const -{ - return m_Status; -} - - -void CheckedCommentsForBlocked_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CheckedCommentsForBlocked_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CheckedCommentsForBlocked_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t CheckedCommentsForBlocked_200_response::getReason() const -{ - return m_Reason; -} - - -void CheckedCommentsForBlocked_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CheckedCommentsForBlocked_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CheckedCommentsForBlocked_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CheckedCommentsForBlocked_200_response::getCode() const -{ - return m_Code; -} - - -void CheckedCommentsForBlocked_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CheckedCommentsForBlocked_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CheckedCommentsForBlocked_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CheckedCommentsForBlocked_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CheckedCommentsForBlocked_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CheckedCommentsForBlocked_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CheckedCommentsForBlocked_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CheckedCommentsForBlocked_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CheckedCommentsForBlocked_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CheckedCommentsForBlocked_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CheckedCommentsForBlocked_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CheckedCommentsForBlocked_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CheckedCommentsForBlocked_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CheckedCommentsForBlocked_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CheckedCommentsForBlocked_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CheckedCommentsForBlocked_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CheckedCommentsForBlocked_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CheckedCommentsForBlocked_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CheckedCommentsForBlocked_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CheckedCommentsForBlocked_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CheckedCommentsForBlocked_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CheckedCommentsForBlocked_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CheckedCommentsForBlocked_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CombineCommentsWithQuestionResults_200_response.cpp b/client/src/model/CombineCommentsWithQuestionResults_200_response.cpp deleted file mode 100644 index 47bda6b..0000000 --- a/client/src/model/CombineCommentsWithQuestionResults_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CombineCommentsWithQuestionResults_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CombineCommentsWithQuestionResults_200_response::CombineCommentsWithQuestionResults_200_response() -{ - m_StatusIsSet = false; - m_DataIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CombineCommentsWithQuestionResults_200_response::~CombineCommentsWithQuestionResults_200_response() -{ -} - -void CombineCommentsWithQuestionResults_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CombineCommentsWithQuestionResults_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_DataIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CombineCommentsWithQuestionResults_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("data"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setData; - ok &= ModelBase::fromJson(fieldValue, refVal_setData); - setData(refVal_setData); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CombineCommentsWithQuestionResults_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_DataIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("data")), m_Data)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CombineCommentsWithQuestionResults_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - std::shared_ptr refVal_setData; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("data"))), refVal_setData ); - setData(refVal_setData); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CombineCommentsWithQuestionResults_200_response::getStatus() const -{ - return m_Status; -} - - -void CombineCommentsWithQuestionResults_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CombineCommentsWithQuestionResults_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CombineCommentsWithQuestionResults_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CombineCommentsWithQuestionResults_200_response::getData() const -{ - return m_Data; -} - - -void CombineCommentsWithQuestionResults_200_response::setData(const std::shared_ptr& value) -{ - m_Data = value; - m_DataIsSet = true; -} - -bool CombineCommentsWithQuestionResults_200_response::dataIsSet() const -{ - return m_DataIsSet; -} - -void CombineCommentsWithQuestionResults_200_response::unsetData() -{ - m_DataIsSet = false; -} -utility::string_t CombineCommentsWithQuestionResults_200_response::getReason() const -{ - return m_Reason; -} - - -void CombineCommentsWithQuestionResults_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CombineCommentsWithQuestionResults_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CombineCommentsWithQuestionResults_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CombineCommentsWithQuestionResults_200_response::getCode() const -{ - return m_Code; -} - - -void CombineCommentsWithQuestionResults_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CombineCommentsWithQuestionResults_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CombineCommentsWithQuestionResults_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CombineCommentsWithQuestionResults_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CombineCommentsWithQuestionResults_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CombineCommentsWithQuestionResults_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CombineCommentsWithQuestionResults_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CombineCommentsWithQuestionResults_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CombineCommentsWithQuestionResults_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CombineCommentsWithQuestionResults_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CombineCommentsWithQuestionResults_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CombineCommentsWithQuestionResults_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CombineCommentsWithQuestionResults_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CombineCommentsWithQuestionResults_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CombineCommentsWithQuestionResults_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CombineCommentsWithQuestionResults_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CombineCommentsWithQuestionResults_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CombineCommentsWithQuestionResults_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CombineCommentsWithQuestionResults_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CombineCommentsWithQuestionResults_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CombineCommentsWithQuestionResults_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CombineCommentsWithQuestionResults_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CombineCommentsWithQuestionResults_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CombineQuestionResultsWithCommentsResponse.cpp b/client/src/model/CombineQuestionResultsWithCommentsResponse.cpp index c885dd3..2579751 100644 --- a/client/src/model/CombineQuestionResultsWithCommentsResponse.cpp +++ b/client/src/model/CombineQuestionResultsWithCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CombineQuestionResultsWithCommentsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_DataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); } diff --git a/client/src/model/CommentData.cpp b/client/src/model/CommentData.cpp index ef47f80..c7ca081 100644 --- a/client/src/model/CommentData.cpp +++ b/client/src/model/CommentData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -28,10 +28,20 @@ CommentData::CommentData() m_LocalDateHoursIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; + m_CommenterEmail = utility::conversions::to_string_t(""); + m_CommenterEmailIsSet = false; + m_CommenterLink = utility::conversions::to_string_t(""); + m_CommenterLinkIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; m_ProductId = 0; m_ProductIdIsSet = false; + m_UserId = utility::conversions::to_string_t(""); + m_UserIdIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; + m_ParentId = utility::conversions::to_string_t(""); + m_ParentIdIsSet = false; m_MentionsIsSet = false; m_HashTagsIsSet = false; m_PageTitle = utility::conversions::to_string_t(""); @@ -54,6 +64,8 @@ CommentData::CommentData() m_QuestionValuesIsSet = false; m_Tos = false; m_TosIsSet = false; + m_BotId = utility::conversions::to_string_t(""); + m_BotIdIsSet = false; } CommentData::~CommentData() @@ -69,130 +81,135 @@ web::json::value CommentData::toJson() const { web::json::value val = web::json::value::object(); if(m_dateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); } if(m_LocalDateStringIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); } if(m_LocalDateHoursIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterEmail.has_value()) - { + if(m_CommenterEmailIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); } - if(m_CommenterLink.has_value()) - { + if(m_CommenterLinkIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_ProductIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("productId"))] = ModelBase::toJson(m_ProductId); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } - if(m_AvatarSrc.has_value()) - { + if(m_AvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } - if(m_ParentId.has_value()) - { + if(m_ParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); } if(m_MentionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("mentions"))] = ModelBase::toJson(m_Mentions); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } if(m_PageTitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } if(m_IsFromMyAccountPageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isFromMyAccountPage"))] = ModelBase::toJson(m_IsFromMyAccountPage); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } if(m_ModerationGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } if(m_RatingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); } if(m_FromOfflineRestoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromOfflineRestore"))] = ModelBase::toJson(m_FromOfflineRestore); } if(m_AutoplayDelayMSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoplayDelayMS"))] = ModelBase::toJson(m_AutoplayDelayMS); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } if(m_QuestionValuesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionValues"))] = ModelBase::toJson(m_QuestionValues); } if(m_TosIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tos"))] = ModelBase::toJson(m_Tos); } + if(m_BotIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("botId"))] = ModelBase::toJson(m_BotId); + } return val; } @@ -458,7 +475,7 @@ bool CommentData::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionValues"))); if(!fieldValue.is_null()) { - std::map> refVal_setQuestionValues; + std::map> refVal_setQuestionValues; ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionValues); setQuestionValues(refVal_setQuestionValues); @@ -475,6 +492,17 @@ bool CommentData::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("botId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("botId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBotId; + ok &= ModelBase::fromJson(fieldValue, refVal_setBotId); + setBotId(refVal_setBotId); + + } + } return ok; } @@ -501,13 +529,13 @@ void CommentData::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterEmail.has_value()) + if(m_CommenterEmailIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); } - if(m_CommenterLink.has_value()) + if(m_CommenterLinkIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); } if(m_CommentIsSet) { @@ -517,17 +545,17 @@ void CommentData::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("productId")), m_ProductId)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } - if(m_AvatarSrc.has_value()) + if(m_AvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); } - if(m_ParentId.has_value()) + if(m_ParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); } if(m_MentionsIsSet) { @@ -585,6 +613,10 @@ void CommentData::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tos")), m_Tos)); } + if(m_BotIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("botId")), m_BotId)); + } } bool CommentData::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -736,7 +768,7 @@ bool CommentData::fromMultiPart(std::shared_ptr multipart, co } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionValues")))) { - std::map> refVal_setQuestionValues; + std::map> refVal_setQuestionValues; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionValues"))), refVal_setQuestionValues ); setQuestionValues(refVal_setQuestionValues); } @@ -746,6 +778,12 @@ bool CommentData::fromMultiPart(std::shared_ptr multipart, co ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tos"))), refVal_setTos ); setTos(refVal_setTos); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("botId")))) + { + utility::string_t refVal_setBotId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("botId"))), refVal_setBotId ); + setBotId(refVal_setBotId); + } return ok; } @@ -834,43 +872,45 @@ void CommentData::unsetCommenterName() } utility::string_t CommentData::getCommenterEmail() const { - return m_CommenterEmail.get(); + return m_CommenterEmail; } void CommentData::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; + m_CommenterEmailIsSet = true; } bool CommentData::commenterEmailIsSet() const { - return m_CommenterEmail.has_value(); + return m_CommenterEmailIsSet; } void CommentData::unsetCommenterEmail() { - m_CommenterEmail.reset(); + m_CommenterEmailIsSet = false; } utility::string_t CommentData::getCommenterLink() const { - return m_CommenterLink.get(); + return m_CommenterLink; } void CommentData::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; + m_CommenterLinkIsSet = true; } bool CommentData::commenterLinkIsSet() const { - return m_CommenterLink.has_value(); + return m_CommenterLinkIsSet; } void CommentData::unsetCommenterLink() { - m_CommenterLink.reset(); + m_CommenterLinkIsSet = false; } utility::string_t CommentData::getComment() const { @@ -915,63 +955,66 @@ void CommentData::unsetProductId() } utility::string_t CommentData::getUserId() const { - return m_UserId.get(); + return m_UserId; } void CommentData::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool CommentData::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void CommentData::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } utility::string_t CommentData::getAvatarSrc() const { - return m_AvatarSrc.get(); + return m_AvatarSrc; } void CommentData::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; + m_AvatarSrcIsSet = true; } bool CommentData::avatarSrcIsSet() const { - return m_AvatarSrc.has_value(); + return m_AvatarSrcIsSet; } void CommentData::unsetAvatarSrc() { - m_AvatarSrc.reset(); + m_AvatarSrcIsSet = false; } utility::string_t CommentData::getParentId() const { - return m_ParentId.get(); + return m_ParentId; } void CommentData::setParentId(const utility::string_t& value) { m_ParentId = value; + m_ParentIdIsSet = true; } bool CommentData::parentIdIsSet() const { - return m_ParentId.has_value(); + return m_ParentIdIsSet; } void CommentData::unsetParentId() { - m_ParentId.reset(); + m_ParentIdIsSet = false; } std::vector> CommentData::getMentions() const { @@ -1221,13 +1264,13 @@ void CommentData::unsetFeedbackIds() { m_FeedbackIdsIsSet = false; } -std::map> CommentData::getQuestionValues() const +std::map> CommentData::getQuestionValues() const { return m_QuestionValues; } -void CommentData::setQuestionValues(const std::map>& value) +void CommentData::setQuestionValues(const std::map>& value) { m_QuestionValues = value; m_QuestionValuesIsSet = true; @@ -1262,6 +1305,27 @@ void CommentData::unsetTos() { m_TosIsSet = false; } +utility::string_t CommentData::getBotId() const +{ + return m_BotId; +} + + +void CommentData::setBotId(const utility::string_t& value) +{ + m_BotId = value; + m_BotIdIsSet = true; +} + +bool CommentData::botIdIsSet() const +{ + return m_BotIdIsSet; +} + +void CommentData::unsetBotId() +{ + m_BotIdIsSet = false; +} } } diff --git a/client/src/model/CommentHTMLRenderingMode.cpp b/client/src/model/CommentHTMLRenderingMode.cpp index 7e04d58..97746c2 100644 --- a/client/src/model/CommentHTMLRenderingMode.cpp +++ b/client/src/model/CommentHTMLRenderingMode.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentLogData.cpp b/client/src/model/CommentLogData.cpp index 9d449a0..cb4f377 100644 --- a/client/src/model/CommentLogData.cpp +++ b/client/src/model/CommentLogData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -50,6 +50,8 @@ CommentLogData::CommentLogData() m_EngineTokensIsSet = false; m_TrustFactor = 0.0; m_TrustFactorIsSet = false; + m_Source = utility::conversions::to_string_t(""); + m_SourceIsSet = false; m_RuleIsSet = false; m_UserId = utility::conversions::to_string_t(""); m_UserIdIsSet = false; @@ -57,8 +59,21 @@ CommentLogData::CommentLogData() m_SubscribersIsSet = false; m_NotificationCount = 0.0; m_NotificationCountIsSet = false; + m_VotesBefore = 0.0; + m_VotesBeforeIsSet = false; + m_VotesUpBefore = 0.0; + m_VotesUpBeforeIsSet = false; + m_VotesDownBefore = 0.0; + m_VotesDownBeforeIsSet = false; + m_VotesAfter = 0.0; + m_VotesAfterIsSet = false; + m_VotesUpAfter = 0.0; + m_VotesUpAfterIsSet = false; + m_VotesDownAfter = 0.0; + m_VotesDownAfterIsSet = false; m_RepeatActionIsSet = false; m_ReasonIsSet = false; + m_OtherDataIsSet = false; m_SpamBefore = false; m_SpamBeforeIsSet = false; m_SpamAfter = false; @@ -76,6 +91,12 @@ CommentLogData::CommentLogData() m_TextBeforeIsSet = false; m_TextAfter = utility::conversions::to_string_t(""); m_TextAfterIsSet = false; + m_ExpireBefore = utility::datetime(); + m_ExpireBeforeIsSet = false; + m_ExpireAfter = utility::datetime(); + m_ExpireAfterIsSet = false; + m_FlagCountBefore = 0.0; + m_FlagCountBeforeIsSet = false; m_TrustFactorBefore = 0.0; m_TrustFactorBeforeIsSet = false; m_TrustFactorAfter = 0.0; @@ -103,234 +124,239 @@ web::json::value CommentLogData::toJson() const { web::json::value val = web::json::value::object(); if(m_ClearContentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("clearContent"))] = ModelBase::toJson(m_ClearContent); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_PhraseIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("phrase"))] = ModelBase::toJson(m_Phrase); } if(m_BadWordIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badWord"))] = ModelBase::toJson(m_BadWord); } if(m_WordIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("word"))] = ModelBase::toJson(m_Word); } if(m_LocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_TenantBadgeIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantBadgeId"))] = ModelBase::toJson(m_TenantBadgeId); } if(m_BadgeIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badgeId"))] = ModelBase::toJson(m_BadgeId); } if(m_WasLoggedInIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wasLoggedIn"))] = ModelBase::toJson(m_WasLoggedIn); } if(m_FoundUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("foundUser"))] = ModelBase::toJson(m_FoundUser); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if(m_EngineIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("engine"))] = ModelBase::toJson(m_Engine); } if(m_EngineResponseIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("engineResponse"))] = ModelBase::toJson(m_EngineResponse); } if(m_EngineTokensIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("engineTokens"))] = ModelBase::toJson(m_EngineTokens); } if(m_TrustFactorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("trustFactor"))] = ModelBase::toJson(m_TrustFactor); } + if(m_SourceIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("source"))] = ModelBase::toJson(m_Source); + } if(m_RuleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("rule"))] = ModelBase::toJson(m_Rule); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_SubscribersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subscribers"))] = ModelBase::toJson(m_Subscribers); } if(m_NotificationCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationCount"))] = ModelBase::toJson(m_NotificationCount); } - if(m_VotesBefore.has_value()) - { + if(m_VotesBeforeIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesBefore"))] = ModelBase::toJson(m_VotesBefore.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesBefore"))] = ModelBase::toJson(m_VotesBefore); } - if(m_VotesUpBefore.has_value()) - { + if(m_VotesUpBeforeIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUpBefore"))] = ModelBase::toJson(m_VotesUpBefore.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesUpBefore"))] = ModelBase::toJson(m_VotesUpBefore); } - if(m_VotesDownBefore.has_value()) - { + if(m_VotesDownBeforeIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDownBefore"))] = ModelBase::toJson(m_VotesDownBefore.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesDownBefore"))] = ModelBase::toJson(m_VotesDownBefore); } - if(m_VotesAfter.has_value()) - { + if(m_VotesAfterIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesAfter"))] = ModelBase::toJson(m_VotesAfter.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesAfter"))] = ModelBase::toJson(m_VotesAfter); } - if(m_VotesUpAfter.has_value()) - { + if(m_VotesUpAfterIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUpAfter"))] = ModelBase::toJson(m_VotesUpAfter.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesUpAfter"))] = ModelBase::toJson(m_VotesUpAfter); } - if(m_VotesDownAfter.has_value()) - { + if(m_VotesDownAfterIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDownAfter"))] = ModelBase::toJson(m_VotesDownAfter.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesDownAfter"))] = ModelBase::toJson(m_VotesDownAfter); } if(m_RepeatActionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("repeatAction"))] = ModelBase::toJson(m_RepeatAction); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } - if(m_OtherData.has_value()) - { + if(m_OtherDataIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("otherData"))] = ModelBase::toJson(m_OtherData.get()); + val[utility::conversions::to_string_t(_XPLATSTR("otherData"))] = ModelBase::toJson(m_OtherData); } if(m_SpamBeforeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("spamBefore"))] = ModelBase::toJson(m_SpamBefore); } if(m_SpamAfterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("spamAfter"))] = ModelBase::toJson(m_SpamAfter); } if(m_PermanentFlagIsSet) - { + { utility::string_t refVal = fromPermanentFlagEnum(m_PermanentFlag); val[utility::conversions::to_string_t(_XPLATSTR("permanentFlag"))] = ModelBase::toJson(refVal); } if(m_ApprovedBeforeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approvedBefore"))] = ModelBase::toJson(m_ApprovedBefore); } if(m_ApprovedAfterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approvedAfter"))] = ModelBase::toJson(m_ApprovedAfter); } if(m_ReviewedBeforeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewedBefore"))] = ModelBase::toJson(m_ReviewedBefore); } if(m_ReviewedAfterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewedAfter"))] = ModelBase::toJson(m_ReviewedAfter); } if(m_TextBeforeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("textBefore"))] = ModelBase::toJson(m_TextBefore); } if(m_TextAfterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("textAfter"))] = ModelBase::toJson(m_TextAfter); } - if(m_ExpireBefore.has_value()) - { + if(m_ExpireBeforeIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireBefore"))] = ModelBase::toJson(m_ExpireBefore.get()); + val[utility::conversions::to_string_t(_XPLATSTR("expireBefore"))] = ModelBase::toJson(m_ExpireBefore); } - if(m_ExpireAfter.has_value()) - { + if(m_ExpireAfterIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAfter"))] = ModelBase::toJson(m_ExpireAfter.get()); + val[utility::conversions::to_string_t(_XPLATSTR("expireAfter"))] = ModelBase::toJson(m_ExpireAfter); } - if(m_FlagCountBefore.has_value()) - { + if(m_FlagCountBeforeIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCountBefore"))] = ModelBase::toJson(m_FlagCountBefore.get()); + val[utility::conversions::to_string_t(_XPLATSTR("flagCountBefore"))] = ModelBase::toJson(m_FlagCountBefore); } if(m_TrustFactorBeforeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("trustFactorBefore"))] = ModelBase::toJson(m_TrustFactorBefore); } if(m_TrustFactorAfterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("trustFactorAfter"))] = ModelBase::toJson(m_TrustFactorAfter); } if(m_ReferencedCommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("referencedCommentId"))] = ModelBase::toJson(m_ReferencedCommentId); } if(m_InvalidLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("invalidLocale"))] = ModelBase::toJson(m_InvalidLocale); } if(m_DetectedLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("detectedLocale"))] = ModelBase::toJson(m_DetectedLocale); } if(m_DetectedLanguageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("detectedLanguage"))] = ModelBase::toJson(m_DetectedLanguage); } @@ -506,6 +532,17 @@ bool CommentLogData::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("source")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("source"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSource; + ok &= ModelBase::fromJson(fieldValue, refVal_setSource); + setSource(refVal_setSource); + + } + } if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("rule")))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("rule"))); @@ -918,6 +955,10 @@ void CommentLogData::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("trustFactor")), m_TrustFactor)); } + if(m_SourceIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("source")), m_Source)); + } if(m_RuleIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rule")), m_Rule)); @@ -934,29 +975,29 @@ void CommentLogData::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notificationCount")), m_NotificationCount)); } - if(m_VotesBefore.has_value()) + if(m_VotesBeforeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesBefore")), m_VotesBefore.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesBefore")), m_VotesBefore)); } - if(m_VotesUpBefore.has_value()) + if(m_VotesUpBeforeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUpBefore")), m_VotesUpBefore.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUpBefore")), m_VotesUpBefore)); } - if(m_VotesDownBefore.has_value()) + if(m_VotesDownBeforeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDownBefore")), m_VotesDownBefore.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDownBefore")), m_VotesDownBefore)); } - if(m_VotesAfter.has_value()) + if(m_VotesAfterIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesAfter")), m_VotesAfter.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesAfter")), m_VotesAfter)); } - if(m_VotesUpAfter.has_value()) + if(m_VotesUpAfterIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUpAfter")), m_VotesUpAfter.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUpAfter")), m_VotesUpAfter)); } - if(m_VotesDownAfter.has_value()) + if(m_VotesDownAfterIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDownAfter")), m_VotesDownAfter.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDownAfter")), m_VotesDownAfter)); } if(m_RepeatActionIsSet) { @@ -966,9 +1007,9 @@ void CommentLogData::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); } - if(m_OtherData.has_value()) + if(m_OtherDataIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("otherData")), m_OtherData.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("otherData")), m_OtherData)); } if(m_SpamBeforeIsSet) { @@ -1006,17 +1047,17 @@ void CommentLogData::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textAfter")), m_TextAfter)); } - if(m_ExpireBefore.has_value()) + if(m_ExpireBeforeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireBefore")), m_ExpireBefore.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireBefore")), m_ExpireBefore)); } - if(m_ExpireAfter.has_value()) + if(m_ExpireAfterIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAfter")), m_ExpireAfter.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAfter")), m_ExpireAfter)); } - if(m_FlagCountBefore.has_value()) + if(m_FlagCountBeforeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCountBefore")), m_FlagCountBefore.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCountBefore")), m_FlagCountBefore)); } if(m_TrustFactorBeforeIsSet) { @@ -1143,6 +1184,12 @@ bool CommentLogData::fromMultiPart(std::shared_ptr multipart, ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("trustFactor"))), refVal_setTrustFactor ); setTrustFactor(refVal_setTrustFactor); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("source")))) + { + utility::string_t refVal_setSource; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("source"))), refVal_setSource ); + setSource(refVal_setSource); + } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("rule")))) { std::shared_ptr refVal_setRule; @@ -1662,6 +1709,27 @@ void CommentLogData::unsetTrustFactor() { m_TrustFactorIsSet = false; } +utility::string_t CommentLogData::getSource() const +{ + return m_Source; +} + + +void CommentLogData::setSource(const utility::string_t& value) +{ + m_Source = value; + m_SourceIsSet = true; +} + +bool CommentLogData::sourceIsSet() const +{ + return m_SourceIsSet; +} + +void CommentLogData::unsetSource() +{ + m_SourceIsSet = false; +} std::shared_ptr CommentLogData::getRule() const { return m_Rule; @@ -1746,117 +1814,123 @@ void CommentLogData::unsetNotificationCount() } double CommentLogData::getVotesBefore() const { - return m_VotesBefore.get(); + return m_VotesBefore; } void CommentLogData::setVotesBefore(double value) { m_VotesBefore = value; + m_VotesBeforeIsSet = true; } bool CommentLogData::votesBeforeIsSet() const { - return m_VotesBefore.has_value(); + return m_VotesBeforeIsSet; } void CommentLogData::unsetVotesBefore() { - m_VotesBefore.reset(); + m_VotesBeforeIsSet = false; } double CommentLogData::getVotesUpBefore() const { - return m_VotesUpBefore.get(); + return m_VotesUpBefore; } void CommentLogData::setVotesUpBefore(double value) { m_VotesUpBefore = value; + m_VotesUpBeforeIsSet = true; } bool CommentLogData::votesUpBeforeIsSet() const { - return m_VotesUpBefore.has_value(); + return m_VotesUpBeforeIsSet; } void CommentLogData::unsetVotesUpBefore() { - m_VotesUpBefore.reset(); + m_VotesUpBeforeIsSet = false; } double CommentLogData::getVotesDownBefore() const { - return m_VotesDownBefore.get(); + return m_VotesDownBefore; } void CommentLogData::setVotesDownBefore(double value) { m_VotesDownBefore = value; + m_VotesDownBeforeIsSet = true; } bool CommentLogData::votesDownBeforeIsSet() const { - return m_VotesDownBefore.has_value(); + return m_VotesDownBeforeIsSet; } void CommentLogData::unsetVotesDownBefore() { - m_VotesDownBefore.reset(); + m_VotesDownBeforeIsSet = false; } double CommentLogData::getVotesAfter() const { - return m_VotesAfter.get(); + return m_VotesAfter; } void CommentLogData::setVotesAfter(double value) { m_VotesAfter = value; + m_VotesAfterIsSet = true; } bool CommentLogData::votesAfterIsSet() const { - return m_VotesAfter.has_value(); + return m_VotesAfterIsSet; } void CommentLogData::unsetVotesAfter() { - m_VotesAfter.reset(); + m_VotesAfterIsSet = false; } double CommentLogData::getVotesUpAfter() const { - return m_VotesUpAfter.get(); + return m_VotesUpAfter; } void CommentLogData::setVotesUpAfter(double value) { m_VotesUpAfter = value; + m_VotesUpAfterIsSet = true; } bool CommentLogData::votesUpAfterIsSet() const { - return m_VotesUpAfter.has_value(); + return m_VotesUpAfterIsSet; } void CommentLogData::unsetVotesUpAfter() { - m_VotesUpAfter.reset(); + m_VotesUpAfterIsSet = false; } double CommentLogData::getVotesDownAfter() const { - return m_VotesDownAfter.get(); + return m_VotesDownAfter; } void CommentLogData::setVotesDownAfter(double value) { m_VotesDownAfter = value; + m_VotesDownAfterIsSet = true; } bool CommentLogData::votesDownAfterIsSet() const { - return m_VotesDownAfter.has_value(); + return m_VotesDownAfterIsSet; } void CommentLogData::unsetVotesDownAfter() { - m_VotesDownAfter.reset(); + m_VotesDownAfterIsSet = false; } std::shared_ptr CommentLogData::getRepeatAction() const { @@ -1902,23 +1976,24 @@ void CommentLogData::unsetReason() } std::shared_ptr CommentLogData::getOtherData() const { - return m_OtherData.get(); + return m_OtherData; } void CommentLogData::setOtherData(const std::shared_ptr& value) { m_OtherData = value; + m_OtherDataIsSet = true; } bool CommentLogData::otherDataIsSet() const { - return m_OtherData.has_value(); + return m_OtherDataIsSet; } void CommentLogData::unsetOtherData() { - m_OtherData.reset(); + m_OtherDataIsSet = false; } bool CommentLogData::isSpamBefore() const { @@ -2105,62 +2180,65 @@ void CommentLogData::unsetTextAfter() } utility::datetime CommentLogData::getExpireBefore() const { - return m_ExpireBefore.get(); + return m_ExpireBefore; } void CommentLogData::setExpireBefore(const utility::datetime& value) { m_ExpireBefore = value; + m_ExpireBeforeIsSet = true; } bool CommentLogData::expireBeforeIsSet() const { - return m_ExpireBefore.has_value(); + return m_ExpireBeforeIsSet; } void CommentLogData::unsetExpireBefore() { - m_ExpireBefore.reset(); + m_ExpireBeforeIsSet = false; } utility::datetime CommentLogData::getExpireAfter() const { - return m_ExpireAfter.get(); + return m_ExpireAfter; } void CommentLogData::setExpireAfter(const utility::datetime& value) { m_ExpireAfter = value; + m_ExpireAfterIsSet = true; } bool CommentLogData::expireAfterIsSet() const { - return m_ExpireAfter.has_value(); + return m_ExpireAfterIsSet; } void CommentLogData::unsetExpireAfter() { - m_ExpireAfter.reset(); + m_ExpireAfterIsSet = false; } double CommentLogData::getFlagCountBefore() const { - return m_FlagCountBefore.get(); + return m_FlagCountBefore; } void CommentLogData::setFlagCountBefore(double value) { m_FlagCountBefore = value; + m_FlagCountBeforeIsSet = true; } bool CommentLogData::flagCountBeforeIsSet() const { - return m_FlagCountBefore.has_value(); + return m_FlagCountBeforeIsSet; } void CommentLogData::unsetFlagCountBefore() { - m_FlagCountBefore.reset(); + m_FlagCountBeforeIsSet = false; } double CommentLogData::getTrustFactorBefore() const { diff --git a/client/src/model/CommentLogEntry.cpp b/client/src/model/CommentLogEntry.cpp index 7d914b6..dee3d61 100644 --- a/client/src/model/CommentLogEntry.cpp +++ b/client/src/model/CommentLogEntry.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value CommentLogEntry::toJson() const { web::json::value val = web::json::value::object(); if(m_dIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("d"))] = ModelBase::toJson(m_d); } if(m_tIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("t"))] = ModelBase::toJson(m_t); } if(m_DaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("da"))] = ModelBase::toJson(m_Da); } diff --git a/client/src/model/CommentLogType.cpp b/client/src/model/CommentLogType.cpp index 9b8e0a2..3f0a92b 100644 --- a/client/src/model/CommentLogType.cpp +++ b/client/src/model/CommentLogType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentQuestionResultsRenderingType.cpp b/client/src/model/CommentQuestionResultsRenderingType.cpp index f0e3860..8b8a85a 100644 --- a/client/src/model/CommentQuestionResultsRenderingType.cpp +++ b/client/src/model/CommentQuestionResultsRenderingType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentQuestionsRequired.cpp b/client/src/model/CommentQuestionsRequired.cpp index adeb59a..9eabef9 100644 --- a/client/src/model/CommentQuestionsRequired.cpp +++ b/client/src/model/CommentQuestionsRequired.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentTextUpdateRequest.cpp b/client/src/model/CommentTextUpdateRequest.cpp index ae059a8..6ad779c 100644 --- a/client/src/model/CommentTextUpdateRequest.cpp +++ b/client/src/model/CommentTextUpdateRequest.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value CommentTextUpdateRequest::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_MentionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("mentions"))] = ModelBase::toJson(m_Mentions); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } diff --git a/client/src/model/CommentThreadDeletionMode.cpp b/client/src/model/CommentThreadDeletionMode.cpp index b84d6b7..125c87c 100644 --- a/client/src/model/CommentThreadDeletionMode.cpp +++ b/client/src/model/CommentThreadDeletionMode.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentUserBadgeInfo.cpp b/client/src/model/CommentUserBadgeInfo.cpp index b1e1a31..bc0ac26 100644 --- a/client/src/model/CommentUserBadgeInfo.cpp +++ b/client/src/model/CommentUserBadgeInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -26,6 +26,18 @@ CommentUserBadgeInfo::CommentUserBadgeInfo() m_TypeIsSet = false; m_Description = utility::conversions::to_string_t(""); m_DescriptionIsSet = false; + m_DisplayLabel = utility::conversions::to_string_t(""); + m_DisplayLabelIsSet = false; + m_DisplaySrc = utility::conversions::to_string_t(""); + m_DisplaySrcIsSet = false; + m_BackgroundColor = utility::conversions::to_string_t(""); + m_BackgroundColorIsSet = false; + m_BorderColor = utility::conversions::to_string_t(""); + m_BorderColorIsSet = false; + m_TextColor = utility::conversions::to_string_t(""); + m_TextColorIsSet = false; + m_CssClass = utility::conversions::to_string_t(""); + m_CssClassIsSet = false; } CommentUserBadgeInfo::~CommentUserBadgeInfo() @@ -41,49 +53,49 @@ web::json::value CommentUserBadgeInfo::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_DescriptionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } - if(m_DisplayLabel.has_value()) - { + if(m_DisplayLabelIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } - if(m_DisplaySrc.has_value()) - { + if(m_DisplaySrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("displaySrc"))] = ModelBase::toJson(m_DisplaySrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("displaySrc"))] = ModelBase::toJson(m_DisplaySrc); } - if(m_BackgroundColor.has_value()) - { + if(m_BackgroundColorIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))] = ModelBase::toJson(m_BackgroundColor.get()); + val[utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))] = ModelBase::toJson(m_BackgroundColor); } - if(m_BorderColor.has_value()) - { + if(m_BorderColorIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("borderColor"))] = ModelBase::toJson(m_BorderColor.get()); + val[utility::conversions::to_string_t(_XPLATSTR("borderColor"))] = ModelBase::toJson(m_BorderColor); } - if(m_TextColor.has_value()) - { + if(m_TextColorIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("textColor"))] = ModelBase::toJson(m_TextColor.get()); + val[utility::conversions::to_string_t(_XPLATSTR("textColor"))] = ModelBase::toJson(m_TextColor); } - if(m_CssClass.has_value()) - { + if(m_CssClassIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("cssClass"))] = ModelBase::toJson(m_CssClass.get()); + val[utility::conversions::to_string_t(_XPLATSTR("cssClass"))] = ModelBase::toJson(m_CssClass); } return val; @@ -213,29 +225,29 @@ void CommentUserBadgeInfo::toMultipart(std::shared_ptr multip { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("description")), m_Description)); } - if(m_DisplayLabel.has_value()) + if(m_DisplayLabelIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); } - if(m_DisplaySrc.has_value()) + if(m_DisplaySrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displaySrc")), m_DisplaySrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displaySrc")), m_DisplaySrc)); } - if(m_BackgroundColor.has_value()) + if(m_BackgroundColorIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("backgroundColor")), m_BackgroundColor.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("backgroundColor")), m_BackgroundColor)); } - if(m_BorderColor.has_value()) + if(m_BorderColorIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("borderColor")), m_BorderColor.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("borderColor")), m_BorderColor)); } - if(m_TextColor.has_value()) + if(m_TextColorIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textColor")), m_TextColor.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textColor")), m_TextColor)); } - if(m_CssClass.has_value()) + if(m_CssClassIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("cssClass")), m_CssClass.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("cssClass")), m_CssClass)); } } @@ -370,123 +382,129 @@ void CommentUserBadgeInfo::unsetDescription() } utility::string_t CommentUserBadgeInfo::getDisplayLabel() const { - return m_DisplayLabel.get(); + return m_DisplayLabel; } void CommentUserBadgeInfo::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; + m_DisplayLabelIsSet = true; } bool CommentUserBadgeInfo::displayLabelIsSet() const { - return m_DisplayLabel.has_value(); + return m_DisplayLabelIsSet; } void CommentUserBadgeInfo::unsetDisplayLabel() { - m_DisplayLabel.reset(); + m_DisplayLabelIsSet = false; } utility::string_t CommentUserBadgeInfo::getDisplaySrc() const { - return m_DisplaySrc.get(); + return m_DisplaySrc; } void CommentUserBadgeInfo::setDisplaySrc(const utility::string_t& value) { m_DisplaySrc = value; + m_DisplaySrcIsSet = true; } bool CommentUserBadgeInfo::displaySrcIsSet() const { - return m_DisplaySrc.has_value(); + return m_DisplaySrcIsSet; } void CommentUserBadgeInfo::unsetDisplaySrc() { - m_DisplaySrc.reset(); + m_DisplaySrcIsSet = false; } utility::string_t CommentUserBadgeInfo::getBackgroundColor() const { - return m_BackgroundColor.get(); + return m_BackgroundColor; } void CommentUserBadgeInfo::setBackgroundColor(const utility::string_t& value) { m_BackgroundColor = value; + m_BackgroundColorIsSet = true; } bool CommentUserBadgeInfo::backgroundColorIsSet() const { - return m_BackgroundColor.has_value(); + return m_BackgroundColorIsSet; } void CommentUserBadgeInfo::unsetBackgroundColor() { - m_BackgroundColor.reset(); + m_BackgroundColorIsSet = false; } utility::string_t CommentUserBadgeInfo::getBorderColor() const { - return m_BorderColor.get(); + return m_BorderColor; } void CommentUserBadgeInfo::setBorderColor(const utility::string_t& value) { m_BorderColor = value; + m_BorderColorIsSet = true; } bool CommentUserBadgeInfo::borderColorIsSet() const { - return m_BorderColor.has_value(); + return m_BorderColorIsSet; } void CommentUserBadgeInfo::unsetBorderColor() { - m_BorderColor.reset(); + m_BorderColorIsSet = false; } utility::string_t CommentUserBadgeInfo::getTextColor() const { - return m_TextColor.get(); + return m_TextColor; } void CommentUserBadgeInfo::setTextColor(const utility::string_t& value) { m_TextColor = value; + m_TextColorIsSet = true; } bool CommentUserBadgeInfo::textColorIsSet() const { - return m_TextColor.has_value(); + return m_TextColorIsSet; } void CommentUserBadgeInfo::unsetTextColor() { - m_TextColor.reset(); + m_TextColorIsSet = false; } utility::string_t CommentUserBadgeInfo::getCssClass() const { - return m_CssClass.get(); + return m_CssClass; } void CommentUserBadgeInfo::setCssClass(const utility::string_t& value) { m_CssClass = value; + m_CssClassIsSet = true; } bool CommentUserBadgeInfo::cssClassIsSet() const { - return m_CssClass.has_value(); + return m_CssClassIsSet; } void CommentUserBadgeInfo::unsetCssClass() { - m_CssClass.reset(); + m_CssClassIsSet = false; } } diff --git a/client/src/model/CommentUserHashTagInfo.cpp b/client/src/model/CommentUserHashTagInfo.cpp index 4dfa003..aee61ae 100644 --- a/client/src/model/CommentUserHashTagInfo.cpp +++ b/client/src/model/CommentUserHashTagInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,6 +24,8 @@ CommentUserHashTagInfo::CommentUserHashTagInfo() m_IdIsSet = false; m_Tag = utility::conversions::to_string_t(""); m_TagIsSet = false; + m_Url = utility::conversions::to_string_t(""); + m_UrlIsSet = false; m_Retain = false; m_RetainIsSet = false; } @@ -41,22 +43,22 @@ web::json::value CommentUserHashTagInfo::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_TagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } - if(m_Url.has_value()) - { + if(m_UrlIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url.get()); + val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_RetainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("retain"))] = ModelBase::toJson(m_Retain); } @@ -129,9 +131,9 @@ void CommentUserHashTagInfo::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tag")), m_Tag)); } - if(m_Url.has_value()) + if(m_UrlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } if(m_RetainIsSet) { @@ -220,23 +222,24 @@ void CommentUserHashTagInfo::unsetTag() } utility::string_t CommentUserHashTagInfo::getUrl() const { - return m_Url.get(); + return m_Url; } void CommentUserHashTagInfo::setUrl(const utility::string_t& value) { m_Url = value; + m_UrlIsSet = true; } bool CommentUserHashTagInfo::urlIsSet() const { - return m_Url.has_value(); + return m_UrlIsSet; } void CommentUserHashTagInfo::unsetUrl() { - m_Url.reset(); + m_UrlIsSet = false; } bool CommentUserHashTagInfo::isRetain() const { diff --git a/client/src/model/CommentUserMentionInfo.cpp b/client/src/model/CommentUserMentionInfo.cpp index 7d9027b..9bde718 100644 --- a/client/src/model/CommentUserMentionInfo.cpp +++ b/client/src/model/CommentUserMentionInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -44,29 +44,29 @@ web::json::value CommentUserMentionInfo::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_TagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } if(m_RawTagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("rawTag"))] = ModelBase::toJson(m_RawTag); } if(m_TypeIsSet) - { + { utility::string_t refVal = fromTypeEnum(m_Type); val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(refVal); } if(m_SentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sent"))] = ModelBase::toJson(m_Sent); } diff --git a/client/src/model/CommenterNameFormats.cpp b/client/src/model/CommenterNameFormats.cpp index d230692..1418e0b 100644 --- a/client/src/model/CommenterNameFormats.cpp +++ b/client/src/model/CommenterNameFormats.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentsByIdsParams.cpp b/client/src/model/CommentsByIdsParams.cpp new file mode 100644 index 0000000..8f9903c --- /dev/null +++ b/client/src/model/CommentsByIdsParams.cpp @@ -0,0 +1,123 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CommentsByIdsParams.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CommentsByIdsParams::CommentsByIdsParams() +{ + m_IdsIsSet = false; +} + +CommentsByIdsParams::~CommentsByIdsParams() +{ +} + +void CommentsByIdsParams::validate() +{ + // TODO: implement validation +} + +web::json::value CommentsByIdsParams::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_IdsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ids"))] = ModelBase::toJson(m_Ids); + } + + return val; +} + +bool CommentsByIdsParams::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ids")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ids"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setIds; + ok &= ModelBase::fromJson(fieldValue, refVal_setIds); + setIds(refVal_setIds); + + } + } + return ok; +} + +void CommentsByIdsParams::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_IdsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ids")), m_Ids)); + } +} + +bool CommentsByIdsParams::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ids")))) + { + std::vector refVal_setIds; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ids"))), refVal_setIds ); + setIds(refVal_setIds); + } + return ok; +} + + +std::vector CommentsByIdsParams::getIds() const +{ + return m_Ids; +} + + +void CommentsByIdsParams::setIds(const std::vector& value) +{ + m_Ids = value; + m_IdsIsSet = true; +} + +bool CommentsByIdsParams::idsIsSet() const +{ + return m_IdsIsSet; +} + +void CommentsByIdsParams::unsetIds() +{ + m_IdsIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateAPIPageData.cpp b/client/src/model/CreateAPIPageData.cpp index 62e279c..7e18c8e 100644 --- a/client/src/model/CreateAPIPageData.cpp +++ b/client/src/model/CreateAPIPageData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -46,32 +46,32 @@ web::json::value CreateAPIPageData::toJson() const { web::json::value val = web::json::value::object(); if(m_AccessibleByGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("accessibleByGroupIds"))] = ModelBase::toJson(m_AccessibleByGroupIds); } if(m_RootCommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("rootCommentCount"))] = ModelBase::toJson(m_RootCommentCount); } if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } diff --git a/client/src/model/CreateAPISSOUserData.cpp b/client/src/model/CreateAPISSOUserData.cpp index 7d29c92..2771175 100644 --- a/client/src/model/CreateAPISSOUserData.cpp +++ b/client/src/model/CreateAPISSOUserData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -74,102 +74,102 @@ web::json::value CreateAPISSOUserData::toJson() const { web::json::value val = web::json::value::object(); if(m_GroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); } if(m_HasBlockedUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBlockedUsers"))] = ModelBase::toJson(m_HasBlockedUsers); } if(m_IsProfileDMDisabledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileDMDisabled"))] = ModelBase::toJson(m_IsProfileDMDisabled); } if(m_IsProfileCommentsPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileCommentsPrivate"))] = ModelBase::toJson(m_IsProfileCommentsPrivate); } if(m_IsProfileActivityPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileActivityPrivate"))] = ModelBase::toJson(m_IsProfileActivityPrivate); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } if(m_OptedInSubscriptionNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInSubscriptionNotifications"))] = ModelBase::toJson(m_OptedInSubscriptionNotifications); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_AvatarSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_CreatedFromUrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId"))] = ModelBase::toJson(m_CreatedFromUrlId); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } diff --git a/client/src/model/CreateAPIUserSubscriptionData.cpp b/client/src/model/CreateAPIUserSubscriptionData.cpp index 60ab2b1..e29960d 100644 --- a/client/src/model/CreateAPIUserSubscriptionData.cpp +++ b/client/src/model/CreateAPIUserSubscriptionData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -47,32 +47,32 @@ web::json::value CreateAPIUserSubscriptionData::toJson() const { web::json::value val = web::json::value::object(); if(m_NotificationFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationFrequency"))] = ModelBase::toJson(m_NotificationFrequency); } if(m_PageTitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_AnonUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } diff --git a/client/src/model/CreateCommentParams.cpp b/client/src/model/CreateCommentParams.cpp index 7a8eecf..b613162 100644 --- a/client/src/model/CreateCommentParams.cpp +++ b/client/src/model/CreateCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -28,10 +28,20 @@ CreateCommentParams::CreateCommentParams() m_LocalDateHoursIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; + m_CommenterEmail = utility::conversions::to_string_t(""); + m_CommenterEmailIsSet = false; + m_CommenterLink = utility::conversions::to_string_t(""); + m_CommenterLinkIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; m_ProductId = 0; m_ProductIdIsSet = false; + m_UserId = utility::conversions::to_string_t(""); + m_UserIdIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; + m_ParentId = utility::conversions::to_string_t(""); + m_ParentIdIsSet = false; m_MentionsIsSet = false; m_HashTagsIsSet = false; m_PageTitle = utility::conversions::to_string_t(""); @@ -54,6 +64,8 @@ CreateCommentParams::CreateCommentParams() m_QuestionValuesIsSet = false; m_Tos = false; m_TosIsSet = false; + m_BotId = utility::conversions::to_string_t(""); + m_BotIdIsSet = false; m_Approved = false; m_ApprovedIsSet = false; m_Domain = utility::conversions::to_string_t(""); @@ -89,177 +101,182 @@ web::json::value CreateCommentParams::toJson() const { web::json::value val = web::json::value::object(); if(m_dateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); } if(m_LocalDateStringIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); } if(m_LocalDateHoursIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterEmail.has_value()) - { + if(m_CommenterEmailIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); } - if(m_CommenterLink.has_value()) - { + if(m_CommenterLinkIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_ProductIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("productId"))] = ModelBase::toJson(m_ProductId); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } - if(m_AvatarSrc.has_value()) - { + if(m_AvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } - if(m_ParentId.has_value()) - { + if(m_ParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); } if(m_MentionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("mentions"))] = ModelBase::toJson(m_Mentions); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } if(m_PageTitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } if(m_IsFromMyAccountPageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isFromMyAccountPage"))] = ModelBase::toJson(m_IsFromMyAccountPage); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } if(m_ModerationGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } if(m_RatingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); } if(m_FromOfflineRestoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromOfflineRestore"))] = ModelBase::toJson(m_FromOfflineRestore); } if(m_AutoplayDelayMSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoplayDelayMS"))] = ModelBase::toJson(m_AutoplayDelayMS); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } if(m_QuestionValuesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionValues"))] = ModelBase::toJson(m_QuestionValues); } if(m_TosIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tos"))] = ModelBase::toJson(m_Tos); } + if(m_BotIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("botId"))] = ModelBase::toJson(m_BotId); + } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_IpIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ip"))] = ModelBase::toJson(m_Ip); } if(m_IsPinnedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); } if(m_LocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if(m_VotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); } if(m_VotesDownIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); } if(m_VotesUpIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); } @@ -528,7 +545,7 @@ bool CreateCommentParams::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionValues"))); if(!fieldValue.is_null()) { - std::map> refVal_setQuestionValues; + std::map> refVal_setQuestionValues; ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionValues); setQuestionValues(refVal_setQuestionValues); @@ -545,6 +562,17 @@ bool CreateCommentParams::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("botId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("botId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBotId; + ok &= ModelBase::fromJson(fieldValue, refVal_setBotId); + setBotId(refVal_setBotId); + + } + } if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("approved")))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("approved"))); @@ -681,13 +709,13 @@ void CreateCommentParams::toMultipart(std::shared_ptr multipa { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterEmail.has_value()) + if(m_CommenterEmailIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); } - if(m_CommenterLink.has_value()) + if(m_CommenterLinkIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); } if(m_CommentIsSet) { @@ -697,17 +725,17 @@ void CreateCommentParams::toMultipart(std::shared_ptr multipa { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("productId")), m_ProductId)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } - if(m_AvatarSrc.has_value()) + if(m_AvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); } - if(m_ParentId.has_value()) + if(m_ParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); } if(m_MentionsIsSet) { @@ -765,6 +793,10 @@ void CreateCommentParams::toMultipart(std::shared_ptr multipa { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tos")), m_Tos)); } + if(m_BotIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("botId")), m_BotId)); + } if(m_ApprovedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); @@ -956,7 +988,7 @@ bool CreateCommentParams::fromMultiPart(std::shared_ptr multi } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionValues")))) { - std::map> refVal_setQuestionValues; + std::map> refVal_setQuestionValues; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionValues"))), refVal_setQuestionValues ); setQuestionValues(refVal_setQuestionValues); } @@ -966,6 +998,12 @@ bool CreateCommentParams::fromMultiPart(std::shared_ptr multi ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tos"))), refVal_setTos ); setTos(refVal_setTos); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("botId")))) + { + utility::string_t refVal_setBotId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("botId"))), refVal_setBotId ); + setBotId(refVal_setBotId); + } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("approved")))) { bool refVal_setApproved; @@ -1114,43 +1152,45 @@ void CreateCommentParams::unsetCommenterName() } utility::string_t CreateCommentParams::getCommenterEmail() const { - return m_CommenterEmail.get(); + return m_CommenterEmail; } void CreateCommentParams::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; + m_CommenterEmailIsSet = true; } bool CreateCommentParams::commenterEmailIsSet() const { - return m_CommenterEmail.has_value(); + return m_CommenterEmailIsSet; } void CreateCommentParams::unsetCommenterEmail() { - m_CommenterEmail.reset(); + m_CommenterEmailIsSet = false; } utility::string_t CreateCommentParams::getCommenterLink() const { - return m_CommenterLink.get(); + return m_CommenterLink; } void CreateCommentParams::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; + m_CommenterLinkIsSet = true; } bool CreateCommentParams::commenterLinkIsSet() const { - return m_CommenterLink.has_value(); + return m_CommenterLinkIsSet; } void CreateCommentParams::unsetCommenterLink() { - m_CommenterLink.reset(); + m_CommenterLinkIsSet = false; } utility::string_t CreateCommentParams::getComment() const { @@ -1195,63 +1235,66 @@ void CreateCommentParams::unsetProductId() } utility::string_t CreateCommentParams::getUserId() const { - return m_UserId.get(); + return m_UserId; } void CreateCommentParams::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool CreateCommentParams::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void CreateCommentParams::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } utility::string_t CreateCommentParams::getAvatarSrc() const { - return m_AvatarSrc.get(); + return m_AvatarSrc; } void CreateCommentParams::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; + m_AvatarSrcIsSet = true; } bool CreateCommentParams::avatarSrcIsSet() const { - return m_AvatarSrc.has_value(); + return m_AvatarSrcIsSet; } void CreateCommentParams::unsetAvatarSrc() { - m_AvatarSrc.reset(); + m_AvatarSrcIsSet = false; } utility::string_t CreateCommentParams::getParentId() const { - return m_ParentId.get(); + return m_ParentId; } void CreateCommentParams::setParentId(const utility::string_t& value) { m_ParentId = value; + m_ParentIdIsSet = true; } bool CreateCommentParams::parentIdIsSet() const { - return m_ParentId.has_value(); + return m_ParentIdIsSet; } void CreateCommentParams::unsetParentId() { - m_ParentId.reset(); + m_ParentIdIsSet = false; } std::vector> CreateCommentParams::getMentions() const { @@ -1501,13 +1544,13 @@ void CreateCommentParams::unsetFeedbackIds() { m_FeedbackIdsIsSet = false; } -std::map> CreateCommentParams::getQuestionValues() const +std::map> CreateCommentParams::getQuestionValues() const { return m_QuestionValues; } -void CreateCommentParams::setQuestionValues(const std::map>& value) +void CreateCommentParams::setQuestionValues(const std::map>& value) { m_QuestionValues = value; m_QuestionValuesIsSet = true; @@ -1542,6 +1585,27 @@ void CreateCommentParams::unsetTos() { m_TosIsSet = false; } +utility::string_t CreateCommentParams::getBotId() const +{ + return m_BotId; +} + + +void CreateCommentParams::setBotId(const utility::string_t& value) +{ + m_BotId = value; + m_BotIdIsSet = true; +} + +bool CreateCommentParams::botIdIsSet() const +{ + return m_BotIdIsSet; +} + +void CreateCommentParams::unsetBotId() +{ + m_BotIdIsSet = false; +} bool CreateCommentParams::isApproved() const { return m_Approved; diff --git a/client/src/model/CreateCommentPublic_200_response.cpp b/client/src/model/CreateCommentPublic_200_response.cpp deleted file mode 100644 index f674df3..0000000 --- a/client/src/model/CreateCommentPublic_200_response.cpp +++ /dev/null @@ -1,654 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateCommentPublic_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateCommentPublic_200_response::CreateCommentPublic_200_response() -{ - m_StatusIsSet = false; - m_CommentIsSet = false; - m_ModuleDataIsSet = false; - m_UserIdWS = utility::conversions::to_string_t(""); - m_UserIdWSIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateCommentPublic_200_response::~CreateCommentPublic_200_response() -{ -} - -void CreateCommentPublic_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CreateCommentPublic_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); - } - if(m_User.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); - } - if(m_ModuleDataIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); - } - if(m_UserIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateCommentPublic_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromJson(fieldValue, refVal_setComment); - setComment(refVal_setComment); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setUser); - setUser(refVal_setUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moduleData"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setModuleData; - ok &= ModelBase::fromJson(fieldValue, refVal_setModuleData); - setModuleData(refVal_setModuleData); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setUserIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserIdWS); - setUserIdWS(refVal_setUserIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateCommentPublic_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); - } - if(m_User.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); - } - if(m_ModuleDataIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moduleData")), m_ModuleData)); - } - if(m_UserIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIdWS")), m_UserIdWS)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateCommentPublic_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); - setComment(refVal_setComment); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); - setUser(refVal_setUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) - { - std::map> refVal_setModuleData; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moduleData"))), refVal_setModuleData ); - setModuleData(refVal_setModuleData); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) - { - utility::string_t refVal_setUserIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))), refVal_setUserIdWS ); - setUserIdWS(refVal_setUserIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateCommentPublic_200_response::getStatus() const -{ - return m_Status; -} - - -void CreateCommentPublic_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateCommentPublic_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateCommentPublic_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateCommentPublic_200_response::getComment() const -{ - return m_Comment; -} - - -void CreateCommentPublic_200_response::setComment(const std::shared_ptr& value) -{ - m_Comment = value; - m_CommentIsSet = true; -} - -bool CreateCommentPublic_200_response::commentIsSet() const -{ - return m_CommentIsSet; -} - -void CreateCommentPublic_200_response::unsetComment() -{ - m_CommentIsSet = false; -} -std::shared_ptr CreateCommentPublic_200_response::getUser() const -{ - return m_User.get(); -} - - -void CreateCommentPublic_200_response::setUser(const std::shared_ptr& value) -{ - m_User = value; -} - -bool CreateCommentPublic_200_response::userIsSet() const -{ - return m_User.has_value(); -} - -void CreateCommentPublic_200_response::unsetUser() -{ - m_User.reset(); -} -std::map> CreateCommentPublic_200_response::getModuleData() const -{ - return m_ModuleData; -} - - -void CreateCommentPublic_200_response::setModuleData(const std::map>& value) -{ - m_ModuleData = value; - m_ModuleDataIsSet = true; -} - -bool CreateCommentPublic_200_response::moduleDataIsSet() const -{ - return m_ModuleDataIsSet; -} - -void CreateCommentPublic_200_response::unsetModuleData() -{ - m_ModuleDataIsSet = false; -} -utility::string_t CreateCommentPublic_200_response::getUserIdWS() const -{ - return m_UserIdWS; -} - - -void CreateCommentPublic_200_response::setUserIdWS(const utility::string_t& value) -{ - m_UserIdWS = value; - m_UserIdWSIsSet = true; -} - -bool CreateCommentPublic_200_response::userIdWSIsSet() const -{ - return m_UserIdWSIsSet; -} - -void CreateCommentPublic_200_response::unsetUserIdWS() -{ - m_UserIdWSIsSet = false; -} -utility::string_t CreateCommentPublic_200_response::getReason() const -{ - return m_Reason; -} - - -void CreateCommentPublic_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateCommentPublic_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateCommentPublic_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateCommentPublic_200_response::getCode() const -{ - return m_Code; -} - - -void CreateCommentPublic_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateCommentPublic_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateCommentPublic_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateCommentPublic_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateCommentPublic_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateCommentPublic_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateCommentPublic_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateCommentPublic_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateCommentPublic_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateCommentPublic_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateCommentPublic_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateCommentPublic_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateCommentPublic_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateCommentPublic_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateCommentPublic_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateCommentPublic_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateCommentPublic_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateCommentPublic_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateCommentPublic_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateCommentPublic_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateCommentPublic_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateCommentPublic_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateCommentPublic_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateEmailTemplateBody.cpp b/client/src/model/CreateEmailTemplateBody.cpp index b721cb9..27f45bc 100644 --- a/client/src/model/CreateEmailTemplateBody.cpp +++ b/client/src/model/CreateEmailTemplateBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -45,32 +45,32 @@ web::json::value CreateEmailTemplateBody::toJson() const { web::json::value val = web::json::value::object(); if(m_EmailTemplateIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplateId"))] = ModelBase::toJson(m_EmailTemplateId); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_EjsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ejs"))] = ModelBase::toJson(m_Ejs); } if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_TranslationOverridesByLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))] = ModelBase::toJson(m_TranslationOverridesByLocale); } if(m_TestDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("testData"))] = ModelBase::toJson(m_TestData); } @@ -130,7 +130,7 @@ bool CreateEmailTemplateBody::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))); if(!fieldValue.is_null()) { - std::map> refVal_setTranslationOverridesByLocale; + std::map refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromJson(fieldValue, refVal_setTranslationOverridesByLocale); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); @@ -218,7 +218,7 @@ bool CreateEmailTemplateBody::fromMultiPart(std::shared_ptr m } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale")))) { - std::map> refVal_setTranslationOverridesByLocale; + std::map refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))), refVal_setTranslationOverridesByLocale ); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); } @@ -316,13 +316,13 @@ void CreateEmailTemplateBody::unsetDomain() { m_DomainIsSet = false; } -std::map> CreateEmailTemplateBody::getTranslationOverridesByLocale() const +std::map CreateEmailTemplateBody::getTranslationOverridesByLocale() const { return m_TranslationOverridesByLocale; } -void CreateEmailTemplateBody::setTranslationOverridesByLocale(const std::map>& value) +void CreateEmailTemplateBody::setTranslationOverridesByLocale(const std::map& value) { m_TranslationOverridesByLocale = value; m_TranslationOverridesByLocaleIsSet = true; diff --git a/client/src/model/CreateEmailTemplateResponse.cpp b/client/src/model/CreateEmailTemplateResponse.cpp index f9f8b08..0cb110d 100644 --- a/client/src/model/CreateEmailTemplateResponse.cpp +++ b/client/src/model/CreateEmailTemplateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateEmailTemplateResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_EmailTemplateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))] = ModelBase::toJson(m_EmailTemplate); } diff --git a/client/src/model/CreateEmailTemplate_200_response.cpp b/client/src/model/CreateEmailTemplate_200_response.cpp deleted file mode 100644 index 3d4a412..0000000 --- a/client/src/model/CreateEmailTemplate_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateEmailTemplate_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateEmailTemplate_200_response::CreateEmailTemplate_200_response() -{ - m_StatusIsSet = false; - m_EmailTemplateIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateEmailTemplate_200_response::~CreateEmailTemplate_200_response() -{ -} - -void CreateEmailTemplate_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CreateEmailTemplate_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_EmailTemplateIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))] = ModelBase::toJson(m_EmailTemplate); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateEmailTemplate_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailTemplate")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setEmailTemplate; - ok &= ModelBase::fromJson(fieldValue, refVal_setEmailTemplate); - setEmailTemplate(refVal_setEmailTemplate); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateEmailTemplate_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_EmailTemplateIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailTemplate")), m_EmailTemplate)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateEmailTemplate_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplate")))) - { - std::shared_ptr refVal_setEmailTemplate; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))), refVal_setEmailTemplate ); - setEmailTemplate(refVal_setEmailTemplate); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateEmailTemplate_200_response::getStatus() const -{ - return m_Status; -} - - -void CreateEmailTemplate_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateEmailTemplate_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateEmailTemplate_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateEmailTemplate_200_response::getEmailTemplate() const -{ - return m_EmailTemplate; -} - - -void CreateEmailTemplate_200_response::setEmailTemplate(const std::shared_ptr& value) -{ - m_EmailTemplate = value; - m_EmailTemplateIsSet = true; -} - -bool CreateEmailTemplate_200_response::emailTemplateIsSet() const -{ - return m_EmailTemplateIsSet; -} - -void CreateEmailTemplate_200_response::unsetEmailTemplate() -{ - m_EmailTemplateIsSet = false; -} -utility::string_t CreateEmailTemplate_200_response::getReason() const -{ - return m_Reason; -} - - -void CreateEmailTemplate_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateEmailTemplate_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateEmailTemplate_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateEmailTemplate_200_response::getCode() const -{ - return m_Code; -} - - -void CreateEmailTemplate_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateEmailTemplate_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateEmailTemplate_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateEmailTemplate_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateEmailTemplate_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateEmailTemplate_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateEmailTemplate_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateEmailTemplate_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateEmailTemplate_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateEmailTemplate_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateEmailTemplate_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateEmailTemplate_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateEmailTemplate_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateEmailTemplate_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateEmailTemplate_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateEmailTemplate_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateEmailTemplate_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateEmailTemplate_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateEmailTemplate_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateEmailTemplate_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateEmailTemplate_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateEmailTemplate_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateEmailTemplate_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateFeedPostParams.cpp b/client/src/model/CreateFeedPostParams.cpp index 2c12646..22adbf7 100644 --- a/client/src/model/CreateFeedPostParams.cpp +++ b/client/src/model/CreateFeedPostParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -47,42 +47,42 @@ web::json::value CreateFeedPostParams::toJson() const { web::json::value val = web::json::value::object(); if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_ContentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("contentHTML"))] = ModelBase::toJson(m_ContentHTML); } if(m_MediaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("media"))] = ModelBase::toJson(m_Media); } if(m_LinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("links"))] = ModelBase::toJson(m_Links); } if(m_FromUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserId"))] = ModelBase::toJson(m_FromUserId); } if(m_FromUserDisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserDisplayName"))] = ModelBase::toJson(m_FromUserDisplayName); } if(m_TagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tags"))] = ModelBase::toJson(m_Tags); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } diff --git a/client/src/model/CreateFeedPostPublic_200_response.cpp b/client/src/model/CreateFeedPostPublic_200_response.cpp deleted file mode 100644 index e302ee7..0000000 --- a/client/src/model/CreateFeedPostPublic_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateFeedPostPublic_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateFeedPostPublic_200_response::CreateFeedPostPublic_200_response() -{ - m_StatusIsSet = false; - m_FeedPostIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateFeedPostPublic_200_response::~CreateFeedPostPublic_200_response() -{ -} - -void CreateFeedPostPublic_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CreateFeedPostPublic_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_FeedPostIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateFeedPostPublic_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPost"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setFeedPost; - ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPost); - setFeedPost(refVal_setFeedPost); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateFeedPostPublic_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_FeedPostIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPost")), m_FeedPost)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateFeedPostPublic_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) - { - std::shared_ptr refVal_setFeedPost; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPost"))), refVal_setFeedPost ); - setFeedPost(refVal_setFeedPost); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateFeedPostPublic_200_response::getStatus() const -{ - return m_Status; -} - - -void CreateFeedPostPublic_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateFeedPostPublic_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateFeedPostPublic_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateFeedPostPublic_200_response::getFeedPost() const -{ - return m_FeedPost; -} - - -void CreateFeedPostPublic_200_response::setFeedPost(const std::shared_ptr& value) -{ - m_FeedPost = value; - m_FeedPostIsSet = true; -} - -bool CreateFeedPostPublic_200_response::feedPostIsSet() const -{ - return m_FeedPostIsSet; -} - -void CreateFeedPostPublic_200_response::unsetFeedPost() -{ - m_FeedPostIsSet = false; -} -utility::string_t CreateFeedPostPublic_200_response::getReason() const -{ - return m_Reason; -} - - -void CreateFeedPostPublic_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateFeedPostPublic_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateFeedPostPublic_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateFeedPostPublic_200_response::getCode() const -{ - return m_Code; -} - - -void CreateFeedPostPublic_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateFeedPostPublic_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateFeedPostPublic_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateFeedPostPublic_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateFeedPostPublic_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateFeedPostPublic_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateFeedPostPublic_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateFeedPostPublic_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateFeedPostPublic_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateFeedPostPublic_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateFeedPostPublic_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateFeedPostPublic_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateFeedPostPublic_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateFeedPostPublic_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateFeedPostPublic_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateFeedPostPublic_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateFeedPostPublic_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateFeedPostPublic_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateFeedPostPublic_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateFeedPostPublic_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateFeedPostPublic_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateFeedPostPublic_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateFeedPostPublic_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateFeedPostResponse.cpp b/client/src/model/CreateFeedPostResponse.cpp index 0db891a..2f71d06 100644 --- a/client/src/model/CreateFeedPostResponse.cpp +++ b/client/src/model/CreateFeedPostResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateFeedPostResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_FeedPostIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); } diff --git a/client/src/model/CreateFeedPost_200_response.cpp b/client/src/model/CreateFeedPost_200_response.cpp deleted file mode 100644 index 6c0b19f..0000000 --- a/client/src/model/CreateFeedPost_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateFeedPost_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateFeedPost_200_response::CreateFeedPost_200_response() -{ - m_StatusIsSet = false; - m_FeedPostIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateFeedPost_200_response::~CreateFeedPost_200_response() -{ -} - -void CreateFeedPost_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CreateFeedPost_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_FeedPostIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateFeedPost_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPost"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setFeedPost; - ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPost); - setFeedPost(refVal_setFeedPost); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateFeedPost_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_FeedPostIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPost")), m_FeedPost)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateFeedPost_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) - { - std::shared_ptr refVal_setFeedPost; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPost"))), refVal_setFeedPost ); - setFeedPost(refVal_setFeedPost); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateFeedPost_200_response::getStatus() const -{ - return m_Status; -} - - -void CreateFeedPost_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateFeedPost_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateFeedPost_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateFeedPost_200_response::getFeedPost() const -{ - return m_FeedPost; -} - - -void CreateFeedPost_200_response::setFeedPost(const std::shared_ptr& value) -{ - m_FeedPost = value; - m_FeedPostIsSet = true; -} - -bool CreateFeedPost_200_response::feedPostIsSet() const -{ - return m_FeedPostIsSet; -} - -void CreateFeedPost_200_response::unsetFeedPost() -{ - m_FeedPostIsSet = false; -} -utility::string_t CreateFeedPost_200_response::getReason() const -{ - return m_Reason; -} - - -void CreateFeedPost_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateFeedPost_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateFeedPost_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateFeedPost_200_response::getCode() const -{ - return m_Code; -} - - -void CreateFeedPost_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateFeedPost_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateFeedPost_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateFeedPost_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateFeedPost_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateFeedPost_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateFeedPost_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateFeedPost_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateFeedPost_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateFeedPost_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateFeedPost_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateFeedPost_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateFeedPost_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateFeedPost_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateFeedPost_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateFeedPost_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateFeedPost_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateFeedPost_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateFeedPost_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateFeedPost_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateFeedPost_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateFeedPost_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateFeedPost_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateFeedPostsResponse.cpp b/client/src/model/CreateFeedPostsResponse.cpp index 1afc227..d1714b6 100644 --- a/client/src/model/CreateFeedPostsResponse.cpp +++ b/client/src/model/CreateFeedPostsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateFeedPostsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_FeedPostIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); } diff --git a/client/src/model/CreateHashTagBody.cpp b/client/src/model/CreateHashTagBody.cpp index 51a90e9..dff281c 100644 --- a/client/src/model/CreateHashTagBody.cpp +++ b/client/src/model/CreateHashTagBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value CreateHashTagBody::toJson() const { web::json::value val = web::json::value::object(); if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_TagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } diff --git a/client/src/model/CreateHashTagResponse.cpp b/client/src/model/CreateHashTagResponse.cpp index 97df831..0d78a81 100644 --- a/client/src/model/CreateHashTagResponse.cpp +++ b/client/src/model/CreateHashTagResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateHashTagResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_HashTagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTag"))] = ModelBase::toJson(m_HashTag); } diff --git a/client/src/model/CreateModeratorBody.cpp b/client/src/model/CreateModeratorBody.cpp index ca34fb8..a341183 100644 --- a/client/src/model/CreateModeratorBody.cpp +++ b/client/src/model/CreateModeratorBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -27,7 +27,6 @@ CreateModeratorBody::CreateModeratorBody() m_UserId = utility::conversions::to_string_t(""); m_UserIdIsSet = false; m_ModerationGroupIdsIsSet = false; - m_AdditionalPropertiesIsSet = false; } CreateModeratorBody::~CreateModeratorBody() @@ -43,33 +42,25 @@ web::json::value CreateModeratorBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_ModerationGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } - // Serialize additional properties - if(m_AdditionalPropertiesIsSet) - { - for(const auto& item : m_AdditionalProperties) - { - val[item.first] = item.second; - } - } return val; } @@ -121,21 +112,6 @@ bool CreateModeratorBody::fromJson(const web::json::value& val) } } - // Capture additional properties (keys not defined in the schema) - if(val.is_object()) - { - for(const auto& item : val.as_object()) - { - // Skip known properties - if(item.first == utility::conversions::to_string_t(_XPLATSTR("name"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("email"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("userId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))) continue; - // This is an additional property - m_AdditionalProperties[item.first] = item.second; - m_AdditionalPropertiesIsSet = true; - } - } return ok; } @@ -286,34 +262,6 @@ void CreateModeratorBody::unsetModerationGroupIds() m_ModerationGroupIdsIsSet = false; } - -std::map CreateModeratorBody::getAdditionalProperties() const -{ - return m_AdditionalProperties; -} - -void CreateModeratorBody::setAdditionalProperties(const std::map& value) -{ - m_AdditionalProperties = value; - m_AdditionalPropertiesIsSet = true; -} - -void CreateModeratorBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) -{ - m_AdditionalProperties[key] = value; - m_AdditionalPropertiesIsSet = true; -} - -bool CreateModeratorBody::additionalPropertiesIsSet() const -{ - return m_AdditionalPropertiesIsSet; -} - -void CreateModeratorBody::unsetAdditionalProperties() -{ - m_AdditionalProperties.clear(); - m_AdditionalPropertiesIsSet = false; -} } } } diff --git a/client/src/model/CreateModeratorResponse.cpp b/client/src/model/CreateModeratorResponse.cpp index e112713..a0a51f2 100644 --- a/client/src/model/CreateModeratorResponse.cpp +++ b/client/src/model/CreateModeratorResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateModeratorResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderator"))] = ModelBase::toJson(m_Moderator); } diff --git a/client/src/model/CreateModerator_200_response.cpp b/client/src/model/CreateModerator_200_response.cpp deleted file mode 100644 index d9d375a..0000000 --- a/client/src/model/CreateModerator_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateModerator_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateModerator_200_response::CreateModerator_200_response() -{ - m_StatusIsSet = false; - m_ModeratorIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateModerator_200_response::~CreateModerator_200_response() -{ -} - -void CreateModerator_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CreateModerator_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ModeratorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("moderator"))] = ModelBase::toJson(m_Moderator); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateModerator_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderator")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderator"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setModerator; - ok &= ModelBase::fromJson(fieldValue, refVal_setModerator); - setModerator(refVal_setModerator); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateModerator_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ModeratorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderator")), m_Moderator)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateModerator_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderator")))) - { - std::shared_ptr refVal_setModerator; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderator"))), refVal_setModerator ); - setModerator(refVal_setModerator); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateModerator_200_response::getStatus() const -{ - return m_Status; -} - - -void CreateModerator_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateModerator_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateModerator_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateModerator_200_response::getModerator() const -{ - return m_Moderator; -} - - -void CreateModerator_200_response::setModerator(const std::shared_ptr& value) -{ - m_Moderator = value; - m_ModeratorIsSet = true; -} - -bool CreateModerator_200_response::moderatorIsSet() const -{ - return m_ModeratorIsSet; -} - -void CreateModerator_200_response::unsetModerator() -{ - m_ModeratorIsSet = false; -} -utility::string_t CreateModerator_200_response::getReason() const -{ - return m_Reason; -} - - -void CreateModerator_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateModerator_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateModerator_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateModerator_200_response::getCode() const -{ - return m_Code; -} - - -void CreateModerator_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateModerator_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateModerator_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateModerator_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateModerator_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateModerator_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateModerator_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateModerator_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateModerator_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateModerator_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateModerator_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateModerator_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateModerator_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateModerator_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateModerator_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateModerator_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateModerator_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateModerator_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateModerator_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateModerator_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateModerator_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateModerator_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateModerator_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateQuestionConfigBody.cpp b/client/src/model/CreateQuestionConfigBody.cpp index 815d40a..3af241e 100644 --- a/client/src/model/CreateQuestionConfigBody.cpp +++ b/client/src/model/CreateQuestionConfigBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -46,7 +46,6 @@ CreateQuestionConfigBody::CreateQuestionConfigBody() m_AlwaysShowSubQuestionsIsSet = false; m_ReportingOrder = 0.0; m_ReportingOrderIsSet = false; - m_AdditionalPropertiesIsSet = false; } CreateQuestionConfigBody::~CreateQuestionConfigBody() @@ -62,83 +61,75 @@ web::json::value CreateQuestionConfigBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_QuestionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("question"))] = ModelBase::toJson(m_Question); } if(m_HelpTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("helpText"))] = ModelBase::toJson(m_HelpText); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_NumStarsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("numStars"))] = ModelBase::toJson(m_NumStars); } if(m_MinIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("min"))] = ModelBase::toJson(m_Min); } if(m_MaxIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("max"))] = ModelBase::toJson(m_Max); } if(m_DefaultValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("defaultValue"))] = ModelBase::toJson(m_DefaultValue); } if(m_LabelNegativeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("labelNegative"))] = ModelBase::toJson(m_LabelNegative); } if(m_LabelPositiveIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("labelPositive"))] = ModelBase::toJson(m_LabelPositive); } if(m_CustomOptionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customOptions"))] = ModelBase::toJson(m_CustomOptions); } if(m_SubQuestionIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subQuestionIds"))] = ModelBase::toJson(m_SubQuestionIds); } if(m_AlwaysShowSubQuestionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("alwaysShowSubQuestions"))] = ModelBase::toJson(m_AlwaysShowSubQuestions); } if(m_ReportingOrderIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reportingOrder"))] = ModelBase::toJson(m_ReportingOrder); } - // Serialize additional properties - if(m_AdditionalPropertiesIsSet) - { - for(const auto& item : m_AdditionalProperties) - { - val[item.first] = item.second; - } - } return val; } @@ -300,31 +291,6 @@ bool CreateQuestionConfigBody::fromJson(const web::json::value& val) } } - // Capture additional properties (keys not defined in the schema) - if(val.is_object()) - { - for(const auto& item : val.as_object()) - { - // Skip known properties - if(item.first == utility::conversions::to_string_t(_XPLATSTR("name"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("question"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("helpText"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("type"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("numStars"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("min"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("max"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("defaultValue"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("labelNegative"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("labelPositive"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("customOptions"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("subQuestionIds"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("alwaysShowSubQuestions"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("reportingOrder"))) continue; - // This is an additional property - m_AdditionalProperties[item.first] = item.second; - m_AdditionalPropertiesIsSet = true; - } - } return ok; } @@ -779,34 +745,6 @@ void CreateQuestionConfigBody::unsetReportingOrder() m_ReportingOrderIsSet = false; } - -std::map CreateQuestionConfigBody::getAdditionalProperties() const -{ - return m_AdditionalProperties; -} - -void CreateQuestionConfigBody::setAdditionalProperties(const std::map& value) -{ - m_AdditionalProperties = value; - m_AdditionalPropertiesIsSet = true; -} - -void CreateQuestionConfigBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) -{ - m_AdditionalProperties[key] = value; - m_AdditionalPropertiesIsSet = true; -} - -bool CreateQuestionConfigBody::additionalPropertiesIsSet() const -{ - return m_AdditionalPropertiesIsSet; -} - -void CreateQuestionConfigBody::unsetAdditionalProperties() -{ - m_AdditionalProperties.clear(); - m_AdditionalPropertiesIsSet = false; -} } } } diff --git a/client/src/model/CreateQuestionConfigResponse.cpp b/client/src/model/CreateQuestionConfigResponse.cpp index 18b6090..786b1cb 100644 --- a/client/src/model/CreateQuestionConfigResponse.cpp +++ b/client/src/model/CreateQuestionConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateQuestionConfigResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_QuestionConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionConfig"))] = ModelBase::toJson(m_QuestionConfig); } diff --git a/client/src/model/CreateQuestionConfig_200_response.cpp b/client/src/model/CreateQuestionConfig_200_response.cpp deleted file mode 100644 index 54deff6..0000000 --- a/client/src/model/CreateQuestionConfig_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateQuestionConfig_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateQuestionConfig_200_response::CreateQuestionConfig_200_response() -{ - m_StatusIsSet = false; - m_QuestionConfigIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateQuestionConfig_200_response::~CreateQuestionConfig_200_response() -{ -} - -void CreateQuestionConfig_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CreateQuestionConfig_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_QuestionConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("questionConfig"))] = ModelBase::toJson(m_QuestionConfig); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateQuestionConfig_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setQuestionConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionConfig); - setQuestionConfig(refVal_setQuestionConfig); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateQuestionConfig_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_QuestionConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionConfig")), m_QuestionConfig)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateQuestionConfig_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionConfig")))) - { - std::shared_ptr refVal_setQuestionConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionConfig"))), refVal_setQuestionConfig ); - setQuestionConfig(refVal_setQuestionConfig); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateQuestionConfig_200_response::getStatus() const -{ - return m_Status; -} - - -void CreateQuestionConfig_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateQuestionConfig_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateQuestionConfig_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateQuestionConfig_200_response::getQuestionConfig() const -{ - return m_QuestionConfig; -} - - -void CreateQuestionConfig_200_response::setQuestionConfig(const std::shared_ptr& value) -{ - m_QuestionConfig = value; - m_QuestionConfigIsSet = true; -} - -bool CreateQuestionConfig_200_response::questionConfigIsSet() const -{ - return m_QuestionConfigIsSet; -} - -void CreateQuestionConfig_200_response::unsetQuestionConfig() -{ - m_QuestionConfigIsSet = false; -} -utility::string_t CreateQuestionConfig_200_response::getReason() const -{ - return m_Reason; -} - - -void CreateQuestionConfig_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateQuestionConfig_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateQuestionConfig_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateQuestionConfig_200_response::getCode() const -{ - return m_Code; -} - - -void CreateQuestionConfig_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateQuestionConfig_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateQuestionConfig_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateQuestionConfig_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateQuestionConfig_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateQuestionConfig_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateQuestionConfig_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateQuestionConfig_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateQuestionConfig_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateQuestionConfig_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateQuestionConfig_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateQuestionConfig_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateQuestionConfig_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateQuestionConfig_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateQuestionConfig_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateQuestionConfig_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateQuestionConfig_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateQuestionConfig_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateQuestionConfig_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateQuestionConfig_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateQuestionConfig_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateQuestionConfig_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateQuestionConfig_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateQuestionResultBody.cpp b/client/src/model/CreateQuestionResultBody.cpp index 2ee053a..f601d6b 100644 --- a/client/src/model/CreateQuestionResultBody.cpp +++ b/client/src/model/CreateQuestionResultBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -32,7 +32,7 @@ CreateQuestionResultBody::CreateQuestionResultBody() m_UserIdIsSet = false; m_CommentId = utility::conversions::to_string_t(""); m_CommentIdIsSet = false; - m_AdditionalPropertiesIsSet = false; + m_MetaIsSet = false; } CreateQuestionResultBody::~CreateQuestionResultBody() @@ -48,47 +48,39 @@ web::json::value CreateQuestionResultBody::toJson() const { web::json::value val = web::json::value::object(); if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_ValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("value"))] = ModelBase::toJson(m_Value); } if(m_QuestionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionId"))] = ModelBase::toJson(m_QuestionId); } if(m_AnonUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_CommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId); } - if(m_Meta.has_value()) - { + if(m_MetaIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); - } - // Serialize additional properties - if(m_AdditionalPropertiesIsSet) - { - for(const auto& item : m_AdditionalProperties) - { - val[item.first] = item.second; - } + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } return val; @@ -174,24 +166,6 @@ bool CreateQuestionResultBody::fromJson(const web::json::value& val) } } - // Capture additional properties (keys not defined in the schema) - if(val.is_object()) - { - for(const auto& item : val.as_object()) - { - // Skip known properties - if(item.first == utility::conversions::to_string_t(_XPLATSTR("urlId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("value"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("questionId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("anonUserId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("userId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("commentId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("meta"))) continue; - // This is an additional property - m_AdditionalProperties[item.first] = item.second; - m_AdditionalPropertiesIsSet = true; - } - } return ok; } @@ -226,9 +200,9 @@ void CreateQuestionResultBody::toMultipart(std::shared_ptr mu { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentId")), m_CommentId)); } - if(m_Meta.has_value()) + if(m_MetaIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); } } @@ -414,53 +388,26 @@ void CreateQuestionResultBody::unsetCommentId() } std::vector> CreateQuestionResultBody::getMeta() const { - return m_Meta.get(); + return m_Meta; } void CreateQuestionResultBody::setMeta(const std::vector>& value) { m_Meta = value; + m_MetaIsSet = true; } bool CreateQuestionResultBody::metaIsSet() const { - return m_Meta.has_value(); + return m_MetaIsSet; } void CreateQuestionResultBody::unsetMeta() { - m_Meta.reset(); + m_MetaIsSet = false; } - -std::map CreateQuestionResultBody::getAdditionalProperties() const -{ - return m_AdditionalProperties; -} - -void CreateQuestionResultBody::setAdditionalProperties(const std::map& value) -{ - m_AdditionalProperties = value; - m_AdditionalPropertiesIsSet = true; -} - -void CreateQuestionResultBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) -{ - m_AdditionalProperties[key] = value; - m_AdditionalPropertiesIsSet = true; -} - -bool CreateQuestionResultBody::additionalPropertiesIsSet() const -{ - return m_AdditionalPropertiesIsSet; -} - -void CreateQuestionResultBody::unsetAdditionalProperties() -{ - m_AdditionalProperties.clear(); - m_AdditionalPropertiesIsSet = false; -} } } } diff --git a/client/src/model/CreateQuestionResultResponse.cpp b/client/src/model/CreateQuestionResultResponse.cpp index c82e339..3aa2bb9 100644 --- a/client/src/model/CreateQuestionResultResponse.cpp +++ b/client/src/model/CreateQuestionResultResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateQuestionResultResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_QuestionResultIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionResult"))] = ModelBase::toJson(m_QuestionResult); } diff --git a/client/src/model/CreateQuestionResult_200_response.cpp b/client/src/model/CreateQuestionResult_200_response.cpp deleted file mode 100644 index e244d86..0000000 --- a/client/src/model/CreateQuestionResult_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateQuestionResult_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateQuestionResult_200_response::CreateQuestionResult_200_response() -{ - m_StatusIsSet = false; - m_QuestionResultIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateQuestionResult_200_response::~CreateQuestionResult_200_response() -{ -} - -void CreateQuestionResult_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CreateQuestionResult_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_QuestionResultIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("questionResult"))] = ModelBase::toJson(m_QuestionResult); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateQuestionResult_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionResult")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionResult"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setQuestionResult; - ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionResult); - setQuestionResult(refVal_setQuestionResult); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateQuestionResult_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_QuestionResultIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionResult")), m_QuestionResult)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateQuestionResult_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionResult")))) - { - std::shared_ptr refVal_setQuestionResult; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionResult"))), refVal_setQuestionResult ); - setQuestionResult(refVal_setQuestionResult); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateQuestionResult_200_response::getStatus() const -{ - return m_Status; -} - - -void CreateQuestionResult_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateQuestionResult_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateQuestionResult_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateQuestionResult_200_response::getQuestionResult() const -{ - return m_QuestionResult; -} - - -void CreateQuestionResult_200_response::setQuestionResult(const std::shared_ptr& value) -{ - m_QuestionResult = value; - m_QuestionResultIsSet = true; -} - -bool CreateQuestionResult_200_response::questionResultIsSet() const -{ - return m_QuestionResultIsSet; -} - -void CreateQuestionResult_200_response::unsetQuestionResult() -{ - m_QuestionResultIsSet = false; -} -utility::string_t CreateQuestionResult_200_response::getReason() const -{ - return m_Reason; -} - - -void CreateQuestionResult_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateQuestionResult_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateQuestionResult_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateQuestionResult_200_response::getCode() const -{ - return m_Code; -} - - -void CreateQuestionResult_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateQuestionResult_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateQuestionResult_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateQuestionResult_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateQuestionResult_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateQuestionResult_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateQuestionResult_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateQuestionResult_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateQuestionResult_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateQuestionResult_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateQuestionResult_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateQuestionResult_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateQuestionResult_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateQuestionResult_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateQuestionResult_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateQuestionResult_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateQuestionResult_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateQuestionResult_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateQuestionResult_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateQuestionResult_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateQuestionResult_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateQuestionResult_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateQuestionResult_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateSubscriptionAPIResponse.cpp b/client/src/model/CreateSubscriptionAPIResponse.cpp index 84ea076..d0f2cd3 100644 --- a/client/src/model/CreateSubscriptionAPIResponse.cpp +++ b/client/src/model/CreateSubscriptionAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value CreateSubscriptionAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_SubscriptionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subscription"))] = ModelBase::toJson(m_Subscription); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/CreateTenantBody.cpp b/client/src/model/CreateTenantBody.cpp index 310b993..77c35cc 100644 --- a/client/src/model/CreateTenantBody.cpp +++ b/client/src/model/CreateTenantBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -78,117 +78,117 @@ web::json::value CreateTenantBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_DomainConfigurationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domainConfiguration"))] = ModelBase::toJson(m_DomainConfiguration); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_PackageIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("packageId"))] = ModelBase::toJson(m_PackageId); } if(m_PaymentFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("paymentFrequency"))] = ModelBase::toJson(m_PaymentFrequency); } if(m_BillingInfoValidIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingInfoValid"))] = ModelBase::toJson(m_BillingInfoValid); } if(m_BillingHandledExternallyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingHandledExternally"))] = ModelBase::toJson(m_BillingHandledExternally); } if(m_CreatedByIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdBy"))] = ModelBase::toJson(m_CreatedBy); } if(m_IsSetupIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSetup"))] = ModelBase::toJson(m_IsSetup); } if(m_BillingInfoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingInfo"))] = ModelBase::toJson(m_BillingInfo); } if(m_StripeCustomerIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripeCustomerId"))] = ModelBase::toJson(m_StripeCustomerId); } if(m_StripeSubscriptionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripeSubscriptionId"))] = ModelBase::toJson(m_StripeSubscriptionId); } if(m_StripePlanIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripePlanId"))] = ModelBase::toJson(m_StripePlanId); } if(m_EnableProfanityFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableProfanityFilter"))] = ModelBase::toJson(m_EnableProfanityFilter); } if(m_EnableSpamFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSpamFilter"))] = ModelBase::toJson(m_EnableSpamFilter); } if(m_RemoveUnverifiedCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("removeUnverifiedComments"))] = ModelBase::toJson(m_RemoveUnverifiedComments); } if(m_UnverifiedCommentsTTLmsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("unverifiedCommentsTTLms"))] = ModelBase::toJson(m_UnverifiedCommentsTTLms); } if(m_CommentsRequireApprovalIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentsRequireApproval"))] = ModelBase::toJson(m_CommentsRequireApproval); } if(m_AutoApproveCommentOnVerificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoApproveCommentOnVerification"))] = ModelBase::toJson(m_AutoApproveCommentOnVerification); } if(m_SendProfaneToSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sendProfaneToSpam"))] = ModelBase::toJson(m_SendProfaneToSpam); } if(m_DeAnonIpAddrIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("deAnonIpAddr"))] = ModelBase::toJson(m_DeAnonIpAddr); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } diff --git a/client/src/model/CreateTenantPackageBody.cpp b/client/src/model/CreateTenantPackageBody.cpp index ac45234..fa919be 100644 --- a/client/src/model/CreateTenantPackageBody.cpp +++ b/client/src/model/CreateTenantPackageBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,6 +22,14 @@ CreateTenantPackageBody::CreateTenantPackageBody() { m_Name = utility::conversions::to_string_t(""); m_NameIsSet = false; + m_MonthlyCostUSD = 0.0; + m_MonthlyCostUSDIsSet = false; + m_YearlyCostUSD = 0.0; + m_YearlyCostUSDIsSet = false; + m_MonthlyStripePlanId = utility::conversions::to_string_t(""); + m_MonthlyStripePlanIdIsSet = false; + m_YearlyStripePlanId = utility::conversions::to_string_t(""); + m_YearlyStripePlanIdIsSet = false; m_MaxMonthlyPageLoads = 0.0; m_MaxMonthlyPageLoadsIsSet = false; m_MaxMonthlyAPICredits = 0.0; @@ -93,10 +101,10 @@ CreateTenantPackageBody::CreateTenantPackageBody() m_FlexDomainCostCentsIsSet = false; m_FlexDomainUnit = 0.0; m_FlexDomainUnitIsSet = false; - m_FlexChatGPTCostCents = 0.0; - m_FlexChatGPTCostCentsIsSet = false; - m_FlexChatGPTUnit = 0.0; - m_FlexChatGPTUnitIsSet = false; + m_FlexLLMCostCents = 0.0; + m_FlexLLMCostCentsIsSet = false; + m_FlexLLMUnit = 0.0; + m_FlexLLMUnitIsSet = false; m_FlexMinimumCostCents = 0.0; m_FlexMinimumCostCentsIsSet = false; m_FlexManagedTenantCostCents = 0.0; @@ -124,247 +132,247 @@ web::json::value CreateTenantPackageBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } - if(m_MonthlyCostUSD.has_value()) - { + if(m_MonthlyCostUSDIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD"))] = ModelBase::toJson(m_MonthlyCostUSD.get()); + val[utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD"))] = ModelBase::toJson(m_MonthlyCostUSD); } - if(m_YearlyCostUSD.has_value()) - { + if(m_YearlyCostUSDIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD"))] = ModelBase::toJson(m_YearlyCostUSD.get()); + val[utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD"))] = ModelBase::toJson(m_YearlyCostUSD); } - if(m_MonthlyStripePlanId.has_value()) - { + if(m_MonthlyStripePlanIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId"))] = ModelBase::toJson(m_MonthlyStripePlanId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId"))] = ModelBase::toJson(m_MonthlyStripePlanId); } - if(m_YearlyStripePlanId.has_value()) - { + if(m_YearlyStripePlanIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId"))] = ModelBase::toJson(m_YearlyStripePlanId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId"))] = ModelBase::toJson(m_YearlyStripePlanId); } if(m_MaxMonthlyPageLoadsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyPageLoads"))] = ModelBase::toJson(m_MaxMonthlyPageLoads); } if(m_MaxMonthlyAPICreditsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyAPICredits"))] = ModelBase::toJson(m_MaxMonthlyAPICredits); } if(m_MaxMonthlySmallWidgetsCreditsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlySmallWidgetsCredits"))] = ModelBase::toJson(m_MaxMonthlySmallWidgetsCredits); } if(m_MaxMonthlyCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyComments"))] = ModelBase::toJson(m_MaxMonthlyComments); } if(m_MaxConcurrentUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxConcurrentUsers"))] = ModelBase::toJson(m_MaxConcurrentUsers); } if(m_MaxTenantUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxTenantUsers"))] = ModelBase::toJson(m_MaxTenantUsers); } if(m_MaxSSOUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxSSOUsers"))] = ModelBase::toJson(m_MaxSSOUsers); } if(m_MaxModeratorsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxModerators"))] = ModelBase::toJson(m_MaxModerators); } if(m_MaxDomainsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxDomains"))] = ModelBase::toJson(m_MaxDomains); } if(m_MaxWhiteLabeledTenantsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxWhiteLabeledTenants"))] = ModelBase::toJson(m_MaxWhiteLabeledTenants); } if(m_MaxMonthlyEventLogRequestsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyEventLogRequests"))] = ModelBase::toJson(m_MaxMonthlyEventLogRequests); } if(m_MaxCustomCollectionSizeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCustomCollectionSize"))] = ModelBase::toJson(m_MaxCustomCollectionSize); } if(m_HasWhiteLabelingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasWhiteLabeling"))] = ModelBase::toJson(m_HasWhiteLabeling); } if(m_HasDebrandingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasDebranding"))] = ModelBase::toJson(m_HasDebranding); } if(m_HasLLMSpamDetectionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLLMSpamDetection"))] = ModelBase::toJson(m_HasLLMSpamDetection); } if(m_ForWhoTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("forWhoText"))] = ModelBase::toJson(m_ForWhoText); } if(m_FeatureTaglinesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("featureTaglines"))] = ModelBase::toJson(m_FeatureTaglines); } if(m_HasAuditingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasAuditing"))] = ModelBase::toJson(m_HasAuditing); } if(m_HasFlexPricingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasFlexPricing"))] = ModelBase::toJson(m_HasFlexPricing); } if(m_EnableSAMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSAML"))] = ModelBase::toJson(m_EnableSAML); } if(m_FlexPageLoadCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadCostCents"))] = ModelBase::toJson(m_FlexPageLoadCostCents); } if(m_FlexPageLoadUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadUnit"))] = ModelBase::toJson(m_FlexPageLoadUnit); } if(m_FlexCommentCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentCostCents"))] = ModelBase::toJson(m_FlexCommentCostCents); } if(m_FlexCommentUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentUnit"))] = ModelBase::toJson(m_FlexCommentUnit); } if(m_FlexSSOUserCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserCostCents"))] = ModelBase::toJson(m_FlexSSOUserCostCents); } if(m_FlexSSOUserUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserUnit"))] = ModelBase::toJson(m_FlexSSOUserUnit); } if(m_FlexAPICreditCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditCostCents"))] = ModelBase::toJson(m_FlexAPICreditCostCents); } if(m_FlexAPICreditUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditUnit"))] = ModelBase::toJson(m_FlexAPICreditUnit); } if(m_FlexSmallWidgetsCreditCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSmallWidgetsCreditCostCents"))] = ModelBase::toJson(m_FlexSmallWidgetsCreditCostCents); } if(m_FlexSmallWidgetsCreditUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSmallWidgetsCreditUnit"))] = ModelBase::toJson(m_FlexSmallWidgetsCreditUnit); } if(m_FlexModeratorCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorCostCents"))] = ModelBase::toJson(m_FlexModeratorCostCents); } if(m_FlexModeratorUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorUnit"))] = ModelBase::toJson(m_FlexModeratorUnit); } if(m_FlexAdminCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminCostCents"))] = ModelBase::toJson(m_FlexAdminCostCents); } if(m_FlexAdminUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminUnit"))] = ModelBase::toJson(m_FlexAdminUnit); } if(m_FlexDomainCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainCostCents"))] = ModelBase::toJson(m_FlexDomainCostCents); } if(m_FlexDomainUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainUnit"))] = ModelBase::toJson(m_FlexDomainUnit); } - if(m_FlexChatGPTCostCentsIsSet) - { + if(m_FlexLLMCostCentsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("flexChatGPTCostCents"))] = ModelBase::toJson(m_FlexChatGPTCostCents); + val[utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents"))] = ModelBase::toJson(m_FlexLLMCostCents); } - if(m_FlexChatGPTUnitIsSet) - { + if(m_FlexLLMUnitIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("flexChatGPTUnit"))] = ModelBase::toJson(m_FlexChatGPTUnit); + val[utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit"))] = ModelBase::toJson(m_FlexLLMUnit); } if(m_FlexMinimumCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexMinimumCostCents"))] = ModelBase::toJson(m_FlexMinimumCostCents); } if(m_FlexManagedTenantCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexManagedTenantCostCents"))] = ModelBase::toJson(m_FlexManagedTenantCostCents); } if(m_FlexSSOAdminCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOAdminCostCents"))] = ModelBase::toJson(m_FlexSSOAdminCostCents); } if(m_FlexSSOAdminUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOAdminUnit"))] = ModelBase::toJson(m_FlexSSOAdminUnit); } if(m_FlexSSOModeratorCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOModeratorCostCents"))] = ModelBase::toJson(m_FlexSSOModeratorCostCents); } if(m_FlexSSOModeratorUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOModeratorUnit"))] = ModelBase::toJson(m_FlexSSOModeratorUnit); } @@ -826,25 +834,25 @@ bool CreateTenantPackageBody::fromJson(const web::json::value& val) } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("flexChatGPTCostCents")))) + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents")))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("flexChatGPTCostCents"))); + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents"))); if(!fieldValue.is_null()) { - double refVal_setFlexChatGPTCostCents; - ok &= ModelBase::fromJson(fieldValue, refVal_setFlexChatGPTCostCents); - setFlexChatGPTCostCents(refVal_setFlexChatGPTCostCents); + double refVal_setFlexLLMCostCents; + ok &= ModelBase::fromJson(fieldValue, refVal_setFlexLLMCostCents); + setFlexLLMCostCents(refVal_setFlexLLMCostCents); } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("flexChatGPTUnit")))) + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit")))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("flexChatGPTUnit"))); + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit"))); if(!fieldValue.is_null()) { - double refVal_setFlexChatGPTUnit; - ok &= ModelBase::fromJson(fieldValue, refVal_setFlexChatGPTUnit); - setFlexChatGPTUnit(refVal_setFlexChatGPTUnit); + double refVal_setFlexLLMUnit; + ok &= ModelBase::fromJson(fieldValue, refVal_setFlexLLMUnit); + setFlexLLMUnit(refVal_setFlexLLMUnit); } } @@ -928,21 +936,21 @@ void CreateTenantPackageBody::toMultipart(std::shared_ptr mul { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } - if(m_MonthlyCostUSD.has_value()) + if(m_MonthlyCostUSDIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD")), m_MonthlyCostUSD.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD")), m_MonthlyCostUSD)); } - if(m_YearlyCostUSD.has_value()) + if(m_YearlyCostUSDIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD")), m_YearlyCostUSD.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD")), m_YearlyCostUSD)); } - if(m_MonthlyStripePlanId.has_value()) + if(m_MonthlyStripePlanIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId")), m_MonthlyStripePlanId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId")), m_MonthlyStripePlanId)); } - if(m_YearlyStripePlanId.has_value()) + if(m_YearlyStripePlanIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId")), m_YearlyStripePlanId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId")), m_YearlyStripePlanId)); } if(m_MaxMonthlyPageLoadsIsSet) { @@ -1088,13 +1096,13 @@ void CreateTenantPackageBody::toMultipart(std::shared_ptr mul { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flexDomainUnit")), m_FlexDomainUnit)); } - if(m_FlexChatGPTCostCentsIsSet) + if(m_FlexLLMCostCentsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flexChatGPTCostCents")), m_FlexChatGPTCostCents)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents")), m_FlexLLMCostCents)); } - if(m_FlexChatGPTUnitIsSet) + if(m_FlexLLMUnitIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flexChatGPTUnit")), m_FlexChatGPTUnit)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit")), m_FlexLLMUnit)); } if(m_FlexMinimumCostCentsIsSet) { @@ -1377,17 +1385,17 @@ bool CreateTenantPackageBody::fromMultiPart(std::shared_ptr m ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("flexDomainUnit"))), refVal_setFlexDomainUnit ); setFlexDomainUnit(refVal_setFlexDomainUnit); } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("flexChatGPTCostCents")))) + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents")))) { - double refVal_setFlexChatGPTCostCents; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("flexChatGPTCostCents"))), refVal_setFlexChatGPTCostCents ); - setFlexChatGPTCostCents(refVal_setFlexChatGPTCostCents); + double refVal_setFlexLLMCostCents; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents"))), refVal_setFlexLLMCostCents ); + setFlexLLMCostCents(refVal_setFlexLLMCostCents); } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("flexChatGPTUnit")))) + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit")))) { - double refVal_setFlexChatGPTUnit; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("flexChatGPTUnit"))), refVal_setFlexChatGPTUnit ); - setFlexChatGPTUnit(refVal_setFlexChatGPTUnit); + double refVal_setFlexLLMUnit; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit"))), refVal_setFlexLLMUnit ); + setFlexLLMUnit(refVal_setFlexLLMUnit); } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("flexMinimumCostCents")))) { @@ -1452,81 +1460,85 @@ void CreateTenantPackageBody::unsetName() } double CreateTenantPackageBody::getMonthlyCostUSD() const { - return m_MonthlyCostUSD.get(); + return m_MonthlyCostUSD; } void CreateTenantPackageBody::setMonthlyCostUSD(double value) { m_MonthlyCostUSD = value; + m_MonthlyCostUSDIsSet = true; } bool CreateTenantPackageBody::monthlyCostUSDIsSet() const { - return m_MonthlyCostUSD.has_value(); + return m_MonthlyCostUSDIsSet; } void CreateTenantPackageBody::unsetMonthlyCostUSD() { - m_MonthlyCostUSD.reset(); + m_MonthlyCostUSDIsSet = false; } double CreateTenantPackageBody::getYearlyCostUSD() const { - return m_YearlyCostUSD.get(); + return m_YearlyCostUSD; } void CreateTenantPackageBody::setYearlyCostUSD(double value) { m_YearlyCostUSD = value; + m_YearlyCostUSDIsSet = true; } bool CreateTenantPackageBody::yearlyCostUSDIsSet() const { - return m_YearlyCostUSD.has_value(); + return m_YearlyCostUSDIsSet; } void CreateTenantPackageBody::unsetYearlyCostUSD() { - m_YearlyCostUSD.reset(); + m_YearlyCostUSDIsSet = false; } utility::string_t CreateTenantPackageBody::getMonthlyStripePlanId() const { - return m_MonthlyStripePlanId.get(); + return m_MonthlyStripePlanId; } void CreateTenantPackageBody::setMonthlyStripePlanId(const utility::string_t& value) { m_MonthlyStripePlanId = value; + m_MonthlyStripePlanIdIsSet = true; } bool CreateTenantPackageBody::monthlyStripePlanIdIsSet() const { - return m_MonthlyStripePlanId.has_value(); + return m_MonthlyStripePlanIdIsSet; } void CreateTenantPackageBody::unsetMonthlyStripePlanId() { - m_MonthlyStripePlanId.reset(); + m_MonthlyStripePlanIdIsSet = false; } utility::string_t CreateTenantPackageBody::getYearlyStripePlanId() const { - return m_YearlyStripePlanId.get(); + return m_YearlyStripePlanId; } void CreateTenantPackageBody::setYearlyStripePlanId(const utility::string_t& value) { m_YearlyStripePlanId = value; + m_YearlyStripePlanIdIsSet = true; } bool CreateTenantPackageBody::yearlyStripePlanIdIsSet() const { - return m_YearlyStripePlanId.has_value(); + return m_YearlyStripePlanIdIsSet; } void CreateTenantPackageBody::unsetYearlyStripePlanId() { - m_YearlyStripePlanId.reset(); + m_YearlyStripePlanIdIsSet = false; } double CreateTenantPackageBody::getMaxMonthlyPageLoads() const { @@ -2250,45 +2262,45 @@ void CreateTenantPackageBody::unsetFlexDomainUnit() { m_FlexDomainUnitIsSet = false; } -double CreateTenantPackageBody::getFlexChatGPTCostCents() const +double CreateTenantPackageBody::getFlexLLMCostCents() const { - return m_FlexChatGPTCostCents; + return m_FlexLLMCostCents; } -void CreateTenantPackageBody::setFlexChatGPTCostCents(double value) +void CreateTenantPackageBody::setFlexLLMCostCents(double value) { - m_FlexChatGPTCostCents = value; - m_FlexChatGPTCostCentsIsSet = true; + m_FlexLLMCostCents = value; + m_FlexLLMCostCentsIsSet = true; } -bool CreateTenantPackageBody::flexChatGPTCostCentsIsSet() const +bool CreateTenantPackageBody::flexLLMCostCentsIsSet() const { - return m_FlexChatGPTCostCentsIsSet; + return m_FlexLLMCostCentsIsSet; } -void CreateTenantPackageBody::unsetFlexChatGPTCostCents() +void CreateTenantPackageBody::unsetFlexLLMCostCents() { - m_FlexChatGPTCostCentsIsSet = false; + m_FlexLLMCostCentsIsSet = false; } -double CreateTenantPackageBody::getFlexChatGPTUnit() const +double CreateTenantPackageBody::getFlexLLMUnit() const { - return m_FlexChatGPTUnit; + return m_FlexLLMUnit; } -void CreateTenantPackageBody::setFlexChatGPTUnit(double value) +void CreateTenantPackageBody::setFlexLLMUnit(double value) { - m_FlexChatGPTUnit = value; - m_FlexChatGPTUnitIsSet = true; + m_FlexLLMUnit = value; + m_FlexLLMUnitIsSet = true; } -bool CreateTenantPackageBody::flexChatGPTUnitIsSet() const +bool CreateTenantPackageBody::flexLLMUnitIsSet() const { - return m_FlexChatGPTUnitIsSet; + return m_FlexLLMUnitIsSet; } -void CreateTenantPackageBody::unsetFlexChatGPTUnit() +void CreateTenantPackageBody::unsetFlexLLMUnit() { - m_FlexChatGPTUnitIsSet = false; + m_FlexLLMUnitIsSet = false; } double CreateTenantPackageBody::getFlexMinimumCostCents() const { diff --git a/client/src/model/CreateTenantPackageResponse.cpp b/client/src/model/CreateTenantPackageResponse.cpp index 5677ec8..92d8a95 100644 --- a/client/src/model/CreateTenantPackageResponse.cpp +++ b/client/src/model/CreateTenantPackageResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateTenantPackageResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantPackageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))] = ModelBase::toJson(m_TenantPackage); } diff --git a/client/src/model/CreateTenantPackage_200_response.cpp b/client/src/model/CreateTenantPackage_200_response.cpp deleted file mode 100644 index 2ff06e2..0000000 --- a/client/src/model/CreateTenantPackage_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateTenantPackage_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateTenantPackage_200_response::CreateTenantPackage_200_response() -{ - m_StatusIsSet = false; - m_TenantPackageIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateTenantPackage_200_response::~CreateTenantPackage_200_response() -{ -} - -void CreateTenantPackage_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CreateTenantPackage_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantPackageIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))] = ModelBase::toJson(m_TenantPackage); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateTenantPackage_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantPackage")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTenantPackage; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantPackage); - setTenantPackage(refVal_setTenantPackage); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateTenantPackage_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantPackageIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantPackage")), m_TenantPackage)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateTenantPackage_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackage")))) - { - std::shared_ptr refVal_setTenantPackage; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))), refVal_setTenantPackage ); - setTenantPackage(refVal_setTenantPackage); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateTenantPackage_200_response::getStatus() const -{ - return m_Status; -} - - -void CreateTenantPackage_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateTenantPackage_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateTenantPackage_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateTenantPackage_200_response::getTenantPackage() const -{ - return m_TenantPackage; -} - - -void CreateTenantPackage_200_response::setTenantPackage(const std::shared_ptr& value) -{ - m_TenantPackage = value; - m_TenantPackageIsSet = true; -} - -bool CreateTenantPackage_200_response::tenantPackageIsSet() const -{ - return m_TenantPackageIsSet; -} - -void CreateTenantPackage_200_response::unsetTenantPackage() -{ - m_TenantPackageIsSet = false; -} -utility::string_t CreateTenantPackage_200_response::getReason() const -{ - return m_Reason; -} - - -void CreateTenantPackage_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateTenantPackage_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateTenantPackage_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateTenantPackage_200_response::getCode() const -{ - return m_Code; -} - - -void CreateTenantPackage_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateTenantPackage_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateTenantPackage_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateTenantPackage_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateTenantPackage_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateTenantPackage_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateTenantPackage_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateTenantPackage_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateTenantPackage_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateTenantPackage_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateTenantPackage_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateTenantPackage_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateTenantPackage_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateTenantPackage_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateTenantPackage_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateTenantPackage_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateTenantPackage_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateTenantPackage_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateTenantPackage_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateTenantPackage_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateTenantPackage_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateTenantPackage_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateTenantPackage_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateTenantResponse.cpp b/client/src/model/CreateTenantResponse.cpp index 02c2451..750987a 100644 --- a/client/src/model/CreateTenantResponse.cpp +++ b/client/src/model/CreateTenantResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateTenantResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenant"))] = ModelBase::toJson(m_Tenant); } diff --git a/client/src/model/CreateTenantUserBody.cpp b/client/src/model/CreateTenantUserBody.cpp index b8c8d11..9ec82f4 100644 --- a/client/src/model/CreateTenantUserBody.cpp +++ b/client/src/model/CreateTenantUserBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -82,122 +82,122 @@ web::json::value CreateTenantUserBody::toJson() const { web::json::value val = web::json::value::object(); if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_LocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_OptedInTenantNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInTenantNotifications"))] = ModelBase::toJson(m_OptedInTenantNotifications); } if(m_HideAccountCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hideAccountCode"))] = ModelBase::toJson(m_HideAccountCode); } if(m_AvatarSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_IsHelpRequestAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isHelpRequestAdmin"))] = ModelBase::toJson(m_IsHelpRequestAdmin); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsBillingAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBillingAdmin"))] = ModelBase::toJson(m_IsBillingAdmin); } if(m_IsAnalyticsAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAnalyticsAdmin"))] = ModelBase::toJson(m_IsAnalyticsAdmin); } if(m_IsCustomizationAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCustomizationAdmin"))] = ModelBase::toJson(m_IsCustomizationAdmin); } if(m_IsManageDataAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isManageDataAdmin"))] = ModelBase::toJson(m_IsManageDataAdmin); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsAPIAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAPIAdmin"))] = ModelBase::toJson(m_IsAPIAdmin); } if(m_ModeratorIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderatorIds"))] = ModelBase::toJson(m_ModeratorIds); } if(m_DigestEmailFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("digestEmailFrequency"))] = ModelBase::toJson(m_DigestEmailFrequency); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } diff --git a/client/src/model/CreateTenantUserResponse.cpp b/client/src/model/CreateTenantUserResponse.cpp index 3ea994b..1d400bf 100644 --- a/client/src/model/CreateTenantUserResponse.cpp +++ b/client/src/model/CreateTenantUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateTenantUserResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantUser"))] = ModelBase::toJson(m_TenantUser); } diff --git a/client/src/model/CreateTenantUser_200_response.cpp b/client/src/model/CreateTenantUser_200_response.cpp deleted file mode 100644 index 52fdae8..0000000 --- a/client/src/model/CreateTenantUser_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateTenantUser_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateTenantUser_200_response::CreateTenantUser_200_response() -{ - m_StatusIsSet = false; - m_TenantUserIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateTenantUser_200_response::~CreateTenantUser_200_response() -{ -} - -void CreateTenantUser_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CreateTenantUser_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantUserIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantUser"))] = ModelBase::toJson(m_TenantUser); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateTenantUser_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantUser")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantUser"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTenantUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantUser); - setTenantUser(refVal_setTenantUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateTenantUser_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantUserIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantUser")), m_TenantUser)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateTenantUser_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantUser")))) - { - std::shared_ptr refVal_setTenantUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantUser"))), refVal_setTenantUser ); - setTenantUser(refVal_setTenantUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateTenantUser_200_response::getStatus() const -{ - return m_Status; -} - - -void CreateTenantUser_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateTenantUser_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateTenantUser_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateTenantUser_200_response::getTenantUser() const -{ - return m_TenantUser; -} - - -void CreateTenantUser_200_response::setTenantUser(const std::shared_ptr& value) -{ - m_TenantUser = value; - m_TenantUserIsSet = true; -} - -bool CreateTenantUser_200_response::tenantUserIsSet() const -{ - return m_TenantUserIsSet; -} - -void CreateTenantUser_200_response::unsetTenantUser() -{ - m_TenantUserIsSet = false; -} -utility::string_t CreateTenantUser_200_response::getReason() const -{ - return m_Reason; -} - - -void CreateTenantUser_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateTenantUser_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateTenantUser_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateTenantUser_200_response::getCode() const -{ - return m_Code; -} - - -void CreateTenantUser_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateTenantUser_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateTenantUser_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateTenantUser_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateTenantUser_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateTenantUser_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateTenantUser_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateTenantUser_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateTenantUser_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateTenantUser_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateTenantUser_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateTenantUser_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateTenantUser_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateTenantUser_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateTenantUser_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateTenantUser_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateTenantUser_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateTenantUser_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateTenantUser_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateTenantUser_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateTenantUser_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateTenantUser_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateTenantUser_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateTenant_200_response.cpp b/client/src/model/CreateTenant_200_response.cpp deleted file mode 100644 index 3d193f0..0000000 --- a/client/src/model/CreateTenant_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateTenant_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateTenant_200_response::CreateTenant_200_response() -{ - m_StatusIsSet = false; - m_TenantIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateTenant_200_response::~CreateTenant_200_response() -{ -} - -void CreateTenant_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CreateTenant_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenant"))] = ModelBase::toJson(m_Tenant); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateTenant_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenant")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenant"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTenant; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenant); - setTenant(refVal_setTenant); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateTenant_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenant")), m_Tenant)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateTenant_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenant")))) - { - std::shared_ptr refVal_setTenant; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenant"))), refVal_setTenant ); - setTenant(refVal_setTenant); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateTenant_200_response::getStatus() const -{ - return m_Status; -} - - -void CreateTenant_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateTenant_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateTenant_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateTenant_200_response::getTenant() const -{ - return m_Tenant; -} - - -void CreateTenant_200_response::setTenant(const std::shared_ptr& value) -{ - m_Tenant = value; - m_TenantIsSet = true; -} - -bool CreateTenant_200_response::tenantIsSet() const -{ - return m_TenantIsSet; -} - -void CreateTenant_200_response::unsetTenant() -{ - m_TenantIsSet = false; -} -utility::string_t CreateTenant_200_response::getReason() const -{ - return m_Reason; -} - - -void CreateTenant_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateTenant_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateTenant_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateTenant_200_response::getCode() const -{ - return m_Code; -} - - -void CreateTenant_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateTenant_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateTenant_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateTenant_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateTenant_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateTenant_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateTenant_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateTenant_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateTenant_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateTenant_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateTenant_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateTenant_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateTenant_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateTenant_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateTenant_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateTenant_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateTenant_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateTenant_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateTenant_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateTenant_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateTenant_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateTenant_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateTenant_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateTicketBody.cpp b/client/src/model/CreateTicketBody.cpp index ea466e5..1d2f7d4 100644 --- a/client/src/model/CreateTicketBody.cpp +++ b/client/src/model/CreateTicketBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,7 @@ web::json::value CreateTicketBody::toJson() const { web::json::value val = web::json::value::object(); if(m_SubjectIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subject"))] = ModelBase::toJson(m_Subject); } diff --git a/client/src/model/CreateTicketResponse.cpp b/client/src/model/CreateTicketResponse.cpp index efe535f..ffbf709 100644 --- a/client/src/model/CreateTicketResponse.cpp +++ b/client/src/model/CreateTicketResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateTicketResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TicketIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); } diff --git a/client/src/model/CreateTicket_200_response.cpp b/client/src/model/CreateTicket_200_response.cpp deleted file mode 100644 index 846a8f9..0000000 --- a/client/src/model/CreateTicket_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateTicket_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateTicket_200_response::CreateTicket_200_response() -{ - m_StatusIsSet = false; - m_TicketIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateTicket_200_response::~CreateTicket_200_response() -{ -} - -void CreateTicket_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CreateTicket_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TicketIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateTicket_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ticket")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ticket"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTicket; - ok &= ModelBase::fromJson(fieldValue, refVal_setTicket); - setTicket(refVal_setTicket); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateTicket_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TicketIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ticket")), m_Ticket)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateTicket_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ticket")))) - { - std::shared_ptr refVal_setTicket; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ticket"))), refVal_setTicket ); - setTicket(refVal_setTicket); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateTicket_200_response::getStatus() const -{ - return m_Status; -} - - -void CreateTicket_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateTicket_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateTicket_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateTicket_200_response::getTicket() const -{ - return m_Ticket; -} - - -void CreateTicket_200_response::setTicket(const std::shared_ptr& value) -{ - m_Ticket = value; - m_TicketIsSet = true; -} - -bool CreateTicket_200_response::ticketIsSet() const -{ - return m_TicketIsSet; -} - -void CreateTicket_200_response::unsetTicket() -{ - m_TicketIsSet = false; -} -utility::string_t CreateTicket_200_response::getReason() const -{ - return m_Reason; -} - - -void CreateTicket_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateTicket_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateTicket_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateTicket_200_response::getCode() const -{ - return m_Code; -} - - -void CreateTicket_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateTicket_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateTicket_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateTicket_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateTicket_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateTicket_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateTicket_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateTicket_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateTicket_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateTicket_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateTicket_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateTicket_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateTicket_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateTicket_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateTicket_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateTicket_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateTicket_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateTicket_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateTicket_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateTicket_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateTicket_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateTicket_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateTicket_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateUserBadgeParams.cpp b/client/src/model/CreateUserBadgeParams.cpp index 165b311..e513310 100644 --- a/client/src/model/CreateUserBadgeParams.cpp +++ b/client/src/model/CreateUserBadgeParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value CreateUserBadgeParams::toJson() const { web::json::value val = web::json::value::object(); if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_BadgeIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badgeId"))] = ModelBase::toJson(m_BadgeId); } if(m_DisplayedOnCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayedOnComments"))] = ModelBase::toJson(m_DisplayedOnComments); } diff --git a/client/src/model/CreateUserBadge_200_response.cpp b/client/src/model/CreateUserBadge_200_response.cpp deleted file mode 100644 index 78c09da..0000000 --- a/client/src/model/CreateUserBadge_200_response.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateUserBadge_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateUserBadge_200_response::CreateUserBadge_200_response() -{ - m_StatusIsSet = false; - m_UserBadgeIsSet = false; - m_NotesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateUserBadge_200_response::~CreateUserBadge_200_response() -{ -} - -void CreateUserBadge_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value CreateUserBadge_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserBadgeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userBadge"))] = ModelBase::toJson(m_UserBadge); - } - if(m_NotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("notes"))] = ModelBase::toJson(m_Notes); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateUserBadge_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadge")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadge"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUserBadge; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadge); - setUserBadge(refVal_setUserBadge); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notes"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setNotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setNotes); - setNotes(refVal_setNotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateUserBadge_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserBadgeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadge")), m_UserBadge)); - } - if(m_NotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notes")), m_Notes)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateUserBadge_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadge")))) - { - std::shared_ptr refVal_setUserBadge; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadge"))), refVal_setUserBadge ); - setUserBadge(refVal_setUserBadge); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notes")))) - { - std::vector refVal_setNotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notes"))), refVal_setNotes ); - setNotes(refVal_setNotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateUserBadge_200_response::getStatus() const -{ - return m_Status; -} - - -void CreateUserBadge_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateUserBadge_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateUserBadge_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateUserBadge_200_response::getUserBadge() const -{ - return m_UserBadge; -} - - -void CreateUserBadge_200_response::setUserBadge(const std::shared_ptr& value) -{ - m_UserBadge = value; - m_UserBadgeIsSet = true; -} - -bool CreateUserBadge_200_response::userBadgeIsSet() const -{ - return m_UserBadgeIsSet; -} - -void CreateUserBadge_200_response::unsetUserBadge() -{ - m_UserBadgeIsSet = false; -} -std::vector CreateUserBadge_200_response::getNotes() const -{ - return m_Notes; -} - - -void CreateUserBadge_200_response::setNotes(const std::vector& value) -{ - m_Notes = value; - m_NotesIsSet = true; -} - -bool CreateUserBadge_200_response::notesIsSet() const -{ - return m_NotesIsSet; -} - -void CreateUserBadge_200_response::unsetNotes() -{ - m_NotesIsSet = false; -} -utility::string_t CreateUserBadge_200_response::getReason() const -{ - return m_Reason; -} - - -void CreateUserBadge_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateUserBadge_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateUserBadge_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateUserBadge_200_response::getCode() const -{ - return m_Code; -} - - -void CreateUserBadge_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateUserBadge_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateUserBadge_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateUserBadge_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateUserBadge_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateUserBadge_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateUserBadge_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateUserBadge_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateUserBadge_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateUserBadge_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateUserBadge_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateUserBadge_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateUserBadge_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateUserBadge_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateUserBadge_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateUserBadge_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateUserBadge_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateUserBadge_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateUserBadge_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateUserBadge_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateUserBadge_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateUserBadge_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateUserBadge_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateV1PageReact.cpp b/client/src/model/CreateV1PageReact.cpp new file mode 100644 index 0000000..05d7a96 --- /dev/null +++ b/client/src/model/CreateV1PageReact.cpp @@ -0,0 +1,172 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateV1PageReact.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateV1PageReact::CreateV1PageReact() +{ + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_StatusIsSet = false; +} + +CreateV1PageReact::~CreateV1PageReact() +{ +} + +void CreateV1PageReact::validate() +{ + // TODO: implement validation +} + +web::json::value CreateV1PageReact::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool CreateV1PageReact::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void CreateV1PageReact::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool CreateV1PageReact::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +utility::string_t CreateV1PageReact::getCode() const +{ + return m_Code; +} + + +void CreateV1PageReact::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateV1PageReact::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateV1PageReact::unsetCode() +{ + m_CodeIsSet = false; +} +std::shared_ptr CreateV1PageReact::getStatus() const +{ + return m_Status; +} + + +void CreateV1PageReact::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateV1PageReact::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateV1PageReact::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CustomConfigParameters.cpp b/client/src/model/CustomConfigParameters.cpp index 2d190a4..d22cff5 100644 --- a/client/src/model/CustomConfigParameters.cpp +++ b/client/src/model/CustomConfigParameters.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,11 +30,23 @@ CustomConfigParameters::CustomConfigParameters() m_AllowAnonFlagIsSet = false; m_AllowAnonVotes = false; m_AllowAnonVotesIsSet = false; + m_AllowedLanguagesIsSet = false; m_CollapseReplies = false; m_CollapseRepliesIsSet = false; + m_CommentCountFormat = utility::conversions::to_string_t(""); + m_CommentCountFormatIsSet = false; m_CommentHTMLRenderingModeIsSet = false; + m_CommentThreadDeleteModeIsSet = false; + m_CommenterNameFormatIsSet = false; m_CountAboveToggle = 0; m_CountAboveToggleIsSet = false; + m_CustomCSS = utility::conversions::to_string_t(""); + m_CustomCSSIsSet = false; + m_DefaultAvatarSrc = utility::conversions::to_string_t(""); + m_DefaultAvatarSrcIsSet = false; + m_DefaultSortDirectionIsSet = false; + m_DefaultUsername = utility::conversions::to_string_t(""); + m_DefaultUsernameIsSet = false; m_DisableAutoAdminMigration = false; m_DisableAutoAdminMigrationIsSet = false; m_DisableAutoHashTagCreation = false; @@ -82,27 +94,46 @@ CustomConfigParameters::CustomConfigParameters() m_GifRatingIsSet = false; m_HasDarkBackground = false; m_HasDarkBackgroundIsSet = false; + m_HeaderHTML = utility::conversions::to_string_t(""); + m_HeaderHTMLIsSet = false; m_HideAvatars = false; m_HideAvatarsIsSet = false; + m_HideCommentsUnderCountTextFormat = utility::conversions::to_string_t(""); + m_HideCommentsUnderCountTextFormatIsSet = false; m_ImageContentProfanityLevelIsSet = false; m_InputAfterComments = false; m_InputAfterCommentsIsSet = false; m_LimitCommentsByGroups = false; m_LimitCommentsByGroupsIsSet = false; + m_Locale = utility::conversions::to_string_t(""); + m_LocaleIsSet = false; + m_MaxCommentCharacterLength = 0; + m_MaxCommentCharacterLengthIsSet = false; + m_MaxCommentCreatedCountPUPM = 0; + m_MaxCommentCreatedCountPUPMIsSet = false; m_NoCustomConfig = false; m_NoCustomConfigIsSet = false; + m_MentionAutoCompleteModeIsSet = false; m_NoImageUploads = false; m_NoImageUploadsIsSet = false; + m_AllowEmbeds = false; + m_AllowEmbedsIsSet = false; + m_AllowedEmbedDomainsIsSet = false; m_NoStyles = false; m_NoStylesIsSet = false; + m_PageSize = 0; + m_PageSizeIsSet = false; m_Readonly = false; m_ReadonlyIsSet = false; m_NoNewRootComments = false; m_NoNewRootCommentsIsSet = false; m_RequireSSO = false; m_RequireSSOIsSet = false; + m_EnableFChat = false; + m_EnableFChatIsSet = false; m_EnableResizeHandle = false; m_EnableResizeHandleIsSet = false; + m_RestrictedLinkDomainsIsSet = false; m_ShowBadgesInTopBar = false; m_ShowBadgesInTopBarIsSet = false; m_ShowCommentSaveSuccess = false; @@ -113,6 +144,7 @@ CustomConfigParameters::CustomConfigParameters() m_ShowQuestionIsSet = false; m_SpamRulesIsSet = false; m_SsoSecLvlIsSet = false; + m_TranslationsIsSet = false; m_UseShowCommentsToggle = false; m_UseShowCommentsToggleIsSet = false; m_UseSingleLineCommentInput = false; @@ -129,6 +161,9 @@ CustomConfigParameters::CustomConfigParameters() m_WidgetSubQuestionVisibilityIsSet = false; m_Wrap = false; m_WrapIsSet = false; + m_UsersListLocationIsSet = false; + m_UsersListIncludeOffline = false; + m_UsersListIncludeOfflineIsSet = false; m_TicketBaseUrl = utility::conversions::to_string_t(""); m_TicketBaseUrlIsSet = false; m_TicketKBSearchEndpoint = utility::conversions::to_string_t(""); @@ -154,417 +189,442 @@ web::json::value CustomConfigParameters::toJson() const { web::json::value val = web::json::value::object(); if(m_AbsoluteAndRelativeDatesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("absoluteAndRelativeDates"))] = ModelBase::toJson(m_AbsoluteAndRelativeDates); } if(m_AbsoluteDatesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("absoluteDates"))] = ModelBase::toJson(m_AbsoluteDates); } if(m_AllowAnonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("allowAnon"))] = ModelBase::toJson(m_AllowAnon); } if(m_AllowAnonFlagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("allowAnonFlag"))] = ModelBase::toJson(m_AllowAnonFlag); } if(m_AllowAnonVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("allowAnonVotes"))] = ModelBase::toJson(m_AllowAnonVotes); } - if(m_AllowedLanguages.has_value()) - { + if(m_AllowedLanguagesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("allowedLanguages"))] = ModelBase::toJson(m_AllowedLanguages.get()); + val[utility::conversions::to_string_t(_XPLATSTR("allowedLanguages"))] = ModelBase::toJson(m_AllowedLanguages); } if(m_CollapseRepliesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("collapseReplies"))] = ModelBase::toJson(m_CollapseReplies); } - if(m_CommentCountFormat.has_value()) - { + if(m_CommentCountFormatIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commentCountFormat"))] = ModelBase::toJson(m_CommentCountFormat.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commentCountFormat"))] = ModelBase::toJson(m_CommentCountFormat); } if(m_CommentHTMLRenderingModeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTMLRenderingMode"))] = ModelBase::toJson(m_CommentHTMLRenderingMode); } - if(m_CommentThreadDeleteMode.has_value()) - { + if(m_CommentThreadDeleteModeIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commentThreadDeleteMode"))] = ModelBase::toJson(m_CommentThreadDeleteMode.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commentThreadDeleteMode"))] = ModelBase::toJson(m_CommentThreadDeleteMode); } - if(m_CommenterNameFormat.has_value()) - { + if(m_CommenterNameFormatIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterNameFormat"))] = ModelBase::toJson(m_CommenterNameFormat.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterNameFormat"))] = ModelBase::toJson(m_CommenterNameFormat); } if(m_CountAboveToggleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("countAboveToggle"))] = ModelBase::toJson(m_CountAboveToggle); } - if(m_CustomCSS.has_value()) - { + if(m_CustomCSSIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("customCSS"))] = ModelBase::toJson(m_CustomCSS.get()); + val[utility::conversions::to_string_t(_XPLATSTR("customCSS"))] = ModelBase::toJson(m_CustomCSS); } - if(m_DefaultAvatarSrc.has_value()) - { + if(m_DefaultAvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("defaultAvatarSrc"))] = ModelBase::toJson(m_DefaultAvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("defaultAvatarSrc"))] = ModelBase::toJson(m_DefaultAvatarSrc); } - if(m_DefaultSortDirection.has_value()) - { + if(m_DefaultSortDirectionIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("defaultSortDirection"))] = ModelBase::toJson(m_DefaultSortDirection.get()); + val[utility::conversions::to_string_t(_XPLATSTR("defaultSortDirection"))] = ModelBase::toJson(m_DefaultSortDirection); } - if(m_DefaultUsername.has_value()) - { + if(m_DefaultUsernameIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("defaultUsername"))] = ModelBase::toJson(m_DefaultUsername.get()); + val[utility::conversions::to_string_t(_XPLATSTR("defaultUsername"))] = ModelBase::toJson(m_DefaultUsername); } if(m_DisableAutoAdminMigrationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableAutoAdminMigration"))] = ModelBase::toJson(m_DisableAutoAdminMigration); } if(m_DisableAutoHashTagCreationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableAutoHashTagCreation"))] = ModelBase::toJson(m_DisableAutoHashTagCreation); } if(m_DisableBlockingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableBlocking"))] = ModelBase::toJson(m_DisableBlocking); } if(m_DisableCommenterCommentDeleteIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableCommenterCommentDelete"))] = ModelBase::toJson(m_DisableCommenterCommentDelete); } if(m_DisableCommenterCommentEditIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableCommenterCommentEdit"))] = ModelBase::toJson(m_DisableCommenterCommentEdit); } if(m_DisableEmailInputsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableEmailInputs"))] = ModelBase::toJson(m_DisableEmailInputs); } if(m_DisableLiveCommentingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableLiveCommenting"))] = ModelBase::toJson(m_DisableLiveCommenting); } if(m_DisableNotificationBellIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableNotificationBell"))] = ModelBase::toJson(m_DisableNotificationBell); } if(m_DisableProfileCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableProfileComments"))] = ModelBase::toJson(m_DisableProfileComments); } if(m_DisableProfileDirectMessagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableProfileDirectMessages"))] = ModelBase::toJson(m_DisableProfileDirectMessages); } if(m_DisableProfilesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableProfiles"))] = ModelBase::toJson(m_DisableProfiles); } if(m_DisableSuccessMessageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableSuccessMessage"))] = ModelBase::toJson(m_DisableSuccessMessage); } if(m_DisableToolbarIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableToolbar"))] = ModelBase::toJson(m_DisableToolbar); } if(m_DisableUnverifiedLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableUnverifiedLabel"))] = ModelBase::toJson(m_DisableUnverifiedLabel); } if(m_DisableVotingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableVoting"))] = ModelBase::toJson(m_DisableVoting); } if(m_EnableCommenterLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableCommenterLinks"))] = ModelBase::toJson(m_EnableCommenterLinks); } if(m_EnableSearchIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSearch"))] = ModelBase::toJson(m_EnableSearch); } if(m_EnableSpoilersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSpoilers"))] = ModelBase::toJson(m_EnableSpoilers); } if(m_EnableThirdPartyCookieBypassIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableThirdPartyCookieBypass"))] = ModelBase::toJson(m_EnableThirdPartyCookieBypass); } if(m_EnableViewCountsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableViewCounts"))] = ModelBase::toJson(m_EnableViewCounts); } if(m_EnableVoteListIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableVoteList"))] = ModelBase::toJson(m_EnableVoteList); } if(m_EnableWYSIWYGIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableWYSIWYG"))] = ModelBase::toJson(m_EnableWYSIWYG); } if(m_GifRatingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("gifRating"))] = ModelBase::toJson(m_GifRating); } if(m_HasDarkBackgroundIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasDarkBackground"))] = ModelBase::toJson(m_HasDarkBackground); } - if(m_HeaderHTML.has_value()) - { + if(m_HeaderHTMLIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("headerHTML"))] = ModelBase::toJson(m_HeaderHTML.get()); + val[utility::conversions::to_string_t(_XPLATSTR("headerHTML"))] = ModelBase::toJson(m_HeaderHTML); } if(m_HideAvatarsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hideAvatars"))] = ModelBase::toJson(m_HideAvatars); } - if(m_HideCommentsUnderCountTextFormat.has_value()) - { + if(m_HideCommentsUnderCountTextFormatIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("hideCommentsUnderCountTextFormat"))] = ModelBase::toJson(m_HideCommentsUnderCountTextFormat.get()); + val[utility::conversions::to_string_t(_XPLATSTR("hideCommentsUnderCountTextFormat"))] = ModelBase::toJson(m_HideCommentsUnderCountTextFormat); } if(m_ImageContentProfanityLevelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("imageContentProfanityLevel"))] = ModelBase::toJson(m_ImageContentProfanityLevel); } if(m_InputAfterCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("inputAfterComments"))] = ModelBase::toJson(m_InputAfterComments); } if(m_LimitCommentsByGroupsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("limitCommentsByGroups"))] = ModelBase::toJson(m_LimitCommentsByGroups); } - if(m_Locale.has_value()) - { + if(m_LocaleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale.get()); + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } - if(m_MaxCommentCharacterLength.has_value()) - { + if(m_MaxCommentCharacterLengthIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("maxCommentCharacterLength"))] = ModelBase::toJson(m_MaxCommentCharacterLength.get()); + val[utility::conversions::to_string_t(_XPLATSTR("maxCommentCharacterLength"))] = ModelBase::toJson(m_MaxCommentCharacterLength); } - if(m_MaxCommentCreatedCountPUPM.has_value()) - { + if(m_MaxCommentCreatedCountPUPMIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("maxCommentCreatedCountPUPM"))] = ModelBase::toJson(m_MaxCommentCreatedCountPUPM.get()); + val[utility::conversions::to_string_t(_XPLATSTR("maxCommentCreatedCountPUPM"))] = ModelBase::toJson(m_MaxCommentCreatedCountPUPM); } if(m_NoCustomConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("noCustomConfig"))] = ModelBase::toJson(m_NoCustomConfig); } - if(m_MentionAutoCompleteMode.has_value()) - { + if(m_MentionAutoCompleteModeIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("mentionAutoCompleteMode"))] = ModelBase::toJson(m_MentionAutoCompleteMode.get()); + val[utility::conversions::to_string_t(_XPLATSTR("mentionAutoCompleteMode"))] = ModelBase::toJson(m_MentionAutoCompleteMode); } if(m_NoImageUploadsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("noImageUploads"))] = ModelBase::toJson(m_NoImageUploads); } + if(m_AllowEmbedsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("allowEmbeds"))] = ModelBase::toJson(m_AllowEmbeds); + } + if(m_AllowedEmbedDomainsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("allowedEmbedDomains"))] = ModelBase::toJson(m_AllowedEmbedDomains); + } if(m_NoStylesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("noStyles"))] = ModelBase::toJson(m_NoStyles); } - if(m_PageSize.has_value()) - { + if(m_PageSizeIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageSize"))] = ModelBase::toJson(m_PageSize.get()); + val[utility::conversions::to_string_t(_XPLATSTR("pageSize"))] = ModelBase::toJson(m_PageSize); } if(m_ReadonlyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("readonly"))] = ModelBase::toJson(m_Readonly); } if(m_NoNewRootCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("noNewRootComments"))] = ModelBase::toJson(m_NoNewRootComments); } if(m_RequireSSOIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("requireSSO"))] = ModelBase::toJson(m_RequireSSO); } + if(m_EnableFChatIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("enableFChat"))] = ModelBase::toJson(m_EnableFChat); + } if(m_EnableResizeHandleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableResizeHandle"))] = ModelBase::toJson(m_EnableResizeHandle); } - if(m_RestrictedLinkDomains.has_value()) - { + if(m_RestrictedLinkDomainsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("restrictedLinkDomains"))] = ModelBase::toJson(m_RestrictedLinkDomains.get()); + val[utility::conversions::to_string_t(_XPLATSTR("restrictedLinkDomains"))] = ModelBase::toJson(m_RestrictedLinkDomains); } if(m_ShowBadgesInTopBarIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("showBadgesInTopBar"))] = ModelBase::toJson(m_ShowBadgesInTopBar); } if(m_ShowCommentSaveSuccessIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("showCommentSaveSuccess"))] = ModelBase::toJson(m_ShowCommentSaveSuccess); } if(m_ShowLiveRightAwayIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("showLiveRightAway"))] = ModelBase::toJson(m_ShowLiveRightAway); } if(m_ShowQuestionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("showQuestion"))] = ModelBase::toJson(m_ShowQuestion); } if(m_SpamRulesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("spamRules"))] = ModelBase::toJson(m_SpamRules); } if(m_SsoSecLvlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ssoSecLvl"))] = ModelBase::toJson(m_SsoSecLvl); } - if(m_Translations.has_value()) - { + if(m_TranslationsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations.get()); + val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); } if(m_UseShowCommentsToggleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("useShowCommentsToggle"))] = ModelBase::toJson(m_UseShowCommentsToggle); } if(m_UseSingleLineCommentInputIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("useSingleLineCommentInput"))] = ModelBase::toJson(m_UseSingleLineCommentInput); } if(m_VoteStyleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("voteStyle"))] = ModelBase::toJson(m_VoteStyle); } if(m_WidgetQuestionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetQuestionId"))] = ModelBase::toJson(m_WidgetQuestionId); } if(m_WidgetQuestionResultsStyleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetQuestionResultsStyle"))] = ModelBase::toJson(m_WidgetQuestionResultsStyle); } if(m_WidgetQuestionShowBreakdownIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetQuestionShowBreakdown"))] = ModelBase::toJson(m_WidgetQuestionShowBreakdown); } if(m_WidgetQuestionStyleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetQuestionStyle"))] = ModelBase::toJson(m_WidgetQuestionStyle); } if(m_WidgetQuestionWhenToSaveIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetQuestionWhenToSave"))] = ModelBase::toJson(m_WidgetQuestionWhenToSave); } if(m_WidgetQuestionsRequiredIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetQuestionsRequired"))] = ModelBase::toJson(m_WidgetQuestionsRequired); } if(m_WidgetSubQuestionVisibilityIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetSubQuestionVisibility"))] = ModelBase::toJson(m_WidgetSubQuestionVisibility); } if(m_WrapIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wrap"))] = ModelBase::toJson(m_Wrap); } + if(m_UsersListLocationIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("usersListLocation"))] = ModelBase::toJson(m_UsersListLocation); + } + if(m_UsersListIncludeOfflineIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("usersListIncludeOffline"))] = ModelBase::toJson(m_UsersListIncludeOffline); + } if(m_TicketBaseUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticketBaseUrl"))] = ModelBase::toJson(m_TicketBaseUrl); } if(m_TicketKBSearchEndpointIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticketKBSearchEndpoint"))] = ModelBase::toJson(m_TicketKBSearchEndpoint); } if(m_TicketFileUploadsEnabledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticketFileUploadsEnabled"))] = ModelBase::toJson(m_TicketFileUploadsEnabled); } if(m_TicketMaxFileSizeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticketMaxFileSize"))] = ModelBase::toJson(m_TicketMaxFileSize); } if(m_TicketAutoAssignUserIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticketAutoAssignUserIds"))] = ModelBase::toJson(m_TicketAutoAssignUserIds); } if(m_TosIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tos"))] = ModelBase::toJson(m_Tos); } @@ -1147,6 +1207,28 @@ bool CustomConfigParameters::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("allowEmbeds")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("allowEmbeds"))); + if(!fieldValue.is_null()) + { + bool refVal_setAllowEmbeds; + ok &= ModelBase::fromJson(fieldValue, refVal_setAllowEmbeds); + setAllowEmbeds(refVal_setAllowEmbeds); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("allowedEmbedDomains")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("allowedEmbedDomains"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setAllowedEmbedDomains; + ok &= ModelBase::fromJson(fieldValue, refVal_setAllowedEmbedDomains); + setAllowedEmbedDomains(refVal_setAllowedEmbedDomains); + + } + } if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("noStyles")))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("noStyles"))); @@ -1202,6 +1284,17 @@ bool CustomConfigParameters::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("enableFChat")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("enableFChat"))); + if(!fieldValue.is_null()) + { + bool refVal_setEnableFChat; + ok &= ModelBase::fromJson(fieldValue, refVal_setEnableFChat); + setEnableFChat(refVal_setEnableFChat); + + } + } if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("enableResizeHandle")))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("enableResizeHandle"))); @@ -1422,6 +1515,28 @@ bool CustomConfigParameters::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("usersListLocation")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("usersListLocation"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setUsersListLocation; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsersListLocation); + setUsersListLocation(refVal_setUsersListLocation); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("usersListIncludeOffline")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("usersListIncludeOffline"))); + if(!fieldValue.is_null()) + { + bool refVal_setUsersListIncludeOffline; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsersListIncludeOffline); + setUsersListIncludeOffline(refVal_setUsersListIncludeOffline); + + } + } if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ticketBaseUrl")))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ticketBaseUrl"))); @@ -1518,49 +1633,49 @@ void CustomConfigParameters::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("allowAnonVotes")), m_AllowAnonVotes)); } - if(m_AllowedLanguages.has_value()) + if(m_AllowedLanguagesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("allowedLanguages")), m_AllowedLanguages.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("allowedLanguages")), m_AllowedLanguages)); } if(m_CollapseRepliesIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("collapseReplies")), m_CollapseReplies)); } - if(m_CommentCountFormat.has_value()) + if(m_CommentCountFormatIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCountFormat")), m_CommentCountFormat.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCountFormat")), m_CommentCountFormat)); } if(m_CommentHTMLRenderingModeIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTMLRenderingMode")), m_CommentHTMLRenderingMode)); } - if(m_CommentThreadDeleteMode.has_value()) + if(m_CommentThreadDeleteModeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentThreadDeleteMode")), m_CommentThreadDeleteMode.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentThreadDeleteMode")), m_CommentThreadDeleteMode)); } - if(m_CommenterNameFormat.has_value()) + if(m_CommenterNameFormatIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterNameFormat")), m_CommenterNameFormat.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterNameFormat")), m_CommenterNameFormat)); } if(m_CountAboveToggleIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("countAboveToggle")), m_CountAboveToggle)); } - if(m_CustomCSS.has_value()) + if(m_CustomCSSIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customCSS")), m_CustomCSS.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customCSS")), m_CustomCSS)); } - if(m_DefaultAvatarSrc.has_value()) + if(m_DefaultAvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("defaultAvatarSrc")), m_DefaultAvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("defaultAvatarSrc")), m_DefaultAvatarSrc)); } - if(m_DefaultSortDirection.has_value()) + if(m_DefaultSortDirectionIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("defaultSortDirection")), m_DefaultSortDirection.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("defaultSortDirection")), m_DefaultSortDirection)); } - if(m_DefaultUsername.has_value()) + if(m_DefaultUsernameIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("defaultUsername")), m_DefaultUsername.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("defaultUsername")), m_DefaultUsername)); } if(m_DisableAutoAdminMigrationIsSet) { @@ -1658,17 +1773,17 @@ void CustomConfigParameters::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasDarkBackground")), m_HasDarkBackground)); } - if(m_HeaderHTML.has_value()) + if(m_HeaderHTMLIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("headerHTML")), m_HeaderHTML.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("headerHTML")), m_HeaderHTML)); } if(m_HideAvatarsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hideAvatars")), m_HideAvatars)); } - if(m_HideCommentsUnderCountTextFormat.has_value()) + if(m_HideCommentsUnderCountTextFormatIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hideCommentsUnderCountTextFormat")), m_HideCommentsUnderCountTextFormat.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hideCommentsUnderCountTextFormat")), m_HideCommentsUnderCountTextFormat)); } if(m_ImageContentProfanityLevelIsSet) { @@ -1682,37 +1797,45 @@ void CustomConfigParameters::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("limitCommentsByGroups")), m_LimitCommentsByGroups)); } - if(m_Locale.has_value()) + if(m_LocaleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); } - if(m_MaxCommentCharacterLength.has_value()) + if(m_MaxCommentCharacterLengthIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCommentCharacterLength")), m_MaxCommentCharacterLength.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCommentCharacterLength")), m_MaxCommentCharacterLength)); } - if(m_MaxCommentCreatedCountPUPM.has_value()) + if(m_MaxCommentCreatedCountPUPMIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCommentCreatedCountPUPM")), m_MaxCommentCreatedCountPUPM.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCommentCreatedCountPUPM")), m_MaxCommentCreatedCountPUPM)); } if(m_NoCustomConfigIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("noCustomConfig")), m_NoCustomConfig)); } - if(m_MentionAutoCompleteMode.has_value()) + if(m_MentionAutoCompleteModeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("mentionAutoCompleteMode")), m_MentionAutoCompleteMode.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("mentionAutoCompleteMode")), m_MentionAutoCompleteMode)); } if(m_NoImageUploadsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("noImageUploads")), m_NoImageUploads)); } + if(m_AllowEmbedsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("allowEmbeds")), m_AllowEmbeds)); + } + if(m_AllowedEmbedDomainsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("allowedEmbedDomains")), m_AllowedEmbedDomains)); + } if(m_NoStylesIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("noStyles")), m_NoStyles)); } - if(m_PageSize.has_value()) + if(m_PageSizeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageSize")), m_PageSize.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageSize")), m_PageSize)); } if(m_ReadonlyIsSet) { @@ -1726,13 +1849,17 @@ void CustomConfigParameters::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("requireSSO")), m_RequireSSO)); } + if(m_EnableFChatIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("enableFChat")), m_EnableFChat)); + } if(m_EnableResizeHandleIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("enableResizeHandle")), m_EnableResizeHandle)); } - if(m_RestrictedLinkDomains.has_value()) + if(m_RestrictedLinkDomainsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("restrictedLinkDomains")), m_RestrictedLinkDomains.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("restrictedLinkDomains")), m_RestrictedLinkDomains)); } if(m_ShowBadgesInTopBarIsSet) { @@ -1758,9 +1885,9 @@ void CustomConfigParameters::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ssoSecLvl")), m_SsoSecLvl)); } - if(m_Translations.has_value()) + if(m_TranslationsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translations")), m_Translations.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translations")), m_Translations)); } if(m_UseShowCommentsToggleIsSet) { @@ -1806,6 +1933,14 @@ void CustomConfigParameters::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wrap")), m_Wrap)); } + if(m_UsersListLocationIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("usersListLocation")), m_UsersListLocation)); + } + if(m_UsersListIncludeOfflineIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("usersListIncludeOffline")), m_UsersListIncludeOffline)); + } if(m_TicketBaseUrlIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ticketBaseUrl")), m_TicketBaseUrl)); @@ -2153,6 +2288,18 @@ bool CustomConfigParameters::fromMultiPart(std::shared_ptr mu ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("noImageUploads"))), refVal_setNoImageUploads ); setNoImageUploads(refVal_setNoImageUploads); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("allowEmbeds")))) + { + bool refVal_setAllowEmbeds; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("allowEmbeds"))), refVal_setAllowEmbeds ); + setAllowEmbeds(refVal_setAllowEmbeds); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("allowedEmbedDomains")))) + { + std::vector refVal_setAllowedEmbedDomains; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("allowedEmbedDomains"))), refVal_setAllowedEmbedDomains ); + setAllowedEmbedDomains(refVal_setAllowedEmbedDomains); + } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("noStyles")))) { bool refVal_setNoStyles; @@ -2183,6 +2330,12 @@ bool CustomConfigParameters::fromMultiPart(std::shared_ptr mu ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("requireSSO"))), refVal_setRequireSSO ); setRequireSSO(refVal_setRequireSSO); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("enableFChat")))) + { + bool refVal_setEnableFChat; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("enableFChat"))), refVal_setEnableFChat ); + setEnableFChat(refVal_setEnableFChat); + } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("enableResizeHandle")))) { bool refVal_setEnableResizeHandle; @@ -2303,6 +2456,18 @@ bool CustomConfigParameters::fromMultiPart(std::shared_ptr mu ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("wrap"))), refVal_setWrap ); setWrap(refVal_setWrap); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("usersListLocation")))) + { + std::shared_ptr refVal_setUsersListLocation; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("usersListLocation"))), refVal_setUsersListLocation ); + setUsersListLocation(refVal_setUsersListLocation); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("usersListIncludeOffline")))) + { + bool refVal_setUsersListIncludeOffline; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("usersListIncludeOffline"))), refVal_setUsersListIncludeOffline ); + setUsersListIncludeOffline(refVal_setUsersListIncludeOffline); + } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ticketBaseUrl")))) { utility::string_t refVal_setTicketBaseUrl; @@ -2445,23 +2610,24 @@ void CustomConfigParameters::unsetAllowAnonVotes() } std::vector CustomConfigParameters::getAllowedLanguages() const { - return m_AllowedLanguages.get(); + return m_AllowedLanguages; } void CustomConfigParameters::setAllowedLanguages(const std::vector& value) { m_AllowedLanguages = value; + m_AllowedLanguagesIsSet = true; } bool CustomConfigParameters::allowedLanguagesIsSet() const { - return m_AllowedLanguages.has_value(); + return m_AllowedLanguagesIsSet; } void CustomConfigParameters::unsetAllowedLanguages() { - m_AllowedLanguages.reset(); + m_AllowedLanguagesIsSet = false; } bool CustomConfigParameters::isCollapseReplies() const { @@ -2485,23 +2651,24 @@ void CustomConfigParameters::unsetCollapseReplies() } utility::string_t CustomConfigParameters::getCommentCountFormat() const { - return m_CommentCountFormat.get(); + return m_CommentCountFormat; } void CustomConfigParameters::setCommentCountFormat(const utility::string_t& value) { m_CommentCountFormat = value; + m_CommentCountFormatIsSet = true; } bool CustomConfigParameters::commentCountFormatIsSet() const { - return m_CommentCountFormat.has_value(); + return m_CommentCountFormatIsSet; } void CustomConfigParameters::unsetCommentCountFormat() { - m_CommentCountFormat.reset(); + m_CommentCountFormatIsSet = false; } std::shared_ptr CustomConfigParameters::getCommentHTMLRenderingMode() const { @@ -2526,43 +2693,45 @@ void CustomConfigParameters::unsetCommentHTMLRenderingMode() } std::shared_ptr CustomConfigParameters::getCommentThreadDeleteMode() const { - return m_CommentThreadDeleteMode.get(); + return m_CommentThreadDeleteMode; } void CustomConfigParameters::setCommentThreadDeleteMode(const std::shared_ptr& value) { m_CommentThreadDeleteMode = value; + m_CommentThreadDeleteModeIsSet = true; } bool CustomConfigParameters::commentThreadDeleteModeIsSet() const { - return m_CommentThreadDeleteMode.has_value(); + return m_CommentThreadDeleteModeIsSet; } void CustomConfigParameters::unsetCommentThreadDeleteMode() { - m_CommentThreadDeleteMode.reset(); + m_CommentThreadDeleteModeIsSet = false; } std::shared_ptr CustomConfigParameters::getCommenterNameFormat() const { - return m_CommenterNameFormat.get(); + return m_CommenterNameFormat; } void CustomConfigParameters::setCommenterNameFormat(const std::shared_ptr& value) { m_CommenterNameFormat = value; + m_CommenterNameFormatIsSet = true; } bool CustomConfigParameters::commenterNameFormatIsSet() const { - return m_CommenterNameFormat.has_value(); + return m_CommenterNameFormatIsSet; } void CustomConfigParameters::unsetCommenterNameFormat() { - m_CommenterNameFormat.reset(); + m_CommenterNameFormatIsSet = false; } int32_t CustomConfigParameters::getCountAboveToggle() const { @@ -2586,83 +2755,87 @@ void CustomConfigParameters::unsetCountAboveToggle() } utility::string_t CustomConfigParameters::getCustomCSS() const { - return m_CustomCSS.get(); + return m_CustomCSS; } void CustomConfigParameters::setCustomCSS(const utility::string_t& value) { m_CustomCSS = value; + m_CustomCSSIsSet = true; } bool CustomConfigParameters::customCSSIsSet() const { - return m_CustomCSS.has_value(); + return m_CustomCSSIsSet; } void CustomConfigParameters::unsetCustomCSS() { - m_CustomCSS.reset(); + m_CustomCSSIsSet = false; } utility::string_t CustomConfigParameters::getDefaultAvatarSrc() const { - return m_DefaultAvatarSrc.get(); + return m_DefaultAvatarSrc; } void CustomConfigParameters::setDefaultAvatarSrc(const utility::string_t& value) { m_DefaultAvatarSrc = value; + m_DefaultAvatarSrcIsSet = true; } bool CustomConfigParameters::defaultAvatarSrcIsSet() const { - return m_DefaultAvatarSrc.has_value(); + return m_DefaultAvatarSrcIsSet; } void CustomConfigParameters::unsetDefaultAvatarSrc() { - m_DefaultAvatarSrc.reset(); + m_DefaultAvatarSrcIsSet = false; } std::shared_ptr CustomConfigParameters::getDefaultSortDirection() const { - return m_DefaultSortDirection.get(); + return m_DefaultSortDirection; } void CustomConfigParameters::setDefaultSortDirection(const std::shared_ptr& value) { m_DefaultSortDirection = value; + m_DefaultSortDirectionIsSet = true; } bool CustomConfigParameters::defaultSortDirectionIsSet() const { - return m_DefaultSortDirection.has_value(); + return m_DefaultSortDirectionIsSet; } void CustomConfigParameters::unsetDefaultSortDirection() { - m_DefaultSortDirection.reset(); + m_DefaultSortDirectionIsSet = false; } utility::string_t CustomConfigParameters::getDefaultUsername() const { - return m_DefaultUsername.get(); + return m_DefaultUsername; } void CustomConfigParameters::setDefaultUsername(const utility::string_t& value) { m_DefaultUsername = value; + m_DefaultUsernameIsSet = true; } bool CustomConfigParameters::defaultUsernameIsSet() const { - return m_DefaultUsername.has_value(); + return m_DefaultUsernameIsSet; } void CustomConfigParameters::unsetDefaultUsername() { - m_DefaultUsername.reset(); + m_DefaultUsernameIsSet = false; } bool CustomConfigParameters::isDisableAutoAdminMigration() const { @@ -3147,23 +3320,24 @@ void CustomConfigParameters::unsetHasDarkBackground() } utility::string_t CustomConfigParameters::getHeaderHTML() const { - return m_HeaderHTML.get(); + return m_HeaderHTML; } void CustomConfigParameters::setHeaderHTML(const utility::string_t& value) { m_HeaderHTML = value; + m_HeaderHTMLIsSet = true; } bool CustomConfigParameters::headerHTMLIsSet() const { - return m_HeaderHTML.has_value(); + return m_HeaderHTMLIsSet; } void CustomConfigParameters::unsetHeaderHTML() { - m_HeaderHTML.reset(); + m_HeaderHTMLIsSet = false; } bool CustomConfigParameters::isHideAvatars() const { @@ -3187,23 +3361,24 @@ void CustomConfigParameters::unsetHideAvatars() } utility::string_t CustomConfigParameters::getHideCommentsUnderCountTextFormat() const { - return m_HideCommentsUnderCountTextFormat.get(); + return m_HideCommentsUnderCountTextFormat; } void CustomConfigParameters::setHideCommentsUnderCountTextFormat(const utility::string_t& value) { m_HideCommentsUnderCountTextFormat = value; + m_HideCommentsUnderCountTextFormatIsSet = true; } bool CustomConfigParameters::hideCommentsUnderCountTextFormatIsSet() const { - return m_HideCommentsUnderCountTextFormat.has_value(); + return m_HideCommentsUnderCountTextFormatIsSet; } void CustomConfigParameters::unsetHideCommentsUnderCountTextFormat() { - m_HideCommentsUnderCountTextFormat.reset(); + m_HideCommentsUnderCountTextFormatIsSet = false; } std::shared_ptr CustomConfigParameters::getImageContentProfanityLevel() const { @@ -3268,61 +3443,64 @@ void CustomConfigParameters::unsetLimitCommentsByGroups() } utility::string_t CustomConfigParameters::getLocale() const { - return m_Locale.get(); + return m_Locale; } void CustomConfigParameters::setLocale(const utility::string_t& value) { m_Locale = value; + m_LocaleIsSet = true; } bool CustomConfigParameters::localeIsSet() const { - return m_Locale.has_value(); + return m_LocaleIsSet; } void CustomConfigParameters::unsetLocale() { - m_Locale.reset(); + m_LocaleIsSet = false; } int32_t CustomConfigParameters::getMaxCommentCharacterLength() const { - return m_MaxCommentCharacterLength.get(); + return m_MaxCommentCharacterLength; } void CustomConfigParameters::setMaxCommentCharacterLength(int32_t value) { m_MaxCommentCharacterLength = value; + m_MaxCommentCharacterLengthIsSet = true; } bool CustomConfigParameters::maxCommentCharacterLengthIsSet() const { - return m_MaxCommentCharacterLength.has_value(); + return m_MaxCommentCharacterLengthIsSet; } void CustomConfigParameters::unsetMaxCommentCharacterLength() { - m_MaxCommentCharacterLength.reset(); + m_MaxCommentCharacterLengthIsSet = false; } int32_t CustomConfigParameters::getMaxCommentCreatedCountPUPM() const { - return m_MaxCommentCreatedCountPUPM.get(); + return m_MaxCommentCreatedCountPUPM; } void CustomConfigParameters::setMaxCommentCreatedCountPUPM(int32_t value) { m_MaxCommentCreatedCountPUPM = value; + m_MaxCommentCreatedCountPUPMIsSet = true; } bool CustomConfigParameters::maxCommentCreatedCountPUPMIsSet() const { - return m_MaxCommentCreatedCountPUPM.has_value(); + return m_MaxCommentCreatedCountPUPMIsSet; } void CustomConfigParameters::unsetMaxCommentCreatedCountPUPM() { - m_MaxCommentCreatedCountPUPM.reset(); + m_MaxCommentCreatedCountPUPMIsSet = false; } bool CustomConfigParameters::isNoCustomConfig() const { @@ -3346,23 +3524,24 @@ void CustomConfigParameters::unsetNoCustomConfig() } std::shared_ptr CustomConfigParameters::getMentionAutoCompleteMode() const { - return m_MentionAutoCompleteMode.get(); + return m_MentionAutoCompleteMode; } void CustomConfigParameters::setMentionAutoCompleteMode(const std::shared_ptr& value) { m_MentionAutoCompleteMode = value; + m_MentionAutoCompleteModeIsSet = true; } bool CustomConfigParameters::mentionAutoCompleteModeIsSet() const { - return m_MentionAutoCompleteMode.has_value(); + return m_MentionAutoCompleteModeIsSet; } void CustomConfigParameters::unsetMentionAutoCompleteMode() { - m_MentionAutoCompleteMode.reset(); + m_MentionAutoCompleteModeIsSet = false; } bool CustomConfigParameters::isNoImageUploads() const { @@ -3384,6 +3563,47 @@ void CustomConfigParameters::unsetNoImageUploads() { m_NoImageUploadsIsSet = false; } +bool CustomConfigParameters::isAllowEmbeds() const +{ + return m_AllowEmbeds; +} + +void CustomConfigParameters::setAllowEmbeds(bool value) +{ + m_AllowEmbeds = value; + m_AllowEmbedsIsSet = true; +} + +bool CustomConfigParameters::allowEmbedsIsSet() const +{ + return m_AllowEmbedsIsSet; +} + +void CustomConfigParameters::unsetAllowEmbeds() +{ + m_AllowEmbedsIsSet = false; +} +std::vector CustomConfigParameters::getAllowedEmbedDomains() const +{ + return m_AllowedEmbedDomains; +} + + +void CustomConfigParameters::setAllowedEmbedDomains(const std::vector& value) +{ + m_AllowedEmbedDomains = value; + m_AllowedEmbedDomainsIsSet = true; +} + +bool CustomConfigParameters::allowedEmbedDomainsIsSet() const +{ + return m_AllowedEmbedDomainsIsSet; +} + +void CustomConfigParameters::unsetAllowedEmbedDomains() +{ + m_AllowedEmbedDomainsIsSet = false; +} bool CustomConfigParameters::isNoStyles() const { return m_NoStyles; @@ -3406,22 +3626,23 @@ void CustomConfigParameters::unsetNoStyles() } int32_t CustomConfigParameters::getPageSize() const { - return m_PageSize.get(); + return m_PageSize; } void CustomConfigParameters::setPageSize(int32_t value) { m_PageSize = value; + m_PageSizeIsSet = true; } bool CustomConfigParameters::pageSizeIsSet() const { - return m_PageSize.has_value(); + return m_PageSizeIsSet; } void CustomConfigParameters::unsetPageSize() { - m_PageSize.reset(); + m_PageSizeIsSet = false; } bool CustomConfigParameters::isReadonly() const { @@ -3483,6 +3704,26 @@ void CustomConfigParameters::unsetRequireSSO() { m_RequireSSOIsSet = false; } +bool CustomConfigParameters::isEnableFChat() const +{ + return m_EnableFChat; +} + +void CustomConfigParameters::setEnableFChat(bool value) +{ + m_EnableFChat = value; + m_EnableFChatIsSet = true; +} + +bool CustomConfigParameters::enableFChatIsSet() const +{ + return m_EnableFChatIsSet; +} + +void CustomConfigParameters::unsetEnableFChat() +{ + m_EnableFChatIsSet = false; +} bool CustomConfigParameters::isEnableResizeHandle() const { return m_EnableResizeHandle; @@ -3505,23 +3746,24 @@ void CustomConfigParameters::unsetEnableResizeHandle() } std::vector CustomConfigParameters::getRestrictedLinkDomains() const { - return m_RestrictedLinkDomains.get(); + return m_RestrictedLinkDomains; } void CustomConfigParameters::setRestrictedLinkDomains(const std::vector& value) { m_RestrictedLinkDomains = value; + m_RestrictedLinkDomainsIsSet = true; } bool CustomConfigParameters::restrictedLinkDomainsIsSet() const { - return m_RestrictedLinkDomains.has_value(); + return m_RestrictedLinkDomainsIsSet; } void CustomConfigParameters::unsetRestrictedLinkDomains() { - m_RestrictedLinkDomains.reset(); + m_RestrictedLinkDomainsIsSet = false; } bool CustomConfigParameters::isShowBadgesInTopBar() const { @@ -3647,23 +3889,24 @@ void CustomConfigParameters::unsetSsoSecLvl() } std::map CustomConfigParameters::getTranslations() const { - return m_Translations.get(); + return m_Translations; } void CustomConfigParameters::setTranslations(const std::map& value) { m_Translations = value; + m_TranslationsIsSet = true; } bool CustomConfigParameters::translationsIsSet() const { - return m_Translations.has_value(); + return m_TranslationsIsSet; } void CustomConfigParameters::unsetTranslations() { - m_Translations.reset(); + m_TranslationsIsSet = false; } bool CustomConfigParameters::isUseShowCommentsToggle() const { @@ -3892,6 +4135,47 @@ void CustomConfigParameters::unsetWrap() { m_WrapIsSet = false; } +std::shared_ptr CustomConfigParameters::getUsersListLocation() const +{ + return m_UsersListLocation; +} + + +void CustomConfigParameters::setUsersListLocation(const std::shared_ptr& value) +{ + m_UsersListLocation = value; + m_UsersListLocationIsSet = true; +} + +bool CustomConfigParameters::usersListLocationIsSet() const +{ + return m_UsersListLocationIsSet; +} + +void CustomConfigParameters::unsetUsersListLocation() +{ + m_UsersListLocationIsSet = false; +} +bool CustomConfigParameters::isUsersListIncludeOffline() const +{ + return m_UsersListIncludeOffline; +} + +void CustomConfigParameters::setUsersListIncludeOffline(bool value) +{ + m_UsersListIncludeOffline = value; + m_UsersListIncludeOfflineIsSet = true; +} + +bool CustomConfigParameters::usersListIncludeOfflineIsSet() const +{ + return m_UsersListIncludeOfflineIsSet; +} + +void CustomConfigParameters::unsetUsersListIncludeOffline() +{ + m_UsersListIncludeOfflineIsSet = false; +} utility::string_t CustomConfigParameters::getTicketBaseUrl() const { return m_TicketBaseUrl; diff --git a/client/src/model/CustomEmailTemplate.cpp b/client/src/model/CustomEmailTemplate.cpp index c79aca4..8499818 100644 --- a/client/src/model/CustomEmailTemplate.cpp +++ b/client/src/model/CustomEmailTemplate.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,9 +30,16 @@ CustomEmailTemplate::CustomEmailTemplate() m_DisplayNameIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; + m_UpdatedAt = utility::datetime(); + m_UpdatedAtIsSet = false; + m_UpdatedByUserId = utility::conversions::to_string_t(""); + m_UpdatedByUserIdIsSet = false; + m_Domain = utility::conversions::to_string_t(""); + m_DomainIsSet = false; m_Ejs = utility::conversions::to_string_t(""); m_EjsIsSet = false; m_TranslationOverridesByLocaleIsSet = false; + m_TestDataIsSet = false; } CustomEmailTemplate::~CustomEmailTemplate() @@ -48,59 +55,59 @@ web::json::value CustomEmailTemplate::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_EmailTemplateIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplateId"))] = ModelBase::toJson(m_EmailTemplateId); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } - if(m_UpdatedAt.has_value()) - { + if(m_UpdatedAtIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("updatedAt"))] = ModelBase::toJson(m_UpdatedAt.get()); + val[utility::conversions::to_string_t(_XPLATSTR("updatedAt"))] = ModelBase::toJson(m_UpdatedAt); } - if(m_UpdatedByUserId.has_value()) - { + if(m_UpdatedByUserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("updatedByUserId"))] = ModelBase::toJson(m_UpdatedByUserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("updatedByUserId"))] = ModelBase::toJson(m_UpdatedByUserId); } - if(m_Domain.has_value()) - { + if(m_DomainIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain.get()); + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_EjsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ejs"))] = ModelBase::toJson(m_Ejs); } if(m_TranslationOverridesByLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))] = ModelBase::toJson(m_TranslationOverridesByLocale); } - if(m_TestData.has_value()) - { + if(m_TestDataIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("testData"))] = ModelBase::toJson(m_TestData.get()); + val[utility::conversions::to_string_t(_XPLATSTR("testData"))] = ModelBase::toJson(m_TestData); } return val; @@ -213,7 +220,7 @@ bool CustomEmailTemplate::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))); if(!fieldValue.is_null()) { - std::map> refVal_setTranslationOverridesByLocale; + std::map refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromJson(fieldValue, refVal_setTranslationOverridesByLocale); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); @@ -260,17 +267,17 @@ void CustomEmailTemplate::toMultipart(std::shared_ptr multipa { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); } - if(m_UpdatedAt.has_value()) + if(m_UpdatedAtIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("updatedAt")), m_UpdatedAt.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("updatedAt")), m_UpdatedAt)); } - if(m_UpdatedByUserId.has_value()) + if(m_UpdatedByUserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("updatedByUserId")), m_UpdatedByUserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("updatedByUserId")), m_UpdatedByUserId)); } - if(m_Domain.has_value()) + if(m_DomainIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); } if(m_EjsIsSet) { @@ -280,9 +287,9 @@ void CustomEmailTemplate::toMultipart(std::shared_ptr multipa { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale")), m_TranslationOverridesByLocale)); } - if(m_TestData.has_value()) + if(m_TestDataIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("testData")), m_TestData.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("testData")), m_TestData)); } } @@ -351,7 +358,7 @@ bool CustomEmailTemplate::fromMultiPart(std::shared_ptr multi } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale")))) { - std::map> refVal_setTranslationOverridesByLocale; + std::map refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))), refVal_setTranslationOverridesByLocale ); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); } @@ -472,63 +479,66 @@ void CustomEmailTemplate::unsetCreatedAt() } utility::datetime CustomEmailTemplate::getUpdatedAt() const { - return m_UpdatedAt.get(); + return m_UpdatedAt; } void CustomEmailTemplate::setUpdatedAt(const utility::datetime& value) { m_UpdatedAt = value; + m_UpdatedAtIsSet = true; } bool CustomEmailTemplate::updatedAtIsSet() const { - return m_UpdatedAt.has_value(); + return m_UpdatedAtIsSet; } void CustomEmailTemplate::unsetUpdatedAt() { - m_UpdatedAt.reset(); + m_UpdatedAtIsSet = false; } utility::string_t CustomEmailTemplate::getUpdatedByUserId() const { - return m_UpdatedByUserId.get(); + return m_UpdatedByUserId; } void CustomEmailTemplate::setUpdatedByUserId(const utility::string_t& value) { m_UpdatedByUserId = value; + m_UpdatedByUserIdIsSet = true; } bool CustomEmailTemplate::updatedByUserIdIsSet() const { - return m_UpdatedByUserId.has_value(); + return m_UpdatedByUserIdIsSet; } void CustomEmailTemplate::unsetUpdatedByUserId() { - m_UpdatedByUserId.reset(); + m_UpdatedByUserIdIsSet = false; } utility::string_t CustomEmailTemplate::getDomain() const { - return m_Domain.get(); + return m_Domain; } void CustomEmailTemplate::setDomain(const utility::string_t& value) { m_Domain = value; + m_DomainIsSet = true; } bool CustomEmailTemplate::domainIsSet() const { - return m_Domain.has_value(); + return m_DomainIsSet; } void CustomEmailTemplate::unsetDomain() { - m_Domain.reset(); + m_DomainIsSet = false; } utility::string_t CustomEmailTemplate::getEjs() const { @@ -551,13 +561,13 @@ void CustomEmailTemplate::unsetEjs() { m_EjsIsSet = false; } -std::map> CustomEmailTemplate::getTranslationOverridesByLocale() const +std::map CustomEmailTemplate::getTranslationOverridesByLocale() const { return m_TranslationOverridesByLocale; } -void CustomEmailTemplate::setTranslationOverridesByLocale(const std::map>& value) +void CustomEmailTemplate::setTranslationOverridesByLocale(const std::map& value) { m_TranslationOverridesByLocale = value; m_TranslationOverridesByLocaleIsSet = true; @@ -574,23 +584,24 @@ void CustomEmailTemplate::unsetTranslationOverridesByLocale() } std::shared_ptr CustomEmailTemplate::getTestData() const { - return m_TestData.get(); + return m_TestData; } void CustomEmailTemplate::setTestData(const std::shared_ptr& value) { m_TestData = value; + m_TestDataIsSet = true; } bool CustomEmailTemplate::testDataIsSet() const { - return m_TestData.has_value(); + return m_TestDataIsSet; } void CustomEmailTemplate::unsetTestData() { - m_TestData.reset(); + m_TestDataIsSet = false; } } diff --git a/client/src/model/DeleteCommentAction.cpp b/client/src/model/DeleteCommentAction.cpp index 9004dc6..721b6b2 100644 --- a/client/src/model/DeleteCommentAction.cpp +++ b/client/src/model/DeleteCommentAction.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/DeleteCommentPublic_200_response.cpp b/client/src/model/DeleteCommentPublic_200_response.cpp deleted file mode 100644 index 40fbba7..0000000 --- a/client/src/model/DeleteCommentPublic_200_response.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteCommentPublic_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteCommentPublic_200_response::DeleteCommentPublic_200_response() -{ - m_CommentIsSet = false; - m_HardRemoved = false; - m_HardRemovedIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteCommentPublic_200_response::~DeleteCommentPublic_200_response() -{ -} - -void DeleteCommentPublic_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteCommentPublic_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CommentIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); - } - if(m_HardRemovedIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hardRemoved"))] = ModelBase::toJson(m_HardRemoved); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteCommentPublic_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromJson(fieldValue, refVal_setComment); - setComment(refVal_setComment); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hardRemoved")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hardRemoved"))); - if(!fieldValue.is_null()) - { - bool refVal_setHardRemoved; - ok &= ModelBase::fromJson(fieldValue, refVal_setHardRemoved); - setHardRemoved(refVal_setHardRemoved); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteCommentPublic_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CommentIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); - } - if(m_HardRemovedIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hardRemoved")), m_HardRemoved)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteCommentPublic_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); - setComment(refVal_setComment); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hardRemoved")))) - { - bool refVal_setHardRemoved; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hardRemoved"))), refVal_setHardRemoved ); - setHardRemoved(refVal_setHardRemoved); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteCommentPublic_200_response::getComment() const -{ - return m_Comment; -} - - -void DeleteCommentPublic_200_response::setComment(const std::shared_ptr& value) -{ - m_Comment = value; - m_CommentIsSet = true; -} - -bool DeleteCommentPublic_200_response::commentIsSet() const -{ - return m_CommentIsSet; -} - -void DeleteCommentPublic_200_response::unsetComment() -{ - m_CommentIsSet = false; -} -bool DeleteCommentPublic_200_response::isHardRemoved() const -{ - return m_HardRemoved; -} - -void DeleteCommentPublic_200_response::setHardRemoved(bool value) -{ - m_HardRemoved = value; - m_HardRemovedIsSet = true; -} - -bool DeleteCommentPublic_200_response::hardRemovedIsSet() const -{ - return m_HardRemovedIsSet; -} - -void DeleteCommentPublic_200_response::unsetHardRemoved() -{ - m_HardRemovedIsSet = false; -} -std::shared_ptr DeleteCommentPublic_200_response::getStatus() const -{ - return m_Status; -} - - -void DeleteCommentPublic_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteCommentPublic_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteCommentPublic_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteCommentPublic_200_response::getReason() const -{ - return m_Reason; -} - - -void DeleteCommentPublic_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteCommentPublic_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteCommentPublic_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteCommentPublic_200_response::getCode() const -{ - return m_Code; -} - - -void DeleteCommentPublic_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteCommentPublic_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteCommentPublic_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteCommentPublic_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteCommentPublic_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteCommentPublic_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteCommentPublic_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteCommentPublic_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteCommentPublic_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteCommentPublic_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteCommentPublic_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteCommentPublic_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteCommentPublic_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteCommentPublic_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteCommentPublic_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteCommentPublic_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteCommentPublic_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteCommentPublic_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteCommentPublic_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteCommentPublic_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteCommentPublic_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteCommentPublic_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteCommentPublic_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteCommentResult.cpp b/client/src/model/DeleteCommentResult.cpp index a4e56c5..87df03e 100644 --- a/client/src/model/DeleteCommentResult.cpp +++ b/client/src/model/DeleteCommentResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value DeleteCommentResult::toJson() const { web::json::value val = web::json::value::object(); if(m_ActionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("action"))] = ModelBase::toJson(m_Action); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/DeleteCommentVote_200_response.cpp b/client/src/model/DeleteCommentVote_200_response.cpp deleted file mode 100644 index bc84a81..0000000 --- a/client/src/model/DeleteCommentVote_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteCommentVote_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteCommentVote_200_response::DeleteCommentVote_200_response() -{ - m_StatusIsSet = false; - m_WasPendingVote = false; - m_WasPendingVoteIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteCommentVote_200_response::~DeleteCommentVote_200_response() -{ -} - -void DeleteCommentVote_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteCommentVote_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_WasPendingVoteIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))] = ModelBase::toJson(m_WasPendingVote); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteCommentVote_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))); - if(!fieldValue.is_null()) - { - bool refVal_setWasPendingVote; - ok &= ModelBase::fromJson(fieldValue, refVal_setWasPendingVote); - setWasPendingVote(refVal_setWasPendingVote); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteCommentVote_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_WasPendingVoteIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")), m_WasPendingVote)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteCommentVote_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) - { - bool refVal_setWasPendingVote; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))), refVal_setWasPendingVote ); - setWasPendingVote(refVal_setWasPendingVote); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteCommentVote_200_response::getStatus() const -{ - return m_Status; -} - - -void DeleteCommentVote_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteCommentVote_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteCommentVote_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -bool DeleteCommentVote_200_response::isWasPendingVote() const -{ - return m_WasPendingVote; -} - -void DeleteCommentVote_200_response::setWasPendingVote(bool value) -{ - m_WasPendingVote = value; - m_WasPendingVoteIsSet = true; -} - -bool DeleteCommentVote_200_response::wasPendingVoteIsSet() const -{ - return m_WasPendingVoteIsSet; -} - -void DeleteCommentVote_200_response::unsetWasPendingVote() -{ - m_WasPendingVoteIsSet = false; -} -utility::string_t DeleteCommentVote_200_response::getReason() const -{ - return m_Reason; -} - - -void DeleteCommentVote_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteCommentVote_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteCommentVote_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteCommentVote_200_response::getCode() const -{ - return m_Code; -} - - -void DeleteCommentVote_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteCommentVote_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteCommentVote_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteCommentVote_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteCommentVote_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteCommentVote_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteCommentVote_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteCommentVote_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteCommentVote_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteCommentVote_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteCommentVote_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteCommentVote_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteCommentVote_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteCommentVote_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteCommentVote_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteCommentVote_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteCommentVote_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteCommentVote_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteCommentVote_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteCommentVote_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteCommentVote_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteCommentVote_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteCommentVote_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteComment_200_response.cpp b/client/src/model/DeleteComment_200_response.cpp deleted file mode 100644 index e71d51c..0000000 --- a/client/src/model/DeleteComment_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteComment_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteComment_200_response::DeleteComment_200_response() -{ - m_ActionIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteComment_200_response::~DeleteComment_200_response() -{ -} - -void DeleteComment_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteComment_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_ActionIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("action"))] = ModelBase::toJson(m_Action); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteComment_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("action")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("action"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setAction; - ok &= ModelBase::fromJson(fieldValue, refVal_setAction); - setAction(refVal_setAction); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteComment_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_ActionIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("action")), m_Action)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteComment_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("action")))) - { - std::shared_ptr refVal_setAction; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("action"))), refVal_setAction ); - setAction(refVal_setAction); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteComment_200_response::getAction() const -{ - return m_Action; -} - - -void DeleteComment_200_response::setAction(const std::shared_ptr& value) -{ - m_Action = value; - m_ActionIsSet = true; -} - -bool DeleteComment_200_response::actionIsSet() const -{ - return m_ActionIsSet; -} - -void DeleteComment_200_response::unsetAction() -{ - m_ActionIsSet = false; -} -std::shared_ptr DeleteComment_200_response::getStatus() const -{ - return m_Status; -} - - -void DeleteComment_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteComment_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteComment_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteComment_200_response::getReason() const -{ - return m_Reason; -} - - -void DeleteComment_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteComment_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteComment_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteComment_200_response::getCode() const -{ - return m_Code; -} - - -void DeleteComment_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteComment_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteComment_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteComment_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteComment_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteComment_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteComment_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteComment_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteComment_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteComment_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteComment_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteComment_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteComment_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteComment_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteComment_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteComment_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteComment_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteComment_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteComment_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteComment_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteComment_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteComment_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteComment_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteDomainConfig_200_response.cpp b/client/src/model/DeleteDomainConfigResponse.cpp similarity index 61% rename from client/src/model/DeleteDomainConfig_200_response.cpp rename to client/src/model/DeleteDomainConfigResponse.cpp index 169095a..d15a8a3 100644 --- a/client/src/model/DeleteDomainConfig_200_response.cpp +++ b/client/src/model/DeleteDomainConfigResponse.cpp @@ -4,46 +4,47 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/DeleteDomainConfig_200_response.h" +#include "FastCommentsClient/model/DeleteDomainConfigResponse.h" namespace org { namespace openapitools { namespace client { namespace model { -DeleteDomainConfig_200_response::DeleteDomainConfig_200_response() +DeleteDomainConfigResponse::DeleteDomainConfigResponse() { + m_StatusIsSet = false; } -DeleteDomainConfig_200_response::~DeleteDomainConfig_200_response() +DeleteDomainConfigResponse::~DeleteDomainConfigResponse() { } -void DeleteDomainConfig_200_response::validate() +void DeleteDomainConfigResponse::validate() { // TODO: implement validation } -web::json::value DeleteDomainConfig_200_response::toJson() const +web::json::value DeleteDomainConfigResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_Status.has_value()) - { + if(m_StatusIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } return val; } -bool DeleteDomainConfig_200_response::fromJson(const web::json::value& val) +bool DeleteDomainConfigResponse::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) @@ -60,20 +61,20 @@ bool DeleteDomainConfig_200_response::fromJson(const web::json::value& val) return ok; } -void DeleteDomainConfig_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void DeleteDomainConfigResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_Status.has_value()) + if(m_StatusIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } } -bool DeleteDomainConfig_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool DeleteDomainConfigResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -92,25 +93,26 @@ bool DeleteDomainConfig_200_response::fromMultiPart(std::shared_ptr DeleteDomainConfig_200_response::getStatus() const +std::shared_ptr DeleteDomainConfigResponse::getStatus() const { - return m_Status.get(); + return m_Status; } -void DeleteDomainConfig_200_response::setStatus(const std::shared_ptr& value) +void DeleteDomainConfigResponse::setStatus(const std::shared_ptr& value) { m_Status = value; + m_StatusIsSet = true; } -bool DeleteDomainConfig_200_response::statusIsSet() const +bool DeleteDomainConfigResponse::statusIsSet() const { - return m_Status.has_value(); + return m_StatusIsSet; } -void DeleteDomainConfig_200_response::unsetStatus() +void DeleteDomainConfigResponse::unsetStatus() { - m_Status.reset(); + m_StatusIsSet = false; } } diff --git a/client/src/model/DeleteFeedPostPublic_200_response_anyOf.cpp b/client/src/model/DeleteFeedPostPublicResponse.cpp similarity index 67% rename from client/src/model/DeleteFeedPostPublic_200_response_anyOf.cpp rename to client/src/model/DeleteFeedPostPublicResponse.cpp index 4edf05b..a5327bf 100644 --- a/client/src/model/DeleteFeedPostPublic_200_response_anyOf.cpp +++ b/client/src/model/DeleteFeedPostPublicResponse.cpp @@ -4,39 +4,39 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/DeleteFeedPostPublic_200_response_anyOf.h" +#include "FastCommentsClient/model/DeleteFeedPostPublicResponse.h" namespace org { namespace openapitools { namespace client { namespace model { -DeleteFeedPostPublic_200_response_anyOf::DeleteFeedPostPublic_200_response_anyOf() +DeleteFeedPostPublicResponse::DeleteFeedPostPublicResponse() { m_StatusIsSet = false; } -DeleteFeedPostPublic_200_response_anyOf::~DeleteFeedPostPublic_200_response_anyOf() +DeleteFeedPostPublicResponse::~DeleteFeedPostPublicResponse() { } -void DeleteFeedPostPublic_200_response_anyOf::validate() +void DeleteFeedPostPublicResponse::validate() { // TODO: implement validation } -web::json::value DeleteFeedPostPublic_200_response_anyOf::toJson() const +web::json::value DeleteFeedPostPublicResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } @@ -44,7 +44,7 @@ web::json::value DeleteFeedPostPublic_200_response_anyOf::toJson() const return val; } -bool DeleteFeedPostPublic_200_response_anyOf::fromJson(const web::json::value& val) +bool DeleteFeedPostPublicResponse::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) @@ -61,7 +61,7 @@ bool DeleteFeedPostPublic_200_response_anyOf::fromJson(const web::json::value& v return ok; } -void DeleteFeedPostPublic_200_response_anyOf::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void DeleteFeedPostPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) @@ -74,7 +74,7 @@ void DeleteFeedPostPublic_200_response_anyOf::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) +bool DeleteFeedPostPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -93,24 +93,24 @@ bool DeleteFeedPostPublic_200_response_anyOf::fromMultiPart(std::shared_ptr DeleteFeedPostPublic_200_response_anyOf::getStatus() const +std::shared_ptr DeleteFeedPostPublicResponse::getStatus() const { return m_Status; } -void DeleteFeedPostPublic_200_response_anyOf::setStatus(const std::shared_ptr& value) +void DeleteFeedPostPublicResponse::setStatus(const std::shared_ptr& value) { m_Status = value; m_StatusIsSet = true; } -bool DeleteFeedPostPublic_200_response_anyOf::statusIsSet() const +bool DeleteFeedPostPublicResponse::statusIsSet() const { return m_StatusIsSet; } -void DeleteFeedPostPublic_200_response_anyOf::unsetStatus() +void DeleteFeedPostPublicResponse::unsetStatus() { m_StatusIsSet = false; } diff --git a/client/src/model/DeleteFeedPostPublic_200_response.cpp b/client/src/model/DeleteFeedPostPublic_200_response.cpp deleted file mode 100644 index 3247f56..0000000 --- a/client/src/model/DeleteFeedPostPublic_200_response.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteFeedPostPublic_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteFeedPostPublic_200_response::DeleteFeedPostPublic_200_response() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteFeedPostPublic_200_response::~DeleteFeedPostPublic_200_response() -{ -} - -void DeleteFeedPostPublic_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteFeedPostPublic_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteFeedPostPublic_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteFeedPostPublic_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteFeedPostPublic_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteFeedPostPublic_200_response::getStatus() const -{ - return m_Status; -} - - -void DeleteFeedPostPublic_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteFeedPostPublic_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteFeedPostPublic_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteFeedPostPublic_200_response::getReason() const -{ - return m_Reason; -} - - -void DeleteFeedPostPublic_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteFeedPostPublic_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteFeedPostPublic_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteFeedPostPublic_200_response::getCode() const -{ - return m_Code; -} - - -void DeleteFeedPostPublic_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteFeedPostPublic_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteFeedPostPublic_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteFeedPostPublic_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteFeedPostPublic_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteFeedPostPublic_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteFeedPostPublic_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteFeedPostPublic_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteFeedPostPublic_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteFeedPostPublic_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteFeedPostPublic_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteFeedPostPublic_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteFeedPostPublic_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteFeedPostPublic_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteFeedPostPublic_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteFeedPostPublic_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteFeedPostPublic_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteFeedPostPublic_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteFeedPostPublic_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteFeedPostPublic_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteFeedPostPublic_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteFeedPostPublic_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteFeedPostPublic_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteHashTag_request.cpp b/client/src/model/DeleteHashTagRequestBody.cpp similarity index 72% rename from client/src/model/DeleteHashTag_request.cpp rename to client/src/model/DeleteHashTagRequestBody.cpp index 5502777..6a5dd2c 100644 --- a/client/src/model/DeleteHashTag_request.cpp +++ b/client/src/model/DeleteHashTagRequestBody.cpp @@ -4,40 +4,40 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/DeleteHashTag_request.h" +#include "FastCommentsClient/model/DeleteHashTagRequestBody.h" namespace org { namespace openapitools { namespace client { namespace model { -DeleteHashTag_request::DeleteHashTag_request() +DeleteHashTagRequestBody::DeleteHashTagRequestBody() { m_TenantId = utility::conversions::to_string_t(""); m_TenantIdIsSet = false; } -DeleteHashTag_request::~DeleteHashTag_request() +DeleteHashTagRequestBody::~DeleteHashTagRequestBody() { } -void DeleteHashTag_request::validate() +void DeleteHashTagRequestBody::validate() { // TODO: implement validation } -web::json::value DeleteHashTag_request::toJson() const +web::json::value DeleteHashTagRequestBody::toJson() const { web::json::value val = web::json::value::object(); if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } @@ -45,7 +45,7 @@ web::json::value DeleteHashTag_request::toJson() const return val; } -bool DeleteHashTag_request::fromJson(const web::json::value& val) +bool DeleteHashTagRequestBody::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantId")))) @@ -62,7 +62,7 @@ bool DeleteHashTag_request::fromJson(const web::json::value& val) return ok; } -void DeleteHashTag_request::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void DeleteHashTagRequestBody::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) @@ -75,7 +75,7 @@ void DeleteHashTag_request::toMultipart(std::shared_ptr multi } } -bool DeleteHashTag_request::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool DeleteHashTagRequestBody::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -94,24 +94,24 @@ bool DeleteHashTag_request::fromMultiPart(std::shared_ptr mul } -utility::string_t DeleteHashTag_request::getTenantId() const +utility::string_t DeleteHashTagRequestBody::getTenantId() const { return m_TenantId; } -void DeleteHashTag_request::setTenantId(const utility::string_t& value) +void DeleteHashTagRequestBody::setTenantId(const utility::string_t& value) { m_TenantId = value; m_TenantIdIsSet = true; } -bool DeleteHashTag_request::tenantIdIsSet() const +bool DeleteHashTagRequestBody::tenantIdIsSet() const { return m_TenantIdIsSet; } -void DeleteHashTag_request::unsetTenantId() +void DeleteHashTagRequestBody::unsetTenantId() { m_TenantIdIsSet = false; } diff --git a/client/src/model/DeletePageAPIResponse.cpp b/client/src/model/DeletePageAPIResponse.cpp index 6551ecd..86701eb 100644 --- a/client/src/model/DeletePageAPIResponse.cpp +++ b/client/src/model/DeletePageAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value DeletePageAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/DeleteSSOUserAPIResponse.cpp b/client/src/model/DeleteSSOUserAPIResponse.cpp index 36b44e6..76a9e6e 100644 --- a/client/src/model/DeleteSSOUserAPIResponse.cpp +++ b/client/src/model/DeleteSSOUserAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value DeleteSSOUserAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/DeleteSubscriptionAPIResponse.cpp b/client/src/model/DeleteSubscriptionAPIResponse.cpp index 6aa814a..4ed87cf 100644 --- a/client/src/model/DeleteSubscriptionAPIResponse.cpp +++ b/client/src/model/DeleteSubscriptionAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value DeleteSubscriptionAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/DeletedCommentResultComment.cpp b/client/src/model/DeletedCommentResultComment.cpp index 9b9a557..e8f106b 100644 --- a/client/src/model/DeletedCommentResultComment.cpp +++ b/client/src/model/DeletedCommentResultComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -26,6 +26,8 @@ DeletedCommentResultComment::DeletedCommentResultComment() m_CommentHTMLIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; + m_UserId = utility::conversions::to_string_t(""); + m_UserIdIsSet = false; } DeletedCommentResultComment::~DeletedCommentResultComment() @@ -41,24 +43,24 @@ web::json::value DeletedCommentResultComment::toJson() const { web::json::value val = web::json::value::object(); if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } return val; @@ -133,9 +135,9 @@ void DeletedCommentResultComment::toMultipart(std::shared_ptr { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } } @@ -240,23 +242,24 @@ void DeletedCommentResultComment::unsetCommenterName() } utility::string_t DeletedCommentResultComment::getUserId() const { - return m_UserId.get(); + return m_UserId; } void DeletedCommentResultComment::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool DeletedCommentResultComment::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void DeletedCommentResultComment::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } } diff --git a/client/src/model/DigestEmailFrequency.cpp b/client/src/model/DigestEmailFrequency.cpp index 761dc72..53d74c9 100644 --- a/client/src/model/DigestEmailFrequency.cpp +++ b/client/src/model/DigestEmailFrequency.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/EmailTemplateDefinition.cpp b/client/src/model/EmailTemplateDefinition.cpp index f8aabec..9c2c941 100644 --- a/client/src/model/EmailTemplateDefinition.cpp +++ b/client/src/model/EmailTemplateDefinition.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,22 +41,22 @@ web::json::value EmailTemplateDefinition::toJson() const { web::json::value val = web::json::value::object(); if(m_EmailTemplateIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplateId"))] = ModelBase::toJson(m_EmailTemplateId); } if(m_DefaultTestDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("defaultTestData"))] = ModelBase::toJson(m_DefaultTestData); } if(m_DefaultTranslationsByLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("defaultTranslationsByLocale"))] = ModelBase::toJson(m_DefaultTranslationsByLocale); } if(m_DefaultEJSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("defaultEJS"))] = ModelBase::toJson(m_DefaultEJS); } @@ -94,7 +94,7 @@ bool EmailTemplateDefinition::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("defaultTranslationsByLocale"))); if(!fieldValue.is_null()) { - std::map> refVal_setDefaultTranslationsByLocale; + std::map refVal_setDefaultTranslationsByLocale; ok &= ModelBase::fromJson(fieldValue, refVal_setDefaultTranslationsByLocale); setDefaultTranslationsByLocale(refVal_setDefaultTranslationsByLocale); @@ -162,7 +162,7 @@ bool EmailTemplateDefinition::fromMultiPart(std::shared_ptr m } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("defaultTranslationsByLocale")))) { - std::map> refVal_setDefaultTranslationsByLocale; + std::map refVal_setDefaultTranslationsByLocale; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("defaultTranslationsByLocale"))), refVal_setDefaultTranslationsByLocale ); setDefaultTranslationsByLocale(refVal_setDefaultTranslationsByLocale); } @@ -218,13 +218,13 @@ void EmailTemplateDefinition::unsetDefaultTestData() { m_DefaultTestDataIsSet = false; } -std::map> EmailTemplateDefinition::getDefaultTranslationsByLocale() const +std::map EmailTemplateDefinition::getDefaultTranslationsByLocale() const { return m_DefaultTranslationsByLocale; } -void EmailTemplateDefinition::setDefaultTranslationsByLocale(const std::map>& value) +void EmailTemplateDefinition::setDefaultTranslationsByLocale(const std::map& value) { m_DefaultTranslationsByLocale = value; m_DefaultTranslationsByLocaleIsSet = true; diff --git a/client/src/model/EmailTemplateRenderErrorResponse.cpp b/client/src/model/EmailTemplateRenderErrorResponse.cpp index ce8faca..bca581d 100644 --- a/client/src/model/EmailTemplateRenderErrorResponse.cpp +++ b/client/src/model/EmailTemplateRenderErrorResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -49,37 +49,37 @@ web::json::value EmailTemplateRenderErrorResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_CustomTemplateIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customTemplateId"))] = ModelBase::toJson(m_CustomTemplateId); } if(m_ErrorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("error"))] = ModelBase::toJson(m_Error); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_LastOccurredAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastOccurredAt"))] = ModelBase::toJson(m_LastOccurredAt); } diff --git a/client/src/model/EventLogEntry.cpp b/client/src/model/EventLogEntry.cpp index 1bd22ba..07cbc97 100644 --- a/client/src/model/EventLogEntry.cpp +++ b/client/src/model/EventLogEntry.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -47,32 +47,32 @@ web::json::value EventLogEntry::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_BroadcastIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("broadcastId"))] = ModelBase::toJson(m_BroadcastId); } if(m_DataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); } diff --git a/client/src/model/FComment.cpp b/client/src/model/FComment.cpp index 441397a..28ee17f 100644 --- a/client/src/model/FComment.cpp +++ b/client/src/model/FComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,14 +30,44 @@ FComment::FComment() m_UrlIdRawIsSet = false; m_Url = utility::conversions::to_string_t(""); m_UrlIsSet = false; + m_PageTitle = utility::conversions::to_string_t(""); + m_PageTitleIsSet = false; + m_UserId = nullptr; + m_UserIdIsSet = false; + m_AnonUserId = utility::conversions::to_string_t(""); + m_AnonUserIdIsSet = false; + m_CommenterEmail = utility::conversions::to_string_t(""); + m_CommenterEmailIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; + m_CommenterLink = utility::conversions::to_string_t(""); + m_CommenterLinkIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; + m_ParentId = utility::conversions::to_string_t(""); + m_ParentIdIsSet = false; + m_date = utility::datetime(); + m_dateIsSet = false; + m_LocalDateString = utility::conversions::to_string_t(""); + m_LocalDateStringIsSet = false; + m_LocalDateHours = 0; + m_LocalDateHoursIsSet = false; + m_Votes = 0; + m_VotesIsSet = false; + m_VotesUp = 0; + m_VotesUpIsSet = false; + m_VotesDown = 0; + m_VotesDownIsSet = false; + m_ExpireAt = utility::datetime(); + m_ExpireAtIsSet = false; m_Verified = false; m_VerifiedIsSet = false; + m_VerifiedDate = utility::datetime(); + m_VerifiedDateIsSet = false; + m_VerificationId = utility::conversions::to_string_t(""); + m_VerificationIdIsSet = false; m_NotificationSentForParent = false; m_NotificationSentForParentIsSet = false; m_NotificationSentForParentTenant = false; @@ -48,6 +78,10 @@ FComment::FComment() m_ImportedIsSet = false; m_ExternalId = utility::conversions::to_string_t(""); m_ExternalIdIsSet = false; + m_ExternalParentId = utility::conversions::to_string_t(""); + m_ExternalParentIdIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; m_PermNotSpam = false; @@ -56,12 +90,20 @@ FComment::FComment() m_AiDeterminedSpamIsSet = false; m_HasImages = false; m_HasImagesIsSet = false; + m_PageNumber = 0; + m_PageNumberIsSet = false; + m_PageNumberOF = 0; + m_PageNumberOFIsSet = false; + m_PageNumberNF = 0; + m_PageNumberNFIsSet = false; m_HasLinks = false; m_HasLinksIsSet = false; m_HasCode = false; m_HasCodeIsSet = false; m_Approved = false; m_ApprovedIsSet = false; + m_Locale = utility::conversions::to_string_t(""); + m_LocaleIsSet = false; m_IsDeleted = false; m_IsDeletedIsSet = false; m_IsDeletedUser = false; @@ -72,14 +114,29 @@ FComment::FComment() m_IsByAdminIsSet = false; m_IsByModerator = false; m_IsByModeratorIsSet = false; + m_IsPinned = false; + m_IsPinnedIsSet = false; + m_IsLocked = false; + m_IsLockedIsSet = false; + m_FlagCount = 0; + m_FlagCountIsSet = false; + m_Rating = 0.0; + m_RatingIsSet = false; + m_DisplayLabel = utility::conversions::to_string_t(""); + m_DisplayLabelIsSet = false; m_FromProductId = 0; m_FromProductIdIsSet = false; + m_MetaIsSet = false; m_IpHash = utility::conversions::to_string_t(""); m_IpHashIsSet = false; m_MentionsIsSet = false; m_HashTagsIsSet = false; + m_BadgesIsSet = false; + m_Domain = nullptr; + m_DomainIsSet = false; m_VeteranBadgeProcessed = utility::conversions::to_string_t(""); m_VeteranBadgeProcessedIsSet = false; + m_ModerationGroupIdsIsSet = false; m_DidProcessBadges = false; m_DidProcessBadgesIsSet = false; m_FromOfflineRestore = false; @@ -89,12 +146,18 @@ FComment::FComment() m_AutoplayDelayMS = 0L; m_AutoplayDelayMSIsSet = false; m_FeedbackIdsIsSet = false; + m_LogsIsSet = false; + m_GroupIdsIsSet = false; + m_ViewCount = 0L; + m_ViewCountIsSet = false; m_RequiresVerification = false; m_RequiresVerificationIsSet = false; m_EditKey = utility::conversions::to_string_t(""); m_EditKeyIsSet = false; m_TosAcceptedAt = utility::datetime(); m_TosAcceptedAtIsSet = false; + m_BotId = utility::conversions::to_string_t(""); + m_BotIdIsSet = false; } FComment::~FComment() @@ -110,365 +173,370 @@ web::json::value FComment::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIdRawIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdRaw"))] = ModelBase::toJson(m_UrlIdRaw); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } - if(m_PageTitle.has_value()) - { + if(m_PageTitleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } - if(m_AnonUserId.has_value()) - { + if(m_AnonUserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } - if(m_CommenterEmail.has_value()) - { + if(m_CommenterEmailIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterLink.has_value()) - { + if(m_CommenterLinkIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } - if(m_ParentId.has_value()) - { + if(m_ParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); } - if(m_date.has_value()) - { + if(m_dateIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); } - if(m_LocalDateString.has_value()) - { + if(m_LocalDateStringIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString.get()); + val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); } - if(m_LocalDateHours.has_value()) - { + if(m_LocalDateHoursIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours.get()); + val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours); } - if(m_Votes.has_value()) - { + if(m_VotesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); } - if(m_VotesUp.has_value()) - { + if(m_VotesUpIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); } - if(m_VotesDown.has_value()) - { + if(m_VotesDownIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); } - if(m_ExpireAt.has_value()) - { + if(m_ExpireAtIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt.get()); + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_VerifiedDate.has_value()) - { + if(m_VerifiedDateIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate.get()); + val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate); } - if(m_VerificationId.has_value()) - { + if(m_VerificationIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("verificationId"))] = ModelBase::toJson(m_VerificationId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("verificationId"))] = ModelBase::toJson(m_VerificationId); } if(m_NotificationSentForParentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParent"))] = ModelBase::toJson(m_NotificationSentForParent); } if(m_NotificationSentForParentTenantIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParentTenant"))] = ModelBase::toJson(m_NotificationSentForParentTenant); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_ImportedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("imported"))] = ModelBase::toJson(m_Imported); } if(m_ExternalIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("externalId"))] = ModelBase::toJson(m_ExternalId); } - if(m_ExternalParentId.has_value()) - { + if(m_ExternalParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId); } - if(m_AvatarSrc.has_value()) - { + if(m_AvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } if(m_PermNotSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("permNotSpam"))] = ModelBase::toJson(m_PermNotSpam); } if(m_AiDeterminedSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("aiDeterminedSpam"))] = ModelBase::toJson(m_AiDeterminedSpam); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } - if(m_PageNumber.has_value()) - { + if(m_PageNumberIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageNumber"))] = ModelBase::toJson(m_PageNumber.get()); + val[utility::conversions::to_string_t(_XPLATSTR("pageNumber"))] = ModelBase::toJson(m_PageNumber); } - if(m_PageNumberOF.has_value()) - { + if(m_PageNumberOFIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageNumberOF"))] = ModelBase::toJson(m_PageNumberOF.get()); + val[utility::conversions::to_string_t(_XPLATSTR("pageNumberOF"))] = ModelBase::toJson(m_PageNumberOF); } - if(m_PageNumberNF.has_value()) - { + if(m_PageNumberNFIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageNumberNF"))] = ModelBase::toJson(m_PageNumberNF.get()); + val[utility::conversions::to_string_t(_XPLATSTR("pageNumberNF"))] = ModelBase::toJson(m_PageNumberNF); } if(m_HasLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLinks"))] = ModelBase::toJson(m_HasLinks); } if(m_HasCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasCode"))] = ModelBase::toJson(m_HasCode); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } - if(m_Locale.has_value()) - { + if(m_LocaleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale.get()); + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_IsBannedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))] = ModelBase::toJson(m_IsBannedUser); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } - if(m_IsPinned.has_value()) - { + if(m_IsPinnedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); } - if(m_IsLocked.has_value()) - { + if(m_IsLockedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); } - if(m_FlagCount.has_value()) - { + if(m_FlagCountIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); } - if(m_Rating.has_value()) - { + if(m_RatingIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); } - if(m_DisplayLabel.has_value()) - { + if(m_DisplayLabelIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } if(m_FromProductIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromProductId"))] = ModelBase::toJson(m_FromProductId); } - if(m_Meta.has_value()) - { + if(m_MetaIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } if(m_IpHashIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); } if(m_MentionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("mentions"))] = ModelBase::toJson(m_Mentions); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } - if(m_Badges.has_value()) - { + if(m_BadgesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } - if(m_Domain.has_value()) - { + if(m_DomainIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain.get()); + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_VeteranBadgeProcessedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("veteranBadgeProcessed"))] = ModelBase::toJson(m_VeteranBadgeProcessed); } - if(m_ModerationGroupIds.has_value()) - { + if(m_ModerationGroupIdsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds.get()); + val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } if(m_DidProcessBadgesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("didProcessBadges"))] = ModelBase::toJson(m_DidProcessBadges); } if(m_FromOfflineRestoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromOfflineRestore"))] = ModelBase::toJson(m_FromOfflineRestore); } if(m_AutoplayJobIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoplayJobId"))] = ModelBase::toJson(m_AutoplayJobId); } if(m_AutoplayDelayMSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoplayDelayMS"))] = ModelBase::toJson(m_AutoplayDelayMS); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } - if(m_Logs.has_value()) - { + if(m_LogsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("logs"))] = ModelBase::toJson(m_Logs.get()); + val[utility::conversions::to_string_t(_XPLATSTR("logs"))] = ModelBase::toJson(m_Logs); } - if(m_GroupIds.has_value()) - { + if(m_GroupIdsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds.get()); + val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); } - if(m_ViewCount.has_value()) - { + if(m_ViewCountIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount.get()); + val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount); } if(m_RequiresVerificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("requiresVerification"))] = ModelBase::toJson(m_RequiresVerification); } if(m_EditKeyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); } if(m_TosAcceptedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tosAcceptedAt"))] = ModelBase::toJson(m_TosAcceptedAt); } + if(m_BotIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("botId"))] = ModelBase::toJson(m_BotId); + } return val; } @@ -1268,6 +1336,17 @@ bool FComment::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("botId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("botId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBotId; + ok &= ModelBase::fromJson(fieldValue, refVal_setBotId); + setBotId(refVal_setBotId); + + } + } return ok; } @@ -1298,29 +1377,29 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } - if(m_PageTitle.has_value()) + if(m_PageTitleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } - if(m_AnonUserId.has_value()) + if(m_AnonUserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); } - if(m_CommenterEmail.has_value()) + if(m_CommenterEmailIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); } if(m_CommenterNameIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterLink.has_value()) + if(m_CommenterLinkIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); } if(m_CommentIsSet) { @@ -1330,49 +1409,49 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); } - if(m_ParentId.has_value()) + if(m_ParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); } - if(m_date.has_value()) + if(m_dateIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); } - if(m_LocalDateString.has_value()) + if(m_LocalDateStringIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString)); } - if(m_LocalDateHours.has_value()) + if(m_LocalDateHoursIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours)); } - if(m_Votes.has_value()) + if(m_VotesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); } - if(m_VotesUp.has_value()) + if(m_VotesUpIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); } - if(m_VotesDown.has_value()) + if(m_VotesDownIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); } - if(m_ExpireAt.has_value()) + if(m_ExpireAtIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_VerifiedDate.has_value()) + if(m_VerifiedDateIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate)); } - if(m_VerificationId.has_value()) + if(m_VerificationIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verificationId")), m_VerificationId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verificationId")), m_VerificationId)); } if(m_NotificationSentForParentIsSet) { @@ -1394,13 +1473,13 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalId")), m_ExternalId)); } - if(m_ExternalParentId.has_value()) + if(m_ExternalParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId)); } - if(m_AvatarSrc.has_value()) + if(m_AvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); } if(m_IsSpamIsSet) { @@ -1418,17 +1497,17 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasImages")), m_HasImages)); } - if(m_PageNumber.has_value()) + if(m_PageNumberIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumber")), m_PageNumber.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumber")), m_PageNumber)); } - if(m_PageNumberOF.has_value()) + if(m_PageNumberOFIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumberOF")), m_PageNumberOF.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumberOF")), m_PageNumberOF)); } - if(m_PageNumberNF.has_value()) + if(m_PageNumberNFIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumberNF")), m_PageNumberNF.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumberNF")), m_PageNumberNF)); } if(m_HasLinksIsSet) { @@ -1442,9 +1521,9 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); } - if(m_Locale.has_value()) + if(m_LocaleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); } if(m_IsDeletedIsSet) { @@ -1466,33 +1545,33 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); } - if(m_IsPinned.has_value()) + if(m_IsPinnedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); } - if(m_IsLocked.has_value()) + if(m_IsLockedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); } - if(m_FlagCount.has_value()) + if(m_FlagCountIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); } - if(m_Rating.has_value()) + if(m_RatingIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); } - if(m_DisplayLabel.has_value()) + if(m_DisplayLabelIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); } if(m_FromProductIdIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromProductId")), m_FromProductId)); } - if(m_Meta.has_value()) + if(m_MetaIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); } if(m_IpHashIsSet) { @@ -1506,21 +1585,21 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hashTags")), m_HashTags)); } - if(m_Badges.has_value()) + if(m_BadgesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); } - if(m_Domain.has_value()) + if(m_DomainIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); } if(m_VeteranBadgeProcessedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("veteranBadgeProcessed")), m_VeteranBadgeProcessed)); } - if(m_ModerationGroupIds.has_value()) + if(m_ModerationGroupIdsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds)); } if(m_DidProcessBadgesIsSet) { @@ -1542,17 +1621,17 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedbackIds")), m_FeedbackIds)); } - if(m_Logs.has_value()) + if(m_LogsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logs")), m_Logs.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logs")), m_Logs)); } - if(m_GroupIds.has_value()) + if(m_GroupIdsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("groupIds")), m_GroupIds.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("groupIds")), m_GroupIds)); } - if(m_ViewCount.has_value()) + if(m_ViewCountIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount)); } if(m_RequiresVerificationIsSet) { @@ -1566,6 +1645,10 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tosAcceptedAt")), m_TosAcceptedAt)); } + if(m_BotIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("botId")), m_BotId)); + } } bool FComment::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -2009,6 +2092,12 @@ bool FComment::fromMultiPart(std::shared_ptr multipart, const ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tosAcceptedAt"))), refVal_setTosAcceptedAt ); setTosAcceptedAt(refVal_setTosAcceptedAt); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("botId")))) + { + utility::string_t refVal_setBotId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("botId"))), refVal_setBotId ); + setBotId(refVal_setBotId); + } return ok; } @@ -2120,83 +2209,87 @@ void FComment::unsetUrl() } utility::string_t FComment::getPageTitle() const { - return m_PageTitle.get(); + return m_PageTitle; } void FComment::setPageTitle(const utility::string_t& value) { m_PageTitle = value; + m_PageTitleIsSet = true; } bool FComment::pageTitleIsSet() const { - return m_PageTitle.has_value(); + return m_PageTitleIsSet; } void FComment::unsetPageTitle() { - m_PageTitle.reset(); + m_PageTitleIsSet = false; } utility::string_t FComment::getUserId() const { - return m_UserId.get(); + return m_UserId; } void FComment::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool FComment::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void FComment::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } utility::string_t FComment::getAnonUserId() const { - return m_AnonUserId.get(); + return m_AnonUserId; } void FComment::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; + m_AnonUserIdIsSet = true; } bool FComment::anonUserIdIsSet() const { - return m_AnonUserId.has_value(); + return m_AnonUserIdIsSet; } void FComment::unsetAnonUserId() { - m_AnonUserId.reset(); + m_AnonUserIdIsSet = false; } utility::string_t FComment::getCommenterEmail() const { - return m_CommenterEmail.get(); + return m_CommenterEmail; } void FComment::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; + m_CommenterEmailIsSet = true; } bool FComment::commenterEmailIsSet() const { - return m_CommenterEmail.has_value(); + return m_CommenterEmailIsSet; } void FComment::unsetCommenterEmail() { - m_CommenterEmail.reset(); + m_CommenterEmailIsSet = false; } utility::string_t FComment::getCommenterName() const { @@ -2221,23 +2314,24 @@ void FComment::unsetCommenterName() } utility::string_t FComment::getCommenterLink() const { - return m_CommenterLink.get(); + return m_CommenterLink; } void FComment::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; + m_CommenterLinkIsSet = true; } bool FComment::commenterLinkIsSet() const { - return m_CommenterLink.has_value(); + return m_CommenterLinkIsSet; } void FComment::unsetCommenterLink() { - m_CommenterLink.reset(); + m_CommenterLinkIsSet = false; } utility::string_t FComment::getComment() const { @@ -2283,159 +2377,167 @@ void FComment::unsetCommentHTML() } utility::string_t FComment::getParentId() const { - return m_ParentId.get(); + return m_ParentId; } void FComment::setParentId(const utility::string_t& value) { m_ParentId = value; + m_ParentIdIsSet = true; } bool FComment::parentIdIsSet() const { - return m_ParentId.has_value(); + return m_ParentIdIsSet; } void FComment::unsetParentId() { - m_ParentId.reset(); + m_ParentIdIsSet = false; } utility::datetime FComment::getDate() const { - return m_date.get(); + return m_date; } void FComment::setDate(const utility::datetime& value) { m_date = value; + m_dateIsSet = true; } bool FComment::dateIsSet() const { - return m_date.has_value(); + return m_dateIsSet; } void FComment::unsetdate() { - m_date.reset(); + m_dateIsSet = false; } utility::string_t FComment::getLocalDateString() const { - return m_LocalDateString.get(); + return m_LocalDateString; } void FComment::setLocalDateString(const utility::string_t& value) { m_LocalDateString = value; + m_LocalDateStringIsSet = true; } bool FComment::localDateStringIsSet() const { - return m_LocalDateString.has_value(); + return m_LocalDateStringIsSet; } void FComment::unsetLocalDateString() { - m_LocalDateString.reset(); + m_LocalDateStringIsSet = false; } int32_t FComment::getLocalDateHours() const { - return m_LocalDateHours.get(); + return m_LocalDateHours; } void FComment::setLocalDateHours(int32_t value) { m_LocalDateHours = value; + m_LocalDateHoursIsSet = true; } bool FComment::localDateHoursIsSet() const { - return m_LocalDateHours.has_value(); + return m_LocalDateHoursIsSet; } void FComment::unsetLocalDateHours() { - m_LocalDateHours.reset(); + m_LocalDateHoursIsSet = false; } int32_t FComment::getVotes() const { - return m_Votes.get(); + return m_Votes; } void FComment::setVotes(int32_t value) { m_Votes = value; + m_VotesIsSet = true; } bool FComment::votesIsSet() const { - return m_Votes.has_value(); + return m_VotesIsSet; } void FComment::unsetVotes() { - m_Votes.reset(); + m_VotesIsSet = false; } int32_t FComment::getVotesUp() const { - return m_VotesUp.get(); + return m_VotesUp; } void FComment::setVotesUp(int32_t value) { m_VotesUp = value; + m_VotesUpIsSet = true; } bool FComment::votesUpIsSet() const { - return m_VotesUp.has_value(); + return m_VotesUpIsSet; } void FComment::unsetVotesUp() { - m_VotesUp.reset(); + m_VotesUpIsSet = false; } int32_t FComment::getVotesDown() const { - return m_VotesDown.get(); + return m_VotesDown; } void FComment::setVotesDown(int32_t value) { m_VotesDown = value; + m_VotesDownIsSet = true; } bool FComment::votesDownIsSet() const { - return m_VotesDown.has_value(); + return m_VotesDownIsSet; } void FComment::unsetVotesDown() { - m_VotesDown.reset(); + m_VotesDownIsSet = false; } utility::datetime FComment::getExpireAt() const { - return m_ExpireAt.get(); + return m_ExpireAt; } void FComment::setExpireAt(const utility::datetime& value) { m_ExpireAt = value; + m_ExpireAtIsSet = true; } bool FComment::expireAtIsSet() const { - return m_ExpireAt.has_value(); + return m_ExpireAtIsSet; } void FComment::unsetExpireAt() { - m_ExpireAt.reset(); + m_ExpireAtIsSet = false; } bool FComment::isVerified() const { @@ -2459,43 +2561,45 @@ void FComment::unsetVerified() } utility::datetime FComment::getVerifiedDate() const { - return m_VerifiedDate.get(); + return m_VerifiedDate; } void FComment::setVerifiedDate(const utility::datetime& value) { m_VerifiedDate = value; + m_VerifiedDateIsSet = true; } bool FComment::verifiedDateIsSet() const { - return m_VerifiedDate.has_value(); + return m_VerifiedDateIsSet; } void FComment::unsetVerifiedDate() { - m_VerifiedDate.reset(); + m_VerifiedDateIsSet = false; } utility::string_t FComment::getVerificationId() const { - return m_VerificationId.get(); + return m_VerificationId; } void FComment::setVerificationId(const utility::string_t& value) { m_VerificationId = value; + m_VerificationIdIsSet = true; } bool FComment::verificationIdIsSet() const { - return m_VerificationId.has_value(); + return m_VerificationIdIsSet; } void FComment::unsetVerificationId() { - m_VerificationId.reset(); + m_VerificationIdIsSet = false; } bool FComment::isNotificationSentForParent() const { @@ -2600,43 +2704,45 @@ void FComment::unsetExternalId() } utility::string_t FComment::getExternalParentId() const { - return m_ExternalParentId.get(); + return m_ExternalParentId; } void FComment::setExternalParentId(const utility::string_t& value) { m_ExternalParentId = value; + m_ExternalParentIdIsSet = true; } bool FComment::externalParentIdIsSet() const { - return m_ExternalParentId.has_value(); + return m_ExternalParentIdIsSet; } void FComment::unsetExternalParentId() { - m_ExternalParentId.reset(); + m_ExternalParentIdIsSet = false; } utility::string_t FComment::getAvatarSrc() const { - return m_AvatarSrc.get(); + return m_AvatarSrc; } void FComment::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; + m_AvatarSrcIsSet = true; } bool FComment::avatarSrcIsSet() const { - return m_AvatarSrc.has_value(); + return m_AvatarSrcIsSet; } void FComment::unsetAvatarSrc() { - m_AvatarSrc.reset(); + m_AvatarSrcIsSet = false; } bool FComment::isIsSpam() const { @@ -2720,60 +2826,63 @@ void FComment::unsetHasImages() } int32_t FComment::getPageNumber() const { - return m_PageNumber.get(); + return m_PageNumber; } void FComment::setPageNumber(int32_t value) { m_PageNumber = value; + m_PageNumberIsSet = true; } bool FComment::pageNumberIsSet() const { - return m_PageNumber.has_value(); + return m_PageNumberIsSet; } void FComment::unsetPageNumber() { - m_PageNumber.reset(); + m_PageNumberIsSet = false; } int32_t FComment::getPageNumberOF() const { - return m_PageNumberOF.get(); + return m_PageNumberOF; } void FComment::setPageNumberOF(int32_t value) { m_PageNumberOF = value; + m_PageNumberOFIsSet = true; } bool FComment::pageNumberOFIsSet() const { - return m_PageNumberOF.has_value(); + return m_PageNumberOFIsSet; } void FComment::unsetPageNumberOF() { - m_PageNumberOF.reset(); + m_PageNumberOFIsSet = false; } int32_t FComment::getPageNumberNF() const { - return m_PageNumberNF.get(); + return m_PageNumberNF; } void FComment::setPageNumberNF(int32_t value) { m_PageNumberNF = value; + m_PageNumberNFIsSet = true; } bool FComment::pageNumberNFIsSet() const { - return m_PageNumberNF.has_value(); + return m_PageNumberNFIsSet; } void FComment::unsetPageNumberNF() { - m_PageNumberNF.reset(); + m_PageNumberNFIsSet = false; } bool FComment::isHasLinks() const { @@ -2837,23 +2946,24 @@ void FComment::unsetApproved() } utility::string_t FComment::getLocale() const { - return m_Locale.get(); + return m_Locale; } void FComment::setLocale(const utility::string_t& value) { m_Locale = value; + m_LocaleIsSet = true; } bool FComment::localeIsSet() const { - return m_Locale.has_value(); + return m_LocaleIsSet; } void FComment::unsetLocale() { - m_Locale.reset(); + m_LocaleIsSet = false; } bool FComment::isIsDeleted() const { @@ -2957,99 +3067,104 @@ void FComment::unsetIsByModerator() } bool FComment::isIsPinned() const { - return m_IsPinned.get(); + return m_IsPinned; } void FComment::setIsPinned(bool value) { m_IsPinned = value; + m_IsPinnedIsSet = true; } bool FComment::isPinnedIsSet() const { - return m_IsPinned.has_value(); + return m_IsPinnedIsSet; } void FComment::unsetIsPinned() { - m_IsPinned.reset(); + m_IsPinnedIsSet = false; } bool FComment::isIsLocked() const { - return m_IsLocked.get(); + return m_IsLocked; } void FComment::setIsLocked(bool value) { m_IsLocked = value; + m_IsLockedIsSet = true; } bool FComment::isLockedIsSet() const { - return m_IsLocked.has_value(); + return m_IsLockedIsSet; } void FComment::unsetIsLocked() { - m_IsLocked.reset(); + m_IsLockedIsSet = false; } int32_t FComment::getFlagCount() const { - return m_FlagCount.get(); + return m_FlagCount; } void FComment::setFlagCount(int32_t value) { m_FlagCount = value; + m_FlagCountIsSet = true; } bool FComment::flagCountIsSet() const { - return m_FlagCount.has_value(); + return m_FlagCountIsSet; } void FComment::unsetFlagCount() { - m_FlagCount.reset(); + m_FlagCountIsSet = false; } double FComment::getRating() const { - return m_Rating.get(); + return m_Rating; } void FComment::setRating(double value) { m_Rating = value; + m_RatingIsSet = true; } bool FComment::ratingIsSet() const { - return m_Rating.has_value(); + return m_RatingIsSet; } void FComment::unsetRating() { - m_Rating.reset(); + m_RatingIsSet = false; } utility::string_t FComment::getDisplayLabel() const { - return m_DisplayLabel.get(); + return m_DisplayLabel; } void FComment::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; + m_DisplayLabelIsSet = true; } bool FComment::displayLabelIsSet() const { - return m_DisplayLabel.has_value(); + return m_DisplayLabelIsSet; } void FComment::unsetDisplayLabel() { - m_DisplayLabel.reset(); + m_DisplayLabelIsSet = false; } int32_t FComment::getFromProductId() const { @@ -3073,23 +3188,24 @@ void FComment::unsetFromProductId() } std::shared_ptr FComment::getMeta() const { - return m_Meta.get(); + return m_Meta; } void FComment::setMeta(const std::shared_ptr& value) { m_Meta = value; + m_MetaIsSet = true; } bool FComment::metaIsSet() const { - return m_Meta.has_value(); + return m_MetaIsSet; } void FComment::unsetMeta() { - m_Meta.reset(); + m_MetaIsSet = false; } utility::string_t FComment::getIpHash() const { @@ -3156,43 +3272,45 @@ void FComment::unsetHashTags() } std::vector> FComment::getBadges() const { - return m_Badges.get(); + return m_Badges; } void FComment::setBadges(const std::vector>& value) { m_Badges = value; + m_BadgesIsSet = true; } bool FComment::badgesIsSet() const { - return m_Badges.has_value(); + return m_BadgesIsSet; } void FComment::unsetBadges() { - m_Badges.reset(); + m_BadgesIsSet = false; } utility::string_t FComment::getDomain() const { - return m_Domain.get(); + return m_Domain; } void FComment::setDomain(const utility::string_t& value) { m_Domain = value; + m_DomainIsSet = true; } bool FComment::domainIsSet() const { - return m_Domain.has_value(); + return m_DomainIsSet; } void FComment::unsetDomain() { - m_Domain.reset(); + m_DomainIsSet = false; } utility::string_t FComment::getVeteranBadgeProcessed() const { @@ -3217,23 +3335,24 @@ void FComment::unsetVeteranBadgeProcessed() } std::vector FComment::getModerationGroupIds() const { - return m_ModerationGroupIds.get(); + return m_ModerationGroupIds; } void FComment::setModerationGroupIds(const std::vector& value) { m_ModerationGroupIds = value; + m_ModerationGroupIdsIsSet = true; } bool FComment::moderationGroupIdsIsSet() const { - return m_ModerationGroupIds.has_value(); + return m_ModerationGroupIdsIsSet; } void FComment::unsetModerationGroupIds() { - m_ModerationGroupIds.reset(); + m_ModerationGroupIdsIsSet = false; } bool FComment::isDidProcessBadges() const { @@ -3339,62 +3458,65 @@ void FComment::unsetFeedbackIds() } std::vector> FComment::getLogs() const { - return m_Logs.get(); + return m_Logs; } void FComment::setLogs(const std::vector>& value) { m_Logs = value; + m_LogsIsSet = true; } bool FComment::logsIsSet() const { - return m_Logs.has_value(); + return m_LogsIsSet; } void FComment::unsetLogs() { - m_Logs.reset(); + m_LogsIsSet = false; } std::vector FComment::getGroupIds() const { - return m_GroupIds.get(); + return m_GroupIds; } void FComment::setGroupIds(const std::vector& value) { m_GroupIds = value; + m_GroupIdsIsSet = true; } bool FComment::groupIdsIsSet() const { - return m_GroupIds.has_value(); + return m_GroupIdsIsSet; } void FComment::unsetGroupIds() { - m_GroupIds.reset(); + m_GroupIdsIsSet = false; } int64_t FComment::getViewCount() const { - return m_ViewCount.get(); + return m_ViewCount; } void FComment::setViewCount(int64_t value) { m_ViewCount = value; + m_ViewCountIsSet = true; } bool FComment::viewCountIsSet() const { - return m_ViewCount.has_value(); + return m_ViewCountIsSet; } void FComment::unsetViewCount() { - m_ViewCount.reset(); + m_ViewCountIsSet = false; } bool FComment::isRequiresVerification() const { @@ -3458,6 +3580,27 @@ void FComment::unsetTosAcceptedAt() { m_TosAcceptedAtIsSet = false; } +utility::string_t FComment::getBotId() const +{ + return m_BotId; +} + + +void FComment::setBotId(const utility::string_t& value) +{ + m_BotId = value; + m_BotIdIsSet = true; +} + +bool FComment::botIdIsSet() const +{ + return m_BotIdIsSet; +} + +void FComment::unsetBotId() +{ + m_BotIdIsSet = false; +} } } diff --git a/client/src/model/FComment_meta.cpp b/client/src/model/FComment_meta.cpp index 3ef109f..314b1ad 100644 --- a/client/src/model/FComment_meta.cpp +++ b/client/src/model/FComment_meta.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -26,7 +26,6 @@ FComment_meta::FComment_meta() m_WpUserIdIsSet = false; m_WpPostId = utility::conversions::to_string_t(""); m_WpPostIdIsSet = false; - m_AdditionalPropertiesIsSet = false; } FComment_meta::~FComment_meta() @@ -42,28 +41,20 @@ web::json::value FComment_meta::toJson() const { web::json::value val = web::json::value::object(); if(m_WpIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wpId"))] = ModelBase::toJson(m_WpId); } if(m_WpUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wpUserId"))] = ModelBase::toJson(m_WpUserId); } if(m_WpPostIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wpPostId"))] = ModelBase::toJson(m_WpPostId); } - // Serialize additional properties - if(m_AdditionalPropertiesIsSet) - { - for(const auto& item : m_AdditionalProperties) - { - val[item.first] = item.second; - } - } return val; } @@ -104,20 +95,6 @@ bool FComment_meta::fromJson(const web::json::value& val) } } - // Capture additional properties (keys not defined in the schema) - if(val.is_object()) - { - for(const auto& item : val.as_object()) - { - // Skip known properties - if(item.first == utility::conversions::to_string_t(_XPLATSTR("wpId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("wpUserId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("wpPostId"))) continue; - // This is an additional property - m_AdditionalProperties[item.first] = item.second; - m_AdditionalPropertiesIsSet = true; - } - } return ok; } @@ -237,34 +214,6 @@ void FComment_meta::unsetWpPostId() m_WpPostIdIsSet = false; } - -std::map FComment_meta::getAdditionalProperties() const -{ - return m_AdditionalProperties; -} - -void FComment_meta::setAdditionalProperties(const std::map& value) -{ - m_AdditionalProperties = value; - m_AdditionalPropertiesIsSet = true; -} - -void FComment_meta::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) -{ - m_AdditionalProperties[key] = value; - m_AdditionalPropertiesIsSet = true; -} - -bool FComment_meta::additionalPropertiesIsSet() const -{ - return m_AdditionalPropertiesIsSet; -} - -void FComment_meta::unsetAdditionalProperties() -{ - m_AdditionalProperties.clear(); - m_AdditionalPropertiesIsSet = false; -} } } } diff --git a/client/src/model/FeedPost.cpp b/client/src/model/FeedPost.cpp index dad1f27..9957fd2 100644 --- a/client/src/model/FeedPost.cpp +++ b/client/src/model/FeedPost.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -28,6 +28,10 @@ FeedPost::FeedPost() m_TitleIsSet = false; m_FromUserId = utility::conversions::to_string_t(""); m_FromUserIdIsSet = false; + m_FromUserDisplayName = utility::conversions::to_string_t(""); + m_FromUserDisplayNameIsSet = false; + m_FromUserAvatar = utility::conversions::to_string_t(""); + m_FromUserAvatarIsSet = false; m_FromIpHash = utility::conversions::to_string_t(""); m_FromIpHashIsSet = false; m_TagsIsSet = false; @@ -41,6 +45,8 @@ FeedPost::FeedPost() m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; m_ReactsIsSet = false; + m_CommentCount = 0; + m_CommentCountIsSet = false; } FeedPost::~FeedPost() @@ -56,84 +62,84 @@ web::json::value FeedPost::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_FromUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserId"))] = ModelBase::toJson(m_FromUserId); } - if(m_FromUserDisplayName.has_value()) - { + if(m_FromUserDisplayNameIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserDisplayName"))] = ModelBase::toJson(m_FromUserDisplayName.get()); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserDisplayName"))] = ModelBase::toJson(m_FromUserDisplayName); } - if(m_FromUserAvatar.has_value()) - { + if(m_FromUserAvatarIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserAvatar"))] = ModelBase::toJson(m_FromUserAvatar.get()); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserAvatar"))] = ModelBase::toJson(m_FromUserAvatar); } if(m_FromIpHashIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromIpHash"))] = ModelBase::toJson(m_FromIpHash); } if(m_TagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tags"))] = ModelBase::toJson(m_Tags); } if(m_WeightIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("weight"))] = ModelBase::toJson(m_Weight); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } if(m_ContentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("contentHTML"))] = ModelBase::toJson(m_ContentHTML); } if(m_MediaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("media"))] = ModelBase::toJson(m_Media); } if(m_LinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("links"))] = ModelBase::toJson(m_Links); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_ReactsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reacts"))] = ModelBase::toJson(m_Reacts); } - if(m_CommentCount.has_value()) - { + if(m_CommentCountIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } return val; @@ -344,13 +350,13 @@ void FeedPost::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserId")), m_FromUserId)); } - if(m_FromUserDisplayName.has_value()) + if(m_FromUserDisplayNameIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserDisplayName")), m_FromUserDisplayName.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserDisplayName")), m_FromUserDisplayName)); } - if(m_FromUserAvatar.has_value()) + if(m_FromUserAvatarIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserAvatar")), m_FromUserAvatar.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserAvatar")), m_FromUserAvatar)); } if(m_FromIpHashIsSet) { @@ -388,9 +394,9 @@ void FeedPost::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reacts")), m_Reacts)); } - if(m_CommentCount.has_value()) + if(m_CommentCountIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount)); } } @@ -589,43 +595,45 @@ void FeedPost::unsetFromUserId() } utility::string_t FeedPost::getFromUserDisplayName() const { - return m_FromUserDisplayName.get(); + return m_FromUserDisplayName; } void FeedPost::setFromUserDisplayName(const utility::string_t& value) { m_FromUserDisplayName = value; + m_FromUserDisplayNameIsSet = true; } bool FeedPost::fromUserDisplayNameIsSet() const { - return m_FromUserDisplayName.has_value(); + return m_FromUserDisplayNameIsSet; } void FeedPost::unsetFromUserDisplayName() { - m_FromUserDisplayName.reset(); + m_FromUserDisplayNameIsSet = false; } utility::string_t FeedPost::getFromUserAvatar() const { - return m_FromUserAvatar.get(); + return m_FromUserAvatar; } void FeedPost::setFromUserAvatar(const utility::string_t& value) { m_FromUserAvatar = value; + m_FromUserAvatarIsSet = true; } bool FeedPost::fromUserAvatarIsSet() const { - return m_FromUserAvatar.has_value(); + return m_FromUserAvatarIsSet; } void FeedPost::unsetFromUserAvatar() { - m_FromUserAvatar.reset(); + m_FromUserAvatarIsSet = false; } utility::string_t FeedPost::getFromIpHash() const { @@ -816,22 +824,23 @@ void FeedPost::unsetReacts() } int32_t FeedPost::getCommentCount() const { - return m_CommentCount.get(); + return m_CommentCount; } void FeedPost::setCommentCount(int32_t value) { m_CommentCount = value; + m_CommentCountIsSet = true; } bool FeedPost::commentCountIsSet() const { - return m_CommentCount.has_value(); + return m_CommentCountIsSet; } void FeedPost::unsetCommentCount() { - m_CommentCount.reset(); + m_CommentCountIsSet = false; } } diff --git a/client/src/model/FeedPostLink.cpp b/client/src/model/FeedPostLink.cpp index 942a0c7..fef9d4c 100644 --- a/client/src/model/FeedPostLink.cpp +++ b/client/src/model/FeedPostLink.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,22 +43,22 @@ web::json::value FeedPostLink::toJson() const { web::json::value val = web::json::value::object(); if(m_TextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("text"))] = ModelBase::toJson(m_Text); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_DescriptionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } diff --git a/client/src/model/FeedPostMediaItem.cpp b/client/src/model/FeedPostMediaItem.cpp index 5a9b9ca..4234d09 100644 --- a/client/src/model/FeedPostMediaItem.cpp +++ b/client/src/model/FeedPostMediaItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,17 +40,17 @@ web::json::value FeedPostMediaItem::toJson() const { web::json::value val = web::json::value::object(); if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_LinkUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("linkUrl"))] = ModelBase::toJson(m_LinkUrl); } if(m_SizesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sizes"))] = ModelBase::toJson(m_Sizes); } diff --git a/client/src/model/FeedPostMediaItemAsset.cpp b/client/src/model/FeedPostMediaItemAsset.cpp index c9d0260..0b58173 100644 --- a/client/src/model/FeedPostMediaItemAsset.cpp +++ b/client/src/model/FeedPostMediaItemAsset.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value FeedPostMediaItemAsset::toJson() const { web::json::value val = web::json::value::object(); if(m_wIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("w"))] = ModelBase::toJson(m_w); } if(m_hIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("h"))] = ModelBase::toJson(m_h); } if(m_SrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("src"))] = ModelBase::toJson(m_Src); } diff --git a/client/src/model/FeedPostStats.cpp b/client/src/model/FeedPostStats.cpp index 4e41b20..24c04b1 100644 --- a/client/src/model/FeedPostStats.cpp +++ b/client/src/model/FeedPostStats.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value FeedPostStats::toJson() const { web::json::value val = web::json::value::object(); if(m_ReactsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reacts"))] = ModelBase::toJson(m_Reacts); } if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } diff --git a/client/src/model/FeedPostsStatsResponse.cpp b/client/src/model/FeedPostsStatsResponse.cpp index ba44c90..8f0d88b 100644 --- a/client/src/model/FeedPostsStatsResponse.cpp +++ b/client/src/model/FeedPostsStatsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value FeedPostsStatsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_StatsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stats"))] = ModelBase::toJson(m_Stats); } diff --git a/client/src/model/FindCommentsByRangeItem.cpp b/client/src/model/FindCommentsByRangeItem.cpp index f6b7735..b8099b8 100644 --- a/client/src/model/FindCommentsByRangeItem.cpp +++ b/client/src/model/FindCommentsByRangeItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,6 +20,7 @@ namespace model { FindCommentsByRangeItem::FindCommentsByRangeItem() { + m_CommentIsSet = false; m_ResultIsSet = false; } @@ -35,13 +36,13 @@ void FindCommentsByRangeItem::validate() web::json::value FindCommentsByRangeItem::toJson() const { web::json::value val = web::json::value::object(); - if(m_Comment.has_value()) - { + if(m_CommentIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment.get()); + val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_ResultIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("result"))] = ModelBase::toJson(m_Result); } @@ -84,9 +85,9 @@ void FindCommentsByRangeItem::toMultipart(std::shared_ptr mul { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_Comment.has_value()) + if(m_CommentIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } if(m_ResultIsSet) { @@ -121,23 +122,24 @@ bool FindCommentsByRangeItem::fromMultiPart(std::shared_ptr m std::shared_ptr FindCommentsByRangeItem::getComment() const { - return m_Comment.get(); + return m_Comment; } void FindCommentsByRangeItem::setComment(const std::shared_ptr& value) { m_Comment = value; + m_CommentIsSet = true; } bool FindCommentsByRangeItem::commentIsSet() const { - return m_Comment.has_value(); + return m_CommentIsSet; } void FindCommentsByRangeItem::unsetComment() { - m_Comment.reset(); + m_CommentIsSet = false; } std::shared_ptr FindCommentsByRangeItem::getResult() const { diff --git a/client/src/model/FindCommentsByRangeResponse.cpp b/client/src/model/FindCommentsByRangeResponse.cpp index 51765eb..3f2a270 100644 --- a/client/src/model/FindCommentsByRangeResponse.cpp +++ b/client/src/model/FindCommentsByRangeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value FindCommentsByRangeResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ResultsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("results"))] = ModelBase::toJson(m_Results); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } diff --git a/client/src/model/FlagCommentPublic_200_response.cpp b/client/src/model/FlagCommentPublic_200_response.cpp deleted file mode 100644 index f784f79..0000000 --- a/client/src/model/FlagCommentPublic_200_response.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/FlagCommentPublic_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -FlagCommentPublic_200_response::FlagCommentPublic_200_response() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -FlagCommentPublic_200_response::~FlagCommentPublic_200_response() -{ -} - -void FlagCommentPublic_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value FlagCommentPublic_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool FlagCommentPublic_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void FlagCommentPublic_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool FlagCommentPublic_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr FlagCommentPublic_200_response::getStatus() const -{ - return m_Status; -} - - -void FlagCommentPublic_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool FlagCommentPublic_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void FlagCommentPublic_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t FlagCommentPublic_200_response::getReason() const -{ - return m_Reason; -} - - -void FlagCommentPublic_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool FlagCommentPublic_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void FlagCommentPublic_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t FlagCommentPublic_200_response::getCode() const -{ - return m_Code; -} - - -void FlagCommentPublic_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool FlagCommentPublic_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void FlagCommentPublic_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t FlagCommentPublic_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void FlagCommentPublic_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool FlagCommentPublic_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void FlagCommentPublic_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t FlagCommentPublic_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void FlagCommentPublic_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool FlagCommentPublic_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void FlagCommentPublic_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t FlagCommentPublic_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void FlagCommentPublic_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool FlagCommentPublic_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void FlagCommentPublic_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t FlagCommentPublic_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void FlagCommentPublic_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool FlagCommentPublic_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void FlagCommentPublic_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr FlagCommentPublic_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void FlagCommentPublic_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool FlagCommentPublic_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void FlagCommentPublic_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/FlagCommentResponse.cpp b/client/src/model/FlagCommentResponse.cpp index e071454..67439e6 100644 --- a/client/src/model/FlagCommentResponse.cpp +++ b/client/src/model/FlagCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -44,27 +44,27 @@ web::json::value FlagCommentResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_WasUnapprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))] = ModelBase::toJson(m_WasUnapproved); } diff --git a/client/src/model/FlagComment_200_response.cpp b/client/src/model/FlagComment_200_response.cpp deleted file mode 100644 index 1261f91..0000000 --- a/client/src/model/FlagComment_200_response.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/FlagComment_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -FlagComment_200_response::FlagComment_200_response() -{ - m_StatusCode = 0; - m_StatusCodeIsSet = false; - m_StatusIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_WasUnapproved = false; - m_WasUnapprovedIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -FlagComment_200_response::~FlagComment_200_response() -{ -} - -void FlagComment_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value FlagComment_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_WasUnapprovedIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))] = ModelBase::toJson(m_WasUnapproved); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool FlagComment_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("statusCode"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setStatusCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatusCode); - setStatusCode(refVal_setStatusCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))); - if(!fieldValue.is_null()) - { - bool refVal_setWasUnapproved; - ok &= ModelBase::fromJson(fieldValue, refVal_setWasUnapproved); - setWasUnapproved(refVal_setWasUnapproved); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void FlagComment_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("statusCode")), m_StatusCode)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_WasUnapprovedIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")), m_WasUnapproved)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool FlagComment_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) - { - int32_t refVal_setStatusCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("statusCode"))), refVal_setStatusCode ); - setStatusCode(refVal_setStatusCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")))) - { - bool refVal_setWasUnapproved; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))), refVal_setWasUnapproved ); - setWasUnapproved(refVal_setWasUnapproved); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -int32_t FlagComment_200_response::getStatusCode() const -{ - return m_StatusCode; -} - -void FlagComment_200_response::setStatusCode(int32_t value) -{ - m_StatusCode = value; - m_StatusCodeIsSet = true; -} - -bool FlagComment_200_response::statusCodeIsSet() const -{ - return m_StatusCodeIsSet; -} - -void FlagComment_200_response::unsetStatusCode() -{ - m_StatusCodeIsSet = false; -} -std::shared_ptr FlagComment_200_response::getStatus() const -{ - return m_Status; -} - - -void FlagComment_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool FlagComment_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void FlagComment_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t FlagComment_200_response::getCode() const -{ - return m_Code; -} - - -void FlagComment_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool FlagComment_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void FlagComment_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t FlagComment_200_response::getReason() const -{ - return m_Reason; -} - - -void FlagComment_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool FlagComment_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void FlagComment_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -bool FlagComment_200_response::isWasUnapproved() const -{ - return m_WasUnapproved; -} - -void FlagComment_200_response::setWasUnapproved(bool value) -{ - m_WasUnapproved = value; - m_WasUnapprovedIsSet = true; -} - -bool FlagComment_200_response::wasUnapprovedIsSet() const -{ - return m_WasUnapprovedIsSet; -} - -void FlagComment_200_response::unsetWasUnapproved() -{ - m_WasUnapprovedIsSet = false; -} -utility::string_t FlagComment_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void FlagComment_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool FlagComment_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void FlagComment_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t FlagComment_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void FlagComment_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool FlagComment_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void FlagComment_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t FlagComment_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void FlagComment_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool FlagComment_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void FlagComment_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t FlagComment_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void FlagComment_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool FlagComment_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void FlagComment_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr FlagComment_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void FlagComment_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool FlagComment_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void FlagComment_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetAuditLogsResponse.cpp b/client/src/model/GetAuditLogsResponse.cpp index 53f03dd..d65ac37 100644 --- a/client/src/model/GetAuditLogsResponse.cpp +++ b/client/src/model/GetAuditLogsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetAuditLogsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_AuditLogsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("auditLogs"))] = ModelBase::toJson(m_AuditLogs); } diff --git a/client/src/model/GetAuditLogs_200_response.cpp b/client/src/model/GetAuditLogs_200_response.cpp deleted file mode 100644 index de7cb25..0000000 --- a/client/src/model/GetAuditLogs_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetAuditLogs_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetAuditLogs_200_response::GetAuditLogs_200_response() -{ - m_StatusIsSet = false; - m_AuditLogsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetAuditLogs_200_response::~GetAuditLogs_200_response() -{ -} - -void GetAuditLogs_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetAuditLogs_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_AuditLogsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("auditLogs"))] = ModelBase::toJson(m_AuditLogs); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetAuditLogs_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("auditLogs")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("auditLogs"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setAuditLogs; - ok &= ModelBase::fromJson(fieldValue, refVal_setAuditLogs); - setAuditLogs(refVal_setAuditLogs); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetAuditLogs_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_AuditLogsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("auditLogs")), m_AuditLogs)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetAuditLogs_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("auditLogs")))) - { - std::vector> refVal_setAuditLogs; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("auditLogs"))), refVal_setAuditLogs ); - setAuditLogs(refVal_setAuditLogs); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetAuditLogs_200_response::getStatus() const -{ - return m_Status; -} - - -void GetAuditLogs_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetAuditLogs_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetAuditLogs_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetAuditLogs_200_response::getAuditLogs() const -{ - return m_AuditLogs; -} - - -void GetAuditLogs_200_response::setAuditLogs(const std::vector>& value) -{ - m_AuditLogs = value; - m_AuditLogsIsSet = true; -} - -bool GetAuditLogs_200_response::auditLogsIsSet() const -{ - return m_AuditLogsIsSet; -} - -void GetAuditLogs_200_response::unsetAuditLogs() -{ - m_AuditLogsIsSet = false; -} -utility::string_t GetAuditLogs_200_response::getReason() const -{ - return m_Reason; -} - - -void GetAuditLogs_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetAuditLogs_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetAuditLogs_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetAuditLogs_200_response::getCode() const -{ - return m_Code; -} - - -void GetAuditLogs_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetAuditLogs_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetAuditLogs_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetAuditLogs_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetAuditLogs_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetAuditLogs_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetAuditLogs_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetAuditLogs_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetAuditLogs_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetAuditLogs_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetAuditLogs_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetAuditLogs_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetAuditLogs_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetAuditLogs_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetAuditLogs_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetAuditLogs_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetAuditLogs_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetAuditLogs_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetAuditLogs_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetAuditLogs_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetAuditLogs_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetAuditLogs_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetAuditLogs_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetBannedUsersCountResponse.cpp b/client/src/model/GetBannedUsersCountResponse.cpp new file mode 100644 index 0000000..5213a30 --- /dev/null +++ b/client/src/model/GetBannedUsersCountResponse.cpp @@ -0,0 +1,172 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetBannedUsersCountResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetBannedUsersCountResponse::GetBannedUsersCountResponse() +{ + m_TotalCount = 0.0; + m_TotalCountIsSet = false; + m_Status = utility::conversions::to_string_t(""); + m_StatusIsSet = false; +} + +GetBannedUsersCountResponse::~GetBannedUsersCountResponse() +{ +} + +void GetBannedUsersCountResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetBannedUsersCountResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_TotalCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("totalCount"))] = ModelBase::toJson(m_TotalCount); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GetBannedUsersCountResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("totalCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("totalCount"))); + if(!fieldValue.is_null()) + { + double refVal_setTotalCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setTotalCount); + setTotalCount(refVal_setTotalCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GetBannedUsersCountResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_TotalCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("totalCount")), m_TotalCount)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GetBannedUsersCountResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("totalCount")))) + { + double refVal_setTotalCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("totalCount"))), refVal_setTotalCount ); + setTotalCount(refVal_setTotalCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +double GetBannedUsersCountResponse::getTotalCount() const +{ + return m_TotalCount; +} + +void GetBannedUsersCountResponse::setTotalCount(double value) +{ + m_TotalCount = value; + m_TotalCountIsSet = true; +} + +bool GetBannedUsersCountResponse::totalCountIsSet() const +{ + return m_TotalCountIsSet; +} + +void GetBannedUsersCountResponse::unsetTotalCount() +{ + m_TotalCountIsSet = false; +} +utility::string_t GetBannedUsersCountResponse::getStatus() const +{ + return m_Status; +} + + +void GetBannedUsersCountResponse::setStatus(const utility::string_t& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetBannedUsersCountResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetBannedUsersCountResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetBannedUsersFromCommentResponse.cpp b/client/src/model/GetBannedUsersFromCommentResponse.cpp new file mode 100644 index 0000000..f83e1d3 --- /dev/null +++ b/client/src/model/GetBannedUsersFromCommentResponse.cpp @@ -0,0 +1,249 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetBannedUsersFromCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetBannedUsersFromCommentResponse::GetBannedUsersFromCommentResponse() +{ + m_BannedUsersIsSet = false; + m_CodeIsSet = false; + m_StatusIsSet = false; +} + +GetBannedUsersFromCommentResponse::~GetBannedUsersFromCommentResponse() +{ +} + +void GetBannedUsersFromCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetBannedUsersFromCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_BannedUsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUsers"))] = ModelBase::toJson(m_BannedUsers); + } + if(m_CodeIsSet) + { + + utility::string_t refVal = fromCodeEnum(m_Code); + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(refVal); + + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GetBannedUsersFromCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUsers")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUsers"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setBannedUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUsers); + setBannedUsers(refVal_setBannedUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + + setCode(toCodeEnum(refVal_setCode)); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GetBannedUsersFromCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_BannedUsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUsers")), m_BannedUsers)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), fromCodeEnum(m_Code))); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GetBannedUsersFromCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUsers")))) + { + std::vector> refVal_setBannedUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUsers"))), refVal_setBannedUsers ); + setBannedUsers(refVal_setBannedUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(toCodeEnum(refVal_setCode)); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + +GetBannedUsersFromCommentResponse::CodeEnum GetBannedUsersFromCommentResponse::toCodeEnum(const utility::string_t& value) const +{ + + if (value == utility::conversions::to_string_t("not-found")) { + return CodeEnum::NOT_FOUND; + } + + if (value == utility::conversions::to_string_t("not-logged-in")) { + return CodeEnum::NOT_LOGGED_IN; + } + + throw std::invalid_argument("Invalid value for conversion to CodeEnum"); +} + + +const utility::string_t GetBannedUsersFromCommentResponse::fromCodeEnum(const CodeEnum value) const +{ + switch(value) + { + + case CodeEnum::NOT_FOUND: return utility::conversions::to_string_t("not-found"); + + case CodeEnum::NOT_LOGGED_IN: return utility::conversions::to_string_t("not-logged-in"); + + } +} + + +std::vector> GetBannedUsersFromCommentResponse::getBannedUsers() const +{ + return m_BannedUsers; +} + + +void GetBannedUsersFromCommentResponse::setBannedUsers(const std::vector>& value) +{ + m_BannedUsers = value; + m_BannedUsersIsSet = true; +} + +bool GetBannedUsersFromCommentResponse::bannedUsersIsSet() const +{ + return m_BannedUsersIsSet; +} + +void GetBannedUsersFromCommentResponse::unsetBannedUsers() +{ + m_BannedUsersIsSet = false; +} +GetBannedUsersFromCommentResponse::CodeEnum GetBannedUsersFromCommentResponse::getCode() const +{ + return m_Code; +} + + +void GetBannedUsersFromCommentResponse::setCode(const CodeEnum value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetBannedUsersFromCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetBannedUsersFromCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +std::shared_ptr GetBannedUsersFromCommentResponse::getStatus() const +{ + return m_Status; +} + + +void GetBannedUsersFromCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetBannedUsersFromCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetBannedUsersFromCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCachedNotificationCountResponse.cpp b/client/src/model/GetCachedNotificationCountResponse.cpp index f255879..f6626c7 100644 --- a/client/src/model/GetCachedNotificationCountResponse.cpp +++ b/client/src/model/GetCachedNotificationCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetCachedNotificationCountResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_DataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); } diff --git a/client/src/model/GetCachedNotificationCount_200_response.cpp b/client/src/model/GetCachedNotificationCount_200_response.cpp deleted file mode 100644 index 0f28e64..0000000 --- a/client/src/model/GetCachedNotificationCount_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCachedNotificationCount_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCachedNotificationCount_200_response::GetCachedNotificationCount_200_response() -{ - m_StatusIsSet = false; - m_DataIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetCachedNotificationCount_200_response::~GetCachedNotificationCount_200_response() -{ -} - -void GetCachedNotificationCount_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetCachedNotificationCount_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_DataIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetCachedNotificationCount_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("data"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setData; - ok &= ModelBase::fromJson(fieldValue, refVal_setData); - setData(refVal_setData); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetCachedNotificationCount_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_DataIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("data")), m_Data)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetCachedNotificationCount_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - std::shared_ptr refVal_setData; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("data"))), refVal_setData ); - setData(refVal_setData); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetCachedNotificationCount_200_response::getStatus() const -{ - return m_Status; -} - - -void GetCachedNotificationCount_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCachedNotificationCount_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCachedNotificationCount_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetCachedNotificationCount_200_response::getData() const -{ - return m_Data; -} - - -void GetCachedNotificationCount_200_response::setData(const std::shared_ptr& value) -{ - m_Data = value; - m_DataIsSet = true; -} - -bool GetCachedNotificationCount_200_response::dataIsSet() const -{ - return m_DataIsSet; -} - -void GetCachedNotificationCount_200_response::unsetData() -{ - m_DataIsSet = false; -} -utility::string_t GetCachedNotificationCount_200_response::getReason() const -{ - return m_Reason; -} - - -void GetCachedNotificationCount_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCachedNotificationCount_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCachedNotificationCount_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCachedNotificationCount_200_response::getCode() const -{ - return m_Code; -} - - -void GetCachedNotificationCount_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCachedNotificationCount_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCachedNotificationCount_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCachedNotificationCount_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCachedNotificationCount_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCachedNotificationCount_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCachedNotificationCount_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCachedNotificationCount_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCachedNotificationCount_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCachedNotificationCount_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCachedNotificationCount_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCachedNotificationCount_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCachedNotificationCount_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCachedNotificationCount_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCachedNotificationCount_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCachedNotificationCount_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCachedNotificationCount_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCachedNotificationCount_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCachedNotificationCount_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetCachedNotificationCount_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCachedNotificationCount_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCachedNotificationCount_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCachedNotificationCount_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCommentBanStatusResponse.cpp b/client/src/model/GetCommentBanStatusResponse.cpp new file mode 100644 index 0000000..9337190 --- /dev/null +++ b/client/src/model/GetCommentBanStatusResponse.cpp @@ -0,0 +1,221 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCommentBanStatusResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCommentBanStatusResponse::GetCommentBanStatusResponse() +{ + m_Status = utility::conversions::to_string_t(""); + m_StatusIsSet = false; + m_EmailDomain = utility::conversions::to_string_t(""); + m_EmailDomainIsSet = false; + m_CanIPBan = false; + m_CanIPBanIsSet = false; +} + +GetCommentBanStatusResponse::~GetCommentBanStatusResponse() +{ +} + +void GetCommentBanStatusResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetCommentBanStatusResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_EmailDomainIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("emailDomain"))] = ModelBase::toJson(m_EmailDomain); + } + if(m_CanIPBanIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("canIPBan"))] = ModelBase::toJson(m_CanIPBan); + } + + return val; +} + +bool GetCommentBanStatusResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailDomain")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailDomain"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setEmailDomain; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmailDomain); + setEmailDomain(refVal_setEmailDomain); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("canIPBan")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("canIPBan"))); + if(!fieldValue.is_null()) + { + bool refVal_setCanIPBan; + ok &= ModelBase::fromJson(fieldValue, refVal_setCanIPBan); + setCanIPBan(refVal_setCanIPBan); + + } + } + return ok; +} + +void GetCommentBanStatusResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_EmailDomainIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailDomain")), m_EmailDomain)); + } + if(m_CanIPBanIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("canIPBan")), m_CanIPBan)); + } +} + +bool GetCommentBanStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailDomain")))) + { + utility::string_t refVal_setEmailDomain; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailDomain"))), refVal_setEmailDomain ); + setEmailDomain(refVal_setEmailDomain); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("canIPBan")))) + { + bool refVal_setCanIPBan; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("canIPBan"))), refVal_setCanIPBan ); + setCanIPBan(refVal_setCanIPBan); + } + return ok; +} + + +utility::string_t GetCommentBanStatusResponse::getStatus() const +{ + return m_Status; +} + + +void GetCommentBanStatusResponse::setStatus(const utility::string_t& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetCommentBanStatusResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetCommentBanStatusResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetCommentBanStatusResponse::getEmailDomain() const +{ + return m_EmailDomain; +} + + +void GetCommentBanStatusResponse::setEmailDomain(const utility::string_t& value) +{ + m_EmailDomain = value; + m_EmailDomainIsSet = true; +} + +bool GetCommentBanStatusResponse::emailDomainIsSet() const +{ + return m_EmailDomainIsSet; +} + +void GetCommentBanStatusResponse::unsetEmailDomain() +{ + m_EmailDomainIsSet = false; +} +bool GetCommentBanStatusResponse::isCanIPBan() const +{ + return m_CanIPBan; +} + +void GetCommentBanStatusResponse::setCanIPBan(bool value) +{ + m_CanIPBan = value; + m_CanIPBanIsSet = true; +} + +bool GetCommentBanStatusResponse::canIPBanIsSet() const +{ + return m_CanIPBanIsSet; +} + +void GetCommentBanStatusResponse::unsetCanIPBan() +{ + m_CanIPBanIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCommentTextResponse.cpp b/client/src/model/GetCommentTextResponse.cpp new file mode 100644 index 0000000..6d16aee --- /dev/null +++ b/client/src/model/GetCommentTextResponse.cpp @@ -0,0 +1,172 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCommentTextResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCommentTextResponse::GetCommentTextResponse() +{ + m_Comment = utility::conversions::to_string_t(""); + m_CommentIsSet = false; + m_StatusIsSet = false; +} + +GetCommentTextResponse::~GetCommentTextResponse() +{ +} + +void GetCommentTextResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetCommentTextResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GetCommentTextResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setComment; + ok &= ModelBase::fromJson(fieldValue, refVal_setComment); + setComment(refVal_setComment); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GetCommentTextResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GetCommentTextResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + utility::string_t refVal_setComment; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); + setComment(refVal_setComment); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +utility::string_t GetCommentTextResponse::getComment() const +{ + return m_Comment; +} + + +void GetCommentTextResponse::setComment(const utility::string_t& value) +{ + m_Comment = value; + m_CommentIsSet = true; +} + +bool GetCommentTextResponse::commentIsSet() const +{ + return m_CommentIsSet; +} + +void GetCommentTextResponse::unsetComment() +{ + m_CommentIsSet = false; +} +std::shared_ptr GetCommentTextResponse::getStatus() const +{ + return m_Status; +} + + +void GetCommentTextResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetCommentTextResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetCommentTextResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCommentText_200_response.cpp b/client/src/model/GetCommentText_200_response.cpp deleted file mode 100644 index 32ff9d4..0000000 --- a/client/src/model/GetCommentText_200_response.cpp +++ /dev/null @@ -1,561 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCommentText_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCommentText_200_response::GetCommentText_200_response() -{ - m_StatusIsSet = false; - m_CommentText = utility::conversions::to_string_t(""); - m_CommentTextIsSet = false; - m_SanitizedCommentText = utility::conversions::to_string_t(""); - m_SanitizedCommentTextIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetCommentText_200_response::~GetCommentText_200_response() -{ -} - -void GetCommentText_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetCommentText_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentTextIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentText"))] = ModelBase::toJson(m_CommentText); - } - if(m_SanitizedCommentTextIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText"))] = ModelBase::toJson(m_SanitizedCommentText); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetCommentText_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentText")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentText"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCommentText; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentText); - setCommentText(refVal_setCommentText); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSanitizedCommentText; - ok &= ModelBase::fromJson(fieldValue, refVal_setSanitizedCommentText); - setSanitizedCommentText(refVal_setSanitizedCommentText); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetCommentText_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentTextIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentText")), m_CommentText)); - } - if(m_SanitizedCommentTextIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText")), m_SanitizedCommentText)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetCommentText_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentText")))) - { - utility::string_t refVal_setCommentText; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentText"))), refVal_setCommentText ); - setCommentText(refVal_setCommentText); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText")))) - { - utility::string_t refVal_setSanitizedCommentText; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText"))), refVal_setSanitizedCommentText ); - setSanitizedCommentText(refVal_setSanitizedCommentText); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetCommentText_200_response::getStatus() const -{ - return m_Status; -} - - -void GetCommentText_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCommentText_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCommentText_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetCommentText_200_response::getCommentText() const -{ - return m_CommentText; -} - - -void GetCommentText_200_response::setCommentText(const utility::string_t& value) -{ - m_CommentText = value; - m_CommentTextIsSet = true; -} - -bool GetCommentText_200_response::commentTextIsSet() const -{ - return m_CommentTextIsSet; -} - -void GetCommentText_200_response::unsetCommentText() -{ - m_CommentTextIsSet = false; -} -utility::string_t GetCommentText_200_response::getSanitizedCommentText() const -{ - return m_SanitizedCommentText; -} - - -void GetCommentText_200_response::setSanitizedCommentText(const utility::string_t& value) -{ - m_SanitizedCommentText = value; - m_SanitizedCommentTextIsSet = true; -} - -bool GetCommentText_200_response::sanitizedCommentTextIsSet() const -{ - return m_SanitizedCommentTextIsSet; -} - -void GetCommentText_200_response::unsetSanitizedCommentText() -{ - m_SanitizedCommentTextIsSet = false; -} -utility::string_t GetCommentText_200_response::getReason() const -{ - return m_Reason; -} - - -void GetCommentText_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCommentText_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCommentText_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCommentText_200_response::getCode() const -{ - return m_Code; -} - - -void GetCommentText_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCommentText_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCommentText_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCommentText_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCommentText_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCommentText_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCommentText_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCommentText_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCommentText_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCommentText_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCommentText_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCommentText_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCommentText_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCommentText_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCommentText_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCommentText_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCommentText_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCommentText_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCommentText_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetCommentText_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCommentText_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCommentText_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCommentText_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCommentVoteUserNamesSuccessResponse.cpp b/client/src/model/GetCommentVoteUserNamesSuccessResponse.cpp index 9f08d66..5732204 100644 --- a/client/src/model/GetCommentVoteUserNamesSuccessResponse.cpp +++ b/client/src/model/GetCommentVoteUserNamesSuccessResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value GetCommentVoteUserNamesSuccessResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_VoteUserNamesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("voteUserNames"))] = ModelBase::toJson(m_VoteUserNames); } if(m_HasMoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); } diff --git a/client/src/model/GetCommentVoteUserNames_200_response.cpp b/client/src/model/GetCommentVoteUserNames_200_response.cpp deleted file mode 100644 index 5cb12da..0000000 --- a/client/src/model/GetCommentVoteUserNames_200_response.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCommentVoteUserNames_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCommentVoteUserNames_200_response::GetCommentVoteUserNames_200_response() -{ - m_StatusIsSet = false; - m_VoteUserNamesIsSet = false; - m_HasMore = false; - m_HasMoreIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetCommentVoteUserNames_200_response::~GetCommentVoteUserNames_200_response() -{ -} - -void GetCommentVoteUserNames_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetCommentVoteUserNames_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_VoteUserNamesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("voteUserNames"))] = ModelBase::toJson(m_VoteUserNames); - } - if(m_HasMoreIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetCommentVoteUserNames_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("voteUserNames")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("voteUserNames"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setVoteUserNames; - ok &= ModelBase::fromJson(fieldValue, refVal_setVoteUserNames); - setVoteUserNames(refVal_setVoteUserNames); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasMore"))); - if(!fieldValue.is_null()) - { - bool refVal_setHasMore; - ok &= ModelBase::fromJson(fieldValue, refVal_setHasMore); - setHasMore(refVal_setHasMore); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetCommentVoteUserNames_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_VoteUserNamesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("voteUserNames")), m_VoteUserNames)); - } - if(m_HasMoreIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasMore")), m_HasMore)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetCommentVoteUserNames_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("voteUserNames")))) - { - std::vector refVal_setVoteUserNames; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("voteUserNames"))), refVal_setVoteUserNames ); - setVoteUserNames(refVal_setVoteUserNames); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - bool refVal_setHasMore; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasMore"))), refVal_setHasMore ); - setHasMore(refVal_setHasMore); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetCommentVoteUserNames_200_response::getStatus() const -{ - return m_Status; -} - - -void GetCommentVoteUserNames_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCommentVoteUserNames_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCommentVoteUserNames_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector GetCommentVoteUserNames_200_response::getVoteUserNames() const -{ - return m_VoteUserNames; -} - - -void GetCommentVoteUserNames_200_response::setVoteUserNames(const std::vector& value) -{ - m_VoteUserNames = value; - m_VoteUserNamesIsSet = true; -} - -bool GetCommentVoteUserNames_200_response::voteUserNamesIsSet() const -{ - return m_VoteUserNamesIsSet; -} - -void GetCommentVoteUserNames_200_response::unsetVoteUserNames() -{ - m_VoteUserNamesIsSet = false; -} -bool GetCommentVoteUserNames_200_response::isHasMore() const -{ - return m_HasMore; -} - -void GetCommentVoteUserNames_200_response::setHasMore(bool value) -{ - m_HasMore = value; - m_HasMoreIsSet = true; -} - -bool GetCommentVoteUserNames_200_response::hasMoreIsSet() const -{ - return m_HasMoreIsSet; -} - -void GetCommentVoteUserNames_200_response::unsetHasMore() -{ - m_HasMoreIsSet = false; -} -utility::string_t GetCommentVoteUserNames_200_response::getReason() const -{ - return m_Reason; -} - - -void GetCommentVoteUserNames_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCommentVoteUserNames_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCommentVoteUserNames_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCommentVoteUserNames_200_response::getCode() const -{ - return m_Code; -} - - -void GetCommentVoteUserNames_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCommentVoteUserNames_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCommentVoteUserNames_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCommentVoteUserNames_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCommentVoteUserNames_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCommentVoteUserNames_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCommentVoteUserNames_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCommentVoteUserNames_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCommentVoteUserNames_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCommentVoteUserNames_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCommentVoteUserNames_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCommentVoteUserNames_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCommentVoteUserNames_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCommentVoteUserNames_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCommentVoteUserNames_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCommentVoteUserNames_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCommentVoteUserNames_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCommentVoteUserNames_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCommentVoteUserNames_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetCommentVoteUserNames_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCommentVoteUserNames_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCommentVoteUserNames_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCommentVoteUserNames_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetComment_200_response.cpp b/client/src/model/GetComment_200_response.cpp deleted file mode 100644 index 09a0b66..0000000 --- a/client/src/model/GetComment_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetComment_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetComment_200_response::GetComment_200_response() -{ - m_StatusIsSet = false; - m_CommentIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetComment_200_response::~GetComment_200_response() -{ -} - -void GetComment_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetComment_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetComment_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromJson(fieldValue, refVal_setComment); - setComment(refVal_setComment); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetComment_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetComment_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); - setComment(refVal_setComment); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetComment_200_response::getStatus() const -{ - return m_Status; -} - - -void GetComment_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetComment_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetComment_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetComment_200_response::getComment() const -{ - return m_Comment; -} - - -void GetComment_200_response::setComment(const std::shared_ptr& value) -{ - m_Comment = value; - m_CommentIsSet = true; -} - -bool GetComment_200_response::commentIsSet() const -{ - return m_CommentIsSet; -} - -void GetComment_200_response::unsetComment() -{ - m_CommentIsSet = false; -} -utility::string_t GetComment_200_response::getReason() const -{ - return m_Reason; -} - - -void GetComment_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetComment_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetComment_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetComment_200_response::getCode() const -{ - return m_Code; -} - - -void GetComment_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetComment_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetComment_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetComment_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetComment_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetComment_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetComment_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetComment_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetComment_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetComment_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetComment_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetComment_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetComment_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetComment_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetComment_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetComment_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetComment_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetComment_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetComment_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetComment_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetComment_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetComment_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetComment_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCommentsForUserResponse.cpp b/client/src/model/GetCommentsForUserResponse.cpp new file mode 100644 index 0000000..cbdce94 --- /dev/null +++ b/client/src/model/GetCommentsForUserResponse.cpp @@ -0,0 +1,123 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCommentsForUserResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCommentsForUserResponse::GetCommentsForUserResponse() +{ + m_ModeratingTenantIdsIsSet = false; +} + +GetCommentsForUserResponse::~GetCommentsForUserResponse() +{ +} + +void GetCommentsForUserResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetCommentsForUserResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ModeratingTenantIdsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds"))] = ModelBase::toJson(m_ModeratingTenantIds); + } + + return val; +} + +bool GetCommentsForUserResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setModeratingTenantIds; + ok &= ModelBase::fromJson(fieldValue, refVal_setModeratingTenantIds); + setModeratingTenantIds(refVal_setModeratingTenantIds); + + } + } + return ok; +} + +void GetCommentsForUserResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ModeratingTenantIdsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds")), m_ModeratingTenantIds)); + } +} + +bool GetCommentsForUserResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds")))) + { + std::vector refVal_setModeratingTenantIds; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds"))), refVal_setModeratingTenantIds ); + setModeratingTenantIds(refVal_setModeratingTenantIds); + } + return ok; +} + + +std::vector GetCommentsForUserResponse::getModeratingTenantIds() const +{ + return m_ModeratingTenantIds; +} + + +void GetCommentsForUserResponse::setModeratingTenantIds(const std::vector& value) +{ + m_ModeratingTenantIds = value; + m_ModeratingTenantIdsIsSet = true; +} + +bool GetCommentsForUserResponse::moderatingTenantIdsIsSet() const +{ + return m_ModeratingTenantIdsIsSet; +} + +void GetCommentsForUserResponse::unsetModeratingTenantIds() +{ + m_ModeratingTenantIdsIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCommentsPublic_200_response.cpp b/client/src/model/GetCommentsPublic_200_response.cpp deleted file mode 100644 index 4eff151..0000000 --- a/client/src/model/GetCommentsPublic_200_response.cpp +++ /dev/null @@ -1,1567 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCommentsPublic_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCommentsPublic_200_response::GetCommentsPublic_200_response() -{ - m_StatusCode = 0; - m_StatusCodeIsSet = false; - m_StatusIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_TranslatedWarning = utility::conversions::to_string_t(""); - m_TranslatedWarningIsSet = false; - m_CommentsIsSet = false; - m_UrlIdClean = utility::conversions::to_string_t(""); - m_UrlIdCleanIsSet = false; - m_IncludesPastPages = false; - m_IncludesPastPagesIsSet = false; - m_IsDemo = false; - m_IsDemoIsSet = false; - m_CommentCount = 0; - m_CommentCountIsSet = false; - m_IsSiteAdmin = false; - m_IsSiteAdminIsSet = false; - m_HasBillingIssue = false; - m_HasBillingIssueIsSet = false; - m_ModuleDataIsSet = false; - m_PageNumber = 0; - m_PageNumberIsSet = false; - m_IsWhiteLabeled = false; - m_IsWhiteLabeledIsSet = false; - m_IsProd = false; - m_IsProdIsSet = false; - m_IsCrawler = false; - m_IsCrawlerIsSet = false; - m_NotificationCount = 0; - m_NotificationCountIsSet = false; - m_HasMore = false; - m_HasMoreIsSet = false; - m_IsClosed = false; - m_IsClosedIsSet = false; - m_PresencePollState = 0; - m_PresencePollStateIsSet = false; - m_CustomConfigIsSet = false; - m_UrlIdWS = utility::conversions::to_string_t(""); - m_UrlIdWSIsSet = false; - m_UserIdWS = utility::conversions::to_string_t(""); - m_UserIdWSIsSet = false; - m_TenantIdWS = utility::conversions::to_string_t(""); - m_TenantIdWSIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; -} - -GetCommentsPublic_200_response::~GetCommentsPublic_200_response() -{ -} - -void GetCommentsPublic_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetCommentsPublic_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_TranslatedWarningIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedWarning"))] = ModelBase::toJson(m_TranslatedWarning); - } - if(m_CommentsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); - } - if(m_User.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); - } - if(m_UrlIdCleanIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("urlIdClean"))] = ModelBase::toJson(m_UrlIdClean); - } - if(m_LastGenDate.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))] = ModelBase::toJson(m_LastGenDate.get()); - } - if(m_IncludesPastPagesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("includesPastPages"))] = ModelBase::toJson(m_IncludesPastPages); - } - if(m_IsDemoIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isDemo"))] = ModelBase::toJson(m_IsDemo); - } - if(m_CommentCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); - } - if(m_IsSiteAdminIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))] = ModelBase::toJson(m_IsSiteAdmin); - } - if(m_HasBillingIssueIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue"))] = ModelBase::toJson(m_HasBillingIssue); - } - if(m_ModuleDataIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); - } - if(m_PageNumberIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("pageNumber"))] = ModelBase::toJson(m_PageNumber); - } - if(m_IsWhiteLabeledIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled"))] = ModelBase::toJson(m_IsWhiteLabeled); - } - if(m_IsProdIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isProd"))] = ModelBase::toJson(m_IsProd); - } - if(m_IsCrawlerIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isCrawler"))] = ModelBase::toJson(m_IsCrawler); - } - if(m_NotificationCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("notificationCount"))] = ModelBase::toJson(m_NotificationCount); - } - if(m_HasMoreIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); - } - if(m_IsClosedIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isClosed"))] = ModelBase::toJson(m_IsClosed); - } - if(m_PresencePollStateIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("presencePollState"))] = ModelBase::toJson(m_PresencePollState); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - if(m_UrlIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); - } - if(m_UserIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); - } - if(m_TenantIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))] = ModelBase::toJson(m_TenantIdWS); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - - return val; -} - -bool GetCommentsPublic_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("statusCode"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setStatusCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatusCode); - setStatusCode(refVal_setStatusCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedWarning")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedWarning"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedWarning; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedWarning); - setTranslatedWarning(refVal_setTranslatedWarning); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromJson(fieldValue, refVal_setComments); - setComments(refVal_setComments); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setUser); - setUser(refVal_setUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlIdClean")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlIdClean"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setUrlIdClean; - ok &= ModelBase::fromJson(fieldValue, refVal_setUrlIdClean); - setUrlIdClean(refVal_setUrlIdClean); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("lastGenDate")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setLastGenDate; - ok &= ModelBase::fromJson(fieldValue, refVal_setLastGenDate); - setLastGenDate(refVal_setLastGenDate); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("includesPastPages")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("includesPastPages"))); - if(!fieldValue.is_null()) - { - bool refVal_setIncludesPastPages; - ok &= ModelBase::fromJson(fieldValue, refVal_setIncludesPastPages); - setIncludesPastPages(refVal_setIncludesPastPages); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isDemo")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isDemo"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsDemo; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsDemo); - setIsDemo(refVal_setIsDemo); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentCount"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setCommentCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentCount); - setCommentCount(refVal_setCommentCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsSiteAdmin; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsSiteAdmin); - setIsSiteAdmin(refVal_setIsSiteAdmin); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue"))); - if(!fieldValue.is_null()) - { - bool refVal_setHasBillingIssue; - ok &= ModelBase::fromJson(fieldValue, refVal_setHasBillingIssue); - setHasBillingIssue(refVal_setHasBillingIssue); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moduleData"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setModuleData; - ok &= ModelBase::fromJson(fieldValue, refVal_setModuleData); - setModuleData(refVal_setModuleData); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pageNumber")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pageNumber"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setPageNumber; - ok &= ModelBase::fromJson(fieldValue, refVal_setPageNumber); - setPageNumber(refVal_setPageNumber); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsWhiteLabeled; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsWhiteLabeled); - setIsWhiteLabeled(refVal_setIsWhiteLabeled); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isProd")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isProd"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsProd; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsProd); - setIsProd(refVal_setIsProd); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isCrawler")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isCrawler"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsCrawler; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsCrawler); - setIsCrawler(refVal_setIsCrawler); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notificationCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notificationCount"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setNotificationCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setNotificationCount); - setNotificationCount(refVal_setNotificationCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasMore"))); - if(!fieldValue.is_null()) - { - bool refVal_setHasMore; - ok &= ModelBase::fromJson(fieldValue, refVal_setHasMore); - setHasMore(refVal_setHasMore); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isClosed")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isClosed"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsClosed; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsClosed); - setIsClosed(refVal_setIsClosed); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("presencePollState")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("presencePollState"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setPresencePollState; - ok &= ModelBase::fromJson(fieldValue, refVal_setPresencePollState); - setPresencePollState(refVal_setPresencePollState); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setUrlIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setUrlIdWS); - setUrlIdWS(refVal_setUrlIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setUserIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserIdWS); - setUserIdWS(refVal_setUserIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTenantIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantIdWS); - setTenantIdWS(refVal_setTenantIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - return ok; -} - -void GetCommentsPublic_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("statusCode")), m_StatusCode)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_TranslatedWarningIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedWarning")), m_TranslatedWarning)); - } - if(m_CommentsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); - } - if(m_User.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); - } - if(m_UrlIdCleanIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdClean")), m_UrlIdClean)); - } - if(m_LastGenDate.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastGenDate")), m_LastGenDate.get())); - } - if(m_IncludesPastPagesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("includesPastPages")), m_IncludesPastPages)); - } - if(m_IsDemoIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isDemo")), m_IsDemo)); - } - if(m_CommentCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount)); - } - if(m_IsSiteAdminIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin")), m_IsSiteAdmin)); - } - if(m_HasBillingIssueIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue")), m_HasBillingIssue)); - } - if(m_ModuleDataIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moduleData")), m_ModuleData)); - } - if(m_PageNumberIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumber")), m_PageNumber)); - } - if(m_IsWhiteLabeledIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled")), m_IsWhiteLabeled)); - } - if(m_IsProdIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isProd")), m_IsProd)); - } - if(m_IsCrawlerIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isCrawler")), m_IsCrawler)); - } - if(m_NotificationCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notificationCount")), m_NotificationCount)); - } - if(m_HasMoreIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasMore")), m_HasMore)); - } - if(m_IsClosedIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isClosed")), m_IsClosed)); - } - if(m_PresencePollStateIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("presencePollState")), m_PresencePollState)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } - if(m_UrlIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdWS")), m_UrlIdWS)); - } - if(m_UserIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIdWS")), m_UserIdWS)); - } - if(m_TenantIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")), m_TenantIdWS)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } -} - -bool GetCommentsPublic_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) - { - int32_t refVal_setStatusCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("statusCode"))), refVal_setStatusCode ); - setStatusCode(refVal_setStatusCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedWarning")))) - { - utility::string_t refVal_setTranslatedWarning; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedWarning"))), refVal_setTranslatedWarning ); - setTranslatedWarning(refVal_setTranslatedWarning); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); - setComments(refVal_setComments); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); - setUser(refVal_setUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlIdClean")))) - { - utility::string_t refVal_setUrlIdClean; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlIdClean"))), refVal_setUrlIdClean ); - setUrlIdClean(refVal_setUrlIdClean); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("lastGenDate")))) - { - int64_t refVal_setLastGenDate; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))), refVal_setLastGenDate ); - setLastGenDate(refVal_setLastGenDate); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("includesPastPages")))) - { - bool refVal_setIncludesPastPages; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("includesPastPages"))), refVal_setIncludesPastPages ); - setIncludesPastPages(refVal_setIncludesPastPages); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isDemo")))) - { - bool refVal_setIsDemo; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isDemo"))), refVal_setIsDemo ); - setIsDemo(refVal_setIsDemo); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) - { - int32_t refVal_setCommentCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentCount"))), refVal_setCommentCount ); - setCommentCount(refVal_setCommentCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin")))) - { - bool refVal_setIsSiteAdmin; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))), refVal_setIsSiteAdmin ); - setIsSiteAdmin(refVal_setIsSiteAdmin); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue")))) - { - bool refVal_setHasBillingIssue; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue"))), refVal_setHasBillingIssue ); - setHasBillingIssue(refVal_setHasBillingIssue); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) - { - std::map> refVal_setModuleData; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moduleData"))), refVal_setModuleData ); - setModuleData(refVal_setModuleData); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pageNumber")))) - { - int32_t refVal_setPageNumber; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pageNumber"))), refVal_setPageNumber ); - setPageNumber(refVal_setPageNumber); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled")))) - { - bool refVal_setIsWhiteLabeled; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled"))), refVal_setIsWhiteLabeled ); - setIsWhiteLabeled(refVal_setIsWhiteLabeled); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isProd")))) - { - bool refVal_setIsProd; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isProd"))), refVal_setIsProd ); - setIsProd(refVal_setIsProd); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isCrawler")))) - { - bool refVal_setIsCrawler; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isCrawler"))), refVal_setIsCrawler ); - setIsCrawler(refVal_setIsCrawler); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notificationCount")))) - { - int32_t refVal_setNotificationCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notificationCount"))), refVal_setNotificationCount ); - setNotificationCount(refVal_setNotificationCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - bool refVal_setHasMore; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasMore"))), refVal_setHasMore ); - setHasMore(refVal_setHasMore); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isClosed")))) - { - bool refVal_setIsClosed; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isClosed"))), refVal_setIsClosed ); - setIsClosed(refVal_setIsClosed); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("presencePollState")))) - { - int32_t refVal_setPresencePollState; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("presencePollState"))), refVal_setPresencePollState ); - setPresencePollState(refVal_setPresencePollState); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) - { - utility::string_t refVal_setUrlIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))), refVal_setUrlIdWS ); - setUrlIdWS(refVal_setUrlIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) - { - utility::string_t refVal_setUserIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))), refVal_setUserIdWS ); - setUserIdWS(refVal_setUserIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")))) - { - utility::string_t refVal_setTenantIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))), refVal_setTenantIdWS ); - setTenantIdWS(refVal_setTenantIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - return ok; -} - - -int32_t GetCommentsPublic_200_response::getStatusCode() const -{ - return m_StatusCode; -} - -void GetCommentsPublic_200_response::setStatusCode(int32_t value) -{ - m_StatusCode = value; - m_StatusCodeIsSet = true; -} - -bool GetCommentsPublic_200_response::statusCodeIsSet() const -{ - return m_StatusCodeIsSet; -} - -void GetCommentsPublic_200_response::unsetStatusCode() -{ - m_StatusCodeIsSet = false; -} -std::shared_ptr GetCommentsPublic_200_response::getStatus() const -{ - return m_Status; -} - - -void GetCommentsPublic_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCommentsPublic_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCommentsPublic_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetCommentsPublic_200_response::getCode() const -{ - return m_Code; -} - - -void GetCommentsPublic_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCommentsPublic_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCommentsPublic_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCommentsPublic_200_response::getReason() const -{ - return m_Reason; -} - - -void GetCommentsPublic_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCommentsPublic_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCommentsPublic_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCommentsPublic_200_response::getTranslatedWarning() const -{ - return m_TranslatedWarning; -} - - -void GetCommentsPublic_200_response::setTranslatedWarning(const utility::string_t& value) -{ - m_TranslatedWarning = value; - m_TranslatedWarningIsSet = true; -} - -bool GetCommentsPublic_200_response::translatedWarningIsSet() const -{ - return m_TranslatedWarningIsSet; -} - -void GetCommentsPublic_200_response::unsetTranslatedWarning() -{ - m_TranslatedWarningIsSet = false; -} -std::vector> GetCommentsPublic_200_response::getComments() const -{ - return m_Comments; -} - - -void GetCommentsPublic_200_response::setComments(const std::vector>& value) -{ - m_Comments = value; - m_CommentsIsSet = true; -} - -bool GetCommentsPublic_200_response::commentsIsSet() const -{ - return m_CommentsIsSet; -} - -void GetCommentsPublic_200_response::unsetComments() -{ - m_CommentsIsSet = false; -} -std::shared_ptr GetCommentsPublic_200_response::getUser() const -{ - return m_User.get(); -} - - -void GetCommentsPublic_200_response::setUser(const std::shared_ptr& value) -{ - m_User = value; -} - -bool GetCommentsPublic_200_response::userIsSet() const -{ - return m_User.has_value(); -} - -void GetCommentsPublic_200_response::unsetUser() -{ - m_User.reset(); -} -utility::string_t GetCommentsPublic_200_response::getUrlIdClean() const -{ - return m_UrlIdClean; -} - - -void GetCommentsPublic_200_response::setUrlIdClean(const utility::string_t& value) -{ - m_UrlIdClean = value; - m_UrlIdCleanIsSet = true; -} - -bool GetCommentsPublic_200_response::urlIdCleanIsSet() const -{ - return m_UrlIdCleanIsSet; -} - -void GetCommentsPublic_200_response::unsetUrlIdClean() -{ - m_UrlIdCleanIsSet = false; -} -int64_t GetCommentsPublic_200_response::getLastGenDate() const -{ - return m_LastGenDate.get(); -} - -void GetCommentsPublic_200_response::setLastGenDate(int64_t value) -{ - m_LastGenDate = value; -} - -bool GetCommentsPublic_200_response::lastGenDateIsSet() const -{ - return m_LastGenDate.has_value(); -} - -void GetCommentsPublic_200_response::unsetLastGenDate() -{ - m_LastGenDate.reset(); -} -bool GetCommentsPublic_200_response::isIncludesPastPages() const -{ - return m_IncludesPastPages; -} - -void GetCommentsPublic_200_response::setIncludesPastPages(bool value) -{ - m_IncludesPastPages = value; - m_IncludesPastPagesIsSet = true; -} - -bool GetCommentsPublic_200_response::includesPastPagesIsSet() const -{ - return m_IncludesPastPagesIsSet; -} - -void GetCommentsPublic_200_response::unsetIncludesPastPages() -{ - m_IncludesPastPagesIsSet = false; -} -bool GetCommentsPublic_200_response::isIsDemo() const -{ - return m_IsDemo; -} - -void GetCommentsPublic_200_response::setIsDemo(bool value) -{ - m_IsDemo = value; - m_IsDemoIsSet = true; -} - -bool GetCommentsPublic_200_response::isDemoIsSet() const -{ - return m_IsDemoIsSet; -} - -void GetCommentsPublic_200_response::unsetIsDemo() -{ - m_IsDemoIsSet = false; -} -int32_t GetCommentsPublic_200_response::getCommentCount() const -{ - return m_CommentCount; -} - -void GetCommentsPublic_200_response::setCommentCount(int32_t value) -{ - m_CommentCount = value; - m_CommentCountIsSet = true; -} - -bool GetCommentsPublic_200_response::commentCountIsSet() const -{ - return m_CommentCountIsSet; -} - -void GetCommentsPublic_200_response::unsetCommentCount() -{ - m_CommentCountIsSet = false; -} -bool GetCommentsPublic_200_response::isIsSiteAdmin() const -{ - return m_IsSiteAdmin; -} - -void GetCommentsPublic_200_response::setIsSiteAdmin(bool value) -{ - m_IsSiteAdmin = value; - m_IsSiteAdminIsSet = true; -} - -bool GetCommentsPublic_200_response::isSiteAdminIsSet() const -{ - return m_IsSiteAdminIsSet; -} - -void GetCommentsPublic_200_response::unsetIsSiteAdmin() -{ - m_IsSiteAdminIsSet = false; -} -bool GetCommentsPublic_200_response::isHasBillingIssue() const -{ - return m_HasBillingIssue; -} - -void GetCommentsPublic_200_response::setHasBillingIssue(bool value) -{ - m_HasBillingIssue = value; - m_HasBillingIssueIsSet = true; -} - -bool GetCommentsPublic_200_response::hasBillingIssueIsSet() const -{ - return m_HasBillingIssueIsSet; -} - -void GetCommentsPublic_200_response::unsetHasBillingIssue() -{ - m_HasBillingIssueIsSet = false; -} -std::map> GetCommentsPublic_200_response::getModuleData() const -{ - return m_ModuleData; -} - - -void GetCommentsPublic_200_response::setModuleData(const std::map>& value) -{ - m_ModuleData = value; - m_ModuleDataIsSet = true; -} - -bool GetCommentsPublic_200_response::moduleDataIsSet() const -{ - return m_ModuleDataIsSet; -} - -void GetCommentsPublic_200_response::unsetModuleData() -{ - m_ModuleDataIsSet = false; -} -int32_t GetCommentsPublic_200_response::getPageNumber() const -{ - return m_PageNumber; -} - -void GetCommentsPublic_200_response::setPageNumber(int32_t value) -{ - m_PageNumber = value; - m_PageNumberIsSet = true; -} - -bool GetCommentsPublic_200_response::pageNumberIsSet() const -{ - return m_PageNumberIsSet; -} - -void GetCommentsPublic_200_response::unsetPageNumber() -{ - m_PageNumberIsSet = false; -} -bool GetCommentsPublic_200_response::isIsWhiteLabeled() const -{ - return m_IsWhiteLabeled; -} - -void GetCommentsPublic_200_response::setIsWhiteLabeled(bool value) -{ - m_IsWhiteLabeled = value; - m_IsWhiteLabeledIsSet = true; -} - -bool GetCommentsPublic_200_response::isWhiteLabeledIsSet() const -{ - return m_IsWhiteLabeledIsSet; -} - -void GetCommentsPublic_200_response::unsetIsWhiteLabeled() -{ - m_IsWhiteLabeledIsSet = false; -} -bool GetCommentsPublic_200_response::isIsProd() const -{ - return m_IsProd; -} - -void GetCommentsPublic_200_response::setIsProd(bool value) -{ - m_IsProd = value; - m_IsProdIsSet = true; -} - -bool GetCommentsPublic_200_response::isProdIsSet() const -{ - return m_IsProdIsSet; -} - -void GetCommentsPublic_200_response::unsetIsProd() -{ - m_IsProdIsSet = false; -} -bool GetCommentsPublic_200_response::isIsCrawler() const -{ - return m_IsCrawler; -} - -void GetCommentsPublic_200_response::setIsCrawler(bool value) -{ - m_IsCrawler = value; - m_IsCrawlerIsSet = true; -} - -bool GetCommentsPublic_200_response::isCrawlerIsSet() const -{ - return m_IsCrawlerIsSet; -} - -void GetCommentsPublic_200_response::unsetIsCrawler() -{ - m_IsCrawlerIsSet = false; -} -int32_t GetCommentsPublic_200_response::getNotificationCount() const -{ - return m_NotificationCount; -} - -void GetCommentsPublic_200_response::setNotificationCount(int32_t value) -{ - m_NotificationCount = value; - m_NotificationCountIsSet = true; -} - -bool GetCommentsPublic_200_response::notificationCountIsSet() const -{ - return m_NotificationCountIsSet; -} - -void GetCommentsPublic_200_response::unsetNotificationCount() -{ - m_NotificationCountIsSet = false; -} -bool GetCommentsPublic_200_response::isHasMore() const -{ - return m_HasMore; -} - -void GetCommentsPublic_200_response::setHasMore(bool value) -{ - m_HasMore = value; - m_HasMoreIsSet = true; -} - -bool GetCommentsPublic_200_response::hasMoreIsSet() const -{ - return m_HasMoreIsSet; -} - -void GetCommentsPublic_200_response::unsetHasMore() -{ - m_HasMoreIsSet = false; -} -bool GetCommentsPublic_200_response::isIsClosed() const -{ - return m_IsClosed; -} - -void GetCommentsPublic_200_response::setIsClosed(bool value) -{ - m_IsClosed = value; - m_IsClosedIsSet = true; -} - -bool GetCommentsPublic_200_response::isClosedIsSet() const -{ - return m_IsClosedIsSet; -} - -void GetCommentsPublic_200_response::unsetIsClosed() -{ - m_IsClosedIsSet = false; -} -int32_t GetCommentsPublic_200_response::getPresencePollState() const -{ - return m_PresencePollState; -} - -void GetCommentsPublic_200_response::setPresencePollState(int32_t value) -{ - m_PresencePollState = value; - m_PresencePollStateIsSet = true; -} - -bool GetCommentsPublic_200_response::presencePollStateIsSet() const -{ - return m_PresencePollStateIsSet; -} - -void GetCommentsPublic_200_response::unsetPresencePollState() -{ - m_PresencePollStateIsSet = false; -} -std::shared_ptr GetCommentsPublic_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCommentsPublic_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCommentsPublic_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCommentsPublic_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} -utility::string_t GetCommentsPublic_200_response::getUrlIdWS() const -{ - return m_UrlIdWS; -} - - -void GetCommentsPublic_200_response::setUrlIdWS(const utility::string_t& value) -{ - m_UrlIdWS = value; - m_UrlIdWSIsSet = true; -} - -bool GetCommentsPublic_200_response::urlIdWSIsSet() const -{ - return m_UrlIdWSIsSet; -} - -void GetCommentsPublic_200_response::unsetUrlIdWS() -{ - m_UrlIdWSIsSet = false; -} -utility::string_t GetCommentsPublic_200_response::getUserIdWS() const -{ - return m_UserIdWS; -} - - -void GetCommentsPublic_200_response::setUserIdWS(const utility::string_t& value) -{ - m_UserIdWS = value; - m_UserIdWSIsSet = true; -} - -bool GetCommentsPublic_200_response::userIdWSIsSet() const -{ - return m_UserIdWSIsSet; -} - -void GetCommentsPublic_200_response::unsetUserIdWS() -{ - m_UserIdWSIsSet = false; -} -utility::string_t GetCommentsPublic_200_response::getTenantIdWS() const -{ - return m_TenantIdWS; -} - - -void GetCommentsPublic_200_response::setTenantIdWS(const utility::string_t& value) -{ - m_TenantIdWS = value; - m_TenantIdWSIsSet = true; -} - -bool GetCommentsPublic_200_response::tenantIdWSIsSet() const -{ - return m_TenantIdWSIsSet; -} - -void GetCommentsPublic_200_response::unsetTenantIdWS() -{ - m_TenantIdWSIsSet = false; -} -utility::string_t GetCommentsPublic_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCommentsPublic_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCommentsPublic_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCommentsPublic_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCommentsPublic_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCommentsPublic_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCommentsPublic_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCommentsPublic_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCommentsPublic_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCommentsPublic_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCommentsPublic_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCommentsPublic_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCommentsPublic_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCommentsPublic_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCommentsPublic_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCommentsPublic_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCommentsResponseWithPresence_PublicComment_.cpp b/client/src/model/GetCommentsResponseWithPresence_PublicComment_.cpp index 3686b99..1b9a7fd 100644 --- a/client/src/model/GetCommentsResponseWithPresence_PublicComment_.cpp +++ b/client/src/model/GetCommentsResponseWithPresence_PublicComment_.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,8 +31,11 @@ GetCommentsResponseWithPresence_PublicComment_::GetCommentsResponseWithPresence_ m_TranslatedWarning = utility::conversions::to_string_t(""); m_TranslatedWarningIsSet = false; m_CommentsIsSet = false; + m_UserIsSet = false; m_UrlIdClean = utility::conversions::to_string_t(""); m_UrlIdCleanIsSet = false; + m_LastGenDate = 0L; + m_LastGenDateIsSet = false; m_IncludesPastPages = false; m_IncludesPastPagesIsSet = false; m_IsDemo = false; @@ -82,137 +85,137 @@ web::json::value GetCommentsResponseWithPresence_PublicComment_::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_TranslatedWarningIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translatedWarning"))] = ModelBase::toJson(m_TranslatedWarning); } if(m_CommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); } - if(m_User.has_value()) - { + if(m_UserIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_UrlIdCleanIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdClean"))] = ModelBase::toJson(m_UrlIdClean); } - if(m_LastGenDate.has_value()) - { + if(m_LastGenDateIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))] = ModelBase::toJson(m_LastGenDate.get()); + val[utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))] = ModelBase::toJson(m_LastGenDate); } if(m_IncludesPastPagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("includesPastPages"))] = ModelBase::toJson(m_IncludesPastPages); } if(m_IsDemoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDemo"))] = ModelBase::toJson(m_IsDemo); } if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } if(m_IsSiteAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))] = ModelBase::toJson(m_IsSiteAdmin); } if(m_HasBillingIssueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue"))] = ModelBase::toJson(m_HasBillingIssue); } if(m_ModuleDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); } if(m_PageNumberIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pageNumber"))] = ModelBase::toJson(m_PageNumber); } if(m_IsWhiteLabeledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled"))] = ModelBase::toJson(m_IsWhiteLabeled); } if(m_IsProdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProd"))] = ModelBase::toJson(m_IsProd); } if(m_IsCrawlerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCrawler"))] = ModelBase::toJson(m_IsCrawler); } if(m_NotificationCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationCount"))] = ModelBase::toJson(m_NotificationCount); } if(m_HasMoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); } if(m_IsClosedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isClosed"))] = ModelBase::toJson(m_IsClosed); } if(m_PresencePollStateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("presencePollState"))] = ModelBase::toJson(m_PresencePollState); } if(m_CustomConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); } if(m_UrlIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); } if(m_UserIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); } if(m_TenantIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))] = ModelBase::toJson(m_TenantIdWS); } @@ -554,17 +557,17 @@ void GetCommentsResponseWithPresence_PublicComment_::toMultipart(std::shared_ptr { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); } - if(m_User.has_value()) + if(m_UserIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); } if(m_UrlIdCleanIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdClean")), m_UrlIdClean)); } - if(m_LastGenDate.has_value()) + if(m_LastGenDateIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastGenDate")), m_LastGenDate.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastGenDate")), m_LastGenDate)); } if(m_IncludesPastPagesIsSet) { @@ -942,23 +945,24 @@ void GetCommentsResponseWithPresence_PublicComment_::unsetComments() } std::shared_ptr GetCommentsResponseWithPresence_PublicComment_::getUser() const { - return m_User.get(); + return m_User; } void GetCommentsResponseWithPresence_PublicComment_::setUser(const std::shared_ptr& value) { m_User = value; + m_UserIsSet = true; } bool GetCommentsResponseWithPresence_PublicComment_::userIsSet() const { - return m_User.has_value(); + return m_UserIsSet; } void GetCommentsResponseWithPresence_PublicComment_::unsetUser() { - m_User.reset(); + m_UserIsSet = false; } utility::string_t GetCommentsResponseWithPresence_PublicComment_::getUrlIdClean() const { @@ -983,22 +987,23 @@ void GetCommentsResponseWithPresence_PublicComment_::unsetUrlIdClean() } int64_t GetCommentsResponseWithPresence_PublicComment_::getLastGenDate() const { - return m_LastGenDate.get(); + return m_LastGenDate; } void GetCommentsResponseWithPresence_PublicComment_::setLastGenDate(int64_t value) { m_LastGenDate = value; + m_LastGenDateIsSet = true; } bool GetCommentsResponseWithPresence_PublicComment_::lastGenDateIsSet() const { - return m_LastGenDate.has_value(); + return m_LastGenDateIsSet; } void GetCommentsResponseWithPresence_PublicComment_::unsetLastGenDate() { - m_LastGenDate.reset(); + m_LastGenDateIsSet = false; } bool GetCommentsResponseWithPresence_PublicComment_::isIncludesPastPages() const { diff --git a/client/src/model/GetCommentsResponse_PublicComment_.cpp b/client/src/model/GetCommentsResponse_PublicComment_.cpp index 0795c72..fb99a17 100644 --- a/client/src/model/GetCommentsResponse_PublicComment_.cpp +++ b/client/src/model/GetCommentsResponse_PublicComment_.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,8 +31,11 @@ GetCommentsResponse_PublicComment_::GetCommentsResponse_PublicComment_() m_TranslatedWarning = utility::conversions::to_string_t(""); m_TranslatedWarningIsSet = false; m_CommentsIsSet = false; + m_UserIsSet = false; m_UrlIdClean = utility::conversions::to_string_t(""); m_UrlIdCleanIsSet = false; + m_LastGenDate = 0L; + m_LastGenDateIsSet = false; m_IncludesPastPages = false; m_IncludesPastPagesIsSet = false; m_IsDemo = false; @@ -76,122 +79,122 @@ web::json::value GetCommentsResponse_PublicComment_::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_TranslatedWarningIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translatedWarning"))] = ModelBase::toJson(m_TranslatedWarning); } if(m_CommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); } - if(m_User.has_value()) - { + if(m_UserIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_UrlIdCleanIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdClean"))] = ModelBase::toJson(m_UrlIdClean); } - if(m_LastGenDate.has_value()) - { + if(m_LastGenDateIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))] = ModelBase::toJson(m_LastGenDate.get()); + val[utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))] = ModelBase::toJson(m_LastGenDate); } if(m_IncludesPastPagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("includesPastPages"))] = ModelBase::toJson(m_IncludesPastPages); } if(m_IsDemoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDemo"))] = ModelBase::toJson(m_IsDemo); } if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } if(m_IsSiteAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))] = ModelBase::toJson(m_IsSiteAdmin); } if(m_HasBillingIssueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue"))] = ModelBase::toJson(m_HasBillingIssue); } if(m_ModuleDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); } if(m_PageNumberIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pageNumber"))] = ModelBase::toJson(m_PageNumber); } if(m_IsWhiteLabeledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled"))] = ModelBase::toJson(m_IsWhiteLabeled); } if(m_IsProdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProd"))] = ModelBase::toJson(m_IsProd); } if(m_IsCrawlerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCrawler"))] = ModelBase::toJson(m_IsCrawler); } if(m_NotificationCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationCount"))] = ModelBase::toJson(m_NotificationCount); } if(m_HasMoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); } if(m_IsClosedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isClosed"))] = ModelBase::toJson(m_IsClosed); } if(m_PresencePollStateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("presencePollState"))] = ModelBase::toJson(m_PresencePollState); } if(m_CustomConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); } @@ -500,17 +503,17 @@ void GetCommentsResponse_PublicComment_::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); } - if(m_User.has_value()) + if(m_UserIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); } if(m_UrlIdCleanIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdClean")), m_UrlIdClean)); } - if(m_LastGenDate.has_value()) + if(m_LastGenDateIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastGenDate")), m_LastGenDate.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastGenDate")), m_LastGenDate)); } if(m_IncludesPastPagesIsSet) { @@ -858,23 +861,24 @@ void GetCommentsResponse_PublicComment_::unsetComments() } std::shared_ptr GetCommentsResponse_PublicComment_::getUser() const { - return m_User.get(); + return m_User; } void GetCommentsResponse_PublicComment_::setUser(const std::shared_ptr& value) { m_User = value; + m_UserIsSet = true; } bool GetCommentsResponse_PublicComment_::userIsSet() const { - return m_User.has_value(); + return m_UserIsSet; } void GetCommentsResponse_PublicComment_::unsetUser() { - m_User.reset(); + m_UserIsSet = false; } utility::string_t GetCommentsResponse_PublicComment_::getUrlIdClean() const { @@ -899,22 +903,23 @@ void GetCommentsResponse_PublicComment_::unsetUrlIdClean() } int64_t GetCommentsResponse_PublicComment_::getLastGenDate() const { - return m_LastGenDate.get(); + return m_LastGenDate; } void GetCommentsResponse_PublicComment_::setLastGenDate(int64_t value) { m_LastGenDate = value; + m_LastGenDateIsSet = true; } bool GetCommentsResponse_PublicComment_::lastGenDateIsSet() const { - return m_LastGenDate.has_value(); + return m_LastGenDateIsSet; } void GetCommentsResponse_PublicComment_::unsetLastGenDate() { - m_LastGenDate.reset(); + m_LastGenDateIsSet = false; } bool GetCommentsResponse_PublicComment_::isIncludesPastPages() const { diff --git a/client/src/model/GetComments_200_response.cpp b/client/src/model/GetComments_200_response.cpp deleted file mode 100644 index 708d939..0000000 --- a/client/src/model/GetComments_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetComments_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetComments_200_response::GetComments_200_response() -{ - m_StatusIsSet = false; - m_CommentsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetComments_200_response::~GetComments_200_response() -{ -} - -void GetComments_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetComments_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetComments_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromJson(fieldValue, refVal_setComments); - setComments(refVal_setComments); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetComments_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetComments_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); - setComments(refVal_setComments); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetComments_200_response::getStatus() const -{ - return m_Status; -} - - -void GetComments_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetComments_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetComments_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetComments_200_response::getComments() const -{ - return m_Comments; -} - - -void GetComments_200_response::setComments(const std::vector>& value) -{ - m_Comments = value; - m_CommentsIsSet = true; -} - -bool GetComments_200_response::commentsIsSet() const -{ - return m_CommentsIsSet; -} - -void GetComments_200_response::unsetComments() -{ - m_CommentsIsSet = false; -} -utility::string_t GetComments_200_response::getReason() const -{ - return m_Reason; -} - - -void GetComments_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetComments_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetComments_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetComments_200_response::getCode() const -{ - return m_Code; -} - - -void GetComments_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetComments_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetComments_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetComments_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetComments_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetComments_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetComments_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetComments_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetComments_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetComments_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetComments_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetComments_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetComments_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetComments_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetComments_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetComments_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetComments_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetComments_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetComments_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetComments_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetComments_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetComments_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetComments_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/AddDomainConfig_200_response.cpp b/client/src/model/GetDomainConfigResponse.cpp similarity index 71% rename from client/src/model/AddDomainConfig_200_response.cpp rename to client/src/model/GetDomainConfigResponse.cpp index 77f8614..2bb57c4 100644 --- a/client/src/model/AddDomainConfig_200_response.cpp +++ b/client/src/model/GetDomainConfigResponse.cpp @@ -4,140 +4,142 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/AddDomainConfig_200_response.h" +#include "FastCommentsClient/model/GetDomainConfigResponse.h" namespace org { namespace openapitools { namespace client { namespace model { -AddDomainConfig_200_response::AddDomainConfig_200_response() +GetDomainConfigResponse::GetDomainConfigResponse() { + m_ConfigurationIsSet = false; + m_StatusIsSet = false; m_Reason = utility::conversions::to_string_t(""); m_ReasonIsSet = false; m_Code = utility::conversions::to_string_t(""); m_CodeIsSet = false; } -AddDomainConfig_200_response::~AddDomainConfig_200_response() +GetDomainConfigResponse::~GetDomainConfigResponse() { } -void AddDomainConfig_200_response::validate() +void GetDomainConfigResponse::validate() { // TODO: implement validation } -web::json::value AddDomainConfig_200_response::toJson() const +web::json::value GetDomainConfigResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_ReasonIsSet) - { + if(m_ConfigurationIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration); } - if(m_CodeIsSet) - { + if(m_StatusIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } - if(m_Status.has_value()) - { + if(m_ReasonIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } - if(m_Configuration.has_value()) - { + if(m_CodeIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration.get()); + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } return val; } -bool AddDomainConfig_200_response::fromJson(const web::json::value& val) +bool GetDomainConfigResponse::fromJson(const web::json::value& val) { bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("configuration")))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("configuration"))); if(!fieldValue.is_null()) { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); + std::shared_ptr refVal_setConfiguration; + ok &= ModelBase::fromJson(fieldValue, refVal_setConfiguration); + setConfiguration(refVal_setConfiguration); } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); if(!fieldValue.is_null()) { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); if(!fieldValue.is_null()) { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("configuration")))) + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("configuration"))); + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); if(!fieldValue.is_null()) { - std::shared_ptr refVal_setConfiguration; - ok &= ModelBase::fromJson(fieldValue, refVal_setConfiguration); - setConfiguration(refVal_setConfiguration); + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); } } return ok; } -void AddDomainConfig_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void GetDomainConfigResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_ReasonIsSet) + if(m_ConfigurationIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration)); } - if(m_CodeIsSet) + if(m_StatusIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } - if(m_Status.has_value()) + if(m_ReasonIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); } - if(m_Configuration.has_value()) + if(m_CodeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); } } -bool AddDomainConfig_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool GetDomainConfigResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -146,6 +148,18 @@ bool AddDomainConfig_200_response::fromMultiPart(std::shared_ptrhasContent(utility::conversions::to_string_t(_XPLATSTR("configuration")))) + { + std::shared_ptr refVal_setConfiguration; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("configuration"))), refVal_setConfiguration ); + setConfiguration(refVal_setConfiguration); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) { utility::string_t refVal_setReason; @@ -158,103 +172,93 @@ bool AddDomainConfig_200_response::fromMultiPart(std::shared_ptrgetContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); setCode(refVal_setCode); } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("configuration")))) - { - std::shared_ptr refVal_setConfiguration; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("configuration"))), refVal_setConfiguration ); - setConfiguration(refVal_setConfiguration); - } return ok; } -utility::string_t AddDomainConfig_200_response::getReason() const +std::shared_ptr GetDomainConfigResponse::getConfiguration() const { - return m_Reason; + return m_Configuration; } -void AddDomainConfig_200_response::setReason(const utility::string_t& value) +void GetDomainConfigResponse::setConfiguration(const std::shared_ptr& value) { - m_Reason = value; - m_ReasonIsSet = true; + m_Configuration = value; + m_ConfigurationIsSet = true; } -bool AddDomainConfig_200_response::reasonIsSet() const +bool GetDomainConfigResponse::configurationIsSet() const { - return m_ReasonIsSet; + return m_ConfigurationIsSet; } -void AddDomainConfig_200_response::unsetReason() +void GetDomainConfigResponse::unsetConfiguration() { - m_ReasonIsSet = false; + m_ConfigurationIsSet = false; } -utility::string_t AddDomainConfig_200_response::getCode() const +std::shared_ptr GetDomainConfigResponse::getStatus() const { - return m_Code; + return m_Status; } -void AddDomainConfig_200_response::setCode(const utility::string_t& value) +void GetDomainConfigResponse::setStatus(const std::shared_ptr& value) { - m_Code = value; - m_CodeIsSet = true; + m_Status = value; + m_StatusIsSet = true; } -bool AddDomainConfig_200_response::codeIsSet() const +bool GetDomainConfigResponse::statusIsSet() const { - return m_CodeIsSet; + return m_StatusIsSet; } -void AddDomainConfig_200_response::unsetCode() +void GetDomainConfigResponse::unsetStatus() { - m_CodeIsSet = false; + m_StatusIsSet = false; } -std::shared_ptr AddDomainConfig_200_response::getStatus() const +utility::string_t GetDomainConfigResponse::getReason() const { - return m_Status.get(); + return m_Reason; } -void AddDomainConfig_200_response::setStatus(const std::shared_ptr& value) +void GetDomainConfigResponse::setReason(const utility::string_t& value) { - m_Status = value; + m_Reason = value; + m_ReasonIsSet = true; } -bool AddDomainConfig_200_response::statusIsSet() const +bool GetDomainConfigResponse::reasonIsSet() const { - return m_Status.has_value(); + return m_ReasonIsSet; } -void AddDomainConfig_200_response::unsetStatus() +void GetDomainConfigResponse::unsetReason() { - m_Status.reset(); + m_ReasonIsSet = false; } -std::shared_ptr AddDomainConfig_200_response::getConfiguration() const +utility::string_t GetDomainConfigResponse::getCode() const { - return m_Configuration.get(); + return m_Code; } -void AddDomainConfig_200_response::setConfiguration(const std::shared_ptr& value) +void GetDomainConfigResponse::setCode(const utility::string_t& value) { - m_Configuration = value; + m_Code = value; + m_CodeIsSet = true; } -bool AddDomainConfig_200_response::configurationIsSet() const +bool GetDomainConfigResponse::codeIsSet() const { - return m_Configuration.has_value(); + return m_CodeIsSet; } -void AddDomainConfig_200_response::unsetConfiguration() +void GetDomainConfigResponse::unsetCode() { - m_Configuration.reset(); + m_CodeIsSet = false; } } diff --git a/client/src/model/GetDomainConfigs_200_response.cpp b/client/src/model/GetDomainConfigsResponse.cpp similarity index 70% rename from client/src/model/GetDomainConfigs_200_response.cpp rename to client/src/model/GetDomainConfigsResponse.cpp index fb61f0c..14f8fea 100644 --- a/client/src/model/GetDomainConfigs_200_response.cpp +++ b/client/src/model/GetDomainConfigsResponse.cpp @@ -4,57 +4,59 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/GetDomainConfigs_200_response.h" +#include "FastCommentsClient/model/GetDomainConfigsResponse.h" namespace org { namespace openapitools { namespace client { namespace model { -GetDomainConfigs_200_response::GetDomainConfigs_200_response() +GetDomainConfigsResponse::GetDomainConfigsResponse() { + m_ConfigurationsIsSet = false; + m_StatusIsSet = false; m_Reason = utility::conversions::to_string_t(""); m_ReasonIsSet = false; m_Code = utility::conversions::to_string_t(""); m_CodeIsSet = false; } -GetDomainConfigs_200_response::~GetDomainConfigs_200_response() +GetDomainConfigsResponse::~GetDomainConfigsResponse() { } -void GetDomainConfigs_200_response::validate() +void GetDomainConfigsResponse::validate() { // TODO: implement validation } -web::json::value GetDomainConfigs_200_response::toJson() const +web::json::value GetDomainConfigsResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_Configurations.has_value()) - { + if(m_ConfigurationsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("configurations"))] = ModelBase::toJson(m_Configurations.get()); + val[utility::conversions::to_string_t(_XPLATSTR("configurations"))] = ModelBase::toJson(m_Configurations); } - if(m_Status.has_value()) - { + if(m_StatusIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } @@ -62,7 +64,7 @@ web::json::value GetDomainConfigs_200_response::toJson() const return val; } -bool GetDomainConfigs_200_response::fromJson(const web::json::value& val) +bool GetDomainConfigsResponse::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("configurations")))) @@ -112,20 +114,20 @@ bool GetDomainConfigs_200_response::fromJson(const web::json::value& val) return ok; } -void GetDomainConfigs_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void GetDomainConfigsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_Configurations.has_value()) + if(m_ConfigurationsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configurations")), m_Configurations.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configurations")), m_Configurations)); } - if(m_Status.has_value()) + if(m_StatusIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } if(m_ReasonIsSet) { @@ -137,7 +139,7 @@ void GetDomainConfigs_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) +bool GetDomainConfigsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -174,85 +176,87 @@ bool GetDomainConfigs_200_response::fromMultiPart(std::shared_ptr GetDomainConfigs_200_response::getConfigurations() const +std::shared_ptr GetDomainConfigsResponse::getConfigurations() const { - return m_Configurations.get(); + return m_Configurations; } -void GetDomainConfigs_200_response::setConfigurations(const std::shared_ptr& value) +void GetDomainConfigsResponse::setConfigurations(const std::shared_ptr& value) { m_Configurations = value; + m_ConfigurationsIsSet = true; } -bool GetDomainConfigs_200_response::configurationsIsSet() const +bool GetDomainConfigsResponse::configurationsIsSet() const { - return m_Configurations.has_value(); + return m_ConfigurationsIsSet; } -void GetDomainConfigs_200_response::unsetConfigurations() +void GetDomainConfigsResponse::unsetConfigurations() { - m_Configurations.reset(); + m_ConfigurationsIsSet = false; } -std::shared_ptr GetDomainConfigs_200_response::getStatus() const +std::shared_ptr GetDomainConfigsResponse::getStatus() const { - return m_Status.get(); + return m_Status; } -void GetDomainConfigs_200_response::setStatus(const std::shared_ptr& value) +void GetDomainConfigsResponse::setStatus(const std::shared_ptr& value) { m_Status = value; + m_StatusIsSet = true; } -bool GetDomainConfigs_200_response::statusIsSet() const +bool GetDomainConfigsResponse::statusIsSet() const { - return m_Status.has_value(); + return m_StatusIsSet; } -void GetDomainConfigs_200_response::unsetStatus() +void GetDomainConfigsResponse::unsetStatus() { - m_Status.reset(); + m_StatusIsSet = false; } -utility::string_t GetDomainConfigs_200_response::getReason() const +utility::string_t GetDomainConfigsResponse::getReason() const { return m_Reason; } -void GetDomainConfigs_200_response::setReason(const utility::string_t& value) +void GetDomainConfigsResponse::setReason(const utility::string_t& value) { m_Reason = value; m_ReasonIsSet = true; } -bool GetDomainConfigs_200_response::reasonIsSet() const +bool GetDomainConfigsResponse::reasonIsSet() const { return m_ReasonIsSet; } -void GetDomainConfigs_200_response::unsetReason() +void GetDomainConfigsResponse::unsetReason() { m_ReasonIsSet = false; } -utility::string_t GetDomainConfigs_200_response::getCode() const +utility::string_t GetDomainConfigsResponse::getCode() const { return m_Code; } -void GetDomainConfigs_200_response::setCode(const utility::string_t& value) +void GetDomainConfigsResponse::setCode(const utility::string_t& value) { m_Code = value; m_CodeIsSet = true; } -bool GetDomainConfigs_200_response::codeIsSet() const +bool GetDomainConfigsResponse::codeIsSet() const { return m_CodeIsSet; } -void GetDomainConfigs_200_response::unsetCode() +void GetDomainConfigsResponse::unsetCode() { m_CodeIsSet = false; } diff --git a/client/src/model/GetDomainConfigs_200_response_anyOf.cpp b/client/src/model/GetDomainConfigsResponse_anyOf.cpp similarity index 62% rename from client/src/model/GetDomainConfigs_200_response_anyOf.cpp rename to client/src/model/GetDomainConfigsResponse_anyOf.cpp index a4b5d10..d8ae5fc 100644 --- a/client/src/model/GetDomainConfigs_200_response_anyOf.cpp +++ b/client/src/model/GetDomainConfigsResponse_anyOf.cpp @@ -4,51 +4,53 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/GetDomainConfigs_200_response_anyOf.h" +#include "FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h" namespace org { namespace openapitools { namespace client { namespace model { -GetDomainConfigs_200_response_anyOf::GetDomainConfigs_200_response_anyOf() +GetDomainConfigsResponse_anyOf::GetDomainConfigsResponse_anyOf() { + m_ConfigurationsIsSet = false; + m_StatusIsSet = false; } -GetDomainConfigs_200_response_anyOf::~GetDomainConfigs_200_response_anyOf() +GetDomainConfigsResponse_anyOf::~GetDomainConfigsResponse_anyOf() { } -void GetDomainConfigs_200_response_anyOf::validate() +void GetDomainConfigsResponse_anyOf::validate() { // TODO: implement validation } -web::json::value GetDomainConfigs_200_response_anyOf::toJson() const +web::json::value GetDomainConfigsResponse_anyOf::toJson() const { web::json::value val = web::json::value::object(); - if(m_Configurations.has_value()) - { + if(m_ConfigurationsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("configurations"))] = ModelBase::toJson(m_Configurations.get()); + val[utility::conversions::to_string_t(_XPLATSTR("configurations"))] = ModelBase::toJson(m_Configurations); } - if(m_Status.has_value()) - { + if(m_StatusIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } return val; } -bool GetDomainConfigs_200_response_anyOf::fromJson(const web::json::value& val) +bool GetDomainConfigsResponse_anyOf::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("configurations")))) @@ -76,24 +78,24 @@ bool GetDomainConfigs_200_response_anyOf::fromJson(const web::json::value& val) return ok; } -void GetDomainConfigs_200_response_anyOf::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void GetDomainConfigsResponse_anyOf::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_Configurations.has_value()) + if(m_ConfigurationsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configurations")), m_Configurations.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configurations")), m_Configurations)); } - if(m_Status.has_value()) + if(m_StatusIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } } -bool GetDomainConfigs_200_response_anyOf::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool GetDomainConfigsResponse_anyOf::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -118,45 +120,47 @@ bool GetDomainConfigs_200_response_anyOf::fromMultiPart(std::shared_ptr GetDomainConfigs_200_response_anyOf::getConfigurations() const +std::shared_ptr GetDomainConfigsResponse_anyOf::getConfigurations() const { - return m_Configurations.get(); + return m_Configurations; } -void GetDomainConfigs_200_response_anyOf::setConfigurations(const std::shared_ptr& value) +void GetDomainConfigsResponse_anyOf::setConfigurations(const std::shared_ptr& value) { m_Configurations = value; + m_ConfigurationsIsSet = true; } -bool GetDomainConfigs_200_response_anyOf::configurationsIsSet() const +bool GetDomainConfigsResponse_anyOf::configurationsIsSet() const { - return m_Configurations.has_value(); + return m_ConfigurationsIsSet; } -void GetDomainConfigs_200_response_anyOf::unsetConfigurations() +void GetDomainConfigsResponse_anyOf::unsetConfigurations() { - m_Configurations.reset(); + m_ConfigurationsIsSet = false; } -std::shared_ptr GetDomainConfigs_200_response_anyOf::getStatus() const +std::shared_ptr GetDomainConfigsResponse_anyOf::getStatus() const { - return m_Status.get(); + return m_Status; } -void GetDomainConfigs_200_response_anyOf::setStatus(const std::shared_ptr& value) +void GetDomainConfigsResponse_anyOf::setStatus(const std::shared_ptr& value) { m_Status = value; + m_StatusIsSet = true; } -bool GetDomainConfigs_200_response_anyOf::statusIsSet() const +bool GetDomainConfigsResponse_anyOf::statusIsSet() const { - return m_Status.has_value(); + return m_StatusIsSet; } -void GetDomainConfigs_200_response_anyOf::unsetStatus() +void GetDomainConfigsResponse_anyOf::unsetStatus() { - m_Status.reset(); + m_StatusIsSet = false; } } diff --git a/client/src/model/GetDomainConfigs_200_response_anyOf_1.cpp b/client/src/model/GetDomainConfigsResponse_anyOf_1.cpp similarity index 70% rename from client/src/model/GetDomainConfigs_200_response_anyOf_1.cpp rename to client/src/model/GetDomainConfigsResponse_anyOf_1.cpp index dd00d32..ccddbf5 100644 --- a/client/src/model/GetDomainConfigs_200_response_anyOf_1.cpp +++ b/client/src/model/GetDomainConfigsResponse_anyOf_1.cpp @@ -4,60 +4,61 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/GetDomainConfigs_200_response_anyOf_1.h" +#include "FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h" namespace org { namespace openapitools { namespace client { namespace model { -GetDomainConfigs_200_response_anyOf_1::GetDomainConfigs_200_response_anyOf_1() +GetDomainConfigsResponse_anyOf_1::GetDomainConfigsResponse_anyOf_1() { m_Reason = utility::conversions::to_string_t(""); m_ReasonIsSet = false; m_Code = utility::conversions::to_string_t(""); m_CodeIsSet = false; + m_StatusIsSet = false; } -GetDomainConfigs_200_response_anyOf_1::~GetDomainConfigs_200_response_anyOf_1() +GetDomainConfigsResponse_anyOf_1::~GetDomainConfigsResponse_anyOf_1() { } -void GetDomainConfigs_200_response_anyOf_1::validate() +void GetDomainConfigsResponse_anyOf_1::validate() { // TODO: implement validation } -web::json::value GetDomainConfigs_200_response_anyOf_1::toJson() const +web::json::value GetDomainConfigsResponse_anyOf_1::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } - if(m_Status.has_value()) - { + if(m_StatusIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } return val; } -bool GetDomainConfigs_200_response_anyOf_1::fromJson(const web::json::value& val) +bool GetDomainConfigsResponse_anyOf_1::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) @@ -96,7 +97,7 @@ bool GetDomainConfigs_200_response_anyOf_1::fromJson(const web::json::value& val return ok; } -void GetDomainConfigs_200_response_anyOf_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void GetDomainConfigsResponse_anyOf_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) @@ -111,13 +112,13 @@ void GetDomainConfigs_200_response_anyOf_1::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); } - if(m_Status.has_value()) + if(m_StatusIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } } -bool GetDomainConfigs_200_response_anyOf_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool GetDomainConfigsResponse_anyOf_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -148,67 +149,68 @@ bool GetDomainConfigs_200_response_anyOf_1::fromMultiPart(std::shared_ptr GetDomainConfigs_200_response_anyOf_1::getStatus() const +std::shared_ptr GetDomainConfigsResponse_anyOf_1::getStatus() const { - return m_Status.get(); + return m_Status; } -void GetDomainConfigs_200_response_anyOf_1::setStatus(const std::shared_ptr& value) +void GetDomainConfigsResponse_anyOf_1::setStatus(const std::shared_ptr& value) { m_Status = value; + m_StatusIsSet = true; } -bool GetDomainConfigs_200_response_anyOf_1::statusIsSet() const +bool GetDomainConfigsResponse_anyOf_1::statusIsSet() const { - return m_Status.has_value(); + return m_StatusIsSet; } -void GetDomainConfigs_200_response_anyOf_1::unsetStatus() +void GetDomainConfigsResponse_anyOf_1::unsetStatus() { - m_Status.reset(); + m_StatusIsSet = false; } } diff --git a/client/src/model/GetEmailTemplateDefinitionsResponse.cpp b/client/src/model/GetEmailTemplateDefinitionsResponse.cpp index 00ff8a5..3675853 100644 --- a/client/src/model/GetEmailTemplateDefinitionsResponse.cpp +++ b/client/src/model/GetEmailTemplateDefinitionsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetEmailTemplateDefinitionsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_DefinitionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("definitions"))] = ModelBase::toJson(m_Definitions); } diff --git a/client/src/model/GetEmailTemplateDefinitions_200_response.cpp b/client/src/model/GetEmailTemplateDefinitions_200_response.cpp deleted file mode 100644 index 7b9a574..0000000 --- a/client/src/model/GetEmailTemplateDefinitions_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetEmailTemplateDefinitions_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetEmailTemplateDefinitions_200_response::GetEmailTemplateDefinitions_200_response() -{ - m_StatusIsSet = false; - m_DefinitionsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetEmailTemplateDefinitions_200_response::~GetEmailTemplateDefinitions_200_response() -{ -} - -void GetEmailTemplateDefinitions_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetEmailTemplateDefinitions_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_DefinitionsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("definitions"))] = ModelBase::toJson(m_Definitions); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetEmailTemplateDefinitions_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("definitions")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("definitions"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setDefinitions; - ok &= ModelBase::fromJson(fieldValue, refVal_setDefinitions); - setDefinitions(refVal_setDefinitions); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetEmailTemplateDefinitions_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_DefinitionsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("definitions")), m_Definitions)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetEmailTemplateDefinitions_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("definitions")))) - { - std::vector> refVal_setDefinitions; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("definitions"))), refVal_setDefinitions ); - setDefinitions(refVal_setDefinitions); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetEmailTemplateDefinitions_200_response::getStatus() const -{ - return m_Status; -} - - -void GetEmailTemplateDefinitions_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetEmailTemplateDefinitions_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetEmailTemplateDefinitions_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetEmailTemplateDefinitions_200_response::getDefinitions() const -{ - return m_Definitions; -} - - -void GetEmailTemplateDefinitions_200_response::setDefinitions(const std::vector>& value) -{ - m_Definitions = value; - m_DefinitionsIsSet = true; -} - -bool GetEmailTemplateDefinitions_200_response::definitionsIsSet() const -{ - return m_DefinitionsIsSet; -} - -void GetEmailTemplateDefinitions_200_response::unsetDefinitions() -{ - m_DefinitionsIsSet = false; -} -utility::string_t GetEmailTemplateDefinitions_200_response::getReason() const -{ - return m_Reason; -} - - -void GetEmailTemplateDefinitions_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetEmailTemplateDefinitions_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetEmailTemplateDefinitions_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetEmailTemplateDefinitions_200_response::getCode() const -{ - return m_Code; -} - - -void GetEmailTemplateDefinitions_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetEmailTemplateDefinitions_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetEmailTemplateDefinitions_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetEmailTemplateDefinitions_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetEmailTemplateDefinitions_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetEmailTemplateDefinitions_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetEmailTemplateDefinitions_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetEmailTemplateDefinitions_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetEmailTemplateDefinitions_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetEmailTemplateDefinitions_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetEmailTemplateDefinitions_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetEmailTemplateDefinitions_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetEmailTemplateDefinitions_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetEmailTemplateDefinitions_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetEmailTemplateDefinitions_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetEmailTemplateDefinitions_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetEmailTemplateDefinitions_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetEmailTemplateDefinitions_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetEmailTemplateDefinitions_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetEmailTemplateDefinitions_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetEmailTemplateDefinitions_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetEmailTemplateDefinitions_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetEmailTemplateDefinitions_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetEmailTemplateRenderErrorsResponse.cpp b/client/src/model/GetEmailTemplateRenderErrorsResponse.cpp index b916d68..a368cc4 100644 --- a/client/src/model/GetEmailTemplateRenderErrorsResponse.cpp +++ b/client/src/model/GetEmailTemplateRenderErrorsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetEmailTemplateRenderErrorsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_RenderErrorsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("renderErrors"))] = ModelBase::toJson(m_RenderErrors); } diff --git a/client/src/model/GetEmailTemplateRenderErrors_200_response.cpp b/client/src/model/GetEmailTemplateRenderErrors_200_response.cpp deleted file mode 100644 index 4d0f4fb..0000000 --- a/client/src/model/GetEmailTemplateRenderErrors_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetEmailTemplateRenderErrors_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetEmailTemplateRenderErrors_200_response::GetEmailTemplateRenderErrors_200_response() -{ - m_StatusIsSet = false; - m_RenderErrorsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetEmailTemplateRenderErrors_200_response::~GetEmailTemplateRenderErrors_200_response() -{ -} - -void GetEmailTemplateRenderErrors_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetEmailTemplateRenderErrors_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_RenderErrorsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("renderErrors"))] = ModelBase::toJson(m_RenderErrors); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetEmailTemplateRenderErrors_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("renderErrors")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("renderErrors"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setRenderErrors; - ok &= ModelBase::fromJson(fieldValue, refVal_setRenderErrors); - setRenderErrors(refVal_setRenderErrors); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetEmailTemplateRenderErrors_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_RenderErrorsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("renderErrors")), m_RenderErrors)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetEmailTemplateRenderErrors_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("renderErrors")))) - { - std::vector> refVal_setRenderErrors; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("renderErrors"))), refVal_setRenderErrors ); - setRenderErrors(refVal_setRenderErrors); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetEmailTemplateRenderErrors_200_response::getStatus() const -{ - return m_Status; -} - - -void GetEmailTemplateRenderErrors_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetEmailTemplateRenderErrors_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetEmailTemplateRenderErrors_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetEmailTemplateRenderErrors_200_response::getRenderErrors() const -{ - return m_RenderErrors; -} - - -void GetEmailTemplateRenderErrors_200_response::setRenderErrors(const std::vector>& value) -{ - m_RenderErrors = value; - m_RenderErrorsIsSet = true; -} - -bool GetEmailTemplateRenderErrors_200_response::renderErrorsIsSet() const -{ - return m_RenderErrorsIsSet; -} - -void GetEmailTemplateRenderErrors_200_response::unsetRenderErrors() -{ - m_RenderErrorsIsSet = false; -} -utility::string_t GetEmailTemplateRenderErrors_200_response::getReason() const -{ - return m_Reason; -} - - -void GetEmailTemplateRenderErrors_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetEmailTemplateRenderErrors_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetEmailTemplateRenderErrors_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetEmailTemplateRenderErrors_200_response::getCode() const -{ - return m_Code; -} - - -void GetEmailTemplateRenderErrors_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetEmailTemplateRenderErrors_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetEmailTemplateRenderErrors_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetEmailTemplateRenderErrors_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetEmailTemplateRenderErrors_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetEmailTemplateRenderErrors_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetEmailTemplateRenderErrors_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetEmailTemplateRenderErrors_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetEmailTemplateRenderErrors_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetEmailTemplateRenderErrors_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetEmailTemplateRenderErrors_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetEmailTemplateRenderErrors_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetEmailTemplateRenderErrors_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetEmailTemplateRenderErrors_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetEmailTemplateRenderErrors_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetEmailTemplateRenderErrors_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetEmailTemplateRenderErrors_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetEmailTemplateRenderErrors_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetEmailTemplateRenderErrors_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetEmailTemplateRenderErrors_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetEmailTemplateRenderErrors_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetEmailTemplateRenderErrors_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetEmailTemplateRenderErrors_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetEmailTemplateResponse.cpp b/client/src/model/GetEmailTemplateResponse.cpp index 7d49bb8..c95ede5 100644 --- a/client/src/model/GetEmailTemplateResponse.cpp +++ b/client/src/model/GetEmailTemplateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetEmailTemplateResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_EmailTemplateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))] = ModelBase::toJson(m_EmailTemplate); } diff --git a/client/src/model/GetEmailTemplate_200_response.cpp b/client/src/model/GetEmailTemplate_200_response.cpp deleted file mode 100644 index 6cf6226..0000000 --- a/client/src/model/GetEmailTemplate_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetEmailTemplate_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetEmailTemplate_200_response::GetEmailTemplate_200_response() -{ - m_StatusIsSet = false; - m_EmailTemplateIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetEmailTemplate_200_response::~GetEmailTemplate_200_response() -{ -} - -void GetEmailTemplate_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetEmailTemplate_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_EmailTemplateIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))] = ModelBase::toJson(m_EmailTemplate); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetEmailTemplate_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailTemplate")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setEmailTemplate; - ok &= ModelBase::fromJson(fieldValue, refVal_setEmailTemplate); - setEmailTemplate(refVal_setEmailTemplate); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetEmailTemplate_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_EmailTemplateIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailTemplate")), m_EmailTemplate)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetEmailTemplate_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplate")))) - { - std::shared_ptr refVal_setEmailTemplate; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))), refVal_setEmailTemplate ); - setEmailTemplate(refVal_setEmailTemplate); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetEmailTemplate_200_response::getStatus() const -{ - return m_Status; -} - - -void GetEmailTemplate_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetEmailTemplate_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetEmailTemplate_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetEmailTemplate_200_response::getEmailTemplate() const -{ - return m_EmailTemplate; -} - - -void GetEmailTemplate_200_response::setEmailTemplate(const std::shared_ptr& value) -{ - m_EmailTemplate = value; - m_EmailTemplateIsSet = true; -} - -bool GetEmailTemplate_200_response::emailTemplateIsSet() const -{ - return m_EmailTemplateIsSet; -} - -void GetEmailTemplate_200_response::unsetEmailTemplate() -{ - m_EmailTemplateIsSet = false; -} -utility::string_t GetEmailTemplate_200_response::getReason() const -{ - return m_Reason; -} - - -void GetEmailTemplate_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetEmailTemplate_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetEmailTemplate_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetEmailTemplate_200_response::getCode() const -{ - return m_Code; -} - - -void GetEmailTemplate_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetEmailTemplate_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetEmailTemplate_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetEmailTemplate_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetEmailTemplate_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetEmailTemplate_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetEmailTemplate_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetEmailTemplate_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetEmailTemplate_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetEmailTemplate_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetEmailTemplate_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetEmailTemplate_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetEmailTemplate_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetEmailTemplate_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetEmailTemplate_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetEmailTemplate_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetEmailTemplate_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetEmailTemplate_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetEmailTemplate_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetEmailTemplate_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetEmailTemplate_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetEmailTemplate_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetEmailTemplate_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetEmailTemplatesResponse.cpp b/client/src/model/GetEmailTemplatesResponse.cpp index ec15bfd..268abde 100644 --- a/client/src/model/GetEmailTemplatesResponse.cpp +++ b/client/src/model/GetEmailTemplatesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetEmailTemplatesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_EmailTemplatesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplates"))] = ModelBase::toJson(m_EmailTemplates); } diff --git a/client/src/model/GetEmailTemplates_200_response.cpp b/client/src/model/GetEmailTemplates_200_response.cpp deleted file mode 100644 index 031477e..0000000 --- a/client/src/model/GetEmailTemplates_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetEmailTemplates_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetEmailTemplates_200_response::GetEmailTemplates_200_response() -{ - m_StatusIsSet = false; - m_EmailTemplatesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetEmailTemplates_200_response::~GetEmailTemplates_200_response() -{ -} - -void GetEmailTemplates_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetEmailTemplates_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_EmailTemplatesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("emailTemplates"))] = ModelBase::toJson(m_EmailTemplates); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetEmailTemplates_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailTemplates")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailTemplates"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setEmailTemplates; - ok &= ModelBase::fromJson(fieldValue, refVal_setEmailTemplates); - setEmailTemplates(refVal_setEmailTemplates); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetEmailTemplates_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_EmailTemplatesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailTemplates")), m_EmailTemplates)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetEmailTemplates_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplates")))) - { - std::vector> refVal_setEmailTemplates; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplates"))), refVal_setEmailTemplates ); - setEmailTemplates(refVal_setEmailTemplates); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetEmailTemplates_200_response::getStatus() const -{ - return m_Status; -} - - -void GetEmailTemplates_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetEmailTemplates_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetEmailTemplates_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetEmailTemplates_200_response::getEmailTemplates() const -{ - return m_EmailTemplates; -} - - -void GetEmailTemplates_200_response::setEmailTemplates(const std::vector>& value) -{ - m_EmailTemplates = value; - m_EmailTemplatesIsSet = true; -} - -bool GetEmailTemplates_200_response::emailTemplatesIsSet() const -{ - return m_EmailTemplatesIsSet; -} - -void GetEmailTemplates_200_response::unsetEmailTemplates() -{ - m_EmailTemplatesIsSet = false; -} -utility::string_t GetEmailTemplates_200_response::getReason() const -{ - return m_Reason; -} - - -void GetEmailTemplates_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetEmailTemplates_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetEmailTemplates_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetEmailTemplates_200_response::getCode() const -{ - return m_Code; -} - - -void GetEmailTemplates_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetEmailTemplates_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetEmailTemplates_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetEmailTemplates_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetEmailTemplates_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetEmailTemplates_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetEmailTemplates_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetEmailTemplates_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetEmailTemplates_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetEmailTemplates_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetEmailTemplates_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetEmailTemplates_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetEmailTemplates_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetEmailTemplates_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetEmailTemplates_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetEmailTemplates_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetEmailTemplates_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetEmailTemplates_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetEmailTemplates_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetEmailTemplates_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetEmailTemplates_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetEmailTemplates_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetEmailTemplates_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetEventLogResponse.cpp b/client/src/model/GetEventLogResponse.cpp index 58f0073..12138c6 100644 --- a/client/src/model/GetEventLogResponse.cpp +++ b/client/src/model/GetEventLogResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetEventLogResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_EventsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("events"))] = ModelBase::toJson(m_Events); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetEventLog_200_response.cpp b/client/src/model/GetEventLog_200_response.cpp deleted file mode 100644 index 61a1a5b..0000000 --- a/client/src/model/GetEventLog_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetEventLog_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetEventLog_200_response::GetEventLog_200_response() -{ - m_EventsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetEventLog_200_response::~GetEventLog_200_response() -{ -} - -void GetEventLog_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetEventLog_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_EventsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("events"))] = ModelBase::toJson(m_Events); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetEventLog_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("events")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("events"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setEvents; - ok &= ModelBase::fromJson(fieldValue, refVal_setEvents); - setEvents(refVal_setEvents); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetEventLog_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_EventsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("events")), m_Events)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetEventLog_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("events")))) - { - std::vector> refVal_setEvents; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("events"))), refVal_setEvents ); - setEvents(refVal_setEvents); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> GetEventLog_200_response::getEvents() const -{ - return m_Events; -} - - -void GetEventLog_200_response::setEvents(const std::vector>& value) -{ - m_Events = value; - m_EventsIsSet = true; -} - -bool GetEventLog_200_response::eventsIsSet() const -{ - return m_EventsIsSet; -} - -void GetEventLog_200_response::unsetEvents() -{ - m_EventsIsSet = false; -} -std::shared_ptr GetEventLog_200_response::getStatus() const -{ - return m_Status; -} - - -void GetEventLog_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetEventLog_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetEventLog_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetEventLog_200_response::getReason() const -{ - return m_Reason; -} - - -void GetEventLog_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetEventLog_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetEventLog_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetEventLog_200_response::getCode() const -{ - return m_Code; -} - - -void GetEventLog_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetEventLog_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetEventLog_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetEventLog_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetEventLog_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetEventLog_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetEventLog_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetEventLog_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetEventLog_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetEventLog_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetEventLog_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetEventLog_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetEventLog_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetEventLog_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetEventLog_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetEventLog_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetEventLog_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetEventLog_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetEventLog_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetEventLog_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetEventLog_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetEventLog_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetEventLog_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetFeedPostsPublic_200_response.cpp b/client/src/model/GetFeedPostsPublic_200_response.cpp deleted file mode 100644 index 62c7451..0000000 --- a/client/src/model/GetFeedPostsPublic_200_response.cpp +++ /dev/null @@ -1,752 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetFeedPostsPublic_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetFeedPostsPublic_200_response::GetFeedPostsPublic_200_response() -{ - m_MyReactsIsSet = false; - m_StatusIsSet = false; - m_FeedPostsIsSet = false; - m_UrlIdWS = utility::conversions::to_string_t(""); - m_UrlIdWSIsSet = false; - m_UserIdWS = utility::conversions::to_string_t(""); - m_UserIdWSIsSet = false; - m_TenantIdWS = utility::conversions::to_string_t(""); - m_TenantIdWSIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetFeedPostsPublic_200_response::~GetFeedPostsPublic_200_response() -{ -} - -void GetFeedPostsPublic_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetFeedPostsPublic_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_MyReactsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("myReacts"))] = ModelBase::toJson(m_MyReacts); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_FeedPostsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("feedPosts"))] = ModelBase::toJson(m_FeedPosts); - } - if(m_User.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); - } - if(m_UrlIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); - } - if(m_UserIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); - } - if(m_TenantIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))] = ModelBase::toJson(m_TenantIdWS); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetFeedPostsPublic_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("myReacts")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("myReacts"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setMyReacts; - ok &= ModelBase::fromJson(fieldValue, refVal_setMyReacts); - setMyReacts(refVal_setMyReacts); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPosts")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPosts"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setFeedPosts; - ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPosts); - setFeedPosts(refVal_setFeedPosts); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setUser); - setUser(refVal_setUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setUrlIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setUrlIdWS); - setUrlIdWS(refVal_setUrlIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setUserIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserIdWS); - setUserIdWS(refVal_setUserIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTenantIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantIdWS); - setTenantIdWS(refVal_setTenantIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetFeedPostsPublic_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_MyReactsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("myReacts")), m_MyReacts)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_FeedPostsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPosts")), m_FeedPosts)); - } - if(m_User.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); - } - if(m_UrlIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdWS")), m_UrlIdWS)); - } - if(m_UserIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIdWS")), m_UserIdWS)); - } - if(m_TenantIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")), m_TenantIdWS)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetFeedPostsPublic_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("myReacts")))) - { - std::map> refVal_setMyReacts; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("myReacts"))), refVal_setMyReacts ); - setMyReacts(refVal_setMyReacts); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPosts")))) - { - std::vector> refVal_setFeedPosts; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPosts"))), refVal_setFeedPosts ); - setFeedPosts(refVal_setFeedPosts); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); - setUser(refVal_setUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) - { - utility::string_t refVal_setUrlIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))), refVal_setUrlIdWS ); - setUrlIdWS(refVal_setUrlIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) - { - utility::string_t refVal_setUserIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))), refVal_setUserIdWS ); - setUserIdWS(refVal_setUserIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")))) - { - utility::string_t refVal_setTenantIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))), refVal_setTenantIdWS ); - setTenantIdWS(refVal_setTenantIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::map> GetFeedPostsPublic_200_response::getMyReacts() const -{ - return m_MyReacts; -} - - -void GetFeedPostsPublic_200_response::setMyReacts(const std::map>& value) -{ - m_MyReacts = value; - m_MyReactsIsSet = true; -} - -bool GetFeedPostsPublic_200_response::myReactsIsSet() const -{ - return m_MyReactsIsSet; -} - -void GetFeedPostsPublic_200_response::unsetMyReacts() -{ - m_MyReactsIsSet = false; -} -std::shared_ptr GetFeedPostsPublic_200_response::getStatus() const -{ - return m_Status; -} - - -void GetFeedPostsPublic_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetFeedPostsPublic_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetFeedPostsPublic_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetFeedPostsPublic_200_response::getFeedPosts() const -{ - return m_FeedPosts; -} - - -void GetFeedPostsPublic_200_response::setFeedPosts(const std::vector>& value) -{ - m_FeedPosts = value; - m_FeedPostsIsSet = true; -} - -bool GetFeedPostsPublic_200_response::feedPostsIsSet() const -{ - return m_FeedPostsIsSet; -} - -void GetFeedPostsPublic_200_response::unsetFeedPosts() -{ - m_FeedPostsIsSet = false; -} -std::shared_ptr GetFeedPostsPublic_200_response::getUser() const -{ - return m_User.get(); -} - - -void GetFeedPostsPublic_200_response::setUser(const std::shared_ptr& value) -{ - m_User = value; -} - -bool GetFeedPostsPublic_200_response::userIsSet() const -{ - return m_User.has_value(); -} - -void GetFeedPostsPublic_200_response::unsetUser() -{ - m_User.reset(); -} -utility::string_t GetFeedPostsPublic_200_response::getUrlIdWS() const -{ - return m_UrlIdWS; -} - - -void GetFeedPostsPublic_200_response::setUrlIdWS(const utility::string_t& value) -{ - m_UrlIdWS = value; - m_UrlIdWSIsSet = true; -} - -bool GetFeedPostsPublic_200_response::urlIdWSIsSet() const -{ - return m_UrlIdWSIsSet; -} - -void GetFeedPostsPublic_200_response::unsetUrlIdWS() -{ - m_UrlIdWSIsSet = false; -} -utility::string_t GetFeedPostsPublic_200_response::getUserIdWS() const -{ - return m_UserIdWS; -} - - -void GetFeedPostsPublic_200_response::setUserIdWS(const utility::string_t& value) -{ - m_UserIdWS = value; - m_UserIdWSIsSet = true; -} - -bool GetFeedPostsPublic_200_response::userIdWSIsSet() const -{ - return m_UserIdWSIsSet; -} - -void GetFeedPostsPublic_200_response::unsetUserIdWS() -{ - m_UserIdWSIsSet = false; -} -utility::string_t GetFeedPostsPublic_200_response::getTenantIdWS() const -{ - return m_TenantIdWS; -} - - -void GetFeedPostsPublic_200_response::setTenantIdWS(const utility::string_t& value) -{ - m_TenantIdWS = value; - m_TenantIdWSIsSet = true; -} - -bool GetFeedPostsPublic_200_response::tenantIdWSIsSet() const -{ - return m_TenantIdWSIsSet; -} - -void GetFeedPostsPublic_200_response::unsetTenantIdWS() -{ - m_TenantIdWSIsSet = false; -} -utility::string_t GetFeedPostsPublic_200_response::getReason() const -{ - return m_Reason; -} - - -void GetFeedPostsPublic_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetFeedPostsPublic_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetFeedPostsPublic_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetFeedPostsPublic_200_response::getCode() const -{ - return m_Code; -} - - -void GetFeedPostsPublic_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetFeedPostsPublic_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetFeedPostsPublic_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetFeedPostsPublic_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetFeedPostsPublic_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetFeedPostsPublic_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetFeedPostsPublic_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetFeedPostsPublic_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetFeedPostsPublic_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetFeedPostsPublic_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetFeedPostsPublic_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetFeedPostsPublic_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetFeedPostsPublic_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetFeedPostsPublic_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetFeedPostsPublic_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetFeedPostsPublic_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetFeedPostsPublic_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetFeedPostsPublic_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetFeedPostsPublic_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetFeedPostsPublic_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetFeedPostsPublic_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetFeedPostsPublic_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetFeedPostsPublic_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetFeedPostsResponse.cpp b/client/src/model/GetFeedPostsResponse.cpp index c302dcc..7159ad5 100644 --- a/client/src/model/GetFeedPostsResponse.cpp +++ b/client/src/model/GetFeedPostsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetFeedPostsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_FeedPostsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedPosts"))] = ModelBase::toJson(m_FeedPosts); } diff --git a/client/src/model/GetFeedPostsStats_200_response.cpp b/client/src/model/GetFeedPostsStats_200_response.cpp deleted file mode 100644 index e7c9e93..0000000 --- a/client/src/model/GetFeedPostsStats_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetFeedPostsStats_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetFeedPostsStats_200_response::GetFeedPostsStats_200_response() -{ - m_StatusIsSet = false; - m_StatsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetFeedPostsStats_200_response::~GetFeedPostsStats_200_response() -{ -} - -void GetFeedPostsStats_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetFeedPostsStats_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_StatsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("stats"))] = ModelBase::toJson(m_Stats); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetFeedPostsStats_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("stats")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("stats"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setStats; - ok &= ModelBase::fromJson(fieldValue, refVal_setStats); - setStats(refVal_setStats); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetFeedPostsStats_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_StatsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("stats")), m_Stats)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetFeedPostsStats_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("stats")))) - { - std::map> refVal_setStats; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("stats"))), refVal_setStats ); - setStats(refVal_setStats); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetFeedPostsStats_200_response::getStatus() const -{ - return m_Status; -} - - -void GetFeedPostsStats_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetFeedPostsStats_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetFeedPostsStats_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map> GetFeedPostsStats_200_response::getStats() const -{ - return m_Stats; -} - - -void GetFeedPostsStats_200_response::setStats(const std::map>& value) -{ - m_Stats = value; - m_StatsIsSet = true; -} - -bool GetFeedPostsStats_200_response::statsIsSet() const -{ - return m_StatsIsSet; -} - -void GetFeedPostsStats_200_response::unsetStats() -{ - m_StatsIsSet = false; -} -utility::string_t GetFeedPostsStats_200_response::getReason() const -{ - return m_Reason; -} - - -void GetFeedPostsStats_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetFeedPostsStats_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetFeedPostsStats_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetFeedPostsStats_200_response::getCode() const -{ - return m_Code; -} - - -void GetFeedPostsStats_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetFeedPostsStats_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetFeedPostsStats_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetFeedPostsStats_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetFeedPostsStats_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetFeedPostsStats_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetFeedPostsStats_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetFeedPostsStats_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetFeedPostsStats_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetFeedPostsStats_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetFeedPostsStats_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetFeedPostsStats_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetFeedPostsStats_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetFeedPostsStats_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetFeedPostsStats_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetFeedPostsStats_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetFeedPostsStats_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetFeedPostsStats_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetFeedPostsStats_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetFeedPostsStats_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetFeedPostsStats_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetFeedPostsStats_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetFeedPostsStats_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetFeedPosts_200_response.cpp b/client/src/model/GetFeedPosts_200_response.cpp deleted file mode 100644 index 8b3f940..0000000 --- a/client/src/model/GetFeedPosts_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetFeedPosts_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetFeedPosts_200_response::GetFeedPosts_200_response() -{ - m_StatusIsSet = false; - m_FeedPostsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetFeedPosts_200_response::~GetFeedPosts_200_response() -{ -} - -void GetFeedPosts_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetFeedPosts_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_FeedPostsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("feedPosts"))] = ModelBase::toJson(m_FeedPosts); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetFeedPosts_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPosts")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPosts"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setFeedPosts; - ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPosts); - setFeedPosts(refVal_setFeedPosts); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetFeedPosts_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_FeedPostsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPosts")), m_FeedPosts)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetFeedPosts_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPosts")))) - { - std::vector> refVal_setFeedPosts; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPosts"))), refVal_setFeedPosts ); - setFeedPosts(refVal_setFeedPosts); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetFeedPosts_200_response::getStatus() const -{ - return m_Status; -} - - -void GetFeedPosts_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetFeedPosts_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetFeedPosts_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetFeedPosts_200_response::getFeedPosts() const -{ - return m_FeedPosts; -} - - -void GetFeedPosts_200_response::setFeedPosts(const std::vector>& value) -{ - m_FeedPosts = value; - m_FeedPostsIsSet = true; -} - -bool GetFeedPosts_200_response::feedPostsIsSet() const -{ - return m_FeedPostsIsSet; -} - -void GetFeedPosts_200_response::unsetFeedPosts() -{ - m_FeedPostsIsSet = false; -} -utility::string_t GetFeedPosts_200_response::getReason() const -{ - return m_Reason; -} - - -void GetFeedPosts_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetFeedPosts_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetFeedPosts_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetFeedPosts_200_response::getCode() const -{ - return m_Code; -} - - -void GetFeedPosts_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetFeedPosts_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetFeedPosts_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetFeedPosts_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetFeedPosts_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetFeedPosts_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetFeedPosts_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetFeedPosts_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetFeedPosts_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetFeedPosts_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetFeedPosts_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetFeedPosts_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetFeedPosts_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetFeedPosts_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetFeedPosts_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetFeedPosts_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetFeedPosts_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetFeedPosts_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetFeedPosts_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetFeedPosts_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetFeedPosts_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetFeedPosts_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetFeedPosts_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetGifsSearchResponse.cpp b/client/src/model/GetGifsSearchResponse.cpp new file mode 100644 index 0000000..c2bb01d --- /dev/null +++ b/client/src/model/GetGifsSearchResponse.cpp @@ -0,0 +1,220 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetGifsSearchResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetGifsSearchResponse::GetGifsSearchResponse() +{ + m_ImagesIsSet = false; + m_StatusIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; +} + +GetGifsSearchResponse::~GetGifsSearchResponse() +{ +} + +void GetGifsSearchResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetGifsSearchResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ImagesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("images"))] = ModelBase::toJson(m_Images); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + + return val; +} + +bool GetGifsSearchResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("images")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("images"))); + if(!fieldValue.is_null()) + { + std::vector>> refVal_setImages; + ok &= ModelBase::fromJson(fieldValue, refVal_setImages); + setImages(refVal_setImages); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + return ok; +} + +void GetGifsSearchResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ImagesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("images")), m_Images)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } +} + +bool GetGifsSearchResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("images")))) + { + std::vector>> refVal_setImages; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("images"))), refVal_setImages ); + setImages(refVal_setImages); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + return ok; +} + + +std::vector>> GetGifsSearchResponse::getImages() const +{ + return m_Images; +} + + +void GetGifsSearchResponse::setImages(const std::vector>>& value) +{ + m_Images = value; + m_ImagesIsSet = true; +} + +bool GetGifsSearchResponse::imagesIsSet() const +{ + return m_ImagesIsSet; +} + +void GetGifsSearchResponse::unsetImages() +{ + m_ImagesIsSet = false; +} +std::shared_ptr GetGifsSearchResponse::getStatus() const +{ + return m_Status; +} + + +void GetGifsSearchResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetGifsSearchResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetGifsSearchResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetGifsSearchResponse::getCode() const +{ + return m_Code; +} + + +void GetGifsSearchResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetGifsSearchResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetGifsSearchResponse::unsetCode() +{ + m_CodeIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetGifsTrendingResponse.cpp b/client/src/model/GetGifsTrendingResponse.cpp new file mode 100644 index 0000000..25e2225 --- /dev/null +++ b/client/src/model/GetGifsTrendingResponse.cpp @@ -0,0 +1,220 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetGifsTrendingResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetGifsTrendingResponse::GetGifsTrendingResponse() +{ + m_ImagesIsSet = false; + m_StatusIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; +} + +GetGifsTrendingResponse::~GetGifsTrendingResponse() +{ +} + +void GetGifsTrendingResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetGifsTrendingResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ImagesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("images"))] = ModelBase::toJson(m_Images); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + + return val; +} + +bool GetGifsTrendingResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("images")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("images"))); + if(!fieldValue.is_null()) + { + std::vector>> refVal_setImages; + ok &= ModelBase::fromJson(fieldValue, refVal_setImages); + setImages(refVal_setImages); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + return ok; +} + +void GetGifsTrendingResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ImagesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("images")), m_Images)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } +} + +bool GetGifsTrendingResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("images")))) + { + std::vector>> refVal_setImages; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("images"))), refVal_setImages ); + setImages(refVal_setImages); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + return ok; +} + + +std::vector>> GetGifsTrendingResponse::getImages() const +{ + return m_Images; +} + + +void GetGifsTrendingResponse::setImages(const std::vector>>& value) +{ + m_Images = value; + m_ImagesIsSet = true; +} + +bool GetGifsTrendingResponse::imagesIsSet() const +{ + return m_ImagesIsSet; +} + +void GetGifsTrendingResponse::unsetImages() +{ + m_ImagesIsSet = false; +} +std::shared_ptr GetGifsTrendingResponse::getStatus() const +{ + return m_Status; +} + + +void GetGifsTrendingResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetGifsTrendingResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetGifsTrendingResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetGifsTrendingResponse::getCode() const +{ + return m_Code; +} + + +void GetGifsTrendingResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetGifsTrendingResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetGifsTrendingResponse::unsetCode() +{ + m_CodeIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetHashTagsResponse.cpp b/client/src/model/GetHashTagsResponse.cpp index c0f22e1..003dd81 100644 --- a/client/src/model/GetHashTagsResponse.cpp +++ b/client/src/model/GetHashTagsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetHashTagsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } diff --git a/client/src/model/GetHashTags_200_response.cpp b/client/src/model/GetHashTags_200_response.cpp deleted file mode 100644 index 623f681..0000000 --- a/client/src/model/GetHashTags_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetHashTags_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetHashTags_200_response::GetHashTags_200_response() -{ - m_StatusIsSet = false; - m_HashTagsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetHashTags_200_response::~GetHashTags_200_response() -{ -} - -void GetHashTags_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetHashTags_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_HashTagsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetHashTags_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hashTags")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hashTags"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setHashTags; - ok &= ModelBase::fromJson(fieldValue, refVal_setHashTags); - setHashTags(refVal_setHashTags); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetHashTags_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_HashTagsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hashTags")), m_HashTags)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetHashTags_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hashTags")))) - { - std::vector> refVal_setHashTags; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hashTags"))), refVal_setHashTags ); - setHashTags(refVal_setHashTags); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetHashTags_200_response::getStatus() const -{ - return m_Status; -} - - -void GetHashTags_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetHashTags_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetHashTags_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetHashTags_200_response::getHashTags() const -{ - return m_HashTags; -} - - -void GetHashTags_200_response::setHashTags(const std::vector>& value) -{ - m_HashTags = value; - m_HashTagsIsSet = true; -} - -bool GetHashTags_200_response::hashTagsIsSet() const -{ - return m_HashTagsIsSet; -} - -void GetHashTags_200_response::unsetHashTags() -{ - m_HashTagsIsSet = false; -} -utility::string_t GetHashTags_200_response::getReason() const -{ - return m_Reason; -} - - -void GetHashTags_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetHashTags_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetHashTags_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetHashTags_200_response::getCode() const -{ - return m_Code; -} - - -void GetHashTags_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetHashTags_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetHashTags_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetHashTags_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetHashTags_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetHashTags_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetHashTags_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetHashTags_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetHashTags_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetHashTags_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetHashTags_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetHashTags_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetHashTags_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetHashTags_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetHashTags_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetHashTags_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetHashTags_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetHashTags_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetHashTags_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetHashTags_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetHashTags_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetHashTags_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetHashTags_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetModeratorResponse.cpp b/client/src/model/GetModeratorResponse.cpp index b919f58..8e0da03 100644 --- a/client/src/model/GetModeratorResponse.cpp +++ b/client/src/model/GetModeratorResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetModeratorResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderator"))] = ModelBase::toJson(m_Moderator); } diff --git a/client/src/model/GetModerator_200_response.cpp b/client/src/model/GetModerator_200_response.cpp deleted file mode 100644 index 7b8a36b..0000000 --- a/client/src/model/GetModerator_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetModerator_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetModerator_200_response::GetModerator_200_response() -{ - m_StatusIsSet = false; - m_ModeratorIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetModerator_200_response::~GetModerator_200_response() -{ -} - -void GetModerator_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetModerator_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ModeratorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("moderator"))] = ModelBase::toJson(m_Moderator); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetModerator_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderator")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderator"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setModerator; - ok &= ModelBase::fromJson(fieldValue, refVal_setModerator); - setModerator(refVal_setModerator); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetModerator_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ModeratorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderator")), m_Moderator)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetModerator_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderator")))) - { - std::shared_ptr refVal_setModerator; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderator"))), refVal_setModerator ); - setModerator(refVal_setModerator); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetModerator_200_response::getStatus() const -{ - return m_Status; -} - - -void GetModerator_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetModerator_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetModerator_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetModerator_200_response::getModerator() const -{ - return m_Moderator; -} - - -void GetModerator_200_response::setModerator(const std::shared_ptr& value) -{ - m_Moderator = value; - m_ModeratorIsSet = true; -} - -bool GetModerator_200_response::moderatorIsSet() const -{ - return m_ModeratorIsSet; -} - -void GetModerator_200_response::unsetModerator() -{ - m_ModeratorIsSet = false; -} -utility::string_t GetModerator_200_response::getReason() const -{ - return m_Reason; -} - - -void GetModerator_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetModerator_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetModerator_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetModerator_200_response::getCode() const -{ - return m_Code; -} - - -void GetModerator_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetModerator_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetModerator_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetModerator_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetModerator_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetModerator_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetModerator_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetModerator_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetModerator_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetModerator_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetModerator_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetModerator_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetModerator_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetModerator_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetModerator_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetModerator_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetModerator_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetModerator_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetModerator_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetModerator_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetModerator_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetModerator_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetModerator_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetModeratorsResponse.cpp b/client/src/model/GetModeratorsResponse.cpp index 631c9dd..d54f898 100644 --- a/client/src/model/GetModeratorsResponse.cpp +++ b/client/src/model/GetModeratorsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetModeratorsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ModeratorsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderators"))] = ModelBase::toJson(m_Moderators); } diff --git a/client/src/model/GetModerators_200_response.cpp b/client/src/model/GetModerators_200_response.cpp deleted file mode 100644 index a646216..0000000 --- a/client/src/model/GetModerators_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetModerators_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetModerators_200_response::GetModerators_200_response() -{ - m_StatusIsSet = false; - m_ModeratorsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetModerators_200_response::~GetModerators_200_response() -{ -} - -void GetModerators_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetModerators_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ModeratorsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("moderators"))] = ModelBase::toJson(m_Moderators); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetModerators_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderators")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderators"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setModerators; - ok &= ModelBase::fromJson(fieldValue, refVal_setModerators); - setModerators(refVal_setModerators); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetModerators_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ModeratorsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderators")), m_Moderators)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetModerators_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderators")))) - { - std::vector> refVal_setModerators; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderators"))), refVal_setModerators ); - setModerators(refVal_setModerators); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetModerators_200_response::getStatus() const -{ - return m_Status; -} - - -void GetModerators_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetModerators_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetModerators_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetModerators_200_response::getModerators() const -{ - return m_Moderators; -} - - -void GetModerators_200_response::setModerators(const std::vector>& value) -{ - m_Moderators = value; - m_ModeratorsIsSet = true; -} - -bool GetModerators_200_response::moderatorsIsSet() const -{ - return m_ModeratorsIsSet; -} - -void GetModerators_200_response::unsetModerators() -{ - m_ModeratorsIsSet = false; -} -utility::string_t GetModerators_200_response::getReason() const -{ - return m_Reason; -} - - -void GetModerators_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetModerators_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetModerators_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetModerators_200_response::getCode() const -{ - return m_Code; -} - - -void GetModerators_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetModerators_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetModerators_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetModerators_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetModerators_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetModerators_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetModerators_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetModerators_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetModerators_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetModerators_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetModerators_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetModerators_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetModerators_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetModerators_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetModerators_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetModerators_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetModerators_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetModerators_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetModerators_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetModerators_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetModerators_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetModerators_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetModerators_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetMyNotificationsResponse.cpp b/client/src/model/GetMyNotificationsResponse.cpp index 88600ad..f67385e 100644 --- a/client/src/model/GetMyNotificationsResponse.cpp +++ b/client/src/model/GetMyNotificationsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,27 +42,27 @@ web::json::value GetMyNotificationsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_TranslationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); } if(m_IsSubscribedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSubscribed"))] = ModelBase::toJson(m_IsSubscribed); } if(m_HasMoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); } if(m_NotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notifications"))] = ModelBase::toJson(m_Notifications); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetNotificationCountResponse.cpp b/client/src/model/GetNotificationCountResponse.cpp index 03a159d..40278a3 100644 --- a/client/src/model/GetNotificationCountResponse.cpp +++ b/client/src/model/GetNotificationCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value GetNotificationCountResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } diff --git a/client/src/model/GetNotificationCount_200_response.cpp b/client/src/model/GetNotificationCount_200_response.cpp deleted file mode 100644 index 021b917..0000000 --- a/client/src/model/GetNotificationCount_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetNotificationCount_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetNotificationCount_200_response::GetNotificationCount_200_response() -{ - m_StatusIsSet = false; - m_Count = 0.0; - m_CountIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetNotificationCount_200_response::~GetNotificationCount_200_response() -{ -} - -void GetNotificationCount_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetNotificationCount_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetNotificationCount_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); - if(!fieldValue.is_null()) - { - double refVal_setCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setCount); - setCount(refVal_setCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetNotificationCount_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetNotificationCount_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - double refVal_setCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); - setCount(refVal_setCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetNotificationCount_200_response::getStatus() const -{ - return m_Status; -} - - -void GetNotificationCount_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetNotificationCount_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetNotificationCount_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -double GetNotificationCount_200_response::getCount() const -{ - return m_Count; -} - -void GetNotificationCount_200_response::setCount(double value) -{ - m_Count = value; - m_CountIsSet = true; -} - -bool GetNotificationCount_200_response::countIsSet() const -{ - return m_CountIsSet; -} - -void GetNotificationCount_200_response::unsetCount() -{ - m_CountIsSet = false; -} -utility::string_t GetNotificationCount_200_response::getReason() const -{ - return m_Reason; -} - - -void GetNotificationCount_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetNotificationCount_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetNotificationCount_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetNotificationCount_200_response::getCode() const -{ - return m_Code; -} - - -void GetNotificationCount_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetNotificationCount_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetNotificationCount_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetNotificationCount_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetNotificationCount_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetNotificationCount_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetNotificationCount_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetNotificationCount_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetNotificationCount_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetNotificationCount_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetNotificationCount_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetNotificationCount_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetNotificationCount_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetNotificationCount_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetNotificationCount_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetNotificationCount_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetNotificationCount_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetNotificationCount_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetNotificationCount_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetNotificationCount_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetNotificationCount_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetNotificationCount_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetNotificationCount_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetNotificationsResponse.cpp b/client/src/model/GetNotificationsResponse.cpp index e297b79..ce220e9 100644 --- a/client/src/model/GetNotificationsResponse.cpp +++ b/client/src/model/GetNotificationsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetNotificationsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_NotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notifications"))] = ModelBase::toJson(m_Notifications); } diff --git a/client/src/model/GetNotifications_200_response.cpp b/client/src/model/GetNotifications_200_response.cpp deleted file mode 100644 index 27e378c..0000000 --- a/client/src/model/GetNotifications_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetNotifications_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetNotifications_200_response::GetNotifications_200_response() -{ - m_StatusIsSet = false; - m_NotificationsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetNotifications_200_response::~GetNotifications_200_response() -{ -} - -void GetNotifications_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetNotifications_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_NotificationsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("notifications"))] = ModelBase::toJson(m_Notifications); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetNotifications_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notifications")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notifications"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setNotifications; - ok &= ModelBase::fromJson(fieldValue, refVal_setNotifications); - setNotifications(refVal_setNotifications); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetNotifications_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_NotificationsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notifications")), m_Notifications)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetNotifications_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notifications")))) - { - std::vector> refVal_setNotifications; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notifications"))), refVal_setNotifications ); - setNotifications(refVal_setNotifications); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetNotifications_200_response::getStatus() const -{ - return m_Status; -} - - -void GetNotifications_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetNotifications_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetNotifications_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetNotifications_200_response::getNotifications() const -{ - return m_Notifications; -} - - -void GetNotifications_200_response::setNotifications(const std::vector>& value) -{ - m_Notifications = value; - m_NotificationsIsSet = true; -} - -bool GetNotifications_200_response::notificationsIsSet() const -{ - return m_NotificationsIsSet; -} - -void GetNotifications_200_response::unsetNotifications() -{ - m_NotificationsIsSet = false; -} -utility::string_t GetNotifications_200_response::getReason() const -{ - return m_Reason; -} - - -void GetNotifications_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetNotifications_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetNotifications_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetNotifications_200_response::getCode() const -{ - return m_Code; -} - - -void GetNotifications_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetNotifications_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetNotifications_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetNotifications_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetNotifications_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetNotifications_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetNotifications_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetNotifications_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetNotifications_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetNotifications_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetNotifications_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetNotifications_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetNotifications_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetNotifications_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetNotifications_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetNotifications_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetNotifications_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetNotifications_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetNotifications_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetNotifications_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetNotifications_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetNotifications_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetNotifications_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetPageByURLIdAPIResponse.cpp b/client/src/model/GetPageByURLIdAPIResponse.cpp index 4cdc54e..4f03cd2 100644 --- a/client/src/model/GetPageByURLIdAPIResponse.cpp +++ b/client/src/model/GetPageByURLIdAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value GetPageByURLIdAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_PageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("page"))] = ModelBase::toJson(m_Page); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetPagesAPIResponse.cpp b/client/src/model/GetPagesAPIResponse.cpp index 17e657e..e32a6fe 100644 --- a/client/src/model/GetPagesAPIResponse.cpp +++ b/client/src/model/GetPagesAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value GetPagesAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_PagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pages"))] = ModelBase::toJson(m_Pages); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetPendingWebhookEventCountResponse.cpp b/client/src/model/GetPendingWebhookEventCountResponse.cpp index f3a3fa4..ec4e835 100644 --- a/client/src/model/GetPendingWebhookEventCountResponse.cpp +++ b/client/src/model/GetPendingWebhookEventCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value GetPendingWebhookEventCountResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } diff --git a/client/src/model/GetPendingWebhookEventCount_200_response.cpp b/client/src/model/GetPendingWebhookEventCount_200_response.cpp deleted file mode 100644 index 92706cb..0000000 --- a/client/src/model/GetPendingWebhookEventCount_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetPendingWebhookEventCount_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetPendingWebhookEventCount_200_response::GetPendingWebhookEventCount_200_response() -{ - m_StatusIsSet = false; - m_Count = 0.0; - m_CountIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetPendingWebhookEventCount_200_response::~GetPendingWebhookEventCount_200_response() -{ -} - -void GetPendingWebhookEventCount_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetPendingWebhookEventCount_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetPendingWebhookEventCount_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); - if(!fieldValue.is_null()) - { - double refVal_setCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setCount); - setCount(refVal_setCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetPendingWebhookEventCount_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetPendingWebhookEventCount_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - double refVal_setCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); - setCount(refVal_setCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetPendingWebhookEventCount_200_response::getStatus() const -{ - return m_Status; -} - - -void GetPendingWebhookEventCount_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetPendingWebhookEventCount_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetPendingWebhookEventCount_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -double GetPendingWebhookEventCount_200_response::getCount() const -{ - return m_Count; -} - -void GetPendingWebhookEventCount_200_response::setCount(double value) -{ - m_Count = value; - m_CountIsSet = true; -} - -bool GetPendingWebhookEventCount_200_response::countIsSet() const -{ - return m_CountIsSet; -} - -void GetPendingWebhookEventCount_200_response::unsetCount() -{ - m_CountIsSet = false; -} -utility::string_t GetPendingWebhookEventCount_200_response::getReason() const -{ - return m_Reason; -} - - -void GetPendingWebhookEventCount_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetPendingWebhookEventCount_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetPendingWebhookEventCount_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetPendingWebhookEventCount_200_response::getCode() const -{ - return m_Code; -} - - -void GetPendingWebhookEventCount_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetPendingWebhookEventCount_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetPendingWebhookEventCount_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetPendingWebhookEventCount_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetPendingWebhookEventCount_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetPendingWebhookEventCount_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetPendingWebhookEventCount_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetPendingWebhookEventCount_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetPendingWebhookEventCount_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetPendingWebhookEventCount_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetPendingWebhookEventCount_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetPendingWebhookEventCount_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetPendingWebhookEventCount_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetPendingWebhookEventCount_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetPendingWebhookEventCount_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetPendingWebhookEventCount_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetPendingWebhookEventCount_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetPendingWebhookEventCount_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetPendingWebhookEventCount_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetPendingWebhookEventCount_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetPendingWebhookEventCount_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetPendingWebhookEventCount_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetPendingWebhookEventCount_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetPendingWebhookEventsResponse.cpp b/client/src/model/GetPendingWebhookEventsResponse.cpp index 7488eba..06f18f0 100644 --- a/client/src/model/GetPendingWebhookEventsResponse.cpp +++ b/client/src/model/GetPendingWebhookEventsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetPendingWebhookEventsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_PendingWebhookEventsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents"))] = ModelBase::toJson(m_PendingWebhookEvents); } diff --git a/client/src/model/GetPendingWebhookEvents_200_response.cpp b/client/src/model/GetPendingWebhookEvents_200_response.cpp deleted file mode 100644 index 1d56893..0000000 --- a/client/src/model/GetPendingWebhookEvents_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetPendingWebhookEvents_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetPendingWebhookEvents_200_response::GetPendingWebhookEvents_200_response() -{ - m_StatusIsSet = false; - m_PendingWebhookEventsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetPendingWebhookEvents_200_response::~GetPendingWebhookEvents_200_response() -{ -} - -void GetPendingWebhookEvents_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetPendingWebhookEvents_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_PendingWebhookEventsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents"))] = ModelBase::toJson(m_PendingWebhookEvents); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetPendingWebhookEvents_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setPendingWebhookEvents; - ok &= ModelBase::fromJson(fieldValue, refVal_setPendingWebhookEvents); - setPendingWebhookEvents(refVal_setPendingWebhookEvents); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetPendingWebhookEvents_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_PendingWebhookEventsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents")), m_PendingWebhookEvents)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetPendingWebhookEvents_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents")))) - { - std::vector> refVal_setPendingWebhookEvents; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents"))), refVal_setPendingWebhookEvents ); - setPendingWebhookEvents(refVal_setPendingWebhookEvents); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetPendingWebhookEvents_200_response::getStatus() const -{ - return m_Status; -} - - -void GetPendingWebhookEvents_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetPendingWebhookEvents_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetPendingWebhookEvents_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetPendingWebhookEvents_200_response::getPendingWebhookEvents() const -{ - return m_PendingWebhookEvents; -} - - -void GetPendingWebhookEvents_200_response::setPendingWebhookEvents(const std::vector>& value) -{ - m_PendingWebhookEvents = value; - m_PendingWebhookEventsIsSet = true; -} - -bool GetPendingWebhookEvents_200_response::pendingWebhookEventsIsSet() const -{ - return m_PendingWebhookEventsIsSet; -} - -void GetPendingWebhookEvents_200_response::unsetPendingWebhookEvents() -{ - m_PendingWebhookEventsIsSet = false; -} -utility::string_t GetPendingWebhookEvents_200_response::getReason() const -{ - return m_Reason; -} - - -void GetPendingWebhookEvents_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetPendingWebhookEvents_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetPendingWebhookEvents_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetPendingWebhookEvents_200_response::getCode() const -{ - return m_Code; -} - - -void GetPendingWebhookEvents_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetPendingWebhookEvents_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetPendingWebhookEvents_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetPendingWebhookEvents_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetPendingWebhookEvents_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetPendingWebhookEvents_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetPendingWebhookEvents_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetPendingWebhookEvents_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetPendingWebhookEvents_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetPendingWebhookEvents_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetPendingWebhookEvents_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetPendingWebhookEvents_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetPendingWebhookEvents_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetPendingWebhookEvents_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetPendingWebhookEvents_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetPendingWebhookEvents_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetPendingWebhookEvents_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetPendingWebhookEvents_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetPendingWebhookEvents_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetPendingWebhookEvents_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetPendingWebhookEvents_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetPendingWebhookEvents_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetPendingWebhookEvents_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetPublicFeedPostsResponse.cpp b/client/src/model/GetPublicFeedPostsResponse.cpp index 18d74e8..9b7b3c0 100644 --- a/client/src/model/GetPublicFeedPostsResponse.cpp +++ b/client/src/model/GetPublicFeedPostsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,6 +22,7 @@ GetPublicFeedPostsResponse::GetPublicFeedPostsResponse() { m_StatusIsSet = false; m_FeedPostsIsSet = false; + m_UserIsSet = false; } GetPublicFeedPostsResponse::~GetPublicFeedPostsResponse() @@ -37,19 +38,19 @@ web::json::value GetPublicFeedPostsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_FeedPostsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedPosts"))] = ModelBase::toJson(m_FeedPosts); } - if(m_User.has_value()) - { + if(m_UserIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } return val; @@ -109,9 +110,9 @@ void GetPublicFeedPostsResponse::toMultipart(std::shared_ptr { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPosts")), m_FeedPosts)); } - if(m_User.has_value()) + if(m_UserIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); } } @@ -190,23 +191,24 @@ void GetPublicFeedPostsResponse::unsetFeedPosts() } std::shared_ptr GetPublicFeedPostsResponse::getUser() const { - return m_User.get(); + return m_User; } void GetPublicFeedPostsResponse::setUser(const std::shared_ptr& value) { m_User = value; + m_UserIsSet = true; } bool GetPublicFeedPostsResponse::userIsSet() const { - return m_User.has_value(); + return m_UserIsSet; } void GetPublicFeedPostsResponse::unsetUser() { - m_User.reset(); + m_UserIsSet = false; } } diff --git a/client/src/model/GetPublicPagesResponse.cpp b/client/src/model/GetPublicPagesResponse.cpp new file mode 100644 index 0000000..63e9608 --- /dev/null +++ b/client/src/model/GetPublicPagesResponse.cpp @@ -0,0 +1,220 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetPublicPagesResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetPublicPagesResponse::GetPublicPagesResponse() +{ + m_NextCursor = utility::conversions::to_string_t(""); + m_NextCursorIsSet = false; + m_PagesIsSet = false; + m_StatusIsSet = false; +} + +GetPublicPagesResponse::~GetPublicPagesResponse() +{ +} + +void GetPublicPagesResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetPublicPagesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_NextCursorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("nextCursor"))] = ModelBase::toJson(m_NextCursor); + } + if(m_PagesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("pages"))] = ModelBase::toJson(m_Pages); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GetPublicPagesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextCursor")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextCursor"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNextCursor; + ok &= ModelBase::fromJson(fieldValue, refVal_setNextCursor); + setNextCursor(refVal_setNextCursor); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pages")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pages"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setPages; + ok &= ModelBase::fromJson(fieldValue, refVal_setPages); + setPages(refVal_setPages); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GetPublicPagesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_NextCursorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextCursor")), m_NextCursor)); + } + if(m_PagesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pages")), m_Pages)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GetPublicPagesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextCursor")))) + { + utility::string_t refVal_setNextCursor; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextCursor"))), refVal_setNextCursor ); + setNextCursor(refVal_setNextCursor); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pages")))) + { + std::vector> refVal_setPages; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pages"))), refVal_setPages ); + setPages(refVal_setPages); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +utility::string_t GetPublicPagesResponse::getNextCursor() const +{ + return m_NextCursor; +} + + +void GetPublicPagesResponse::setNextCursor(const utility::string_t& value) +{ + m_NextCursor = value; + m_NextCursorIsSet = true; +} + +bool GetPublicPagesResponse::nextCursorIsSet() const +{ + return m_NextCursorIsSet; +} + +void GetPublicPagesResponse::unsetNextCursor() +{ + m_NextCursorIsSet = false; +} +std::vector> GetPublicPagesResponse::getPages() const +{ + return m_Pages; +} + + +void GetPublicPagesResponse::setPages(const std::vector>& value) +{ + m_Pages = value; + m_PagesIsSet = true; +} + +bool GetPublicPagesResponse::pagesIsSet() const +{ + return m_PagesIsSet; +} + +void GetPublicPagesResponse::unsetPages() +{ + m_PagesIsSet = false; +} +std::shared_ptr GetPublicPagesResponse::getStatus() const +{ + return m_Status; +} + + +void GetPublicPagesResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetPublicPagesResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetPublicPagesResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetQuestionConfigResponse.cpp b/client/src/model/GetQuestionConfigResponse.cpp index 87464e2..e85ce0d 100644 --- a/client/src/model/GetQuestionConfigResponse.cpp +++ b/client/src/model/GetQuestionConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetQuestionConfigResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_QuestionConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionConfig"))] = ModelBase::toJson(m_QuestionConfig); } diff --git a/client/src/model/GetQuestionConfig_200_response.cpp b/client/src/model/GetQuestionConfig_200_response.cpp deleted file mode 100644 index 370fc5c..0000000 --- a/client/src/model/GetQuestionConfig_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetQuestionConfig_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetQuestionConfig_200_response::GetQuestionConfig_200_response() -{ - m_StatusIsSet = false; - m_QuestionConfigIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetQuestionConfig_200_response::~GetQuestionConfig_200_response() -{ -} - -void GetQuestionConfig_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetQuestionConfig_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_QuestionConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("questionConfig"))] = ModelBase::toJson(m_QuestionConfig); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetQuestionConfig_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setQuestionConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionConfig); - setQuestionConfig(refVal_setQuestionConfig); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetQuestionConfig_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_QuestionConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionConfig")), m_QuestionConfig)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetQuestionConfig_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionConfig")))) - { - std::shared_ptr refVal_setQuestionConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionConfig"))), refVal_setQuestionConfig ); - setQuestionConfig(refVal_setQuestionConfig); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetQuestionConfig_200_response::getStatus() const -{ - return m_Status; -} - - -void GetQuestionConfig_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetQuestionConfig_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetQuestionConfig_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetQuestionConfig_200_response::getQuestionConfig() const -{ - return m_QuestionConfig; -} - - -void GetQuestionConfig_200_response::setQuestionConfig(const std::shared_ptr& value) -{ - m_QuestionConfig = value; - m_QuestionConfigIsSet = true; -} - -bool GetQuestionConfig_200_response::questionConfigIsSet() const -{ - return m_QuestionConfigIsSet; -} - -void GetQuestionConfig_200_response::unsetQuestionConfig() -{ - m_QuestionConfigIsSet = false; -} -utility::string_t GetQuestionConfig_200_response::getReason() const -{ - return m_Reason; -} - - -void GetQuestionConfig_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetQuestionConfig_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetQuestionConfig_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetQuestionConfig_200_response::getCode() const -{ - return m_Code; -} - - -void GetQuestionConfig_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetQuestionConfig_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetQuestionConfig_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetQuestionConfig_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetQuestionConfig_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetQuestionConfig_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetQuestionConfig_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetQuestionConfig_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetQuestionConfig_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetQuestionConfig_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetQuestionConfig_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetQuestionConfig_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetQuestionConfig_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetQuestionConfig_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetQuestionConfig_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetQuestionConfig_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetQuestionConfig_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetQuestionConfig_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetQuestionConfig_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetQuestionConfig_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetQuestionConfig_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetQuestionConfig_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetQuestionConfig_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetQuestionConfigsResponse.cpp b/client/src/model/GetQuestionConfigsResponse.cpp index 8ff86f4..12bf169 100644 --- a/client/src/model/GetQuestionConfigsResponse.cpp +++ b/client/src/model/GetQuestionConfigsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetQuestionConfigsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_QuestionConfigsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionConfigs"))] = ModelBase::toJson(m_QuestionConfigs); } diff --git a/client/src/model/GetQuestionConfigs_200_response.cpp b/client/src/model/GetQuestionConfigs_200_response.cpp deleted file mode 100644 index bc8baa0..0000000 --- a/client/src/model/GetQuestionConfigs_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetQuestionConfigs_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetQuestionConfigs_200_response::GetQuestionConfigs_200_response() -{ - m_StatusIsSet = false; - m_QuestionConfigsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetQuestionConfigs_200_response::~GetQuestionConfigs_200_response() -{ -} - -void GetQuestionConfigs_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetQuestionConfigs_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_QuestionConfigsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("questionConfigs"))] = ModelBase::toJson(m_QuestionConfigs); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetQuestionConfigs_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionConfigs")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionConfigs"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setQuestionConfigs; - ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionConfigs); - setQuestionConfigs(refVal_setQuestionConfigs); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetQuestionConfigs_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_QuestionConfigsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionConfigs")), m_QuestionConfigs)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetQuestionConfigs_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionConfigs")))) - { - std::vector> refVal_setQuestionConfigs; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionConfigs"))), refVal_setQuestionConfigs ); - setQuestionConfigs(refVal_setQuestionConfigs); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetQuestionConfigs_200_response::getStatus() const -{ - return m_Status; -} - - -void GetQuestionConfigs_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetQuestionConfigs_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetQuestionConfigs_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetQuestionConfigs_200_response::getQuestionConfigs() const -{ - return m_QuestionConfigs; -} - - -void GetQuestionConfigs_200_response::setQuestionConfigs(const std::vector>& value) -{ - m_QuestionConfigs = value; - m_QuestionConfigsIsSet = true; -} - -bool GetQuestionConfigs_200_response::questionConfigsIsSet() const -{ - return m_QuestionConfigsIsSet; -} - -void GetQuestionConfigs_200_response::unsetQuestionConfigs() -{ - m_QuestionConfigsIsSet = false; -} -utility::string_t GetQuestionConfigs_200_response::getReason() const -{ - return m_Reason; -} - - -void GetQuestionConfigs_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetQuestionConfigs_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetQuestionConfigs_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetQuestionConfigs_200_response::getCode() const -{ - return m_Code; -} - - -void GetQuestionConfigs_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetQuestionConfigs_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetQuestionConfigs_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetQuestionConfigs_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetQuestionConfigs_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetQuestionConfigs_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetQuestionConfigs_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetQuestionConfigs_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetQuestionConfigs_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetQuestionConfigs_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetQuestionConfigs_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetQuestionConfigs_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetQuestionConfigs_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetQuestionConfigs_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetQuestionConfigs_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetQuestionConfigs_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetQuestionConfigs_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetQuestionConfigs_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetQuestionConfigs_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetQuestionConfigs_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetQuestionConfigs_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetQuestionConfigs_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetQuestionConfigs_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetQuestionResultResponse.cpp b/client/src/model/GetQuestionResultResponse.cpp index b1650c0..0606e29 100644 --- a/client/src/model/GetQuestionResultResponse.cpp +++ b/client/src/model/GetQuestionResultResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetQuestionResultResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_QuestionResultIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionResult"))] = ModelBase::toJson(m_QuestionResult); } diff --git a/client/src/model/GetQuestionResult_200_response.cpp b/client/src/model/GetQuestionResult_200_response.cpp deleted file mode 100644 index 60b8db0..0000000 --- a/client/src/model/GetQuestionResult_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetQuestionResult_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetQuestionResult_200_response::GetQuestionResult_200_response() -{ - m_StatusIsSet = false; - m_QuestionResultIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetQuestionResult_200_response::~GetQuestionResult_200_response() -{ -} - -void GetQuestionResult_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetQuestionResult_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_QuestionResultIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("questionResult"))] = ModelBase::toJson(m_QuestionResult); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetQuestionResult_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionResult")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionResult"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setQuestionResult; - ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionResult); - setQuestionResult(refVal_setQuestionResult); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetQuestionResult_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_QuestionResultIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionResult")), m_QuestionResult)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetQuestionResult_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionResult")))) - { - std::shared_ptr refVal_setQuestionResult; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionResult"))), refVal_setQuestionResult ); - setQuestionResult(refVal_setQuestionResult); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetQuestionResult_200_response::getStatus() const -{ - return m_Status; -} - - -void GetQuestionResult_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetQuestionResult_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetQuestionResult_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetQuestionResult_200_response::getQuestionResult() const -{ - return m_QuestionResult; -} - - -void GetQuestionResult_200_response::setQuestionResult(const std::shared_ptr& value) -{ - m_QuestionResult = value; - m_QuestionResultIsSet = true; -} - -bool GetQuestionResult_200_response::questionResultIsSet() const -{ - return m_QuestionResultIsSet; -} - -void GetQuestionResult_200_response::unsetQuestionResult() -{ - m_QuestionResultIsSet = false; -} -utility::string_t GetQuestionResult_200_response::getReason() const -{ - return m_Reason; -} - - -void GetQuestionResult_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetQuestionResult_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetQuestionResult_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetQuestionResult_200_response::getCode() const -{ - return m_Code; -} - - -void GetQuestionResult_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetQuestionResult_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetQuestionResult_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetQuestionResult_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetQuestionResult_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetQuestionResult_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetQuestionResult_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetQuestionResult_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetQuestionResult_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetQuestionResult_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetQuestionResult_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetQuestionResult_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetQuestionResult_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetQuestionResult_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetQuestionResult_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetQuestionResult_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetQuestionResult_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetQuestionResult_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetQuestionResult_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetQuestionResult_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetQuestionResult_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetQuestionResult_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetQuestionResult_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetQuestionResultsResponse.cpp b/client/src/model/GetQuestionResultsResponse.cpp index 1a7b55c..166df00 100644 --- a/client/src/model/GetQuestionResultsResponse.cpp +++ b/client/src/model/GetQuestionResultsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetQuestionResultsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_QuestionResultsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionResults"))] = ModelBase::toJson(m_QuestionResults); } diff --git a/client/src/model/GetQuestionResults_200_response.cpp b/client/src/model/GetQuestionResults_200_response.cpp deleted file mode 100644 index 80aa6ce..0000000 --- a/client/src/model/GetQuestionResults_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetQuestionResults_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetQuestionResults_200_response::GetQuestionResults_200_response() -{ - m_StatusIsSet = false; - m_QuestionResultsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetQuestionResults_200_response::~GetQuestionResults_200_response() -{ -} - -void GetQuestionResults_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetQuestionResults_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_QuestionResultsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("questionResults"))] = ModelBase::toJson(m_QuestionResults); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetQuestionResults_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionResults")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionResults"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setQuestionResults; - ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionResults); - setQuestionResults(refVal_setQuestionResults); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetQuestionResults_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_QuestionResultsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionResults")), m_QuestionResults)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetQuestionResults_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionResults")))) - { - std::vector> refVal_setQuestionResults; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionResults"))), refVal_setQuestionResults ); - setQuestionResults(refVal_setQuestionResults); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetQuestionResults_200_response::getStatus() const -{ - return m_Status; -} - - -void GetQuestionResults_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetQuestionResults_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetQuestionResults_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetQuestionResults_200_response::getQuestionResults() const -{ - return m_QuestionResults; -} - - -void GetQuestionResults_200_response::setQuestionResults(const std::vector>& value) -{ - m_QuestionResults = value; - m_QuestionResultsIsSet = true; -} - -bool GetQuestionResults_200_response::questionResultsIsSet() const -{ - return m_QuestionResultsIsSet; -} - -void GetQuestionResults_200_response::unsetQuestionResults() -{ - m_QuestionResultsIsSet = false; -} -utility::string_t GetQuestionResults_200_response::getReason() const -{ - return m_Reason; -} - - -void GetQuestionResults_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetQuestionResults_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetQuestionResults_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetQuestionResults_200_response::getCode() const -{ - return m_Code; -} - - -void GetQuestionResults_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetQuestionResults_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetQuestionResults_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetQuestionResults_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetQuestionResults_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetQuestionResults_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetQuestionResults_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetQuestionResults_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetQuestionResults_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetQuestionResults_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetQuestionResults_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetQuestionResults_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetQuestionResults_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetQuestionResults_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetQuestionResults_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetQuestionResults_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetQuestionResults_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetQuestionResults_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetQuestionResults_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetQuestionResults_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetQuestionResults_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetQuestionResults_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetQuestionResults_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetSSOUserByEmailAPIResponse.cpp b/client/src/model/GetSSOUserByEmailAPIResponse.cpp index a21f253..930ae61 100644 --- a/client/src/model/GetSSOUserByEmailAPIResponse.cpp +++ b/client/src/model/GetSSOUserByEmailAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value GetSSOUserByEmailAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetSSOUserByIdAPIResponse.cpp b/client/src/model/GetSSOUserByIdAPIResponse.cpp index d7e78c1..3efae99 100644 --- a/client/src/model/GetSSOUserByIdAPIResponse.cpp +++ b/client/src/model/GetSSOUserByIdAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value GetSSOUserByIdAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetSSOUsers_200_response.cpp b/client/src/model/GetSSOUsersResponse.cpp similarity index 75% rename from client/src/model/GetSSOUsers_200_response.cpp rename to client/src/model/GetSSOUsersResponse.cpp index e9f89f3..87c9520 100644 --- a/client/src/model/GetSSOUsers_200_response.cpp +++ b/client/src/model/GetSSOUsersResponse.cpp @@ -4,46 +4,46 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/GetSSOUsers_200_response.h" +#include "FastCommentsClient/model/GetSSOUsersResponse.h" namespace org { namespace openapitools { namespace client { namespace model { -GetSSOUsers_200_response::GetSSOUsers_200_response() +GetSSOUsersResponse::GetSSOUsersResponse() { m_UsersIsSet = false; m_Status = utility::conversions::to_string_t(""); m_StatusIsSet = false; } -GetSSOUsers_200_response::~GetSSOUsers_200_response() +GetSSOUsersResponse::~GetSSOUsersResponse() { } -void GetSSOUsers_200_response::validate() +void GetSSOUsersResponse::validate() { // TODO: implement validation } -web::json::value GetSSOUsers_200_response::toJson() const +web::json::value GetSSOUsersResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_UsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } @@ -51,7 +51,7 @@ web::json::value GetSSOUsers_200_response::toJson() const return val; } -bool GetSSOUsers_200_response::fromJson(const web::json::value& val) +bool GetSSOUsersResponse::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) @@ -79,7 +79,7 @@ bool GetSSOUsers_200_response::fromJson(const web::json::value& val) return ok; } -void GetSSOUsers_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void GetSSOUsersResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) @@ -96,7 +96,7 @@ void GetSSOUsers_200_response::toMultipart(std::shared_ptr mu } } -bool GetSSOUsers_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool GetSSOUsersResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -121,45 +121,45 @@ bool GetSSOUsers_200_response::fromMultiPart(std::shared_ptr } -std::vector> GetSSOUsers_200_response::getUsers() const +std::vector> GetSSOUsersResponse::getUsers() const { return m_Users; } -void GetSSOUsers_200_response::setUsers(const std::vector>& value) +void GetSSOUsersResponse::setUsers(const std::vector>& value) { m_Users = value; m_UsersIsSet = true; } -bool GetSSOUsers_200_response::usersIsSet() const +bool GetSSOUsersResponse::usersIsSet() const { return m_UsersIsSet; } -void GetSSOUsers_200_response::unsetUsers() +void GetSSOUsersResponse::unsetUsers() { m_UsersIsSet = false; } -utility::string_t GetSSOUsers_200_response::getStatus() const +utility::string_t GetSSOUsersResponse::getStatus() const { return m_Status; } -void GetSSOUsers_200_response::setStatus(const utility::string_t& value) +void GetSSOUsersResponse::setStatus(const utility::string_t& value) { m_Status = value; m_StatusIsSet = true; } -bool GetSSOUsers_200_response::statusIsSet() const +bool GetSSOUsersResponse::statusIsSet() const { return m_StatusIsSet; } -void GetSSOUsers_200_response::unsetStatus() +void GetSSOUsersResponse::unsetStatus() { m_StatusIsSet = false; } diff --git a/client/src/model/GetSubscriptionsAPIResponse.cpp b/client/src/model/GetSubscriptionsAPIResponse.cpp index 6a6abbd..76a7b20 100644 --- a/client/src/model/GetSubscriptionsAPIResponse.cpp +++ b/client/src/model/GetSubscriptionsAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value GetSubscriptionsAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_SubscriptionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subscriptions"))] = ModelBase::toJson(m_Subscriptions); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetTenantDailyUsagesResponse.cpp b/client/src/model/GetTenantDailyUsagesResponse.cpp index 7c4a057..56286b3 100644 --- a/client/src/model/GetTenantDailyUsagesResponse.cpp +++ b/client/src/model/GetTenantDailyUsagesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantDailyUsagesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantDailyUsagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages"))] = ModelBase::toJson(m_TenantDailyUsages); } diff --git a/client/src/model/GetTenantDailyUsages_200_response.cpp b/client/src/model/GetTenantDailyUsages_200_response.cpp deleted file mode 100644 index 426afa9..0000000 --- a/client/src/model/GetTenantDailyUsages_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenantDailyUsages_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenantDailyUsages_200_response::GetTenantDailyUsages_200_response() -{ - m_StatusIsSet = false; - m_TenantDailyUsagesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenantDailyUsages_200_response::~GetTenantDailyUsages_200_response() -{ -} - -void GetTenantDailyUsages_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenantDailyUsages_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantDailyUsagesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages"))] = ModelBase::toJson(m_TenantDailyUsages); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenantDailyUsages_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setTenantDailyUsages; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantDailyUsages); - setTenantDailyUsages(refVal_setTenantDailyUsages); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenantDailyUsages_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantDailyUsagesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages")), m_TenantDailyUsages)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenantDailyUsages_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages")))) - { - std::vector> refVal_setTenantDailyUsages; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages"))), refVal_setTenantDailyUsages ); - setTenantDailyUsages(refVal_setTenantDailyUsages); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenantDailyUsages_200_response::getStatus() const -{ - return m_Status; -} - - -void GetTenantDailyUsages_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenantDailyUsages_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenantDailyUsages_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetTenantDailyUsages_200_response::getTenantDailyUsages() const -{ - return m_TenantDailyUsages; -} - - -void GetTenantDailyUsages_200_response::setTenantDailyUsages(const std::vector>& value) -{ - m_TenantDailyUsages = value; - m_TenantDailyUsagesIsSet = true; -} - -bool GetTenantDailyUsages_200_response::tenantDailyUsagesIsSet() const -{ - return m_TenantDailyUsagesIsSet; -} - -void GetTenantDailyUsages_200_response::unsetTenantDailyUsages() -{ - m_TenantDailyUsagesIsSet = false; -} -utility::string_t GetTenantDailyUsages_200_response::getReason() const -{ - return m_Reason; -} - - -void GetTenantDailyUsages_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenantDailyUsages_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenantDailyUsages_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenantDailyUsages_200_response::getCode() const -{ - return m_Code; -} - - -void GetTenantDailyUsages_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenantDailyUsages_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenantDailyUsages_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenantDailyUsages_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenantDailyUsages_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenantDailyUsages_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenantDailyUsages_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenantDailyUsages_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenantDailyUsages_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenantDailyUsages_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenantDailyUsages_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenantDailyUsages_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenantDailyUsages_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenantDailyUsages_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenantDailyUsages_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenantDailyUsages_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenantDailyUsages_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenantDailyUsages_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenantDailyUsages_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenantDailyUsages_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenantDailyUsages_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenantDailyUsages_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenantDailyUsages_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTenantManualBadgesResponse.cpp b/client/src/model/GetTenantManualBadgesResponse.cpp new file mode 100644 index 0000000..7673b78 --- /dev/null +++ b/client/src/model/GetTenantManualBadgesResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetTenantManualBadgesResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetTenantManualBadgesResponse::GetTenantManualBadgesResponse() +{ + m_BadgesIsSet = false; + m_StatusIsSet = false; +} + +GetTenantManualBadgesResponse::~GetTenantManualBadgesResponse() +{ +} + +void GetTenantManualBadgesResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetTenantManualBadgesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_BadgesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GetTenantManualBadgesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("badges"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromJson(fieldValue, refVal_setBadges); + setBadges(refVal_setBadges); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GetTenantManualBadgesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_BadgesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GetTenantManualBadgesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badges"))), refVal_setBadges ); + setBadges(refVal_setBadges); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector> GetTenantManualBadgesResponse::getBadges() const +{ + return m_Badges; +} + + +void GetTenantManualBadgesResponse::setBadges(const std::vector>& value) +{ + m_Badges = value; + m_BadgesIsSet = true; +} + +bool GetTenantManualBadgesResponse::badgesIsSet() const +{ + return m_BadgesIsSet; +} + +void GetTenantManualBadgesResponse::unsetBadges() +{ + m_BadgesIsSet = false; +} +std::shared_ptr GetTenantManualBadgesResponse::getStatus() const +{ + return m_Status; +} + + +void GetTenantManualBadgesResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetTenantManualBadgesResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetTenantManualBadgesResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetTenantPackageResponse.cpp b/client/src/model/GetTenantPackageResponse.cpp index 181e82d..7c1dabb 100644 --- a/client/src/model/GetTenantPackageResponse.cpp +++ b/client/src/model/GetTenantPackageResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantPackageResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantPackageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))] = ModelBase::toJson(m_TenantPackage); } diff --git a/client/src/model/GetTenantPackage_200_response.cpp b/client/src/model/GetTenantPackage_200_response.cpp deleted file mode 100644 index 2e37687..0000000 --- a/client/src/model/GetTenantPackage_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenantPackage_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenantPackage_200_response::GetTenantPackage_200_response() -{ - m_StatusIsSet = false; - m_TenantPackageIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenantPackage_200_response::~GetTenantPackage_200_response() -{ -} - -void GetTenantPackage_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenantPackage_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantPackageIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))] = ModelBase::toJson(m_TenantPackage); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenantPackage_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantPackage")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTenantPackage; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantPackage); - setTenantPackage(refVal_setTenantPackage); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenantPackage_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantPackageIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantPackage")), m_TenantPackage)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenantPackage_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackage")))) - { - std::shared_ptr refVal_setTenantPackage; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))), refVal_setTenantPackage ); - setTenantPackage(refVal_setTenantPackage); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenantPackage_200_response::getStatus() const -{ - return m_Status; -} - - -void GetTenantPackage_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenantPackage_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenantPackage_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetTenantPackage_200_response::getTenantPackage() const -{ - return m_TenantPackage; -} - - -void GetTenantPackage_200_response::setTenantPackage(const std::shared_ptr& value) -{ - m_TenantPackage = value; - m_TenantPackageIsSet = true; -} - -bool GetTenantPackage_200_response::tenantPackageIsSet() const -{ - return m_TenantPackageIsSet; -} - -void GetTenantPackage_200_response::unsetTenantPackage() -{ - m_TenantPackageIsSet = false; -} -utility::string_t GetTenantPackage_200_response::getReason() const -{ - return m_Reason; -} - - -void GetTenantPackage_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenantPackage_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenantPackage_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenantPackage_200_response::getCode() const -{ - return m_Code; -} - - -void GetTenantPackage_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenantPackage_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenantPackage_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenantPackage_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenantPackage_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenantPackage_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenantPackage_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenantPackage_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenantPackage_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenantPackage_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenantPackage_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenantPackage_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenantPackage_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenantPackage_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenantPackage_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenantPackage_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenantPackage_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenantPackage_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenantPackage_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenantPackage_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenantPackage_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenantPackage_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenantPackage_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTenantPackagesResponse.cpp b/client/src/model/GetTenantPackagesResponse.cpp index 8c1e4ef..dff3ca3 100644 --- a/client/src/model/GetTenantPackagesResponse.cpp +++ b/client/src/model/GetTenantPackagesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantPackagesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantPackagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantPackages"))] = ModelBase::toJson(m_TenantPackages); } diff --git a/client/src/model/GetTenantPackages_200_response.cpp b/client/src/model/GetTenantPackages_200_response.cpp deleted file mode 100644 index 0a591d1..0000000 --- a/client/src/model/GetTenantPackages_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenantPackages_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenantPackages_200_response::GetTenantPackages_200_response() -{ - m_StatusIsSet = false; - m_TenantPackagesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenantPackages_200_response::~GetTenantPackages_200_response() -{ -} - -void GetTenantPackages_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenantPackages_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantPackagesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantPackages"))] = ModelBase::toJson(m_TenantPackages); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenantPackages_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantPackages")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantPackages"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setTenantPackages; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantPackages); - setTenantPackages(refVal_setTenantPackages); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenantPackages_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantPackagesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantPackages")), m_TenantPackages)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenantPackages_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackages")))) - { - std::vector> refVal_setTenantPackages; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackages"))), refVal_setTenantPackages ); - setTenantPackages(refVal_setTenantPackages); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenantPackages_200_response::getStatus() const -{ - return m_Status; -} - - -void GetTenantPackages_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenantPackages_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenantPackages_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetTenantPackages_200_response::getTenantPackages() const -{ - return m_TenantPackages; -} - - -void GetTenantPackages_200_response::setTenantPackages(const std::vector>& value) -{ - m_TenantPackages = value; - m_TenantPackagesIsSet = true; -} - -bool GetTenantPackages_200_response::tenantPackagesIsSet() const -{ - return m_TenantPackagesIsSet; -} - -void GetTenantPackages_200_response::unsetTenantPackages() -{ - m_TenantPackagesIsSet = false; -} -utility::string_t GetTenantPackages_200_response::getReason() const -{ - return m_Reason; -} - - -void GetTenantPackages_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenantPackages_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenantPackages_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenantPackages_200_response::getCode() const -{ - return m_Code; -} - - -void GetTenantPackages_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenantPackages_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenantPackages_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenantPackages_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenantPackages_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenantPackages_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenantPackages_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenantPackages_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenantPackages_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenantPackages_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenantPackages_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenantPackages_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenantPackages_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenantPackages_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenantPackages_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenantPackages_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenantPackages_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenantPackages_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenantPackages_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenantPackages_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenantPackages_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenantPackages_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenantPackages_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTenantResponse.cpp b/client/src/model/GetTenantResponse.cpp index 8b043a4..eb30325 100644 --- a/client/src/model/GetTenantResponse.cpp +++ b/client/src/model/GetTenantResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenant"))] = ModelBase::toJson(m_Tenant); } diff --git a/client/src/model/GetTenantUserResponse.cpp b/client/src/model/GetTenantUserResponse.cpp index ff4f947..3e48ac9 100644 --- a/client/src/model/GetTenantUserResponse.cpp +++ b/client/src/model/GetTenantUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantUserResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantUser"))] = ModelBase::toJson(m_TenantUser); } diff --git a/client/src/model/GetTenantUser_200_response.cpp b/client/src/model/GetTenantUser_200_response.cpp deleted file mode 100644 index 4da185a..0000000 --- a/client/src/model/GetTenantUser_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenantUser_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenantUser_200_response::GetTenantUser_200_response() -{ - m_StatusIsSet = false; - m_TenantUserIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenantUser_200_response::~GetTenantUser_200_response() -{ -} - -void GetTenantUser_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenantUser_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantUserIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantUser"))] = ModelBase::toJson(m_TenantUser); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenantUser_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantUser")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantUser"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTenantUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantUser); - setTenantUser(refVal_setTenantUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenantUser_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantUserIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantUser")), m_TenantUser)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenantUser_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantUser")))) - { - std::shared_ptr refVal_setTenantUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantUser"))), refVal_setTenantUser ); - setTenantUser(refVal_setTenantUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenantUser_200_response::getStatus() const -{ - return m_Status; -} - - -void GetTenantUser_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenantUser_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenantUser_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetTenantUser_200_response::getTenantUser() const -{ - return m_TenantUser; -} - - -void GetTenantUser_200_response::setTenantUser(const std::shared_ptr& value) -{ - m_TenantUser = value; - m_TenantUserIsSet = true; -} - -bool GetTenantUser_200_response::tenantUserIsSet() const -{ - return m_TenantUserIsSet; -} - -void GetTenantUser_200_response::unsetTenantUser() -{ - m_TenantUserIsSet = false; -} -utility::string_t GetTenantUser_200_response::getReason() const -{ - return m_Reason; -} - - -void GetTenantUser_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenantUser_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenantUser_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenantUser_200_response::getCode() const -{ - return m_Code; -} - - -void GetTenantUser_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenantUser_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenantUser_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenantUser_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenantUser_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenantUser_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenantUser_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenantUser_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenantUser_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenantUser_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenantUser_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenantUser_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenantUser_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenantUser_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenantUser_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenantUser_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenantUser_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenantUser_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenantUser_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenantUser_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenantUser_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenantUser_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenantUser_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTenantUsersResponse.cpp b/client/src/model/GetTenantUsersResponse.cpp index 057be9f..bd50638 100644 --- a/client/src/model/GetTenantUsersResponse.cpp +++ b/client/src/model/GetTenantUsersResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantUsersResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantUsers"))] = ModelBase::toJson(m_TenantUsers); } diff --git a/client/src/model/GetTenantUsers_200_response.cpp b/client/src/model/GetTenantUsers_200_response.cpp deleted file mode 100644 index 673043a..0000000 --- a/client/src/model/GetTenantUsers_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenantUsers_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenantUsers_200_response::GetTenantUsers_200_response() -{ - m_StatusIsSet = false; - m_TenantUsersIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenantUsers_200_response::~GetTenantUsers_200_response() -{ -} - -void GetTenantUsers_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenantUsers_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantUsersIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantUsers"))] = ModelBase::toJson(m_TenantUsers); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenantUsers_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantUsers")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantUsers"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setTenantUsers; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantUsers); - setTenantUsers(refVal_setTenantUsers); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenantUsers_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantUsersIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantUsers")), m_TenantUsers)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenantUsers_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantUsers")))) - { - std::vector> refVal_setTenantUsers; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantUsers"))), refVal_setTenantUsers ); - setTenantUsers(refVal_setTenantUsers); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenantUsers_200_response::getStatus() const -{ - return m_Status; -} - - -void GetTenantUsers_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenantUsers_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenantUsers_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetTenantUsers_200_response::getTenantUsers() const -{ - return m_TenantUsers; -} - - -void GetTenantUsers_200_response::setTenantUsers(const std::vector>& value) -{ - m_TenantUsers = value; - m_TenantUsersIsSet = true; -} - -bool GetTenantUsers_200_response::tenantUsersIsSet() const -{ - return m_TenantUsersIsSet; -} - -void GetTenantUsers_200_response::unsetTenantUsers() -{ - m_TenantUsersIsSet = false; -} -utility::string_t GetTenantUsers_200_response::getReason() const -{ - return m_Reason; -} - - -void GetTenantUsers_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenantUsers_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenantUsers_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenantUsers_200_response::getCode() const -{ - return m_Code; -} - - -void GetTenantUsers_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenantUsers_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenantUsers_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenantUsers_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenantUsers_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenantUsers_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenantUsers_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenantUsers_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenantUsers_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenantUsers_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenantUsers_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenantUsers_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenantUsers_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenantUsers_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenantUsers_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenantUsers_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenantUsers_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenantUsers_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenantUsers_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenantUsers_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenantUsers_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenantUsers_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenantUsers_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTenant_200_response.cpp b/client/src/model/GetTenant_200_response.cpp deleted file mode 100644 index cd15da1..0000000 --- a/client/src/model/GetTenant_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenant_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenant_200_response::GetTenant_200_response() -{ - m_StatusIsSet = false; - m_TenantIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenant_200_response::~GetTenant_200_response() -{ -} - -void GetTenant_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenant_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenant"))] = ModelBase::toJson(m_Tenant); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenant_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenant")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenant"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTenant; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenant); - setTenant(refVal_setTenant); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenant_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenant")), m_Tenant)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenant_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenant")))) - { - std::shared_ptr refVal_setTenant; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenant"))), refVal_setTenant ); - setTenant(refVal_setTenant); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenant_200_response::getStatus() const -{ - return m_Status; -} - - -void GetTenant_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenant_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenant_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetTenant_200_response::getTenant() const -{ - return m_Tenant; -} - - -void GetTenant_200_response::setTenant(const std::shared_ptr& value) -{ - m_Tenant = value; - m_TenantIsSet = true; -} - -bool GetTenant_200_response::tenantIsSet() const -{ - return m_TenantIsSet; -} - -void GetTenant_200_response::unsetTenant() -{ - m_TenantIsSet = false; -} -utility::string_t GetTenant_200_response::getReason() const -{ - return m_Reason; -} - - -void GetTenant_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenant_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenant_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenant_200_response::getCode() const -{ - return m_Code; -} - - -void GetTenant_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenant_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenant_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenant_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenant_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenant_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenant_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenant_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenant_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenant_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenant_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenant_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenant_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenant_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenant_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenant_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenant_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenant_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenant_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenant_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenant_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenant_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenant_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTenantsResponse.cpp b/client/src/model/GetTenantsResponse.cpp index 343ccab..4714c5c 100644 --- a/client/src/model/GetTenantsResponse.cpp +++ b/client/src/model/GetTenantsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenants"))] = ModelBase::toJson(m_Tenants); } diff --git a/client/src/model/GetTenants_200_response.cpp b/client/src/model/GetTenants_200_response.cpp deleted file mode 100644 index 402950d..0000000 --- a/client/src/model/GetTenants_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenants_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenants_200_response::GetTenants_200_response() -{ - m_StatusIsSet = false; - m_TenantsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenants_200_response::~GetTenants_200_response() -{ -} - -void GetTenants_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenants_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenants"))] = ModelBase::toJson(m_Tenants); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenants_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenants")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenants"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setTenants; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenants); - setTenants(refVal_setTenants); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenants_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenants")), m_Tenants)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenants_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenants")))) - { - std::vector> refVal_setTenants; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenants"))), refVal_setTenants ); - setTenants(refVal_setTenants); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenants_200_response::getStatus() const -{ - return m_Status; -} - - -void GetTenants_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenants_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenants_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetTenants_200_response::getTenants() const -{ - return m_Tenants; -} - - -void GetTenants_200_response::setTenants(const std::vector>& value) -{ - m_Tenants = value; - m_TenantsIsSet = true; -} - -bool GetTenants_200_response::tenantsIsSet() const -{ - return m_TenantsIsSet; -} - -void GetTenants_200_response::unsetTenants() -{ - m_TenantsIsSet = false; -} -utility::string_t GetTenants_200_response::getReason() const -{ - return m_Reason; -} - - -void GetTenants_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenants_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenants_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenants_200_response::getCode() const -{ - return m_Code; -} - - -void GetTenants_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenants_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenants_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenants_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenants_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenants_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenants_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenants_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenants_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenants_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenants_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenants_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenants_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenants_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenants_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenants_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenants_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenants_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenants_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenants_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenants_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenants_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenants_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTicketResponse.cpp b/client/src/model/GetTicketResponse.cpp index 8d0ef17..cbb23d1 100644 --- a/client/src/model/GetTicketResponse.cpp +++ b/client/src/model/GetTicketResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,17 +38,17 @@ web::json::value GetTicketResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TicketIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); } if(m_AvailableStatesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("availableStates"))] = ModelBase::toJson(m_AvailableStates); } diff --git a/client/src/model/GetTicket_200_response.cpp b/client/src/model/GetTicket_200_response.cpp deleted file mode 100644 index 2c933fe..0000000 --- a/client/src/model/GetTicket_200_response.cpp +++ /dev/null @@ -1,558 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTicket_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTicket_200_response::GetTicket_200_response() -{ - m_StatusIsSet = false; - m_TicketIsSet = false; - m_AvailableStatesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTicket_200_response::~GetTicket_200_response() -{ -} - -void GetTicket_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetTicket_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TicketIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); - } - if(m_AvailableStatesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("availableStates"))] = ModelBase::toJson(m_AvailableStates); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTicket_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ticket")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ticket"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTicket; - ok &= ModelBase::fromJson(fieldValue, refVal_setTicket); - setTicket(refVal_setTicket); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("availableStates")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("availableStates"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setAvailableStates; - ok &= ModelBase::fromJson(fieldValue, refVal_setAvailableStates); - setAvailableStates(refVal_setAvailableStates); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTicket_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TicketIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ticket")), m_Ticket)); - } - if(m_AvailableStatesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("availableStates")), m_AvailableStates)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTicket_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ticket")))) - { - std::shared_ptr refVal_setTicket; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ticket"))), refVal_setTicket ); - setTicket(refVal_setTicket); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("availableStates")))) - { - std::vector refVal_setAvailableStates; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("availableStates"))), refVal_setAvailableStates ); - setAvailableStates(refVal_setAvailableStates); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTicket_200_response::getStatus() const -{ - return m_Status; -} - - -void GetTicket_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTicket_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTicket_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetTicket_200_response::getTicket() const -{ - return m_Ticket; -} - - -void GetTicket_200_response::setTicket(const std::shared_ptr& value) -{ - m_Ticket = value; - m_TicketIsSet = true; -} - -bool GetTicket_200_response::ticketIsSet() const -{ - return m_TicketIsSet; -} - -void GetTicket_200_response::unsetTicket() -{ - m_TicketIsSet = false; -} -std::vector GetTicket_200_response::getAvailableStates() const -{ - return m_AvailableStates; -} - -void GetTicket_200_response::setAvailableStates(std::vector value) -{ - m_AvailableStates = value; - m_AvailableStatesIsSet = true; -} - -bool GetTicket_200_response::availableStatesIsSet() const -{ - return m_AvailableStatesIsSet; -} - -void GetTicket_200_response::unsetAvailableStates() -{ - m_AvailableStatesIsSet = false; -} -utility::string_t GetTicket_200_response::getReason() const -{ - return m_Reason; -} - - -void GetTicket_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTicket_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTicket_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTicket_200_response::getCode() const -{ - return m_Code; -} - - -void GetTicket_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTicket_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTicket_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTicket_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTicket_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTicket_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTicket_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTicket_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTicket_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTicket_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTicket_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTicket_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTicket_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTicket_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTicket_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTicket_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTicket_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTicket_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTicket_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTicket_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTicket_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTicket_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTicket_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTicketsResponse.cpp b/client/src/model/GetTicketsResponse.cpp index 00c332a..131c8c0 100644 --- a/client/src/model/GetTicketsResponse.cpp +++ b/client/src/model/GetTicketsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTicketsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TicketsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tickets"))] = ModelBase::toJson(m_Tickets); } diff --git a/client/src/model/GetTickets_200_response.cpp b/client/src/model/GetTickets_200_response.cpp deleted file mode 100644 index e941829..0000000 --- a/client/src/model/GetTickets_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTickets_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTickets_200_response::GetTickets_200_response() -{ - m_StatusIsSet = false; - m_TicketsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTickets_200_response::~GetTickets_200_response() -{ -} - -void GetTickets_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetTickets_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TicketsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tickets"))] = ModelBase::toJson(m_Tickets); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTickets_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tickets")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tickets"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setTickets; - ok &= ModelBase::fromJson(fieldValue, refVal_setTickets); - setTickets(refVal_setTickets); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTickets_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TicketsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tickets")), m_Tickets)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTickets_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tickets")))) - { - std::vector> refVal_setTickets; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tickets"))), refVal_setTickets ); - setTickets(refVal_setTickets); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTickets_200_response::getStatus() const -{ - return m_Status; -} - - -void GetTickets_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTickets_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTickets_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetTickets_200_response::getTickets() const -{ - return m_Tickets; -} - - -void GetTickets_200_response::setTickets(const std::vector>& value) -{ - m_Tickets = value; - m_TicketsIsSet = true; -} - -bool GetTickets_200_response::ticketsIsSet() const -{ - return m_TicketsIsSet; -} - -void GetTickets_200_response::unsetTickets() -{ - m_TicketsIsSet = false; -} -utility::string_t GetTickets_200_response::getReason() const -{ - return m_Reason; -} - - -void GetTickets_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTickets_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTickets_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTickets_200_response::getCode() const -{ - return m_Code; -} - - -void GetTickets_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTickets_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTickets_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTickets_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTickets_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTickets_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTickets_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTickets_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTickets_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTickets_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTickets_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTickets_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTickets_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTickets_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTickets_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTickets_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTickets_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTickets_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTickets_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTickets_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTickets_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTickets_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTickets_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTranslationsResponse.cpp b/client/src/model/GetTranslationsResponse.cpp new file mode 100644 index 0000000..2bca002 --- /dev/null +++ b/client/src/model/GetTranslationsResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetTranslationsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetTranslationsResponse::GetTranslationsResponse() +{ + m_TranslationsIsSet = false; + m_StatusIsSet = false; +} + +GetTranslationsResponse::~GetTranslationsResponse() +{ +} + +void GetTranslationsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetTranslationsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_TranslationsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GetTranslationsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translations")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translations"))); + if(!fieldValue.is_null()) + { + std::map refVal_setTranslations; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslations); + setTranslations(refVal_setTranslations); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GetTranslationsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_TranslationsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translations")), m_Translations)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GetTranslationsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translations")))) + { + std::map refVal_setTranslations; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translations"))), refVal_setTranslations ); + setTranslations(refVal_setTranslations); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::map GetTranslationsResponse::getTranslations() const +{ + return m_Translations; +} + + +void GetTranslationsResponse::setTranslations(const std::map& value) +{ + m_Translations = value; + m_TranslationsIsSet = true; +} + +bool GetTranslationsResponse::translationsIsSet() const +{ + return m_TranslationsIsSet; +} + +void GetTranslationsResponse::unsetTranslations() +{ + m_TranslationsIsSet = false; +} +std::shared_ptr GetTranslationsResponse::getStatus() const +{ + return m_Status; +} + + +void GetTranslationsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetTranslationsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetTranslationsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserBadgeProgressById_200_response.cpp b/client/src/model/GetUserBadgeProgressById_200_response.cpp deleted file mode 100644 index 52e7ca6..0000000 --- a/client/src/model/GetUserBadgeProgressById_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserBadgeProgressById_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserBadgeProgressById_200_response::GetUserBadgeProgressById_200_response() -{ - m_StatusIsSet = false; - m_UserBadgeProgressIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserBadgeProgressById_200_response::~GetUserBadgeProgressById_200_response() -{ -} - -void GetUserBadgeProgressById_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserBadgeProgressById_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserBadgeProgressIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))] = ModelBase::toJson(m_UserBadgeProgress); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserBadgeProgressById_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUserBadgeProgress; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadgeProgress); - setUserBadgeProgress(refVal_setUserBadgeProgress); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserBadgeProgressById_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserBadgeProgressIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")), m_UserBadgeProgress)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserBadgeProgressById_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")))) - { - std::shared_ptr refVal_setUserBadgeProgress; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))), refVal_setUserBadgeProgress ); - setUserBadgeProgress(refVal_setUserBadgeProgress); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserBadgeProgressById_200_response::getStatus() const -{ - return m_Status; -} - - -void GetUserBadgeProgressById_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserBadgeProgressById_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserBadgeProgressById_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetUserBadgeProgressById_200_response::getUserBadgeProgress() const -{ - return m_UserBadgeProgress; -} - - -void GetUserBadgeProgressById_200_response::setUserBadgeProgress(const std::shared_ptr& value) -{ - m_UserBadgeProgress = value; - m_UserBadgeProgressIsSet = true; -} - -bool GetUserBadgeProgressById_200_response::userBadgeProgressIsSet() const -{ - return m_UserBadgeProgressIsSet; -} - -void GetUserBadgeProgressById_200_response::unsetUserBadgeProgress() -{ - m_UserBadgeProgressIsSet = false; -} -utility::string_t GetUserBadgeProgressById_200_response::getReason() const -{ - return m_Reason; -} - - -void GetUserBadgeProgressById_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserBadgeProgressById_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserBadgeProgressById_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserBadgeProgressById_200_response::getCode() const -{ - return m_Code; -} - - -void GetUserBadgeProgressById_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserBadgeProgressById_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserBadgeProgressById_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserBadgeProgressById_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserBadgeProgressById_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserBadgeProgressById_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserBadgeProgressById_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserBadgeProgressById_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserBadgeProgressById_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserBadgeProgressById_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserBadgeProgressById_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserBadgeProgressById_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserBadgeProgressById_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserBadgeProgressById_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserBadgeProgressById_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserBadgeProgressById_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserBadgeProgressById_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserBadgeProgressById_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserBadgeProgressById_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserBadgeProgressById_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserBadgeProgressById_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserBadgeProgressById_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserBadgeProgressById_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserBadgeProgressList_200_response.cpp b/client/src/model/GetUserBadgeProgressList_200_response.cpp deleted file mode 100644 index 45433e6..0000000 --- a/client/src/model/GetUserBadgeProgressList_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserBadgeProgressList_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserBadgeProgressList_200_response::GetUserBadgeProgressList_200_response() -{ - m_StatusIsSet = false; - m_UserBadgeProgressesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserBadgeProgressList_200_response::~GetUserBadgeProgressList_200_response() -{ -} - -void GetUserBadgeProgressList_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserBadgeProgressList_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserBadgeProgressesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses"))] = ModelBase::toJson(m_UserBadgeProgresses); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserBadgeProgressList_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setUserBadgeProgresses; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadgeProgresses); - setUserBadgeProgresses(refVal_setUserBadgeProgresses); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserBadgeProgressList_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserBadgeProgressesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses")), m_UserBadgeProgresses)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserBadgeProgressList_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses")))) - { - std::vector> refVal_setUserBadgeProgresses; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses"))), refVal_setUserBadgeProgresses ); - setUserBadgeProgresses(refVal_setUserBadgeProgresses); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserBadgeProgressList_200_response::getStatus() const -{ - return m_Status; -} - - -void GetUserBadgeProgressList_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserBadgeProgressList_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserBadgeProgressList_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetUserBadgeProgressList_200_response::getUserBadgeProgresses() const -{ - return m_UserBadgeProgresses; -} - - -void GetUserBadgeProgressList_200_response::setUserBadgeProgresses(const std::vector>& value) -{ - m_UserBadgeProgresses = value; - m_UserBadgeProgressesIsSet = true; -} - -bool GetUserBadgeProgressList_200_response::userBadgeProgressesIsSet() const -{ - return m_UserBadgeProgressesIsSet; -} - -void GetUserBadgeProgressList_200_response::unsetUserBadgeProgresses() -{ - m_UserBadgeProgressesIsSet = false; -} -utility::string_t GetUserBadgeProgressList_200_response::getReason() const -{ - return m_Reason; -} - - -void GetUserBadgeProgressList_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserBadgeProgressList_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserBadgeProgressList_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserBadgeProgressList_200_response::getCode() const -{ - return m_Code; -} - - -void GetUserBadgeProgressList_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserBadgeProgressList_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserBadgeProgressList_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserBadgeProgressList_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserBadgeProgressList_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserBadgeProgressList_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserBadgeProgressList_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserBadgeProgressList_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserBadgeProgressList_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserBadgeProgressList_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserBadgeProgressList_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserBadgeProgressList_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserBadgeProgressList_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserBadgeProgressList_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserBadgeProgressList_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserBadgeProgressList_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserBadgeProgressList_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserBadgeProgressList_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserBadgeProgressList_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserBadgeProgressList_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserBadgeProgressList_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserBadgeProgressList_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserBadgeProgressList_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserBadge_200_response.cpp b/client/src/model/GetUserBadge_200_response.cpp deleted file mode 100644 index 904aee7..0000000 --- a/client/src/model/GetUserBadge_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserBadge_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserBadge_200_response::GetUserBadge_200_response() -{ - m_StatusIsSet = false; - m_UserBadgeIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserBadge_200_response::~GetUserBadge_200_response() -{ -} - -void GetUserBadge_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserBadge_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserBadgeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userBadge"))] = ModelBase::toJson(m_UserBadge); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserBadge_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadge")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadge"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUserBadge; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadge); - setUserBadge(refVal_setUserBadge); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserBadge_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserBadgeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadge")), m_UserBadge)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserBadge_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadge")))) - { - std::shared_ptr refVal_setUserBadge; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadge"))), refVal_setUserBadge ); - setUserBadge(refVal_setUserBadge); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserBadge_200_response::getStatus() const -{ - return m_Status; -} - - -void GetUserBadge_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserBadge_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserBadge_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetUserBadge_200_response::getUserBadge() const -{ - return m_UserBadge; -} - - -void GetUserBadge_200_response::setUserBadge(const std::shared_ptr& value) -{ - m_UserBadge = value; - m_UserBadgeIsSet = true; -} - -bool GetUserBadge_200_response::userBadgeIsSet() const -{ - return m_UserBadgeIsSet; -} - -void GetUserBadge_200_response::unsetUserBadge() -{ - m_UserBadgeIsSet = false; -} -utility::string_t GetUserBadge_200_response::getReason() const -{ - return m_Reason; -} - - -void GetUserBadge_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserBadge_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserBadge_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserBadge_200_response::getCode() const -{ - return m_Code; -} - - -void GetUserBadge_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserBadge_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserBadge_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserBadge_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserBadge_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserBadge_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserBadge_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserBadge_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserBadge_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserBadge_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserBadge_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserBadge_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserBadge_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserBadge_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserBadge_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserBadge_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserBadge_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserBadge_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserBadge_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserBadge_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserBadge_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserBadge_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserBadge_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserBadges_200_response.cpp b/client/src/model/GetUserBadges_200_response.cpp deleted file mode 100644 index bfeeefc..0000000 --- a/client/src/model/GetUserBadges_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserBadges_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserBadges_200_response::GetUserBadges_200_response() -{ - m_StatusIsSet = false; - m_UserBadgesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserBadges_200_response::~GetUserBadges_200_response() -{ -} - -void GetUserBadges_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserBadges_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserBadgesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userBadges"))] = ModelBase::toJson(m_UserBadges); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserBadges_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadges")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadges"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setUserBadges; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadges); - setUserBadges(refVal_setUserBadges); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserBadges_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserBadgesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadges")), m_UserBadges)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserBadges_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadges")))) - { - std::vector> refVal_setUserBadges; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadges"))), refVal_setUserBadges ); - setUserBadges(refVal_setUserBadges); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserBadges_200_response::getStatus() const -{ - return m_Status; -} - - -void GetUserBadges_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserBadges_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserBadges_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetUserBadges_200_response::getUserBadges() const -{ - return m_UserBadges; -} - - -void GetUserBadges_200_response::setUserBadges(const std::vector>& value) -{ - m_UserBadges = value; - m_UserBadgesIsSet = true; -} - -bool GetUserBadges_200_response::userBadgesIsSet() const -{ - return m_UserBadgesIsSet; -} - -void GetUserBadges_200_response::unsetUserBadges() -{ - m_UserBadgesIsSet = false; -} -utility::string_t GetUserBadges_200_response::getReason() const -{ - return m_Reason; -} - - -void GetUserBadges_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserBadges_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserBadges_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserBadges_200_response::getCode() const -{ - return m_Code; -} - - -void GetUserBadges_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserBadges_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserBadges_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserBadges_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserBadges_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserBadges_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserBadges_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserBadges_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserBadges_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserBadges_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserBadges_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserBadges_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserBadges_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserBadges_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserBadges_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserBadges_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserBadges_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserBadges_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserBadges_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserBadges_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserBadges_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserBadges_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserBadges_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserInternalProfileResponse.cpp b/client/src/model/GetUserInternalProfileResponse.cpp new file mode 100644 index 0000000..16a8abc --- /dev/null +++ b/client/src/model/GetUserInternalProfileResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserInternalProfileResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserInternalProfileResponse::GetUserInternalProfileResponse() +{ + m_ProfileIsSet = false; + m_StatusIsSet = false; +} + +GetUserInternalProfileResponse::~GetUserInternalProfileResponse() +{ +} + +void GetUserInternalProfileResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserInternalProfileResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ProfileIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("profile"))] = ModelBase::toJson(m_Profile); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GetUserInternalProfileResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("profile")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("profile"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setProfile; + ok &= ModelBase::fromJson(fieldValue, refVal_setProfile); + setProfile(refVal_setProfile); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GetUserInternalProfileResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ProfileIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("profile")), m_Profile)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GetUserInternalProfileResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("profile")))) + { + std::shared_ptr refVal_setProfile; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("profile"))), refVal_setProfile ); + setProfile(refVal_setProfile); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::shared_ptr GetUserInternalProfileResponse::getProfile() const +{ + return m_Profile; +} + + +void GetUserInternalProfileResponse::setProfile(const std::shared_ptr& value) +{ + m_Profile = value; + m_ProfileIsSet = true; +} + +bool GetUserInternalProfileResponse::profileIsSet() const +{ + return m_ProfileIsSet; +} + +void GetUserInternalProfileResponse::unsetProfile() +{ + m_ProfileIsSet = false; +} +std::shared_ptr GetUserInternalProfileResponse::getStatus() const +{ + return m_Status; +} + + +void GetUserInternalProfileResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserInternalProfileResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserInternalProfileResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserInternalProfileResponse_profile.cpp b/client/src/model/GetUserInternalProfileResponse_profile.cpp new file mode 100644 index 0000000..d9de228 --- /dev/null +++ b/client/src/model/GetUserInternalProfileResponse_profile.cpp @@ -0,0 +1,906 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserInternalProfileResponse_profile.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserInternalProfileResponse_profile::GetUserInternalProfileResponse_profile() +{ + m_CommenterName = utility::conversions::to_string_t(""); + m_CommenterNameIsSet = false; + m_FirstCommentDate = utility::datetime(); + m_FirstCommentDateIsSet = false; + m_IpHash = utility::conversions::to_string_t(""); + m_IpHashIsSet = false; + m_CountryFlag = utility::conversions::to_string_t(""); + m_CountryFlagIsSet = false; + m_CountryCode = utility::conversions::to_string_t(""); + m_CountryCodeIsSet = false; + m_WebsiteUrl = utility::conversions::to_string_t(""); + m_WebsiteUrlIsSet = false; + m_Bio = utility::conversions::to_string_t(""); + m_BioIsSet = false; + m_Karma = 0.0; + m_KarmaIsSet = false; + m_Locale = utility::conversions::to_string_t(""); + m_LocaleIsSet = false; + m_Verified = false; + m_VerifiedIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; + m_DisplayName = utility::conversions::to_string_t(""); + m_DisplayNameIsSet = false; + m_Username = utility::conversions::to_string_t(""); + m_UsernameIsSet = false; + m_CommenterEmail = utility::conversions::to_string_t(""); + m_CommenterEmailIsSet = false; + m_Email = utility::conversions::to_string_t(""); + m_EmailIsSet = false; + m_AnonUserId = utility::conversions::to_string_t(""); + m_AnonUserIdIsSet = false; + m_UserId = utility::conversions::to_string_t(""); + m_UserIdIsSet = false; +} + +GetUserInternalProfileResponse_profile::~GetUserInternalProfileResponse_profile() +{ +} + +void GetUserInternalProfileResponse_profile::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserInternalProfileResponse_profile::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommenterNameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); + } + if(m_FirstCommentDateIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("firstCommentDate"))] = ModelBase::toJson(m_FirstCommentDate); + } + if(m_IpHashIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); + } + if(m_CountryFlagIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("countryFlag"))] = ModelBase::toJson(m_CountryFlag); + } + if(m_CountryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("countryCode"))] = ModelBase::toJson(m_CountryCode); + } + if(m_WebsiteUrlIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); + } + if(m_BioIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bio"))] = ModelBase::toJson(m_Bio); + } + if(m_KarmaIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("karma"))] = ModelBase::toJson(m_Karma); + } + if(m_LocaleIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); + } + if(m_VerifiedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); + } + if(m_AvatarSrcIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + } + if(m_DisplayNameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); + } + if(m_UsernameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); + } + if(m_CommenterEmailIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); + } + if(m_EmailIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); + } + if(m_AnonUserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); + } + if(m_UserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + } + + return val; +} + +bool GetUserInternalProfileResponse_profile::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commenterName")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commenterName"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCommenterName; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommenterName); + setCommenterName(refVal_setCommenterName); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("firstCommentDate")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("firstCommentDate"))); + if(!fieldValue.is_null()) + { + utility::datetime refVal_setFirstCommentDate; + ok &= ModelBase::fromJson(fieldValue, refVal_setFirstCommentDate); + setFirstCommentDate(refVal_setFirstCommentDate); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ipHash")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ipHash"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setIpHash; + ok &= ModelBase::fromJson(fieldValue, refVal_setIpHash); + setIpHash(refVal_setIpHash); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("countryFlag")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("countryFlag"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCountryFlag; + ok &= ModelBase::fromJson(fieldValue, refVal_setCountryFlag); + setCountryFlag(refVal_setCountryFlag); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("countryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("countryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCountryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCountryCode); + setCountryCode(refVal_setCountryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("websiteUrl")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setWebsiteUrl; + ok &= ModelBase::fromJson(fieldValue, refVal_setWebsiteUrl); + setWebsiteUrl(refVal_setWebsiteUrl); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bio")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bio"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBio; + ok &= ModelBase::fromJson(fieldValue, refVal_setBio); + setBio(refVal_setBio); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("karma")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("karma"))); + if(!fieldValue.is_null()) + { + double refVal_setKarma; + ok &= ModelBase::fromJson(fieldValue, refVal_setKarma); + setKarma(refVal_setKarma); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("locale")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("locale"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setLocale; + ok &= ModelBase::fromJson(fieldValue, refVal_setLocale); + setLocale(refVal_setLocale); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("verified")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("verified"))); + if(!fieldValue.is_null()) + { + bool refVal_setVerified; + ok &= ModelBase::fromJson(fieldValue, refVal_setVerified); + setVerified(refVal_setVerified); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("avatarSrc")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setAvatarSrc; + ok &= ModelBase::fromJson(fieldValue, refVal_setAvatarSrc); + setAvatarSrc(refVal_setAvatarSrc); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("displayName")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("displayName"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setDisplayName; + ok &= ModelBase::fromJson(fieldValue, refVal_setDisplayName); + setDisplayName(refVal_setDisplayName); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("username")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("username"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUsername; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsername); + setUsername(refVal_setUsername); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commenterEmail")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCommenterEmail; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommenterEmail); + setCommenterEmail(refVal_setCommenterEmail); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("email")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("email"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setEmail; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmail); + setEmail(refVal_setEmail); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("anonUserId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("anonUserId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setAnonUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setAnonUserId); + setAnonUserId(refVal_setAnonUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserId); + setUserId(refVal_setUserId); + + } + } + return ok; +} + +void GetUserInternalProfileResponse_profile::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommenterNameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); + } + if(m_FirstCommentDateIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("firstCommentDate")), m_FirstCommentDate)); + } + if(m_IpHashIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash)); + } + if(m_CountryFlagIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("countryFlag")), m_CountryFlag)); + } + if(m_CountryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("countryCode")), m_CountryCode)); + } + if(m_WebsiteUrlIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("websiteUrl")), m_WebsiteUrl)); + } + if(m_BioIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bio")), m_Bio)); + } + if(m_KarmaIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("karma")), m_Karma)); + } + if(m_LocaleIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); + } + if(m_VerifiedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); + } + if(m_AvatarSrcIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + } + if(m_DisplayNameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayName")), m_DisplayName)); + } + if(m_UsernameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username)); + } + if(m_CommenterEmailIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); + } + if(m_EmailIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); + } + if(m_AnonUserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); + } + if(m_UserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + } +} + +bool GetUserInternalProfileResponse_profile::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commenterName")))) + { + utility::string_t refVal_setCommenterName; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commenterName"))), refVal_setCommenterName ); + setCommenterName(refVal_setCommenterName); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("firstCommentDate")))) + { + utility::datetime refVal_setFirstCommentDate; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("firstCommentDate"))), refVal_setFirstCommentDate ); + setFirstCommentDate(refVal_setFirstCommentDate); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ipHash")))) + { + utility::string_t refVal_setIpHash; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ipHash"))), refVal_setIpHash ); + setIpHash(refVal_setIpHash); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("countryFlag")))) + { + utility::string_t refVal_setCountryFlag; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("countryFlag"))), refVal_setCountryFlag ); + setCountryFlag(refVal_setCountryFlag); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("countryCode")))) + { + utility::string_t refVal_setCountryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("countryCode"))), refVal_setCountryCode ); + setCountryCode(refVal_setCountryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("websiteUrl")))) + { + utility::string_t refVal_setWebsiteUrl; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))), refVal_setWebsiteUrl ); + setWebsiteUrl(refVal_setWebsiteUrl); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bio")))) + { + utility::string_t refVal_setBio; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bio"))), refVal_setBio ); + setBio(refVal_setBio); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("karma")))) + { + double refVal_setKarma; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("karma"))), refVal_setKarma ); + setKarma(refVal_setKarma); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("locale")))) + { + utility::string_t refVal_setLocale; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("locale"))), refVal_setLocale ); + setLocale(refVal_setLocale); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("verified")))) + { + bool refVal_setVerified; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("verified"))), refVal_setVerified ); + setVerified(refVal_setVerified); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("avatarSrc")))) + { + utility::string_t refVal_setAvatarSrc; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))), refVal_setAvatarSrc ); + setAvatarSrc(refVal_setAvatarSrc); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("displayName")))) + { + utility::string_t refVal_setDisplayName; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("displayName"))), refVal_setDisplayName ); + setDisplayName(refVal_setDisplayName); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("username")))) + { + utility::string_t refVal_setUsername; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("username"))), refVal_setUsername ); + setUsername(refVal_setUsername); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commenterEmail")))) + { + utility::string_t refVal_setCommenterEmail; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))), refVal_setCommenterEmail ); + setCommenterEmail(refVal_setCommenterEmail); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("email")))) + { + utility::string_t refVal_setEmail; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("email"))), refVal_setEmail ); + setEmail(refVal_setEmail); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("anonUserId")))) + { + utility::string_t refVal_setAnonUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("anonUserId"))), refVal_setAnonUserId ); + setAnonUserId(refVal_setAnonUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userId"))), refVal_setUserId ); + setUserId(refVal_setUserId); + } + return ok; +} + + +utility::string_t GetUserInternalProfileResponse_profile::getCommenterName() const +{ + return m_CommenterName; +} + + +void GetUserInternalProfileResponse_profile::setCommenterName(const utility::string_t& value) +{ + m_CommenterName = value; + m_CommenterNameIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::commenterNameIsSet() const +{ + return m_CommenterNameIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetCommenterName() +{ + m_CommenterNameIsSet = false; +} +utility::datetime GetUserInternalProfileResponse_profile::getFirstCommentDate() const +{ + return m_FirstCommentDate; +} + + +void GetUserInternalProfileResponse_profile::setFirstCommentDate(const utility::datetime& value) +{ + m_FirstCommentDate = value; + m_FirstCommentDateIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::firstCommentDateIsSet() const +{ + return m_FirstCommentDateIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetFirstCommentDate() +{ + m_FirstCommentDateIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_profile::getIpHash() const +{ + return m_IpHash; +} + + +void GetUserInternalProfileResponse_profile::setIpHash(const utility::string_t& value) +{ + m_IpHash = value; + m_IpHashIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::ipHashIsSet() const +{ + return m_IpHashIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetIpHash() +{ + m_IpHashIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_profile::getCountryFlag() const +{ + return m_CountryFlag; +} + + +void GetUserInternalProfileResponse_profile::setCountryFlag(const utility::string_t& value) +{ + m_CountryFlag = value; + m_CountryFlagIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::countryFlagIsSet() const +{ + return m_CountryFlagIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetCountryFlag() +{ + m_CountryFlagIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_profile::getCountryCode() const +{ + return m_CountryCode; +} + + +void GetUserInternalProfileResponse_profile::setCountryCode(const utility::string_t& value) +{ + m_CountryCode = value; + m_CountryCodeIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::countryCodeIsSet() const +{ + return m_CountryCodeIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetCountryCode() +{ + m_CountryCodeIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_profile::getWebsiteUrl() const +{ + return m_WebsiteUrl; +} + + +void GetUserInternalProfileResponse_profile::setWebsiteUrl(const utility::string_t& value) +{ + m_WebsiteUrl = value; + m_WebsiteUrlIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::websiteUrlIsSet() const +{ + return m_WebsiteUrlIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetWebsiteUrl() +{ + m_WebsiteUrlIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_profile::getBio() const +{ + return m_Bio; +} + + +void GetUserInternalProfileResponse_profile::setBio(const utility::string_t& value) +{ + m_Bio = value; + m_BioIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::bioIsSet() const +{ + return m_BioIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetBio() +{ + m_BioIsSet = false; +} +double GetUserInternalProfileResponse_profile::getKarma() const +{ + return m_Karma; +} + +void GetUserInternalProfileResponse_profile::setKarma(double value) +{ + m_Karma = value; + m_KarmaIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::karmaIsSet() const +{ + return m_KarmaIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetKarma() +{ + m_KarmaIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_profile::getLocale() const +{ + return m_Locale; +} + + +void GetUserInternalProfileResponse_profile::setLocale(const utility::string_t& value) +{ + m_Locale = value; + m_LocaleIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::localeIsSet() const +{ + return m_LocaleIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetLocale() +{ + m_LocaleIsSet = false; +} +bool GetUserInternalProfileResponse_profile::isVerified() const +{ + return m_Verified; +} + +void GetUserInternalProfileResponse_profile::setVerified(bool value) +{ + m_Verified = value; + m_VerifiedIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::verifiedIsSet() const +{ + return m_VerifiedIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetVerified() +{ + m_VerifiedIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_profile::getAvatarSrc() const +{ + return m_AvatarSrc; +} + + +void GetUserInternalProfileResponse_profile::setAvatarSrc(const utility::string_t& value) +{ + m_AvatarSrc = value; + m_AvatarSrcIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::avatarSrcIsSet() const +{ + return m_AvatarSrcIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetAvatarSrc() +{ + m_AvatarSrcIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_profile::getDisplayName() const +{ + return m_DisplayName; +} + + +void GetUserInternalProfileResponse_profile::setDisplayName(const utility::string_t& value) +{ + m_DisplayName = value; + m_DisplayNameIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::displayNameIsSet() const +{ + return m_DisplayNameIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetDisplayName() +{ + m_DisplayNameIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_profile::getUsername() const +{ + return m_Username; +} + + +void GetUserInternalProfileResponse_profile::setUsername(const utility::string_t& value) +{ + m_Username = value; + m_UsernameIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::usernameIsSet() const +{ + return m_UsernameIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetUsername() +{ + m_UsernameIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_profile::getCommenterEmail() const +{ + return m_CommenterEmail; +} + + +void GetUserInternalProfileResponse_profile::setCommenterEmail(const utility::string_t& value) +{ + m_CommenterEmail = value; + m_CommenterEmailIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::commenterEmailIsSet() const +{ + return m_CommenterEmailIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetCommenterEmail() +{ + m_CommenterEmailIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_profile::getEmail() const +{ + return m_Email; +} + + +void GetUserInternalProfileResponse_profile::setEmail(const utility::string_t& value) +{ + m_Email = value; + m_EmailIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::emailIsSet() const +{ + return m_EmailIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetEmail() +{ + m_EmailIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_profile::getAnonUserId() const +{ + return m_AnonUserId; +} + + +void GetUserInternalProfileResponse_profile::setAnonUserId(const utility::string_t& value) +{ + m_AnonUserId = value; + m_AnonUserIdIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::anonUserIdIsSet() const +{ + return m_AnonUserIdIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetAnonUserId() +{ + m_AnonUserIdIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_profile::getUserId() const +{ + return m_UserId; +} + + +void GetUserInternalProfileResponse_profile::setUserId(const utility::string_t& value) +{ + m_UserId = value; + m_UserIdIsSet = true; +} + +bool GetUserInternalProfileResponse_profile::userIdIsSet() const +{ + return m_UserIdIsSet; +} + +void GetUserInternalProfileResponse_profile::unsetUserId() +{ + m_UserIdIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserManualBadgesResponse.cpp b/client/src/model/GetUserManualBadgesResponse.cpp new file mode 100644 index 0000000..cd5376a --- /dev/null +++ b/client/src/model/GetUserManualBadgesResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserManualBadgesResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserManualBadgesResponse::GetUserManualBadgesResponse() +{ + m_BadgesIsSet = false; + m_StatusIsSet = false; +} + +GetUserManualBadgesResponse::~GetUserManualBadgesResponse() +{ +} + +void GetUserManualBadgesResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserManualBadgesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_BadgesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GetUserManualBadgesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("badges"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromJson(fieldValue, refVal_setBadges); + setBadges(refVal_setBadges); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GetUserManualBadgesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_BadgesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GetUserManualBadgesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badges"))), refVal_setBadges ); + setBadges(refVal_setBadges); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector> GetUserManualBadgesResponse::getBadges() const +{ + return m_Badges; +} + + +void GetUserManualBadgesResponse::setBadges(const std::vector>& value) +{ + m_Badges = value; + m_BadgesIsSet = true; +} + +bool GetUserManualBadgesResponse::badgesIsSet() const +{ + return m_BadgesIsSet; +} + +void GetUserManualBadgesResponse::unsetBadges() +{ + m_BadgesIsSet = false; +} +std::shared_ptr GetUserManualBadgesResponse::getStatus() const +{ + return m_Status; +} + + +void GetUserManualBadgesResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserManualBadgesResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserManualBadgesResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserNotificationCountResponse.cpp b/client/src/model/GetUserNotificationCountResponse.cpp index 0e5294e..83357e9 100644 --- a/client/src/model/GetUserNotificationCountResponse.cpp +++ b/client/src/model/GetUserNotificationCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value GetUserNotificationCountResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } diff --git a/client/src/model/GetUserNotificationCount_200_response.cpp b/client/src/model/GetUserNotificationCount_200_response.cpp deleted file mode 100644 index 9b31442..0000000 --- a/client/src/model/GetUserNotificationCount_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserNotificationCount_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserNotificationCount_200_response::GetUserNotificationCount_200_response() -{ - m_StatusIsSet = false; - m_Count = 0L; - m_CountIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserNotificationCount_200_response::~GetUserNotificationCount_200_response() -{ -} - -void GetUserNotificationCount_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserNotificationCount_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserNotificationCount_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setCount); - setCount(refVal_setCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserNotificationCount_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserNotificationCount_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - int64_t refVal_setCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); - setCount(refVal_setCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserNotificationCount_200_response::getStatus() const -{ - return m_Status; -} - - -void GetUserNotificationCount_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserNotificationCount_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserNotificationCount_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -int64_t GetUserNotificationCount_200_response::getCount() const -{ - return m_Count; -} - -void GetUserNotificationCount_200_response::setCount(int64_t value) -{ - m_Count = value; - m_CountIsSet = true; -} - -bool GetUserNotificationCount_200_response::countIsSet() const -{ - return m_CountIsSet; -} - -void GetUserNotificationCount_200_response::unsetCount() -{ - m_CountIsSet = false; -} -utility::string_t GetUserNotificationCount_200_response::getReason() const -{ - return m_Reason; -} - - -void GetUserNotificationCount_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserNotificationCount_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserNotificationCount_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserNotificationCount_200_response::getCode() const -{ - return m_Code; -} - - -void GetUserNotificationCount_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserNotificationCount_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserNotificationCount_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserNotificationCount_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserNotificationCount_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserNotificationCount_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserNotificationCount_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserNotificationCount_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserNotificationCount_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserNotificationCount_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserNotificationCount_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserNotificationCount_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserNotificationCount_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserNotificationCount_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserNotificationCount_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserNotificationCount_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserNotificationCount_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserNotificationCount_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserNotificationCount_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserNotificationCount_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserNotificationCount_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserNotificationCount_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserNotificationCount_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserNotifications_200_response.cpp b/client/src/model/GetUserNotifications_200_response.cpp deleted file mode 100644 index 0750bab..0000000 --- a/client/src/model/GetUserNotifications_200_response.cpp +++ /dev/null @@ -1,655 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserNotifications_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserNotifications_200_response::GetUserNotifications_200_response() -{ - m_TranslationsIsSet = false; - m_IsSubscribed = false; - m_IsSubscribedIsSet = false; - m_HasMore = false; - m_HasMoreIsSet = false; - m_NotificationsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserNotifications_200_response::~GetUserNotifications_200_response() -{ -} - -void GetUserNotifications_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserNotifications_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_TranslationsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); - } - if(m_IsSubscribedIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isSubscribed"))] = ModelBase::toJson(m_IsSubscribed); - } - if(m_HasMoreIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); - } - if(m_NotificationsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("notifications"))] = ModelBase::toJson(m_Notifications); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserNotifications_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translations")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translations"))); - if(!fieldValue.is_null()) - { - std::map refVal_setTranslations; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslations); - setTranslations(refVal_setTranslations); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isSubscribed")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isSubscribed"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsSubscribed; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsSubscribed); - setIsSubscribed(refVal_setIsSubscribed); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasMore"))); - if(!fieldValue.is_null()) - { - bool refVal_setHasMore; - ok &= ModelBase::fromJson(fieldValue, refVal_setHasMore); - setHasMore(refVal_setHasMore); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notifications")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notifications"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setNotifications; - ok &= ModelBase::fromJson(fieldValue, refVal_setNotifications); - setNotifications(refVal_setNotifications); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserNotifications_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_TranslationsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translations")), m_Translations)); - } - if(m_IsSubscribedIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSubscribed")), m_IsSubscribed)); - } - if(m_HasMoreIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasMore")), m_HasMore)); - } - if(m_NotificationsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notifications")), m_Notifications)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserNotifications_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translations")))) - { - std::map refVal_setTranslations; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translations"))), refVal_setTranslations ); - setTranslations(refVal_setTranslations); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isSubscribed")))) - { - bool refVal_setIsSubscribed; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isSubscribed"))), refVal_setIsSubscribed ); - setIsSubscribed(refVal_setIsSubscribed); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - bool refVal_setHasMore; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasMore"))), refVal_setHasMore ); - setHasMore(refVal_setHasMore); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notifications")))) - { - std::vector> refVal_setNotifications; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notifications"))), refVal_setNotifications ); - setNotifications(refVal_setNotifications); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::map GetUserNotifications_200_response::getTranslations() const -{ - return m_Translations; -} - - -void GetUserNotifications_200_response::setTranslations(const std::map& value) -{ - m_Translations = value; - m_TranslationsIsSet = true; -} - -bool GetUserNotifications_200_response::translationsIsSet() const -{ - return m_TranslationsIsSet; -} - -void GetUserNotifications_200_response::unsetTranslations() -{ - m_TranslationsIsSet = false; -} -bool GetUserNotifications_200_response::isIsSubscribed() const -{ - return m_IsSubscribed; -} - -void GetUserNotifications_200_response::setIsSubscribed(bool value) -{ - m_IsSubscribed = value; - m_IsSubscribedIsSet = true; -} - -bool GetUserNotifications_200_response::isSubscribedIsSet() const -{ - return m_IsSubscribedIsSet; -} - -void GetUserNotifications_200_response::unsetIsSubscribed() -{ - m_IsSubscribedIsSet = false; -} -bool GetUserNotifications_200_response::isHasMore() const -{ - return m_HasMore; -} - -void GetUserNotifications_200_response::setHasMore(bool value) -{ - m_HasMore = value; - m_HasMoreIsSet = true; -} - -bool GetUserNotifications_200_response::hasMoreIsSet() const -{ - return m_HasMoreIsSet; -} - -void GetUserNotifications_200_response::unsetHasMore() -{ - m_HasMoreIsSet = false; -} -std::vector> GetUserNotifications_200_response::getNotifications() const -{ - return m_Notifications; -} - - -void GetUserNotifications_200_response::setNotifications(const std::vector>& value) -{ - m_Notifications = value; - m_NotificationsIsSet = true; -} - -bool GetUserNotifications_200_response::notificationsIsSet() const -{ - return m_NotificationsIsSet; -} - -void GetUserNotifications_200_response::unsetNotifications() -{ - m_NotificationsIsSet = false; -} -std::shared_ptr GetUserNotifications_200_response::getStatus() const -{ - return m_Status; -} - - -void GetUserNotifications_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserNotifications_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserNotifications_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetUserNotifications_200_response::getReason() const -{ - return m_Reason; -} - - -void GetUserNotifications_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserNotifications_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserNotifications_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserNotifications_200_response::getCode() const -{ - return m_Code; -} - - -void GetUserNotifications_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserNotifications_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserNotifications_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserNotifications_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserNotifications_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserNotifications_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserNotifications_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserNotifications_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserNotifications_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserNotifications_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserNotifications_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserNotifications_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserNotifications_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserNotifications_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserNotifications_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserNotifications_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserNotifications_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserNotifications_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserNotifications_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserNotifications_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserNotifications_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserNotifications_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserNotifications_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserPresenceStatusesResponse.cpp b/client/src/model/GetUserPresenceStatusesResponse.cpp index 8ef4343..a83e64e 100644 --- a/client/src/model/GetUserPresenceStatusesResponse.cpp +++ b/client/src/model/GetUserPresenceStatusesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetUserPresenceStatusesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserIdsOnlineIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userIdsOnline"))] = ModelBase::toJson(m_UserIdsOnline); } diff --git a/client/src/model/GetUserPresenceStatuses_200_response.cpp b/client/src/model/GetUserPresenceStatuses_200_response.cpp deleted file mode 100644 index 54c4e73..0000000 --- a/client/src/model/GetUserPresenceStatuses_200_response.cpp +++ /dev/null @@ -1,510 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserPresenceStatuses_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserPresenceStatuses_200_response::GetUserPresenceStatuses_200_response() -{ - m_StatusIsSet = false; - m_UserIdsOnlineIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserPresenceStatuses_200_response::~GetUserPresenceStatuses_200_response() -{ -} - -void GetUserPresenceStatuses_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserPresenceStatuses_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserIdsOnlineIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userIdsOnline"))] = ModelBase::toJson(m_UserIdsOnline); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserPresenceStatuses_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIdsOnline")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIdsOnline"))); - if(!fieldValue.is_null()) - { - std::map refVal_setUserIdsOnline; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserIdsOnline); - setUserIdsOnline(refVal_setUserIdsOnline); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserPresenceStatuses_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserIdsOnlineIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIdsOnline")), m_UserIdsOnline)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserPresenceStatuses_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIdsOnline")))) - { - std::map refVal_setUserIdsOnline; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIdsOnline"))), refVal_setUserIdsOnline ); - setUserIdsOnline(refVal_setUserIdsOnline); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserPresenceStatuses_200_response::getStatus() const -{ - return m_Status; -} - - -void GetUserPresenceStatuses_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserPresenceStatuses_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserPresenceStatuses_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map GetUserPresenceStatuses_200_response::getUserIdsOnline() const -{ - return m_UserIdsOnline; -} - -void GetUserPresenceStatuses_200_response::setUserIdsOnline(std::map value) -{ - m_UserIdsOnline = value; - m_UserIdsOnlineIsSet = true; -} - -bool GetUserPresenceStatuses_200_response::userIdsOnlineIsSet() const -{ - return m_UserIdsOnlineIsSet; -} - -void GetUserPresenceStatuses_200_response::unsetUserIdsOnline() -{ - m_UserIdsOnlineIsSet = false; -} -utility::string_t GetUserPresenceStatuses_200_response::getReason() const -{ - return m_Reason; -} - - -void GetUserPresenceStatuses_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserPresenceStatuses_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserPresenceStatuses_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserPresenceStatuses_200_response::getCode() const -{ - return m_Code; -} - - -void GetUserPresenceStatuses_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserPresenceStatuses_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserPresenceStatuses_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserPresenceStatuses_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserPresenceStatuses_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserPresenceStatuses_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserPresenceStatuses_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserPresenceStatuses_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserPresenceStatuses_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserPresenceStatuses_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserPresenceStatuses_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserPresenceStatuses_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserPresenceStatuses_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserPresenceStatuses_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserPresenceStatuses_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserPresenceStatuses_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserPresenceStatuses_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserPresenceStatuses_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserPresenceStatuses_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserPresenceStatuses_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserPresenceStatuses_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserPresenceStatuses_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserPresenceStatuses_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserReactsPublic_200_response.cpp b/client/src/model/GetUserReactsPublic_200_response.cpp deleted file mode 100644 index 9887486..0000000 --- a/client/src/model/GetUserReactsPublic_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserReactsPublic_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserReactsPublic_200_response::GetUserReactsPublic_200_response() -{ - m_StatusIsSet = false; - m_ReactsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserReactsPublic_200_response::~GetUserReactsPublic_200_response() -{ -} - -void GetUserReactsPublic_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserReactsPublic_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReactsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reacts"))] = ModelBase::toJson(m_Reacts); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserReactsPublic_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reacts")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reacts"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setReacts; - ok &= ModelBase::fromJson(fieldValue, refVal_setReacts); - setReacts(refVal_setReacts); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserReactsPublic_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReactsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reacts")), m_Reacts)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserReactsPublic_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reacts")))) - { - std::map> refVal_setReacts; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reacts"))), refVal_setReacts ); - setReacts(refVal_setReacts); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserReactsPublic_200_response::getStatus() const -{ - return m_Status; -} - - -void GetUserReactsPublic_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserReactsPublic_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserReactsPublic_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map> GetUserReactsPublic_200_response::getReacts() const -{ - return m_Reacts; -} - - -void GetUserReactsPublic_200_response::setReacts(const std::map>& value) -{ - m_Reacts = value; - m_ReactsIsSet = true; -} - -bool GetUserReactsPublic_200_response::reactsIsSet() const -{ - return m_ReactsIsSet; -} - -void GetUserReactsPublic_200_response::unsetReacts() -{ - m_ReactsIsSet = false; -} -utility::string_t GetUserReactsPublic_200_response::getReason() const -{ - return m_Reason; -} - - -void GetUserReactsPublic_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserReactsPublic_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserReactsPublic_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserReactsPublic_200_response::getCode() const -{ - return m_Code; -} - - -void GetUserReactsPublic_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserReactsPublic_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserReactsPublic_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserReactsPublic_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserReactsPublic_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserReactsPublic_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserReactsPublic_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserReactsPublic_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserReactsPublic_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserReactsPublic_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserReactsPublic_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserReactsPublic_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserReactsPublic_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserReactsPublic_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserReactsPublic_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserReactsPublic_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserReactsPublic_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserReactsPublic_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserReactsPublic_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserReactsPublic_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserReactsPublic_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserReactsPublic_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserReactsPublic_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserResponse.cpp b/client/src/model/GetUserResponse.cpp index 885a398..4791610 100644 --- a/client/src/model/GetUserResponse.cpp +++ b/client/src/model/GetUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetUserResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } diff --git a/client/src/model/GetUserTrustFactorResponse.cpp b/client/src/model/GetUserTrustFactorResponse.cpp new file mode 100644 index 0000000..fb70966 --- /dev/null +++ b/client/src/model/GetUserTrustFactorResponse.cpp @@ -0,0 +1,219 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserTrustFactorResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserTrustFactorResponse::GetUserTrustFactorResponse() +{ + m_ManualTrustFactor = 0.0; + m_ManualTrustFactorIsSet = false; + m_AutoTrustFactor = 0.0; + m_AutoTrustFactorIsSet = false; + m_StatusIsSet = false; +} + +GetUserTrustFactorResponse::~GetUserTrustFactorResponse() +{ +} + +void GetUserTrustFactorResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserTrustFactorResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ManualTrustFactorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor"))] = ModelBase::toJson(m_ManualTrustFactor); + } + if(m_AutoTrustFactorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor"))] = ModelBase::toJson(m_AutoTrustFactor); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GetUserTrustFactorResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor"))); + if(!fieldValue.is_null()) + { + double refVal_setManualTrustFactor; + ok &= ModelBase::fromJson(fieldValue, refVal_setManualTrustFactor); + setManualTrustFactor(refVal_setManualTrustFactor); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor"))); + if(!fieldValue.is_null()) + { + double refVal_setAutoTrustFactor; + ok &= ModelBase::fromJson(fieldValue, refVal_setAutoTrustFactor); + setAutoTrustFactor(refVal_setAutoTrustFactor); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GetUserTrustFactorResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ManualTrustFactorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor")), m_ManualTrustFactor)); + } + if(m_AutoTrustFactorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor")), m_AutoTrustFactor)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GetUserTrustFactorResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor")))) + { + double refVal_setManualTrustFactor; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor"))), refVal_setManualTrustFactor ); + setManualTrustFactor(refVal_setManualTrustFactor); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor")))) + { + double refVal_setAutoTrustFactor; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor"))), refVal_setAutoTrustFactor ); + setAutoTrustFactor(refVal_setAutoTrustFactor); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +double GetUserTrustFactorResponse::getManualTrustFactor() const +{ + return m_ManualTrustFactor; +} + +void GetUserTrustFactorResponse::setManualTrustFactor(double value) +{ + m_ManualTrustFactor = value; + m_ManualTrustFactorIsSet = true; +} + +bool GetUserTrustFactorResponse::manualTrustFactorIsSet() const +{ + return m_ManualTrustFactorIsSet; +} + +void GetUserTrustFactorResponse::unsetManualTrustFactor() +{ + m_ManualTrustFactorIsSet = false; +} +double GetUserTrustFactorResponse::getAutoTrustFactor() const +{ + return m_AutoTrustFactor; +} + +void GetUserTrustFactorResponse::setAutoTrustFactor(double value) +{ + m_AutoTrustFactor = value; + m_AutoTrustFactorIsSet = true; +} + +bool GetUserTrustFactorResponse::autoTrustFactorIsSet() const +{ + return m_AutoTrustFactorIsSet; +} + +void GetUserTrustFactorResponse::unsetAutoTrustFactor() +{ + m_AutoTrustFactorIsSet = false; +} +std::shared_ptr GetUserTrustFactorResponse::getStatus() const +{ + return m_Status; +} + + +void GetUserTrustFactorResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserTrustFactorResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserTrustFactorResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUser_200_response.cpp b/client/src/model/GetUser_200_response.cpp deleted file mode 100644 index 26c7b61..0000000 --- a/client/src/model/GetUser_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUser_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUser_200_response::GetUser_200_response() -{ - m_StatusIsSet = false; - m_UserIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUser_200_response::~GetUser_200_response() -{ -} - -void GetUser_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetUser_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUser_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setUser); - setUser(refVal_setUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUser_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUser_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); - setUser(refVal_setUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUser_200_response::getStatus() const -{ - return m_Status; -} - - -void GetUser_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUser_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUser_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetUser_200_response::getUser() const -{ - return m_User; -} - - -void GetUser_200_response::setUser(const std::shared_ptr& value) -{ - m_User = value; - m_UserIsSet = true; -} - -bool GetUser_200_response::userIsSet() const -{ - return m_UserIsSet; -} - -void GetUser_200_response::unsetUser() -{ - m_UserIsSet = false; -} -utility::string_t GetUser_200_response::getReason() const -{ - return m_Reason; -} - - -void GetUser_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUser_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUser_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUser_200_response::getCode() const -{ - return m_Code; -} - - -void GetUser_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUser_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUser_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUser_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUser_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUser_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUser_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUser_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUser_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUser_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUser_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUser_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUser_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUser_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUser_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUser_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUser_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUser_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUser_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUser_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUser_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUser_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUser_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetV1PageLikes.cpp b/client/src/model/GetV1PageLikes.cpp new file mode 100644 index 0000000..1b7541b --- /dev/null +++ b/client/src/model/GetV1PageLikes.cpp @@ -0,0 +1,316 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetV1PageLikes.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetV1PageLikes::GetV1PageLikes() +{ + m_UrlIdWS = utility::conversions::to_string_t(""); + m_UrlIdWSIsSet = false; + m_DidLike = false; + m_DidLikeIsSet = false; + m_CommentCount = 0; + m_CommentCountIsSet = false; + m_LikeCount = 0; + m_LikeCountIsSet = false; + m_StatusIsSet = false; +} + +GetV1PageLikes::~GetV1PageLikes() +{ +} + +void GetV1PageLikes::validate() +{ + // TODO: implement validation +} + +web::json::value GetV1PageLikes::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_UrlIdWSIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); + } + if(m_DidLikeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("didLike"))] = ModelBase::toJson(m_DidLike); + } + if(m_CommentCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); + } + if(m_LikeCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("likeCount"))] = ModelBase::toJson(m_LikeCount); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GetV1PageLikes::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUrlIdWS; + ok &= ModelBase::fromJson(fieldValue, refVal_setUrlIdWS); + setUrlIdWS(refVal_setUrlIdWS); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("didLike")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("didLike"))); + if(!fieldValue.is_null()) + { + bool refVal_setDidLike; + ok &= ModelBase::fromJson(fieldValue, refVal_setDidLike); + setDidLike(refVal_setDidLike); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentCount"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setCommentCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentCount); + setCommentCount(refVal_setCommentCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("likeCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("likeCount"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setLikeCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setLikeCount); + setLikeCount(refVal_setLikeCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GetV1PageLikes::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_UrlIdWSIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdWS")), m_UrlIdWS)); + } + if(m_DidLikeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("didLike")), m_DidLike)); + } + if(m_CommentCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount)); + } + if(m_LikeCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("likeCount")), m_LikeCount)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GetV1PageLikes::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) + { + utility::string_t refVal_setUrlIdWS; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))), refVal_setUrlIdWS ); + setUrlIdWS(refVal_setUrlIdWS); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("didLike")))) + { + bool refVal_setDidLike; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("didLike"))), refVal_setDidLike ); + setDidLike(refVal_setDidLike); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + int32_t refVal_setCommentCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentCount"))), refVal_setCommentCount ); + setCommentCount(refVal_setCommentCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("likeCount")))) + { + int32_t refVal_setLikeCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("likeCount"))), refVal_setLikeCount ); + setLikeCount(refVal_setLikeCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +utility::string_t GetV1PageLikes::getUrlIdWS() const +{ + return m_UrlIdWS; +} + + +void GetV1PageLikes::setUrlIdWS(const utility::string_t& value) +{ + m_UrlIdWS = value; + m_UrlIdWSIsSet = true; +} + +bool GetV1PageLikes::urlIdWSIsSet() const +{ + return m_UrlIdWSIsSet; +} + +void GetV1PageLikes::unsetUrlIdWS() +{ + m_UrlIdWSIsSet = false; +} +bool GetV1PageLikes::isDidLike() const +{ + return m_DidLike; +} + +void GetV1PageLikes::setDidLike(bool value) +{ + m_DidLike = value; + m_DidLikeIsSet = true; +} + +bool GetV1PageLikes::didLikeIsSet() const +{ + return m_DidLikeIsSet; +} + +void GetV1PageLikes::unsetDidLike() +{ + m_DidLikeIsSet = false; +} +int32_t GetV1PageLikes::getCommentCount() const +{ + return m_CommentCount; +} + +void GetV1PageLikes::setCommentCount(int32_t value) +{ + m_CommentCount = value; + m_CommentCountIsSet = true; +} + +bool GetV1PageLikes::commentCountIsSet() const +{ + return m_CommentCountIsSet; +} + +void GetV1PageLikes::unsetCommentCount() +{ + m_CommentCountIsSet = false; +} +int32_t GetV1PageLikes::getLikeCount() const +{ + return m_LikeCount; +} + +void GetV1PageLikes::setLikeCount(int32_t value) +{ + m_LikeCount = value; + m_LikeCountIsSet = true; +} + +bool GetV1PageLikes::likeCountIsSet() const +{ + return m_LikeCountIsSet; +} + +void GetV1PageLikes::unsetLikeCount() +{ + m_LikeCountIsSet = false; +} +std::shared_ptr GetV1PageLikes::getStatus() const +{ + return m_Status; +} + + +void GetV1PageLikes::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetV1PageLikes::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetV1PageLikes::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetV2PageReactUsersResponse.cpp b/client/src/model/GetV2PageReactUsersResponse.cpp new file mode 100644 index 0000000..7e497e3 --- /dev/null +++ b/client/src/model/GetV2PageReactUsersResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetV2PageReactUsersResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetV2PageReactUsersResponse::GetV2PageReactUsersResponse() +{ + m_UserNamesIsSet = false; + m_StatusIsSet = false; +} + +GetV2PageReactUsersResponse::~GetV2PageReactUsersResponse() +{ +} + +void GetV2PageReactUsersResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetV2PageReactUsersResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_UserNamesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userNames"))] = ModelBase::toJson(m_UserNames); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GetV2PageReactUsersResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userNames")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userNames"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setUserNames; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserNames); + setUserNames(refVal_setUserNames); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GetV2PageReactUsersResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_UserNamesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userNames")), m_UserNames)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GetV2PageReactUsersResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userNames")))) + { + std::vector refVal_setUserNames; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userNames"))), refVal_setUserNames ); + setUserNames(refVal_setUserNames); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector GetV2PageReactUsersResponse::getUserNames() const +{ + return m_UserNames; +} + + +void GetV2PageReactUsersResponse::setUserNames(const std::vector& value) +{ + m_UserNames = value; + m_UserNamesIsSet = true; +} + +bool GetV2PageReactUsersResponse::userNamesIsSet() const +{ + return m_UserNamesIsSet; +} + +void GetV2PageReactUsersResponse::unsetUserNames() +{ + m_UserNamesIsSet = false; +} +std::shared_ptr GetV2PageReactUsersResponse::getStatus() const +{ + return m_Status; +} + + +void GetV2PageReactUsersResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetV2PageReactUsersResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetV2PageReactUsersResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetV2PageReacts.cpp b/client/src/model/GetV2PageReacts.cpp new file mode 100644 index 0000000..990c860 --- /dev/null +++ b/client/src/model/GetV2PageReacts.cpp @@ -0,0 +1,218 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetV2PageReacts.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetV2PageReacts::GetV2PageReacts() +{ + m_ReactedIdsIsSet = false; + m_CountsIsSet = false; + m_StatusIsSet = false; +} + +GetV2PageReacts::~GetV2PageReacts() +{ +} + +void GetV2PageReacts::validate() +{ + // TODO: implement validation +} + +web::json::value GetV2PageReacts::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ReactedIdsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reactedIds"))] = ModelBase::toJson(m_ReactedIds); + } + if(m_CountsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("counts"))] = ModelBase::toJson(m_Counts); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GetV2PageReacts::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reactedIds")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reactedIds"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setReactedIds; + ok &= ModelBase::fromJson(fieldValue, refVal_setReactedIds); + setReactedIds(refVal_setReactedIds); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("counts")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("counts"))); + if(!fieldValue.is_null()) + { + std::map refVal_setCounts; + ok &= ModelBase::fromJson(fieldValue, refVal_setCounts); + setCounts(refVal_setCounts); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GetV2PageReacts::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ReactedIdsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reactedIds")), m_ReactedIds)); + } + if(m_CountsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("counts")), m_Counts)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GetV2PageReacts::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reactedIds")))) + { + std::vector refVal_setReactedIds; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reactedIds"))), refVal_setReactedIds ); + setReactedIds(refVal_setReactedIds); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("counts")))) + { + std::map refVal_setCounts; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("counts"))), refVal_setCounts ); + setCounts(refVal_setCounts); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector GetV2PageReacts::getReactedIds() const +{ + return m_ReactedIds; +} + + +void GetV2PageReacts::setReactedIds(const std::vector& value) +{ + m_ReactedIds = value; + m_ReactedIdsIsSet = true; +} + +bool GetV2PageReacts::reactedIdsIsSet() const +{ + return m_ReactedIdsIsSet; +} + +void GetV2PageReacts::unsetReactedIds() +{ + m_ReactedIdsIsSet = false; +} +std::map GetV2PageReacts::getCounts() const +{ + return m_Counts; +} + +void GetV2PageReacts::setCounts(std::map value) +{ + m_Counts = value; + m_CountsIsSet = true; +} + +bool GetV2PageReacts::countsIsSet() const +{ + return m_CountsIsSet; +} + +void GetV2PageReacts::unsetCounts() +{ + m_CountsIsSet = false; +} +std::shared_ptr GetV2PageReacts::getStatus() const +{ + return m_Status; +} + + +void GetV2PageReacts::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetV2PageReacts::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetV2PageReacts::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetVotesForUserResponse.cpp b/client/src/model/GetVotesForUserResponse.cpp index 30d1851..8cd3c03 100644 --- a/client/src/model/GetVotesForUserResponse.cpp +++ b/client/src/model/GetVotesForUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,22 +39,22 @@ web::json::value GetVotesForUserResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_AppliedAuthorizedVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))] = ModelBase::toJson(m_AppliedAuthorizedVotes); } if(m_AppliedAnonymousVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))] = ModelBase::toJson(m_AppliedAnonymousVotes); } if(m_PendingVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))] = ModelBase::toJson(m_PendingVotes); } diff --git a/client/src/model/GetVotesForUser_200_response.cpp b/client/src/model/GetVotesForUser_200_response.cpp deleted file mode 100644 index 9a6afba..0000000 --- a/client/src/model/GetVotesForUser_200_response.cpp +++ /dev/null @@ -1,607 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetVotesForUser_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetVotesForUser_200_response::GetVotesForUser_200_response() -{ - m_StatusIsSet = false; - m_AppliedAuthorizedVotesIsSet = false; - m_AppliedAnonymousVotesIsSet = false; - m_PendingVotesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetVotesForUser_200_response::~GetVotesForUser_200_response() -{ -} - -void GetVotesForUser_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetVotesForUser_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_AppliedAuthorizedVotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))] = ModelBase::toJson(m_AppliedAuthorizedVotes); - } - if(m_AppliedAnonymousVotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))] = ModelBase::toJson(m_AppliedAnonymousVotes); - } - if(m_PendingVotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))] = ModelBase::toJson(m_PendingVotes); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetVotesForUser_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setAppliedAuthorizedVotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setAppliedAuthorizedVotes); - setAppliedAuthorizedVotes(refVal_setAppliedAuthorizedVotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setAppliedAnonymousVotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setAppliedAnonymousVotes); - setAppliedAnonymousVotes(refVal_setAppliedAnonymousVotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pendingVotes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setPendingVotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setPendingVotes); - setPendingVotes(refVal_setPendingVotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetVotesForUser_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_AppliedAuthorizedVotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")), m_AppliedAuthorizedVotes)); - } - if(m_AppliedAnonymousVotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")), m_AppliedAnonymousVotes)); - } - if(m_PendingVotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pendingVotes")), m_PendingVotes)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetVotesForUser_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")))) - { - std::vector> refVal_setAppliedAuthorizedVotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))), refVal_setAppliedAuthorizedVotes ); - setAppliedAuthorizedVotes(refVal_setAppliedAuthorizedVotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")))) - { - std::vector> refVal_setAppliedAnonymousVotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))), refVal_setAppliedAnonymousVotes ); - setAppliedAnonymousVotes(refVal_setAppliedAnonymousVotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pendingVotes")))) - { - std::vector> refVal_setPendingVotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))), refVal_setPendingVotes ); - setPendingVotes(refVal_setPendingVotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetVotesForUser_200_response::getStatus() const -{ - return m_Status; -} - - -void GetVotesForUser_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetVotesForUser_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetVotesForUser_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetVotesForUser_200_response::getAppliedAuthorizedVotes() const -{ - return m_AppliedAuthorizedVotes; -} - - -void GetVotesForUser_200_response::setAppliedAuthorizedVotes(const std::vector>& value) -{ - m_AppliedAuthorizedVotes = value; - m_AppliedAuthorizedVotesIsSet = true; -} - -bool GetVotesForUser_200_response::appliedAuthorizedVotesIsSet() const -{ - return m_AppliedAuthorizedVotesIsSet; -} - -void GetVotesForUser_200_response::unsetAppliedAuthorizedVotes() -{ - m_AppliedAuthorizedVotesIsSet = false; -} -std::vector> GetVotesForUser_200_response::getAppliedAnonymousVotes() const -{ - return m_AppliedAnonymousVotes; -} - - -void GetVotesForUser_200_response::setAppliedAnonymousVotes(const std::vector>& value) -{ - m_AppliedAnonymousVotes = value; - m_AppliedAnonymousVotesIsSet = true; -} - -bool GetVotesForUser_200_response::appliedAnonymousVotesIsSet() const -{ - return m_AppliedAnonymousVotesIsSet; -} - -void GetVotesForUser_200_response::unsetAppliedAnonymousVotes() -{ - m_AppliedAnonymousVotesIsSet = false; -} -std::vector> GetVotesForUser_200_response::getPendingVotes() const -{ - return m_PendingVotes; -} - - -void GetVotesForUser_200_response::setPendingVotes(const std::vector>& value) -{ - m_PendingVotes = value; - m_PendingVotesIsSet = true; -} - -bool GetVotesForUser_200_response::pendingVotesIsSet() const -{ - return m_PendingVotesIsSet; -} - -void GetVotesForUser_200_response::unsetPendingVotes() -{ - m_PendingVotesIsSet = false; -} -utility::string_t GetVotesForUser_200_response::getReason() const -{ - return m_Reason; -} - - -void GetVotesForUser_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetVotesForUser_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetVotesForUser_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetVotesForUser_200_response::getCode() const -{ - return m_Code; -} - - -void GetVotesForUser_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetVotesForUser_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetVotesForUser_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetVotesForUser_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetVotesForUser_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetVotesForUser_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetVotesForUser_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetVotesForUser_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetVotesForUser_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetVotesForUser_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetVotesForUser_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetVotesForUser_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetVotesForUser_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetVotesForUser_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetVotesForUser_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetVotesForUser_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetVotesForUser_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetVotesForUser_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetVotesForUser_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetVotesForUser_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetVotesForUser_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetVotesForUser_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetVotesForUser_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetVotesResponse.cpp b/client/src/model/GetVotesResponse.cpp index 19d4a96..1188f1a 100644 --- a/client/src/model/GetVotesResponse.cpp +++ b/client/src/model/GetVotesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,22 +39,22 @@ web::json::value GetVotesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_AppliedAuthorizedVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))] = ModelBase::toJson(m_AppliedAuthorizedVotes); } if(m_AppliedAnonymousVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))] = ModelBase::toJson(m_AppliedAnonymousVotes); } if(m_PendingVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))] = ModelBase::toJson(m_PendingVotes); } diff --git a/client/src/model/GetVotes_200_response.cpp b/client/src/model/GetVotes_200_response.cpp deleted file mode 100644 index d96b335..0000000 --- a/client/src/model/GetVotes_200_response.cpp +++ /dev/null @@ -1,607 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetVotes_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetVotes_200_response::GetVotes_200_response() -{ - m_StatusIsSet = false; - m_AppliedAuthorizedVotesIsSet = false; - m_AppliedAnonymousVotesIsSet = false; - m_PendingVotesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetVotes_200_response::~GetVotes_200_response() -{ -} - -void GetVotes_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetVotes_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_AppliedAuthorizedVotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))] = ModelBase::toJson(m_AppliedAuthorizedVotes); - } - if(m_AppliedAnonymousVotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))] = ModelBase::toJson(m_AppliedAnonymousVotes); - } - if(m_PendingVotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))] = ModelBase::toJson(m_PendingVotes); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetVotes_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setAppliedAuthorizedVotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setAppliedAuthorizedVotes); - setAppliedAuthorizedVotes(refVal_setAppliedAuthorizedVotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setAppliedAnonymousVotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setAppliedAnonymousVotes); - setAppliedAnonymousVotes(refVal_setAppliedAnonymousVotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pendingVotes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setPendingVotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setPendingVotes); - setPendingVotes(refVal_setPendingVotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetVotes_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_AppliedAuthorizedVotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")), m_AppliedAuthorizedVotes)); - } - if(m_AppliedAnonymousVotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")), m_AppliedAnonymousVotes)); - } - if(m_PendingVotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pendingVotes")), m_PendingVotes)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetVotes_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")))) - { - std::vector> refVal_setAppliedAuthorizedVotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))), refVal_setAppliedAuthorizedVotes ); - setAppliedAuthorizedVotes(refVal_setAppliedAuthorizedVotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")))) - { - std::vector> refVal_setAppliedAnonymousVotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))), refVal_setAppliedAnonymousVotes ); - setAppliedAnonymousVotes(refVal_setAppliedAnonymousVotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pendingVotes")))) - { - std::vector> refVal_setPendingVotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))), refVal_setPendingVotes ); - setPendingVotes(refVal_setPendingVotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetVotes_200_response::getStatus() const -{ - return m_Status; -} - - -void GetVotes_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetVotes_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetVotes_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetVotes_200_response::getAppliedAuthorizedVotes() const -{ - return m_AppliedAuthorizedVotes; -} - - -void GetVotes_200_response::setAppliedAuthorizedVotes(const std::vector>& value) -{ - m_AppliedAuthorizedVotes = value; - m_AppliedAuthorizedVotesIsSet = true; -} - -bool GetVotes_200_response::appliedAuthorizedVotesIsSet() const -{ - return m_AppliedAuthorizedVotesIsSet; -} - -void GetVotes_200_response::unsetAppliedAuthorizedVotes() -{ - m_AppliedAuthorizedVotesIsSet = false; -} -std::vector> GetVotes_200_response::getAppliedAnonymousVotes() const -{ - return m_AppliedAnonymousVotes; -} - - -void GetVotes_200_response::setAppliedAnonymousVotes(const std::vector>& value) -{ - m_AppliedAnonymousVotes = value; - m_AppliedAnonymousVotesIsSet = true; -} - -bool GetVotes_200_response::appliedAnonymousVotesIsSet() const -{ - return m_AppliedAnonymousVotesIsSet; -} - -void GetVotes_200_response::unsetAppliedAnonymousVotes() -{ - m_AppliedAnonymousVotesIsSet = false; -} -std::vector> GetVotes_200_response::getPendingVotes() const -{ - return m_PendingVotes; -} - - -void GetVotes_200_response::setPendingVotes(const std::vector>& value) -{ - m_PendingVotes = value; - m_PendingVotesIsSet = true; -} - -bool GetVotes_200_response::pendingVotesIsSet() const -{ - return m_PendingVotesIsSet; -} - -void GetVotes_200_response::unsetPendingVotes() -{ - m_PendingVotesIsSet = false; -} -utility::string_t GetVotes_200_response::getReason() const -{ - return m_Reason; -} - - -void GetVotes_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetVotes_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetVotes_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetVotes_200_response::getCode() const -{ - return m_Code; -} - - -void GetVotes_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetVotes_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetVotes_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetVotes_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetVotes_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetVotes_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetVotes_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetVotes_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetVotes_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetVotes_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetVotes_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetVotes_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetVotes_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetVotes_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetVotes_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetVotes_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetVotes_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetVotes_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetVotes_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetVotes_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetVotes_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetVotes_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetVotes_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GifGetLargeResponse.cpp b/client/src/model/GifGetLargeResponse.cpp new file mode 100644 index 0000000..1c11f96 --- /dev/null +++ b/client/src/model/GifGetLargeResponse.cpp @@ -0,0 +1,172 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GifGetLargeResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GifGetLargeResponse::GifGetLargeResponse() +{ + m_Src = utility::conversions::to_string_t(""); + m_SrcIsSet = false; + m_StatusIsSet = false; +} + +GifGetLargeResponse::~GifGetLargeResponse() +{ +} + +void GifGetLargeResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GifGetLargeResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_SrcIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("src"))] = ModelBase::toJson(m_Src); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GifGetLargeResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("src")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("src"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSrc; + ok &= ModelBase::fromJson(fieldValue, refVal_setSrc); + setSrc(refVal_setSrc); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GifGetLargeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_SrcIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("src")), m_Src)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GifGetLargeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("src")))) + { + utility::string_t refVal_setSrc; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("src"))), refVal_setSrc ); + setSrc(refVal_setSrc); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +utility::string_t GifGetLargeResponse::getSrc() const +{ + return m_Src; +} + + +void GifGetLargeResponse::setSrc(const utility::string_t& value) +{ + m_Src = value; + m_SrcIsSet = true; +} + +bool GifGetLargeResponse::srcIsSet() const +{ + return m_SrcIsSet; +} + +void GifGetLargeResponse::unsetSrc() +{ + m_SrcIsSet = false; +} +std::shared_ptr GifGetLargeResponse::getStatus() const +{ + return m_Status; +} + + +void GifGetLargeResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GifGetLargeResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GifGetLargeResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GifRating.cpp b/client/src/model/GifRating.cpp index c39baa7..450fecc 100644 --- a/client/src/model/GifRating.cpp +++ b/client/src/model/GifRating.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GifSearchInternalError.cpp b/client/src/model/GifSearchInternalError.cpp new file mode 100644 index 0000000..5a172ba --- /dev/null +++ b/client/src/model/GifSearchInternalError.cpp @@ -0,0 +1,172 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GifSearchInternalError.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GifSearchInternalError::GifSearchInternalError() +{ + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_StatusIsSet = false; +} + +GifSearchInternalError::~GifSearchInternalError() +{ +} + +void GifSearchInternalError::validate() +{ + // TODO: implement validation +} + +web::json::value GifSearchInternalError::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GifSearchInternalError::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GifSearchInternalError::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GifSearchInternalError::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +utility::string_t GifSearchInternalError::getCode() const +{ + return m_Code; +} + + +void GifSearchInternalError::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GifSearchInternalError::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GifSearchInternalError::unsetCode() +{ + m_CodeIsSet = false; +} +std::shared_ptr GifSearchInternalError::getStatus() const +{ + return m_Status; +} + + +void GifSearchInternalError::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GifSearchInternalError::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GifSearchInternalError::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GifSearchResponse.cpp b/client/src/model/GifSearchResponse.cpp new file mode 100644 index 0000000..1fef1f4 --- /dev/null +++ b/client/src/model/GifSearchResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GifSearchResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GifSearchResponse::GifSearchResponse() +{ + m_ImagesIsSet = false; + m_StatusIsSet = false; +} + +GifSearchResponse::~GifSearchResponse() +{ +} + +void GifSearchResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GifSearchResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ImagesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("images"))] = ModelBase::toJson(m_Images); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool GifSearchResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("images")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("images"))); + if(!fieldValue.is_null()) + { + std::vector>> refVal_setImages; + ok &= ModelBase::fromJson(fieldValue, refVal_setImages); + setImages(refVal_setImages); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void GifSearchResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ImagesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("images")), m_Images)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool GifSearchResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("images")))) + { + std::vector>> refVal_setImages; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("images"))), refVal_setImages ); + setImages(refVal_setImages); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector>> GifSearchResponse::getImages() const +{ + return m_Images; +} + + +void GifSearchResponse::setImages(const std::vector>>& value) +{ + m_Images = value; + m_ImagesIsSet = true; +} + +bool GifSearchResponse::imagesIsSet() const +{ + return m_ImagesIsSet; +} + +void GifSearchResponse::unsetImages() +{ + m_ImagesIsSet = false; +} +std::shared_ptr GifSearchResponse::getStatus() const +{ + return m_Status; +} + + +void GifSearchResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GifSearchResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GifSearchResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GifSearchResponse_images_inner_inner.cpp b/client/src/model/GifSearchResponse_images_inner_inner.cpp new file mode 100644 index 0000000..5f826f5 --- /dev/null +++ b/client/src/model/GifSearchResponse_images_inner_inner.cpp @@ -0,0 +1,75 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GifSearchResponse_images_inner_inner.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GifSearchResponse_images_inner_inner::GifSearchResponse_images_inner_inner() +{ +} + +GifSearchResponse_images_inner_inner::~GifSearchResponse_images_inner_inner() +{ +} + +void GifSearchResponse_images_inner_inner::validate() +{ + // TODO: implement validation +} + +web::json::value GifSearchResponse_images_inner_inner::toJson() const +{ + web::json::value val = web::json::value::object(); + + return val; +} + +bool GifSearchResponse_images_inner_inner::fromJson(const web::json::value& val) +{ + bool ok = true; + return ok; +} + +void GifSearchResponse_images_inner_inner::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } +} + +bool GifSearchResponse_images_inner_inner::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + return ok; +} + + + +} +} +} +} + + diff --git a/client/src/model/HeaderAccountNotification.cpp b/client/src/model/HeaderAccountNotification.cpp index b117a8b..303792f 100644 --- a/client/src/model/HeaderAccountNotification.cpp +++ b/client/src/model/HeaderAccountNotification.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -26,10 +26,18 @@ HeaderAccountNotification::HeaderAccountNotification() m_TitleIsSet = false; m_Message = utility::conversions::to_string_t(""); m_MessageIsSet = false; + m_MessagesByLocaleIsSet = false; + m_DatesIsSet = false; m_Severity = utility::conversions::to_string_t(""); m_SeverityIsSet = false; + m_LinkUrl = utility::conversions::to_string_t(""); + m_LinkUrlIsSet = false; + m_LinkText = utility::conversions::to_string_t(""); + m_LinkTextIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; + m_Type = utility::conversions::to_string_t(""); + m_TypeIsSet = false; } HeaderAccountNotification::~HeaderAccountNotification() @@ -45,50 +53,55 @@ web::json::value HeaderAccountNotification::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_MessageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("message"))] = ModelBase::toJson(m_Message); } - if(m_MessagesByLocale.has_value()) - { + if(m_MessagesByLocaleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("messagesByLocale"))] = ModelBase::toJson(m_MessagesByLocale.get()); + val[utility::conversions::to_string_t(_XPLATSTR("messagesByLocale"))] = ModelBase::toJson(m_MessagesByLocale); } - if(m_Dates.has_value()) - { + if(m_DatesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("dates"))] = ModelBase::toJson(m_Dates.get()); + val[utility::conversions::to_string_t(_XPLATSTR("dates"))] = ModelBase::toJson(m_Dates); } if(m_SeverityIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("severity"))] = ModelBase::toJson(m_Severity); } - if(m_LinkUrl.has_value()) - { + if(m_LinkUrlIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("linkUrl"))] = ModelBase::toJson(m_LinkUrl.get()); + val[utility::conversions::to_string_t(_XPLATSTR("linkUrl"))] = ModelBase::toJson(m_LinkUrl); } - if(m_LinkText.has_value()) - { + if(m_LinkTextIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("linkText"))] = ModelBase::toJson(m_LinkText.get()); + val[utility::conversions::to_string_t(_XPLATSTR("linkText"))] = ModelBase::toJson(m_LinkText); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } + if(m_TypeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); + } return val; } @@ -195,6 +208,17 @@ bool HeaderAccountNotification::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("type")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("type"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setType; + ok &= ModelBase::fromJson(fieldValue, refVal_setType); + setType(refVal_setType); + + } + } return ok; } @@ -217,30 +241,34 @@ void HeaderAccountNotification::toMultipart(std::shared_ptr m { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("message")), m_Message)); } - if(m_MessagesByLocale.has_value()) + if(m_MessagesByLocaleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("messagesByLocale")), m_MessagesByLocale.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("messagesByLocale")), m_MessagesByLocale)); } - if(m_Dates.has_value()) + if(m_DatesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("dates")), m_Dates.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("dates")), m_Dates)); } if(m_SeverityIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("severity")), m_Severity)); } - if(m_LinkUrl.has_value()) + if(m_LinkUrlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("linkUrl")), m_LinkUrl.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("linkUrl")), m_LinkUrl)); } - if(m_LinkText.has_value()) + if(m_LinkTextIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("linkText")), m_LinkText.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("linkText")), m_LinkText)); } if(m_CreatedAtIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); } + if(m_TypeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type)); + } } bool HeaderAccountNotification::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -306,6 +334,12 @@ bool HeaderAccountNotification::fromMultiPart(std::shared_ptr ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("createdAt"))), refVal_setCreatedAt ); setCreatedAt(refVal_setCreatedAt); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("type")))) + { + utility::string_t refVal_setType; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("type"))), refVal_setType ); + setType(refVal_setType); + } return ok; } @@ -375,43 +409,45 @@ void HeaderAccountNotification::unsetMessage() } std::map HeaderAccountNotification::getMessagesByLocale() const { - return m_MessagesByLocale.get(); + return m_MessagesByLocale; } void HeaderAccountNotification::setMessagesByLocale(const std::map& value) { m_MessagesByLocale = value; + m_MessagesByLocaleIsSet = true; } bool HeaderAccountNotification::messagesByLocaleIsSet() const { - return m_MessagesByLocale.has_value(); + return m_MessagesByLocaleIsSet; } void HeaderAccountNotification::unsetMessagesByLocale() { - m_MessagesByLocale.reset(); + m_MessagesByLocaleIsSet = false; } std::map HeaderAccountNotification::getDates() const { - return m_Dates.get(); + return m_Dates; } void HeaderAccountNotification::setDates(const std::map& value) { m_Dates = value; + m_DatesIsSet = true; } bool HeaderAccountNotification::datesIsSet() const { - return m_Dates.has_value(); + return m_DatesIsSet; } void HeaderAccountNotification::unsetDates() { - m_Dates.reset(); + m_DatesIsSet = false; } utility::string_t HeaderAccountNotification::getSeverity() const { @@ -436,43 +472,45 @@ void HeaderAccountNotification::unsetSeverity() } utility::string_t HeaderAccountNotification::getLinkUrl() const { - return m_LinkUrl.get(); + return m_LinkUrl; } void HeaderAccountNotification::setLinkUrl(const utility::string_t& value) { m_LinkUrl = value; + m_LinkUrlIsSet = true; } bool HeaderAccountNotification::linkUrlIsSet() const { - return m_LinkUrl.has_value(); + return m_LinkUrlIsSet; } void HeaderAccountNotification::unsetLinkUrl() { - m_LinkUrl.reset(); + m_LinkUrlIsSet = false; } utility::string_t HeaderAccountNotification::getLinkText() const { - return m_LinkText.get(); + return m_LinkText; } void HeaderAccountNotification::setLinkText(const utility::string_t& value) { m_LinkText = value; + m_LinkTextIsSet = true; } bool HeaderAccountNotification::linkTextIsSet() const { - return m_LinkText.has_value(); + return m_LinkTextIsSet; } void HeaderAccountNotification::unsetLinkText() { - m_LinkText.reset(); + m_LinkTextIsSet = false; } utility::datetime HeaderAccountNotification::getCreatedAt() const { @@ -495,6 +533,27 @@ void HeaderAccountNotification::unsetCreatedAt() { m_CreatedAtIsSet = false; } +utility::string_t HeaderAccountNotification::getType() const +{ + return m_Type; +} + + +void HeaderAccountNotification::setType(const utility::string_t& value) +{ + m_Type = value; + m_TypeIsSet = true; +} + +bool HeaderAccountNotification::typeIsSet() const +{ + return m_TypeIsSet; +} + +void HeaderAccountNotification::unsetType() +{ + m_TypeIsSet = false; +} } } diff --git a/client/src/model/HeaderState.cpp b/client/src/model/HeaderState.cpp index 415f271..98cfa0e 100644 --- a/client/src/model/HeaderState.cpp +++ b/client/src/model/HeaderState.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,32 +43,32 @@ web::json::value HeaderState::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_NotificationTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("NotificationType"))] = ModelBase::toJson(m_NotificationType); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_UserIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); } if(m_NotificationCountsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationCounts"))] = ModelBase::toJson(m_NotificationCounts); } if(m_AccountNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("accountNotifications"))] = ModelBase::toJson(m_AccountNotifications); } diff --git a/client/src/model/IgnoredResponse.cpp b/client/src/model/IgnoredResponse.cpp index 23894ff..3890074 100644 --- a/client/src/model/IgnoredResponse.cpp +++ b/client/src/model/IgnoredResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value IgnoredResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_NoteIsSet) - { + { utility::string_t refVal = fromNoteEnum(m_Note); val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); diff --git a/client/src/model/ImageContentProfanityLevel.cpp b/client/src/model/ImageContentProfanityLevel.cpp index 72e84fa..f929b17 100644 --- a/client/src/model/ImageContentProfanityLevel.cpp +++ b/client/src/model/ImageContentProfanityLevel.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ImportedAgentApprovalNotificationFrequency.cpp b/client/src/model/ImportedAgentApprovalNotificationFrequency.cpp new file mode 100644 index 0000000..f97dd2b --- /dev/null +++ b/client/src/model/ImportedAgentApprovalNotificationFrequency.cpp @@ -0,0 +1,138 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +namespace +{ +using EnumUnderlyingType = int64_t; + +ImportedAgentApprovalNotificationFrequency::eImportedAgentApprovalNotificationFrequency toEnum(const EnumUnderlyingType& val) +{ + switch (val) + { + case -1: + return ImportedAgentApprovalNotificationFrequency::eImportedAgentApprovalNotificationFrequency::_1; + case 0: + return ImportedAgentApprovalNotificationFrequency::eImportedAgentApprovalNotificationFrequency::_0; + case 1: + return ImportedAgentApprovalNotificationFrequency::eImportedAgentApprovalNotificationFrequency::_12; + case 2: + return ImportedAgentApprovalNotificationFrequency::eImportedAgentApprovalNotificationFrequency::_2; + default: + break; + } + return {}; +} + +EnumUnderlyingType fromEnum(ImportedAgentApprovalNotificationFrequency::eImportedAgentApprovalNotificationFrequency e) +{ + switch (e) + { + case ImportedAgentApprovalNotificationFrequency::eImportedAgentApprovalNotificationFrequency::_1: + return -1; + case ImportedAgentApprovalNotificationFrequency::eImportedAgentApprovalNotificationFrequency::_0: + return 0; + case ImportedAgentApprovalNotificationFrequency::eImportedAgentApprovalNotificationFrequency::_12: + return 1; + case ImportedAgentApprovalNotificationFrequency::eImportedAgentApprovalNotificationFrequency::_2: + return 2; + default: + break; + } + return {}; +} +} + +ImportedAgentApprovalNotificationFrequency::ImportedAgentApprovalNotificationFrequency() +{ +} + +ImportedAgentApprovalNotificationFrequency::~ImportedAgentApprovalNotificationFrequency() +{ +} + +void ImportedAgentApprovalNotificationFrequency::validate() +{ + // TODO: implement validation +} + +web::json::value ImportedAgentApprovalNotificationFrequency::toJson() const +{ + auto val = fromEnum(m_value); + return web::json::value(val); +} + +bool ImportedAgentApprovalNotificationFrequency::fromJson(const web::json::value& val) +{ + m_value = toEnum(val.as_number().to_int64()); + return true; +} + +void ImportedAgentApprovalNotificationFrequency::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) + { + namePrefix.push_back(_XPLATSTR('.')); + } + + auto e = fromEnum(m_value); + multipart->add(ModelBase::toHttpContent(namePrefix, e)); +} + +bool ImportedAgentApprovalNotificationFrequency::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) + { + namePrefix.push_back(_XPLATSTR('.')); + } + { + EnumUnderlyingType e; + ok = ModelBase::fromHttpContent(multipart->getContent(namePrefix), e); + if (ok) + { + auto v = toEnum(e); + setValue(v); + } + } + return ok; +} + +ImportedAgentApprovalNotificationFrequency::eImportedAgentApprovalNotificationFrequency ImportedAgentApprovalNotificationFrequency::getValue() const +{ + return m_value; +} + +void ImportedAgentApprovalNotificationFrequency::setValue(ImportedAgentApprovalNotificationFrequency::eImportedAgentApprovalNotificationFrequency const value) +{ + m_value = value; +} + +ImportedAgentApprovalNotificationFrequency::ImportedAgentApprovalNotificationFrequency(utility::string_t str){ + setValue( strToEnumMap[str] ); +} + +} +} +} +} + + diff --git a/client/src/model/ImportedSiteType.cpp b/client/src/model/ImportedSiteType.cpp index e95c182..84007d5 100644 --- a/client/src/model/ImportedSiteType.cpp +++ b/client/src/model/ImportedSiteType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/LiveEvent.cpp b/client/src/model/LiveEvent.cpp index 0a80e74..87adc74 100644 --- a/client/src/model/LiveEvent.cpp +++ b/client/src/model/LiveEvent.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,6 +40,8 @@ LiveEvent::LiveEvent() m_IsClosedIsSet = false; m_UjIsSet = false; m_UlIsSet = false; + m_Sc = 0; + m_ScIsSet = false; m_ChangesIsSet = false; } @@ -56,82 +58,87 @@ web::json::value LiveEvent::toJson() const { web::json::value val = web::json::value::object(); if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_TimestampIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("timestamp"))] = ModelBase::toJson(m_Timestamp); } if(m_TsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ts"))] = ModelBase::toJson(m_Ts); } if(m_BroadcastIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("broadcastId"))] = ModelBase::toJson(m_BroadcastId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_BadgesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } if(m_NotificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notification"))] = ModelBase::toJson(m_Notification); } if(m_VoteIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("vote"))] = ModelBase::toJson(m_Vote); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_FeedPostIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); } if(m_ExtraInfoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("extraInfo"))] = ModelBase::toJson(m_ExtraInfo); } if(m_ConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("config"))] = ModelBase::toJson(m_Config); } if(m_IsClosedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isClosed"))] = ModelBase::toJson(m_IsClosed); } if(m_UjIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("uj"))] = ModelBase::toJson(m_Uj); } if(m_UlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ul"))] = ModelBase::toJson(m_Ul); } + if(m_ScIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("sc"))] = ModelBase::toJson(m_Sc); + } if(m_ChangesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("changes"))] = ModelBase::toJson(m_Changes); } @@ -307,6 +314,17 @@ bool LiveEvent::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("sc")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("sc"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setSc; + ok &= ModelBase::fromJson(fieldValue, refVal_setSc); + setSc(refVal_setSc); + + } + } if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("changes")))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("changes"))); @@ -388,6 +406,10 @@ void LiveEvent::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ul")), m_Ul)); } + if(m_ScIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sc")), m_Sc)); + } if(m_ChangesIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("changes")), m_Changes)); @@ -493,6 +515,12 @@ bool LiveEvent::fromMultiPart(std::shared_ptr multipart, cons ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ul"))), refVal_setUl ); setUl(refVal_setUl); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("sc")))) + { + int32_t refVal_setSc; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("sc"))), refVal_setSc ); + setSc(refVal_setSc); + } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("changes")))) { std::map refVal_setChanges; @@ -815,6 +843,26 @@ void LiveEvent::unsetUl() { m_UlIsSet = false; } +int32_t LiveEvent::getSc() const +{ + return m_Sc; +} + +void LiveEvent::setSc(int32_t value) +{ + m_Sc = value; + m_ScIsSet = true; +} + +bool LiveEvent::scIsSet() const +{ + return m_ScIsSet; +} + +void LiveEvent::unsetSc() +{ + m_ScIsSet = false; +} std::map LiveEvent::getChanges() const { return m_Changes; diff --git a/client/src/model/LiveEventType.cpp b/client/src/model/LiveEventType.cpp index 6a4f075..ce58e7a 100644 --- a/client/src/model/LiveEventType.cpp +++ b/client/src/model/LiveEventType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -58,6 +58,18 @@ LiveEventType::eLiveEventType toEnum(const EnumUnderlyingType& val) return LiveEventType::eLiveEventType::UPDATED_FEED_POST; if (val == utility::conversions::to_string_t(_XPLATSTR("deleted-feed-post"))) return LiveEventType::eLiveEventType::DELETED_FEED_POST; + if (val == utility::conversions::to_string_t(_XPLATSTR("new-ticket"))) + return LiveEventType::eLiveEventType::NEW_TICKET; + if (val == utility::conversions::to_string_t(_XPLATSTR("updated-ticket-state"))) + return LiveEventType::eLiveEventType::UPDATED_TICKET_STATE; + if (val == utility::conversions::to_string_t(_XPLATSTR("updated-ticket-assignment"))) + return LiveEventType::eLiveEventType::UPDATED_TICKET_ASSIGNMENT; + if (val == utility::conversions::to_string_t(_XPLATSTR("deleted-ticket"))) + return LiveEventType::eLiveEventType::DELETED_TICKET; + if (val == utility::conversions::to_string_t(_XPLATSTR("page-react"))) + return LiveEventType::eLiveEventType::PAGE_REACT; + if (val == utility::conversions::to_string_t(_XPLATSTR("question-result"))) + return LiveEventType::eLiveEventType::QUESTION_RESULT; return {}; } @@ -99,6 +111,18 @@ EnumUnderlyingType fromEnum(LiveEventType::eLiveEventType e) return _XPLATSTR("updated-feed-post"); case LiveEventType::eLiveEventType::DELETED_FEED_POST: return _XPLATSTR("deleted-feed-post"); + case LiveEventType::eLiveEventType::NEW_TICKET: + return _XPLATSTR("new-ticket"); + case LiveEventType::eLiveEventType::UPDATED_TICKET_STATE: + return _XPLATSTR("updated-ticket-state"); + case LiveEventType::eLiveEventType::UPDATED_TICKET_ASSIGNMENT: + return _XPLATSTR("updated-ticket-assignment"); + case LiveEventType::eLiveEventType::DELETED_TICKET: + return _XPLATSTR("deleted-ticket"); + case LiveEventType::eLiveEventType::PAGE_REACT: + return _XPLATSTR("page-react"); + case LiveEventType::eLiveEventType::QUESTION_RESULT: + return _XPLATSTR("question-result"); default: break; } diff --git a/client/src/model/LiveEvent_extraInfo.cpp b/client/src/model/LiveEvent_extraInfo.cpp index 6f86e76..9069d07 100644 --- a/client/src/model/LiveEvent_extraInfo.cpp +++ b/client/src/model/LiveEvent_extraInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value LiveEvent_extraInfo::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentPositionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentPositions"))] = ModelBase::toJson(m_CommentPositions); } diff --git a/client/src/model/LockComment_200_response.cpp b/client/src/model/LockComment_200_response.cpp deleted file mode 100644 index 18c3e92..0000000 --- a/client/src/model/LockComment_200_response.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/LockComment_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -LockComment_200_response::LockComment_200_response() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -LockComment_200_response::~LockComment_200_response() -{ -} - -void LockComment_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value LockComment_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool LockComment_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void LockComment_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool LockComment_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr LockComment_200_response::getStatus() const -{ - return m_Status; -} - - -void LockComment_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool LockComment_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void LockComment_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t LockComment_200_response::getReason() const -{ - return m_Reason; -} - - -void LockComment_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool LockComment_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void LockComment_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t LockComment_200_response::getCode() const -{ - return m_Code; -} - - -void LockComment_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool LockComment_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void LockComment_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t LockComment_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void LockComment_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool LockComment_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void LockComment_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t LockComment_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void LockComment_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool LockComment_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void LockComment_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t LockComment_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void LockComment_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool LockComment_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void LockComment_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t LockComment_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void LockComment_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool LockComment_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void LockComment_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr LockComment_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void LockComment_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool LockComment_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void LockComment_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/MediaAsset.cpp b/client/src/model/MediaAsset.cpp index 72a9f77..b3b15d1 100644 --- a/client/src/model/MediaAsset.cpp +++ b/client/src/model/MediaAsset.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value MediaAsset::toJson() const { web::json::value val = web::json::value::object(); if(m_wIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("w"))] = ModelBase::toJson(m_w); } if(m_hIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("h"))] = ModelBase::toJson(m_h); } if(m_SrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("src"))] = ModelBase::toJson(m_Src); } diff --git a/client/src/model/MentionAutoCompleteMode.cpp b/client/src/model/MentionAutoCompleteMode.cpp index 4daa6fc..d38d63d 100644 --- a/client/src/model/MentionAutoCompleteMode.cpp +++ b/client/src/model/MentionAutoCompleteMode.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/MetaItem.cpp b/client/src/model/MetaItem.cpp index d160d0d..7bca570 100644 --- a/client/src/model/MetaItem.cpp +++ b/client/src/model/MetaItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value MetaItem::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_ValuesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("values"))] = ModelBase::toJson(m_Values); } diff --git a/client/src/model/ModerationAPIChildCommentsResponse.cpp b/client/src/model/ModerationAPIChildCommentsResponse.cpp new file mode 100644 index 0000000..8d02b50 --- /dev/null +++ b/client/src/model/ModerationAPIChildCommentsResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationAPIChildCommentsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationAPIChildCommentsResponse::ModerationAPIChildCommentsResponse() +{ + m_CommentsIsSet = false; + m_StatusIsSet = false; +} + +ModerationAPIChildCommentsResponse::~ModerationAPIChildCommentsResponse() +{ +} + +void ModerationAPIChildCommentsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationAPIChildCommentsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool ModerationAPIChildCommentsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromJson(fieldValue, refVal_setComments); + setComments(refVal_setComments); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void ModerationAPIChildCommentsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool ModerationAPIChildCommentsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); + setComments(refVal_setComments); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector> ModerationAPIChildCommentsResponse::getComments() const +{ + return m_Comments; +} + + +void ModerationAPIChildCommentsResponse::setComments(const std::vector>& value) +{ + m_Comments = value; + m_CommentsIsSet = true; +} + +bool ModerationAPIChildCommentsResponse::commentsIsSet() const +{ + return m_CommentsIsSet; +} + +void ModerationAPIChildCommentsResponse::unsetComments() +{ + m_CommentsIsSet = false; +} +std::shared_ptr ModerationAPIChildCommentsResponse::getStatus() const +{ + return m_Status; +} + + +void ModerationAPIChildCommentsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ModerationAPIChildCommentsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ModerationAPIChildCommentsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationAPIComment.cpp b/client/src/model/ModerationAPIComment.cpp new file mode 100644 index 0000000..7a39522 --- /dev/null +++ b/client/src/model/ModerationAPIComment.cpp @@ -0,0 +1,2109 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationAPIComment.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationAPIComment::ModerationAPIComment() +{ + m_IsLocalDeleted = false; + m_IsLocalDeletedIsSet = false; + m_ReplyCount = 0.0; + m_ReplyCountIsSet = false; + m_FeedbackResultsIsSet = false; + m_IsVotedUp = false; + m_IsVotedUpIsSet = false; + m_IsVotedDown = false; + m_IsVotedDownIsSet = false; + m_MyVoteId = utility::conversions::to_string_t(""); + m_MyVoteIdIsSet = false; + m__id = utility::conversions::to_string_t(""); + m__idIsSet = false; + m_TenantId = utility::conversions::to_string_t(""); + m_TenantIdIsSet = false; + m_UrlId = utility::conversions::to_string_t(""); + m_UrlIdIsSet = false; + m_Url = utility::conversions::to_string_t(""); + m_UrlIsSet = false; + m_PageTitle = utility::conversions::to_string_t(""); + m_PageTitleIsSet = false; + m_UserId = nullptr; + m_UserIdIsSet = false; + m_AnonUserId = utility::conversions::to_string_t(""); + m_AnonUserIdIsSet = false; + m_CommenterName = utility::conversions::to_string_t(""); + m_CommenterNameIsSet = false; + m_CommenterLink = utility::conversions::to_string_t(""); + m_CommenterLinkIsSet = false; + m_CommentHTML = utility::conversions::to_string_t(""); + m_CommentHTMLIsSet = false; + m_ParentId = utility::conversions::to_string_t(""); + m_ParentIdIsSet = false; + m_date = utility::datetime(); + m_dateIsSet = false; + m_LocalDateString = utility::conversions::to_string_t(""); + m_LocalDateStringIsSet = false; + m_Votes = 0.0; + m_VotesIsSet = false; + m_VotesUp = 0.0; + m_VotesUpIsSet = false; + m_VotesDown = 0.0; + m_VotesDownIsSet = false; + m_ExpireAt = utility::datetime(); + m_ExpireAtIsSet = false; + m_Reviewed = false; + m_ReviewedIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; + m_IsSpam = false; + m_IsSpamIsSet = false; + m_PermNotSpam = false; + m_PermNotSpamIsSet = false; + m_HasLinks = false; + m_HasLinksIsSet = false; + m_HasCode = false; + m_HasCodeIsSet = false; + m_Approved = false; + m_ApprovedIsSet = false; + m_Locale = utility::conversions::to_string_t(""); + m_LocaleIsSet = false; + m_IsBannedUser = false; + m_IsBannedUserIsSet = false; + m_IsByAdmin = false; + m_IsByAdminIsSet = false; + m_IsByModerator = false; + m_IsByModeratorIsSet = false; + m_IsPinned = false; + m_IsPinnedIsSet = false; + m_IsLocked = false; + m_IsLockedIsSet = false; + m_FlagCount = 0.0; + m_FlagCountIsSet = false; + m_DisplayLabel = utility::conversions::to_string_t(""); + m_DisplayLabelIsSet = false; + m_BadgesIsSet = false; + m_Verified = false; + m_VerifiedIsSet = false; + m_FeedbackIdsIsSet = false; + m_IsDeleted = false; + m_IsDeletedIsSet = false; +} + +ModerationAPIComment::~ModerationAPIComment() +{ +} + +void ModerationAPIComment::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationAPIComment::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_IsLocalDeletedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isLocalDeleted"))] = ModelBase::toJson(m_IsLocalDeleted); + } + if(m_ReplyCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("replyCount"))] = ModelBase::toJson(m_ReplyCount); + } + if(m_FeedbackResultsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("feedbackResults"))] = ModelBase::toJson(m_FeedbackResults); + } + if(m_IsVotedUpIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isVotedUp"))] = ModelBase::toJson(m_IsVotedUp); + } + if(m_IsVotedDownIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isVotedDown"))] = ModelBase::toJson(m_IsVotedDown); + } + if(m_MyVoteIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("myVoteId"))] = ModelBase::toJson(m_MyVoteId); + } + if(m__idIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); + } + if(m_TenantIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); + } + if(m_UrlIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); + } + if(m_UrlIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); + } + if(m_PageTitleIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); + } + if(m_UserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + } + if(m_AnonUserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); + } + if(m_CommenterNameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); + } + if(m_CommenterLinkIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); + } + if(m_CommentHTMLIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); + } + if(m_ParentIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); + } + if(m_dateIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); + } + if(m_LocalDateStringIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); + } + if(m_VotesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); + } + if(m_VotesUpIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); + } + if(m_VotesDownIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); + } + if(m_ExpireAtIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); + } + if(m_ReviewedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); + } + if(m_AvatarSrcIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + } + if(m_IsSpamIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); + } + if(m_PermNotSpamIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("permNotSpam"))] = ModelBase::toJson(m_PermNotSpam); + } + if(m_HasLinksIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hasLinks"))] = ModelBase::toJson(m_HasLinks); + } + if(m_HasCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hasCode"))] = ModelBase::toJson(m_HasCode); + } + if(m_ApprovedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); + } + if(m_LocaleIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); + } + if(m_IsBannedUserIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))] = ModelBase::toJson(m_IsBannedUser); + } + if(m_IsByAdminIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); + } + if(m_IsByModeratorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); + } + if(m_IsPinnedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); + } + if(m_IsLockedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); + } + if(m_FlagCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); + } + if(m_DisplayLabelIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); + } + if(m_BadgesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + } + if(m_VerifiedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); + } + if(m_FeedbackIdsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); + } + if(m_IsDeletedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); + } + + return val; +} + +bool ModerationAPIComment::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isLocalDeleted")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isLocalDeleted"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsLocalDeleted; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsLocalDeleted); + setIsLocalDeleted(refVal_setIsLocalDeleted); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("replyCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("replyCount"))); + if(!fieldValue.is_null()) + { + double refVal_setReplyCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setReplyCount); + setReplyCount(refVal_setReplyCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedbackResults")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedbackResults"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setFeedbackResults; + ok &= ModelBase::fromJson(fieldValue, refVal_setFeedbackResults); + setFeedbackResults(refVal_setFeedbackResults); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isVotedUp")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isVotedUp"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsVotedUp; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsVotedUp); + setIsVotedUp(refVal_setIsVotedUp); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isVotedDown")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isVotedDown"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsVotedDown; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsVotedDown); + setIsVotedDown(refVal_setIsVotedDown); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("myVoteId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("myVoteId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setMyVoteId; + ok &= ModelBase::fromJson(fieldValue, refVal_setMyVoteId); + setMyVoteId(refVal_setMyVoteId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("_id"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromJson(fieldValue, refVal_setId); + setId(refVal_setId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTenantId; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantId); + setTenantId(refVal_setTenantId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUrlId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUrlId); + setUrlId(refVal_setUrlId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("url")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("url"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUrl; + ok &= ModelBase::fromJson(fieldValue, refVal_setUrl); + setUrl(refVal_setUrl); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pageTitle")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pageTitle"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setPageTitle; + ok &= ModelBase::fromJson(fieldValue, refVal_setPageTitle); + setPageTitle(refVal_setPageTitle); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserId); + setUserId(refVal_setUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("anonUserId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("anonUserId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setAnonUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setAnonUserId); + setAnonUserId(refVal_setAnonUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commenterName")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commenterName"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCommenterName; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommenterName); + setCommenterName(refVal_setCommenterName); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commenterLink")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commenterLink"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCommenterLink; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommenterLink); + setCommenterLink(refVal_setCommenterLink); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentHTML")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentHTML"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCommentHTML; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentHTML); + setCommentHTML(refVal_setCommentHTML); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("parentId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("parentId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setParentId; + ok &= ModelBase::fromJson(fieldValue, refVal_setParentId); + setParentId(refVal_setParentId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("date")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("date"))); + if(!fieldValue.is_null()) + { + utility::datetime refVal_setDate; + ok &= ModelBase::fromJson(fieldValue, refVal_setDate); + setDate(refVal_setDate); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("localDateString")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("localDateString"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setLocalDateString; + ok &= ModelBase::fromJson(fieldValue, refVal_setLocalDateString); + setLocalDateString(refVal_setLocalDateString); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("votes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("votes"))); + if(!fieldValue.is_null()) + { + double refVal_setVotes; + ok &= ModelBase::fromJson(fieldValue, refVal_setVotes); + setVotes(refVal_setVotes); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("votesUp")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("votesUp"))); + if(!fieldValue.is_null()) + { + double refVal_setVotesUp; + ok &= ModelBase::fromJson(fieldValue, refVal_setVotesUp); + setVotesUp(refVal_setVotesUp); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("votesDown")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("votesDown"))); + if(!fieldValue.is_null()) + { + double refVal_setVotesDown; + ok &= ModelBase::fromJson(fieldValue, refVal_setVotesDown); + setVotesDown(refVal_setVotesDown); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("expireAt")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("expireAt"))); + if(!fieldValue.is_null()) + { + utility::datetime refVal_setExpireAt; + ok &= ModelBase::fromJson(fieldValue, refVal_setExpireAt); + setExpireAt(refVal_setExpireAt); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reviewed")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reviewed"))); + if(!fieldValue.is_null()) + { + bool refVal_setReviewed; + ok &= ModelBase::fromJson(fieldValue, refVal_setReviewed); + setReviewed(refVal_setReviewed); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("avatarSrc")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setAvatarSrc; + ok &= ModelBase::fromJson(fieldValue, refVal_setAvatarSrc); + setAvatarSrc(refVal_setAvatarSrc); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isSpam")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isSpam"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsSpam; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsSpam); + setIsSpam(refVal_setIsSpam); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("permNotSpam")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("permNotSpam"))); + if(!fieldValue.is_null()) + { + bool refVal_setPermNotSpam; + ok &= ModelBase::fromJson(fieldValue, refVal_setPermNotSpam); + setPermNotSpam(refVal_setPermNotSpam); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasLinks")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasLinks"))); + if(!fieldValue.is_null()) + { + bool refVal_setHasLinks; + ok &= ModelBase::fromJson(fieldValue, refVal_setHasLinks); + setHasLinks(refVal_setHasLinks); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasCode"))); + if(!fieldValue.is_null()) + { + bool refVal_setHasCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setHasCode); + setHasCode(refVal_setHasCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("approved")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("approved"))); + if(!fieldValue.is_null()) + { + bool refVal_setApproved; + ok &= ModelBase::fromJson(fieldValue, refVal_setApproved); + setApproved(refVal_setApproved); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("locale")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("locale"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setLocale; + ok &= ModelBase::fromJson(fieldValue, refVal_setLocale); + setLocale(refVal_setLocale); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isBannedUser")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsBannedUser; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsBannedUser); + setIsBannedUser(refVal_setIsBannedUser); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isByAdmin")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsByAdmin; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsByAdmin); + setIsByAdmin(refVal_setIsByAdmin); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isByModerator")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isByModerator"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsByModerator; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsByModerator); + setIsByModerator(refVal_setIsByModerator); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isPinned")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isPinned"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsPinned; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsPinned); + setIsPinned(refVal_setIsPinned); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isLocked")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isLocked"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsLocked; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsLocked); + setIsLocked(refVal_setIsLocked); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("flagCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("flagCount"))); + if(!fieldValue.is_null()) + { + double refVal_setFlagCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setFlagCount); + setFlagCount(refVal_setFlagCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("displayLabel")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("displayLabel"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setDisplayLabel; + ok &= ModelBase::fromJson(fieldValue, refVal_setDisplayLabel); + setDisplayLabel(refVal_setDisplayLabel); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("badges"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromJson(fieldValue, refVal_setBadges); + setBadges(refVal_setBadges); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("verified")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("verified"))); + if(!fieldValue.is_null()) + { + bool refVal_setVerified; + ok &= ModelBase::fromJson(fieldValue, refVal_setVerified); + setVerified(refVal_setVerified); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedbackIds")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setFeedbackIds; + ok &= ModelBase::fromJson(fieldValue, refVal_setFeedbackIds); + setFeedbackIds(refVal_setFeedbackIds); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isDeleted")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isDeleted"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsDeleted; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsDeleted); + setIsDeleted(refVal_setIsDeleted); + + } + } + return ok; +} + +void ModerationAPIComment::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_IsLocalDeletedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocalDeleted")), m_IsLocalDeleted)); + } + if(m_ReplyCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("replyCount")), m_ReplyCount)); + } + if(m_FeedbackResultsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedbackResults")), m_FeedbackResults)); + } + if(m_IsVotedUpIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isVotedUp")), m_IsVotedUp)); + } + if(m_IsVotedDownIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isVotedDown")), m_IsVotedDown)); + } + if(m_MyVoteIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("myVoteId")), m_MyVoteId)); + } + if(m__idIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); + } + if(m_TenantIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); + } + if(m_UrlIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlId")), m_UrlId)); + } + if(m_UrlIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); + } + if(m_PageTitleIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); + } + if(m_UserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + } + if(m_AnonUserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); + } + if(m_CommenterNameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); + } + if(m_CommenterLinkIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); + } + if(m_CommentHTMLIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); + } + if(m_ParentIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); + } + if(m_dateIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); + } + if(m_LocalDateStringIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString)); + } + if(m_VotesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); + } + if(m_VotesUpIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); + } + if(m_VotesDownIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); + } + if(m_ExpireAtIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); + } + if(m_ReviewedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reviewed")), m_Reviewed)); + } + if(m_AvatarSrcIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + } + if(m_IsSpamIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); + } + if(m_PermNotSpamIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("permNotSpam")), m_PermNotSpam)); + } + if(m_HasLinksIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasLinks")), m_HasLinks)); + } + if(m_HasCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasCode")), m_HasCode)); + } + if(m_ApprovedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); + } + if(m_LocaleIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); + } + if(m_IsBannedUserIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isBannedUser")), m_IsBannedUser)); + } + if(m_IsByAdminIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByAdmin")), m_IsByAdmin)); + } + if(m_IsByModeratorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); + } + if(m_IsPinnedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); + } + if(m_IsLockedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); + } + if(m_FlagCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); + } + if(m_DisplayLabelIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); + } + if(m_BadgesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + } + if(m_VerifiedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); + } + if(m_FeedbackIdsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedbackIds")), m_FeedbackIds)); + } + if(m_IsDeletedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isDeleted")), m_IsDeleted)); + } +} + +bool ModerationAPIComment::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isLocalDeleted")))) + { + bool refVal_setIsLocalDeleted; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isLocalDeleted"))), refVal_setIsLocalDeleted ); + setIsLocalDeleted(refVal_setIsLocalDeleted); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("replyCount")))) + { + double refVal_setReplyCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("replyCount"))), refVal_setReplyCount ); + setReplyCount(refVal_setReplyCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedbackResults")))) + { + std::vector refVal_setFeedbackResults; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedbackResults"))), refVal_setFeedbackResults ); + setFeedbackResults(refVal_setFeedbackResults); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isVotedUp")))) + { + bool refVal_setIsVotedUp; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isVotedUp"))), refVal_setIsVotedUp ); + setIsVotedUp(refVal_setIsVotedUp); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isVotedDown")))) + { + bool refVal_setIsVotedDown; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isVotedDown"))), refVal_setIsVotedDown ); + setIsVotedDown(refVal_setIsVotedDown); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("myVoteId")))) + { + utility::string_t refVal_setMyVoteId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("myVoteId"))), refVal_setMyVoteId ); + setMyVoteId(refVal_setMyVoteId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("_id"))), refVal_setId ); + setId(refVal_setId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantId")))) + { + utility::string_t refVal_setTenantId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantId"))), refVal_setTenantId ); + setTenantId(refVal_setTenantId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlId")))) + { + utility::string_t refVal_setUrlId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlId"))), refVal_setUrlId ); + setUrlId(refVal_setUrlId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("url")))) + { + utility::string_t refVal_setUrl; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("url"))), refVal_setUrl ); + setUrl(refVal_setUrl); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pageTitle")))) + { + utility::string_t refVal_setPageTitle; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pageTitle"))), refVal_setPageTitle ); + setPageTitle(refVal_setPageTitle); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userId"))), refVal_setUserId ); + setUserId(refVal_setUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("anonUserId")))) + { + utility::string_t refVal_setAnonUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("anonUserId"))), refVal_setAnonUserId ); + setAnonUserId(refVal_setAnonUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commenterName")))) + { + utility::string_t refVal_setCommenterName; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commenterName"))), refVal_setCommenterName ); + setCommenterName(refVal_setCommenterName); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commenterLink")))) + { + utility::string_t refVal_setCommenterLink; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commenterLink"))), refVal_setCommenterLink ); + setCommenterLink(refVal_setCommenterLink); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentHTML")))) + { + utility::string_t refVal_setCommentHTML; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentHTML"))), refVal_setCommentHTML ); + setCommentHTML(refVal_setCommentHTML); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("parentId")))) + { + utility::string_t refVal_setParentId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("parentId"))), refVal_setParentId ); + setParentId(refVal_setParentId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("date")))) + { + utility::datetime refVal_setDate; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("date"))), refVal_setDate ); + setDate(refVal_setDate); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("localDateString")))) + { + utility::string_t refVal_setLocalDateString; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("localDateString"))), refVal_setLocalDateString ); + setLocalDateString(refVal_setLocalDateString); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("votes")))) + { + double refVal_setVotes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("votes"))), refVal_setVotes ); + setVotes(refVal_setVotes); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("votesUp")))) + { + double refVal_setVotesUp; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("votesUp"))), refVal_setVotesUp ); + setVotesUp(refVal_setVotesUp); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("votesDown")))) + { + double refVal_setVotesDown; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("votesDown"))), refVal_setVotesDown ); + setVotesDown(refVal_setVotesDown); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("expireAt")))) + { + utility::datetime refVal_setExpireAt; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("expireAt"))), refVal_setExpireAt ); + setExpireAt(refVal_setExpireAt); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reviewed")))) + { + bool refVal_setReviewed; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reviewed"))), refVal_setReviewed ); + setReviewed(refVal_setReviewed); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("avatarSrc")))) + { + utility::string_t refVal_setAvatarSrc; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))), refVal_setAvatarSrc ); + setAvatarSrc(refVal_setAvatarSrc); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isSpam")))) + { + bool refVal_setIsSpam; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isSpam"))), refVal_setIsSpam ); + setIsSpam(refVal_setIsSpam); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("permNotSpam")))) + { + bool refVal_setPermNotSpam; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("permNotSpam"))), refVal_setPermNotSpam ); + setPermNotSpam(refVal_setPermNotSpam); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasLinks")))) + { + bool refVal_setHasLinks; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasLinks"))), refVal_setHasLinks ); + setHasLinks(refVal_setHasLinks); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasCode")))) + { + bool refVal_setHasCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasCode"))), refVal_setHasCode ); + setHasCode(refVal_setHasCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("approved")))) + { + bool refVal_setApproved; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("approved"))), refVal_setApproved ); + setApproved(refVal_setApproved); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("locale")))) + { + utility::string_t refVal_setLocale; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("locale"))), refVal_setLocale ); + setLocale(refVal_setLocale); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isBannedUser")))) + { + bool refVal_setIsBannedUser; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))), refVal_setIsBannedUser ); + setIsBannedUser(refVal_setIsBannedUser); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isByAdmin")))) + { + bool refVal_setIsByAdmin; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))), refVal_setIsByAdmin ); + setIsByAdmin(refVal_setIsByAdmin); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isByModerator")))) + { + bool refVal_setIsByModerator; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isByModerator"))), refVal_setIsByModerator ); + setIsByModerator(refVal_setIsByModerator); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isPinned")))) + { + bool refVal_setIsPinned; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isPinned"))), refVal_setIsPinned ); + setIsPinned(refVal_setIsPinned); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isLocked")))) + { + bool refVal_setIsLocked; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isLocked"))), refVal_setIsLocked ); + setIsLocked(refVal_setIsLocked); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("flagCount")))) + { + double refVal_setFlagCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("flagCount"))), refVal_setFlagCount ); + setFlagCount(refVal_setFlagCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("displayLabel")))) + { + utility::string_t refVal_setDisplayLabel; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("displayLabel"))), refVal_setDisplayLabel ); + setDisplayLabel(refVal_setDisplayLabel); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badges"))), refVal_setBadges ); + setBadges(refVal_setBadges); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("verified")))) + { + bool refVal_setVerified; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("verified"))), refVal_setVerified ); + setVerified(refVal_setVerified); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedbackIds")))) + { + std::vector refVal_setFeedbackIds; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))), refVal_setFeedbackIds ); + setFeedbackIds(refVal_setFeedbackIds); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isDeleted")))) + { + bool refVal_setIsDeleted; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isDeleted"))), refVal_setIsDeleted ); + setIsDeleted(refVal_setIsDeleted); + } + return ok; +} + + +bool ModerationAPIComment::isIsLocalDeleted() const +{ + return m_IsLocalDeleted; +} + +void ModerationAPIComment::setIsLocalDeleted(bool value) +{ + m_IsLocalDeleted = value; + m_IsLocalDeletedIsSet = true; +} + +bool ModerationAPIComment::isLocalDeletedIsSet() const +{ + return m_IsLocalDeletedIsSet; +} + +void ModerationAPIComment::unsetIsLocalDeleted() +{ + m_IsLocalDeletedIsSet = false; +} +double ModerationAPIComment::getReplyCount() const +{ + return m_ReplyCount; +} + +void ModerationAPIComment::setReplyCount(double value) +{ + m_ReplyCount = value; + m_ReplyCountIsSet = true; +} + +bool ModerationAPIComment::replyCountIsSet() const +{ + return m_ReplyCountIsSet; +} + +void ModerationAPIComment::unsetReplyCount() +{ + m_ReplyCountIsSet = false; +} +std::vector ModerationAPIComment::getFeedbackResults() const +{ + return m_FeedbackResults; +} + + +void ModerationAPIComment::setFeedbackResults(const std::vector& value) +{ + m_FeedbackResults = value; + m_FeedbackResultsIsSet = true; +} + +bool ModerationAPIComment::feedbackResultsIsSet() const +{ + return m_FeedbackResultsIsSet; +} + +void ModerationAPIComment::unsetFeedbackResults() +{ + m_FeedbackResultsIsSet = false; +} +bool ModerationAPIComment::isIsVotedUp() const +{ + return m_IsVotedUp; +} + +void ModerationAPIComment::setIsVotedUp(bool value) +{ + m_IsVotedUp = value; + m_IsVotedUpIsSet = true; +} + +bool ModerationAPIComment::isVotedUpIsSet() const +{ + return m_IsVotedUpIsSet; +} + +void ModerationAPIComment::unsetIsVotedUp() +{ + m_IsVotedUpIsSet = false; +} +bool ModerationAPIComment::isIsVotedDown() const +{ + return m_IsVotedDown; +} + +void ModerationAPIComment::setIsVotedDown(bool value) +{ + m_IsVotedDown = value; + m_IsVotedDownIsSet = true; +} + +bool ModerationAPIComment::isVotedDownIsSet() const +{ + return m_IsVotedDownIsSet; +} + +void ModerationAPIComment::unsetIsVotedDown() +{ + m_IsVotedDownIsSet = false; +} +utility::string_t ModerationAPIComment::getMyVoteId() const +{ + return m_MyVoteId; +} + + +void ModerationAPIComment::setMyVoteId(const utility::string_t& value) +{ + m_MyVoteId = value; + m_MyVoteIdIsSet = true; +} + +bool ModerationAPIComment::myVoteIdIsSet() const +{ + return m_MyVoteIdIsSet; +} + +void ModerationAPIComment::unsetMyVoteId() +{ + m_MyVoteIdIsSet = false; +} +utility::string_t ModerationAPIComment::getId() const +{ + return m__id; +} + + +void ModerationAPIComment::setId(const utility::string_t& value) +{ + m__id = value; + m__idIsSet = true; +} + +bool ModerationAPIComment::idIsSet() const +{ + return m__idIsSet; +} + +void ModerationAPIComment::unset_id() +{ + m__idIsSet = false; +} +utility::string_t ModerationAPIComment::getTenantId() const +{ + return m_TenantId; +} + + +void ModerationAPIComment::setTenantId(const utility::string_t& value) +{ + m_TenantId = value; + m_TenantIdIsSet = true; +} + +bool ModerationAPIComment::tenantIdIsSet() const +{ + return m_TenantIdIsSet; +} + +void ModerationAPIComment::unsetTenantId() +{ + m_TenantIdIsSet = false; +} +utility::string_t ModerationAPIComment::getUrlId() const +{ + return m_UrlId; +} + + +void ModerationAPIComment::setUrlId(const utility::string_t& value) +{ + m_UrlId = value; + m_UrlIdIsSet = true; +} + +bool ModerationAPIComment::urlIdIsSet() const +{ + return m_UrlIdIsSet; +} + +void ModerationAPIComment::unsetUrlId() +{ + m_UrlIdIsSet = false; +} +utility::string_t ModerationAPIComment::getUrl() const +{ + return m_Url; +} + + +void ModerationAPIComment::setUrl(const utility::string_t& value) +{ + m_Url = value; + m_UrlIsSet = true; +} + +bool ModerationAPIComment::urlIsSet() const +{ + return m_UrlIsSet; +} + +void ModerationAPIComment::unsetUrl() +{ + m_UrlIsSet = false; +} +utility::string_t ModerationAPIComment::getPageTitle() const +{ + return m_PageTitle; +} + + +void ModerationAPIComment::setPageTitle(const utility::string_t& value) +{ + m_PageTitle = value; + m_PageTitleIsSet = true; +} + +bool ModerationAPIComment::pageTitleIsSet() const +{ + return m_PageTitleIsSet; +} + +void ModerationAPIComment::unsetPageTitle() +{ + m_PageTitleIsSet = false; +} +utility::string_t ModerationAPIComment::getUserId() const +{ + return m_UserId; +} + + +void ModerationAPIComment::setUserId(const utility::string_t& value) +{ + m_UserId = value; + m_UserIdIsSet = true; +} + +bool ModerationAPIComment::userIdIsSet() const +{ + return m_UserIdIsSet; +} + +void ModerationAPIComment::unsetUserId() +{ + m_UserIdIsSet = false; +} +utility::string_t ModerationAPIComment::getAnonUserId() const +{ + return m_AnonUserId; +} + + +void ModerationAPIComment::setAnonUserId(const utility::string_t& value) +{ + m_AnonUserId = value; + m_AnonUserIdIsSet = true; +} + +bool ModerationAPIComment::anonUserIdIsSet() const +{ + return m_AnonUserIdIsSet; +} + +void ModerationAPIComment::unsetAnonUserId() +{ + m_AnonUserIdIsSet = false; +} +utility::string_t ModerationAPIComment::getCommenterName() const +{ + return m_CommenterName; +} + + +void ModerationAPIComment::setCommenterName(const utility::string_t& value) +{ + m_CommenterName = value; + m_CommenterNameIsSet = true; +} + +bool ModerationAPIComment::commenterNameIsSet() const +{ + return m_CommenterNameIsSet; +} + +void ModerationAPIComment::unsetCommenterName() +{ + m_CommenterNameIsSet = false; +} +utility::string_t ModerationAPIComment::getCommenterLink() const +{ + return m_CommenterLink; +} + + +void ModerationAPIComment::setCommenterLink(const utility::string_t& value) +{ + m_CommenterLink = value; + m_CommenterLinkIsSet = true; +} + +bool ModerationAPIComment::commenterLinkIsSet() const +{ + return m_CommenterLinkIsSet; +} + +void ModerationAPIComment::unsetCommenterLink() +{ + m_CommenterLinkIsSet = false; +} +utility::string_t ModerationAPIComment::getCommentHTML() const +{ + return m_CommentHTML; +} + + +void ModerationAPIComment::setCommentHTML(const utility::string_t& value) +{ + m_CommentHTML = value; + m_CommentHTMLIsSet = true; +} + +bool ModerationAPIComment::commentHTMLIsSet() const +{ + return m_CommentHTMLIsSet; +} + +void ModerationAPIComment::unsetCommentHTML() +{ + m_CommentHTMLIsSet = false; +} +utility::string_t ModerationAPIComment::getParentId() const +{ + return m_ParentId; +} + + +void ModerationAPIComment::setParentId(const utility::string_t& value) +{ + m_ParentId = value; + m_ParentIdIsSet = true; +} + +bool ModerationAPIComment::parentIdIsSet() const +{ + return m_ParentIdIsSet; +} + +void ModerationAPIComment::unsetParentId() +{ + m_ParentIdIsSet = false; +} +utility::datetime ModerationAPIComment::getDate() const +{ + return m_date; +} + + +void ModerationAPIComment::setDate(const utility::datetime& value) +{ + m_date = value; + m_dateIsSet = true; +} + +bool ModerationAPIComment::dateIsSet() const +{ + return m_dateIsSet; +} + +void ModerationAPIComment::unsetdate() +{ + m_dateIsSet = false; +} +utility::string_t ModerationAPIComment::getLocalDateString() const +{ + return m_LocalDateString; +} + + +void ModerationAPIComment::setLocalDateString(const utility::string_t& value) +{ + m_LocalDateString = value; + m_LocalDateStringIsSet = true; +} + +bool ModerationAPIComment::localDateStringIsSet() const +{ + return m_LocalDateStringIsSet; +} + +void ModerationAPIComment::unsetLocalDateString() +{ + m_LocalDateStringIsSet = false; +} +double ModerationAPIComment::getVotes() const +{ + return m_Votes; +} + +void ModerationAPIComment::setVotes(double value) +{ + m_Votes = value; + m_VotesIsSet = true; +} + +bool ModerationAPIComment::votesIsSet() const +{ + return m_VotesIsSet; +} + +void ModerationAPIComment::unsetVotes() +{ + m_VotesIsSet = false; +} +double ModerationAPIComment::getVotesUp() const +{ + return m_VotesUp; +} + +void ModerationAPIComment::setVotesUp(double value) +{ + m_VotesUp = value; + m_VotesUpIsSet = true; +} + +bool ModerationAPIComment::votesUpIsSet() const +{ + return m_VotesUpIsSet; +} + +void ModerationAPIComment::unsetVotesUp() +{ + m_VotesUpIsSet = false; +} +double ModerationAPIComment::getVotesDown() const +{ + return m_VotesDown; +} + +void ModerationAPIComment::setVotesDown(double value) +{ + m_VotesDown = value; + m_VotesDownIsSet = true; +} + +bool ModerationAPIComment::votesDownIsSet() const +{ + return m_VotesDownIsSet; +} + +void ModerationAPIComment::unsetVotesDown() +{ + m_VotesDownIsSet = false; +} +utility::datetime ModerationAPIComment::getExpireAt() const +{ + return m_ExpireAt; +} + + +void ModerationAPIComment::setExpireAt(const utility::datetime& value) +{ + m_ExpireAt = value; + m_ExpireAtIsSet = true; +} + +bool ModerationAPIComment::expireAtIsSet() const +{ + return m_ExpireAtIsSet; +} + +void ModerationAPIComment::unsetExpireAt() +{ + m_ExpireAtIsSet = false; +} +bool ModerationAPIComment::isReviewed() const +{ + return m_Reviewed; +} + +void ModerationAPIComment::setReviewed(bool value) +{ + m_Reviewed = value; + m_ReviewedIsSet = true; +} + +bool ModerationAPIComment::reviewedIsSet() const +{ + return m_ReviewedIsSet; +} + +void ModerationAPIComment::unsetReviewed() +{ + m_ReviewedIsSet = false; +} +utility::string_t ModerationAPIComment::getAvatarSrc() const +{ + return m_AvatarSrc; +} + + +void ModerationAPIComment::setAvatarSrc(const utility::string_t& value) +{ + m_AvatarSrc = value; + m_AvatarSrcIsSet = true; +} + +bool ModerationAPIComment::avatarSrcIsSet() const +{ + return m_AvatarSrcIsSet; +} + +void ModerationAPIComment::unsetAvatarSrc() +{ + m_AvatarSrcIsSet = false; +} +bool ModerationAPIComment::isIsSpam() const +{ + return m_IsSpam; +} + +void ModerationAPIComment::setIsSpam(bool value) +{ + m_IsSpam = value; + m_IsSpamIsSet = true; +} + +bool ModerationAPIComment::isSpamIsSet() const +{ + return m_IsSpamIsSet; +} + +void ModerationAPIComment::unsetIsSpam() +{ + m_IsSpamIsSet = false; +} +bool ModerationAPIComment::isPermNotSpam() const +{ + return m_PermNotSpam; +} + +void ModerationAPIComment::setPermNotSpam(bool value) +{ + m_PermNotSpam = value; + m_PermNotSpamIsSet = true; +} + +bool ModerationAPIComment::permNotSpamIsSet() const +{ + return m_PermNotSpamIsSet; +} + +void ModerationAPIComment::unsetPermNotSpam() +{ + m_PermNotSpamIsSet = false; +} +bool ModerationAPIComment::isHasLinks() const +{ + return m_HasLinks; +} + +void ModerationAPIComment::setHasLinks(bool value) +{ + m_HasLinks = value; + m_HasLinksIsSet = true; +} + +bool ModerationAPIComment::hasLinksIsSet() const +{ + return m_HasLinksIsSet; +} + +void ModerationAPIComment::unsetHasLinks() +{ + m_HasLinksIsSet = false; +} +bool ModerationAPIComment::isHasCode() const +{ + return m_HasCode; +} + +void ModerationAPIComment::setHasCode(bool value) +{ + m_HasCode = value; + m_HasCodeIsSet = true; +} + +bool ModerationAPIComment::hasCodeIsSet() const +{ + return m_HasCodeIsSet; +} + +void ModerationAPIComment::unsetHasCode() +{ + m_HasCodeIsSet = false; +} +bool ModerationAPIComment::isApproved() const +{ + return m_Approved; +} + +void ModerationAPIComment::setApproved(bool value) +{ + m_Approved = value; + m_ApprovedIsSet = true; +} + +bool ModerationAPIComment::approvedIsSet() const +{ + return m_ApprovedIsSet; +} + +void ModerationAPIComment::unsetApproved() +{ + m_ApprovedIsSet = false; +} +utility::string_t ModerationAPIComment::getLocale() const +{ + return m_Locale; +} + + +void ModerationAPIComment::setLocale(const utility::string_t& value) +{ + m_Locale = value; + m_LocaleIsSet = true; +} + +bool ModerationAPIComment::localeIsSet() const +{ + return m_LocaleIsSet; +} + +void ModerationAPIComment::unsetLocale() +{ + m_LocaleIsSet = false; +} +bool ModerationAPIComment::isIsBannedUser() const +{ + return m_IsBannedUser; +} + +void ModerationAPIComment::setIsBannedUser(bool value) +{ + m_IsBannedUser = value; + m_IsBannedUserIsSet = true; +} + +bool ModerationAPIComment::isBannedUserIsSet() const +{ + return m_IsBannedUserIsSet; +} + +void ModerationAPIComment::unsetIsBannedUser() +{ + m_IsBannedUserIsSet = false; +} +bool ModerationAPIComment::isIsByAdmin() const +{ + return m_IsByAdmin; +} + +void ModerationAPIComment::setIsByAdmin(bool value) +{ + m_IsByAdmin = value; + m_IsByAdminIsSet = true; +} + +bool ModerationAPIComment::isByAdminIsSet() const +{ + return m_IsByAdminIsSet; +} + +void ModerationAPIComment::unsetIsByAdmin() +{ + m_IsByAdminIsSet = false; +} +bool ModerationAPIComment::isIsByModerator() const +{ + return m_IsByModerator; +} + +void ModerationAPIComment::setIsByModerator(bool value) +{ + m_IsByModerator = value; + m_IsByModeratorIsSet = true; +} + +bool ModerationAPIComment::isByModeratorIsSet() const +{ + return m_IsByModeratorIsSet; +} + +void ModerationAPIComment::unsetIsByModerator() +{ + m_IsByModeratorIsSet = false; +} +bool ModerationAPIComment::isIsPinned() const +{ + return m_IsPinned; +} + +void ModerationAPIComment::setIsPinned(bool value) +{ + m_IsPinned = value; + m_IsPinnedIsSet = true; +} + +bool ModerationAPIComment::isPinnedIsSet() const +{ + return m_IsPinnedIsSet; +} + +void ModerationAPIComment::unsetIsPinned() +{ + m_IsPinnedIsSet = false; +} +bool ModerationAPIComment::isIsLocked() const +{ + return m_IsLocked; +} + +void ModerationAPIComment::setIsLocked(bool value) +{ + m_IsLocked = value; + m_IsLockedIsSet = true; +} + +bool ModerationAPIComment::isLockedIsSet() const +{ + return m_IsLockedIsSet; +} + +void ModerationAPIComment::unsetIsLocked() +{ + m_IsLockedIsSet = false; +} +double ModerationAPIComment::getFlagCount() const +{ + return m_FlagCount; +} + +void ModerationAPIComment::setFlagCount(double value) +{ + m_FlagCount = value; + m_FlagCountIsSet = true; +} + +bool ModerationAPIComment::flagCountIsSet() const +{ + return m_FlagCountIsSet; +} + +void ModerationAPIComment::unsetFlagCount() +{ + m_FlagCountIsSet = false; +} +utility::string_t ModerationAPIComment::getDisplayLabel() const +{ + return m_DisplayLabel; +} + + +void ModerationAPIComment::setDisplayLabel(const utility::string_t& value) +{ + m_DisplayLabel = value; + m_DisplayLabelIsSet = true; +} + +bool ModerationAPIComment::displayLabelIsSet() const +{ + return m_DisplayLabelIsSet; +} + +void ModerationAPIComment::unsetDisplayLabel() +{ + m_DisplayLabelIsSet = false; +} +std::vector> ModerationAPIComment::getBadges() const +{ + return m_Badges; +} + + +void ModerationAPIComment::setBadges(const std::vector>& value) +{ + m_Badges = value; + m_BadgesIsSet = true; +} + +bool ModerationAPIComment::badgesIsSet() const +{ + return m_BadgesIsSet; +} + +void ModerationAPIComment::unsetBadges() +{ + m_BadgesIsSet = false; +} +bool ModerationAPIComment::isVerified() const +{ + return m_Verified; +} + +void ModerationAPIComment::setVerified(bool value) +{ + m_Verified = value; + m_VerifiedIsSet = true; +} + +bool ModerationAPIComment::verifiedIsSet() const +{ + return m_VerifiedIsSet; +} + +void ModerationAPIComment::unsetVerified() +{ + m_VerifiedIsSet = false; +} +std::vector ModerationAPIComment::getFeedbackIds() const +{ + return m_FeedbackIds; +} + + +void ModerationAPIComment::setFeedbackIds(const std::vector& value) +{ + m_FeedbackIds = value; + m_FeedbackIdsIsSet = true; +} + +bool ModerationAPIComment::feedbackIdsIsSet() const +{ + return m_FeedbackIdsIsSet; +} + +void ModerationAPIComment::unsetFeedbackIds() +{ + m_FeedbackIdsIsSet = false; +} +bool ModerationAPIComment::isIsDeleted() const +{ + return m_IsDeleted; +} + +void ModerationAPIComment::setIsDeleted(bool value) +{ + m_IsDeleted = value; + m_IsDeletedIsSet = true; +} + +bool ModerationAPIComment::isDeletedIsSet() const +{ + return m_IsDeletedIsSet; +} + +void ModerationAPIComment::unsetIsDeleted() +{ + m_IsDeletedIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationAPICommentLog.cpp b/client/src/model/ModerationAPICommentLog.cpp new file mode 100644 index 0000000..d86125b --- /dev/null +++ b/client/src/model/ModerationAPICommentLog.cpp @@ -0,0 +1,271 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationAPICommentLog.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationAPICommentLog::ModerationAPICommentLog() +{ + m_date = utility::datetime(); + m_dateIsSet = false; + m_Username = utility::conversions::to_string_t(""); + m_UsernameIsSet = false; + m_ActionName = utility::conversions::to_string_t(""); + m_ActionNameIsSet = false; + m_MessageHTML = utility::conversions::to_string_t(""); + m_MessageHTMLIsSet = false; +} + +ModerationAPICommentLog::~ModerationAPICommentLog() +{ +} + +void ModerationAPICommentLog::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationAPICommentLog::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_dateIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); + } + if(m_UsernameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); + } + if(m_ActionNameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("actionName"))] = ModelBase::toJson(m_ActionName); + } + if(m_MessageHTMLIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("messageHTML"))] = ModelBase::toJson(m_MessageHTML); + } + + return val; +} + +bool ModerationAPICommentLog::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("date")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("date"))); + if(!fieldValue.is_null()) + { + utility::datetime refVal_setDate; + ok &= ModelBase::fromJson(fieldValue, refVal_setDate); + setDate(refVal_setDate); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("username")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("username"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUsername; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsername); + setUsername(refVal_setUsername); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("actionName")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("actionName"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setActionName; + ok &= ModelBase::fromJson(fieldValue, refVal_setActionName); + setActionName(refVal_setActionName); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("messageHTML")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("messageHTML"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setMessageHTML; + ok &= ModelBase::fromJson(fieldValue, refVal_setMessageHTML); + setMessageHTML(refVal_setMessageHTML); + + } + } + return ok; +} + +void ModerationAPICommentLog::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_dateIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); + } + if(m_UsernameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username)); + } + if(m_ActionNameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("actionName")), m_ActionName)); + } + if(m_MessageHTMLIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("messageHTML")), m_MessageHTML)); + } +} + +bool ModerationAPICommentLog::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("date")))) + { + utility::datetime refVal_setDate; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("date"))), refVal_setDate ); + setDate(refVal_setDate); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("username")))) + { + utility::string_t refVal_setUsername; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("username"))), refVal_setUsername ); + setUsername(refVal_setUsername); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("actionName")))) + { + utility::string_t refVal_setActionName; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("actionName"))), refVal_setActionName ); + setActionName(refVal_setActionName); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("messageHTML")))) + { + utility::string_t refVal_setMessageHTML; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("messageHTML"))), refVal_setMessageHTML ); + setMessageHTML(refVal_setMessageHTML); + } + return ok; +} + + +utility::datetime ModerationAPICommentLog::getDate() const +{ + return m_date; +} + + +void ModerationAPICommentLog::setDate(const utility::datetime& value) +{ + m_date = value; + m_dateIsSet = true; +} + +bool ModerationAPICommentLog::dateIsSet() const +{ + return m_dateIsSet; +} + +void ModerationAPICommentLog::unsetdate() +{ + m_dateIsSet = false; +} +utility::string_t ModerationAPICommentLog::getUsername() const +{ + return m_Username; +} + + +void ModerationAPICommentLog::setUsername(const utility::string_t& value) +{ + m_Username = value; + m_UsernameIsSet = true; +} + +bool ModerationAPICommentLog::usernameIsSet() const +{ + return m_UsernameIsSet; +} + +void ModerationAPICommentLog::unsetUsername() +{ + m_UsernameIsSet = false; +} +utility::string_t ModerationAPICommentLog::getActionName() const +{ + return m_ActionName; +} + + +void ModerationAPICommentLog::setActionName(const utility::string_t& value) +{ + m_ActionName = value; + m_ActionNameIsSet = true; +} + +bool ModerationAPICommentLog::actionNameIsSet() const +{ + return m_ActionNameIsSet; +} + +void ModerationAPICommentLog::unsetActionName() +{ + m_ActionNameIsSet = false; +} +utility::string_t ModerationAPICommentLog::getMessageHTML() const +{ + return m_MessageHTML; +} + + +void ModerationAPICommentLog::setMessageHTML(const utility::string_t& value) +{ + m_MessageHTML = value; + m_MessageHTMLIsSet = true; +} + +bool ModerationAPICommentLog::messageHTMLIsSet() const +{ + return m_MessageHTMLIsSet; +} + +void ModerationAPICommentLog::unsetMessageHTML() +{ + m_MessageHTMLIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationAPICommentResponse.cpp b/client/src/model/ModerationAPICommentResponse.cpp new file mode 100644 index 0000000..5b58dfd --- /dev/null +++ b/client/src/model/ModerationAPICommentResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationAPICommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationAPICommentResponse::ModerationAPICommentResponse() +{ + m_CommentIsSet = false; + m_StatusIsSet = false; +} + +ModerationAPICommentResponse::~ModerationAPICommentResponse() +{ +} + +void ModerationAPICommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationAPICommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool ModerationAPICommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromJson(fieldValue, refVal_setComment); + setComment(refVal_setComment); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void ModerationAPICommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool ModerationAPICommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); + setComment(refVal_setComment); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::shared_ptr ModerationAPICommentResponse::getComment() const +{ + return m_Comment; +} + + +void ModerationAPICommentResponse::setComment(const std::shared_ptr& value) +{ + m_Comment = value; + m_CommentIsSet = true; +} + +bool ModerationAPICommentResponse::commentIsSet() const +{ + return m_CommentIsSet; +} + +void ModerationAPICommentResponse::unsetComment() +{ + m_CommentIsSet = false; +} +std::shared_ptr ModerationAPICommentResponse::getStatus() const +{ + return m_Status; +} + + +void ModerationAPICommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ModerationAPICommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ModerationAPICommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationAPICountCommentsResponse.cpp b/client/src/model/ModerationAPICountCommentsResponse.cpp new file mode 100644 index 0000000..aa3e6c9 --- /dev/null +++ b/client/src/model/ModerationAPICountCommentsResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationAPICountCommentsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationAPICountCommentsResponse::ModerationAPICountCommentsResponse() +{ + m_StatusIsSet = false; + m_Count = 0.0; + m_CountIsSet = false; +} + +ModerationAPICountCommentsResponse::~ModerationAPICountCommentsResponse() +{ +} + +void ModerationAPICountCommentsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationAPICountCommentsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); + } + + return val; +} + +bool ModerationAPICountCommentsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); + if(!fieldValue.is_null()) + { + double refVal_setCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCount); + setCount(refVal_setCount); + + } + } + return ok; +} + +void ModerationAPICountCommentsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); + } +} + +bool ModerationAPICountCommentsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + double refVal_setCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); + setCount(refVal_setCount); + } + return ok; +} + + +std::shared_ptr ModerationAPICountCommentsResponse::getStatus() const +{ + return m_Status; +} + + +void ModerationAPICountCommentsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ModerationAPICountCommentsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ModerationAPICountCommentsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +double ModerationAPICountCommentsResponse::getCount() const +{ + return m_Count; +} + +void ModerationAPICountCommentsResponse::setCount(double value) +{ + m_Count = value; + m_CountIsSet = true; +} + +bool ModerationAPICountCommentsResponse::countIsSet() const +{ + return m_CountIsSet; +} + +void ModerationAPICountCommentsResponse::unsetCount() +{ + m_CountIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationAPIGetCommentIdsResponse.cpp b/client/src/model/ModerationAPIGetCommentIdsResponse.cpp new file mode 100644 index 0000000..8ecd625 --- /dev/null +++ b/client/src/model/ModerationAPIGetCommentIdsResponse.cpp @@ -0,0 +1,219 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationAPIGetCommentIdsResponse::ModerationAPIGetCommentIdsResponse() +{ + m_IdsIsSet = false; + m_HasMore = false; + m_HasMoreIsSet = false; + m_StatusIsSet = false; +} + +ModerationAPIGetCommentIdsResponse::~ModerationAPIGetCommentIdsResponse() +{ +} + +void ModerationAPIGetCommentIdsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationAPIGetCommentIdsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_IdsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ids"))] = ModelBase::toJson(m_Ids); + } + if(m_HasMoreIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool ModerationAPIGetCommentIdsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ids")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ids"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setIds; + ok &= ModelBase::fromJson(fieldValue, refVal_setIds); + setIds(refVal_setIds); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasMore"))); + if(!fieldValue.is_null()) + { + bool refVal_setHasMore; + ok &= ModelBase::fromJson(fieldValue, refVal_setHasMore); + setHasMore(refVal_setHasMore); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void ModerationAPIGetCommentIdsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_IdsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ids")), m_Ids)); + } + if(m_HasMoreIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasMore")), m_HasMore)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool ModerationAPIGetCommentIdsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ids")))) + { + std::vector refVal_setIds; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ids"))), refVal_setIds ); + setIds(refVal_setIds); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) + { + bool refVal_setHasMore; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasMore"))), refVal_setHasMore ); + setHasMore(refVal_setHasMore); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector ModerationAPIGetCommentIdsResponse::getIds() const +{ + return m_Ids; +} + + +void ModerationAPIGetCommentIdsResponse::setIds(const std::vector& value) +{ + m_Ids = value; + m_IdsIsSet = true; +} + +bool ModerationAPIGetCommentIdsResponse::idsIsSet() const +{ + return m_IdsIsSet; +} + +void ModerationAPIGetCommentIdsResponse::unsetIds() +{ + m_IdsIsSet = false; +} +bool ModerationAPIGetCommentIdsResponse::isHasMore() const +{ + return m_HasMore; +} + +void ModerationAPIGetCommentIdsResponse::setHasMore(bool value) +{ + m_HasMore = value; + m_HasMoreIsSet = true; +} + +bool ModerationAPIGetCommentIdsResponse::hasMoreIsSet() const +{ + return m_HasMoreIsSet; +} + +void ModerationAPIGetCommentIdsResponse::unsetHasMore() +{ + m_HasMoreIsSet = false; +} +std::shared_ptr ModerationAPIGetCommentIdsResponse::getStatus() const +{ + return m_Status; +} + + +void ModerationAPIGetCommentIdsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ModerationAPIGetCommentIdsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ModerationAPIGetCommentIdsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationAPIGetCommentsResponse.cpp b/client/src/model/ModerationAPIGetCommentsResponse.cpp new file mode 100644 index 0000000..b83323e --- /dev/null +++ b/client/src/model/ModerationAPIGetCommentsResponse.cpp @@ -0,0 +1,267 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationAPIGetCommentsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationAPIGetCommentsResponse::ModerationAPIGetCommentsResponse() +{ + m_StatusIsSet = false; + m_TranslationsIsSet = false; + m_CommentsIsSet = false; + m_ModerationFilterIsSet = false; +} + +ModerationAPIGetCommentsResponse::~ModerationAPIGetCommentsResponse() +{ +} + +void ModerationAPIGetCommentsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationAPIGetCommentsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TranslationsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); + } + if(m_CommentsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); + } + if(m_ModerationFilterIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))] = ModelBase::toJson(m_ModerationFilter); + } + + return val; +} + +bool ModerationAPIGetCommentsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translations")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translations"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setTranslations; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslations); + setTranslations(refVal_setTranslations); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromJson(fieldValue, refVal_setComments); + setComments(refVal_setComments); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderationFilter")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setModerationFilter; + ok &= ModelBase::fromJson(fieldValue, refVal_setModerationFilter); + setModerationFilter(refVal_setModerationFilter); + + } + } + return ok; +} + +void ModerationAPIGetCommentsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TranslationsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translations")), m_Translations)); + } + if(m_CommentsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); + } + if(m_ModerationFilterIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationFilter")), m_ModerationFilter)); + } +} + +bool ModerationAPIGetCommentsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translations")))) + { + std::shared_ptr refVal_setTranslations; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translations"))), refVal_setTranslations ); + setTranslations(refVal_setTranslations); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); + setComments(refVal_setComments); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderationFilter")))) + { + std::shared_ptr refVal_setModerationFilter; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))), refVal_setModerationFilter ); + setModerationFilter(refVal_setModerationFilter); + } + return ok; +} + + +std::shared_ptr ModerationAPIGetCommentsResponse::getStatus() const +{ + return m_Status; +} + + +void ModerationAPIGetCommentsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ModerationAPIGetCommentsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ModerationAPIGetCommentsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr ModerationAPIGetCommentsResponse::getTranslations() const +{ + return m_Translations; +} + + +void ModerationAPIGetCommentsResponse::setTranslations(const std::shared_ptr& value) +{ + m_Translations = value; + m_TranslationsIsSet = true; +} + +bool ModerationAPIGetCommentsResponse::translationsIsSet() const +{ + return m_TranslationsIsSet; +} + +void ModerationAPIGetCommentsResponse::unsetTranslations() +{ + m_TranslationsIsSet = false; +} +std::vector> ModerationAPIGetCommentsResponse::getComments() const +{ + return m_Comments; +} + + +void ModerationAPIGetCommentsResponse::setComments(const std::vector>& value) +{ + m_Comments = value; + m_CommentsIsSet = true; +} + +bool ModerationAPIGetCommentsResponse::commentsIsSet() const +{ + return m_CommentsIsSet; +} + +void ModerationAPIGetCommentsResponse::unsetComments() +{ + m_CommentsIsSet = false; +} +std::shared_ptr ModerationAPIGetCommentsResponse::getModerationFilter() const +{ + return m_ModerationFilter; +} + + +void ModerationAPIGetCommentsResponse::setModerationFilter(const std::shared_ptr& value) +{ + m_ModerationFilter = value; + m_ModerationFilterIsSet = true; +} + +bool ModerationAPIGetCommentsResponse::moderationFilterIsSet() const +{ + return m_ModerationFilterIsSet; +} + +void ModerationAPIGetCommentsResponse::unsetModerationFilter() +{ + m_ModerationFilterIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationAPIGetLogsResponse.cpp b/client/src/model/ModerationAPIGetLogsResponse.cpp new file mode 100644 index 0000000..f712396 --- /dev/null +++ b/client/src/model/ModerationAPIGetLogsResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationAPIGetLogsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationAPIGetLogsResponse::ModerationAPIGetLogsResponse() +{ + m_LogsIsSet = false; + m_StatusIsSet = false; +} + +ModerationAPIGetLogsResponse::~ModerationAPIGetLogsResponse() +{ +} + +void ModerationAPIGetLogsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationAPIGetLogsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_LogsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("logs"))] = ModelBase::toJson(m_Logs); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool ModerationAPIGetLogsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("logs")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("logs"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setLogs; + ok &= ModelBase::fromJson(fieldValue, refVal_setLogs); + setLogs(refVal_setLogs); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void ModerationAPIGetLogsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_LogsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logs")), m_Logs)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool ModerationAPIGetLogsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("logs")))) + { + std::vector> refVal_setLogs; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("logs"))), refVal_setLogs ); + setLogs(refVal_setLogs); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector> ModerationAPIGetLogsResponse::getLogs() const +{ + return m_Logs; +} + + +void ModerationAPIGetLogsResponse::setLogs(const std::vector>& value) +{ + m_Logs = value; + m_LogsIsSet = true; +} + +bool ModerationAPIGetLogsResponse::logsIsSet() const +{ + return m_LogsIsSet; +} + +void ModerationAPIGetLogsResponse::unsetLogs() +{ + m_LogsIsSet = false; +} +std::shared_ptr ModerationAPIGetLogsResponse::getStatus() const +{ + return m_Status; +} + + +void ModerationAPIGetLogsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ModerationAPIGetLogsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ModerationAPIGetLogsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationCommentSearchResponse.cpp b/client/src/model/ModerationCommentSearchResponse.cpp new file mode 100644 index 0000000..5753cda --- /dev/null +++ b/client/src/model/ModerationCommentSearchResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationCommentSearchResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationCommentSearchResponse::ModerationCommentSearchResponse() +{ + m_CommentCount = 0; + m_CommentCountIsSet = false; + m_StatusIsSet = false; +} + +ModerationCommentSearchResponse::~ModerationCommentSearchResponse() +{ +} + +void ModerationCommentSearchResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationCommentSearchResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool ModerationCommentSearchResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentCount"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setCommentCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentCount); + setCommentCount(refVal_setCommentCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void ModerationCommentSearchResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool ModerationCommentSearchResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + int32_t refVal_setCommentCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentCount"))), refVal_setCommentCount ); + setCommentCount(refVal_setCommentCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +int32_t ModerationCommentSearchResponse::getCommentCount() const +{ + return m_CommentCount; +} + +void ModerationCommentSearchResponse::setCommentCount(int32_t value) +{ + m_CommentCount = value; + m_CommentCountIsSet = true; +} + +bool ModerationCommentSearchResponse::commentCountIsSet() const +{ + return m_CommentCountIsSet; +} + +void ModerationCommentSearchResponse::unsetCommentCount() +{ + m_CommentCountIsSet = false; +} +std::shared_ptr ModerationCommentSearchResponse::getStatus() const +{ + return m_Status; +} + + +void ModerationCommentSearchResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ModerationCommentSearchResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ModerationCommentSearchResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationExportResponse.cpp b/client/src/model/ModerationExportResponse.cpp new file mode 100644 index 0000000..882fbb5 --- /dev/null +++ b/client/src/model/ModerationExportResponse.cpp @@ -0,0 +1,173 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationExportResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationExportResponse::ModerationExportResponse() +{ + m_Status = utility::conversions::to_string_t(""); + m_StatusIsSet = false; + m_BatchJobId = utility::conversions::to_string_t(""); + m_BatchJobIdIsSet = false; +} + +ModerationExportResponse::~ModerationExportResponse() +{ +} + +void ModerationExportResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationExportResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_BatchJobIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("batchJobId"))] = ModelBase::toJson(m_BatchJobId); + } + + return val; +} + +bool ModerationExportResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("batchJobId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("batchJobId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBatchJobId; + ok &= ModelBase::fromJson(fieldValue, refVal_setBatchJobId); + setBatchJobId(refVal_setBatchJobId); + + } + } + return ok; +} + +void ModerationExportResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_BatchJobIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("batchJobId")), m_BatchJobId)); + } +} + +bool ModerationExportResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("batchJobId")))) + { + utility::string_t refVal_setBatchJobId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("batchJobId"))), refVal_setBatchJobId ); + setBatchJobId(refVal_setBatchJobId); + } + return ok; +} + + +utility::string_t ModerationExportResponse::getStatus() const +{ + return m_Status; +} + + +void ModerationExportResponse::setStatus(const utility::string_t& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ModerationExportResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ModerationExportResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t ModerationExportResponse::getBatchJobId() const +{ + return m_BatchJobId; +} + + +void ModerationExportResponse::setBatchJobId(const utility::string_t& value) +{ + m_BatchJobId = value; + m_BatchJobIdIsSet = true; +} + +bool ModerationExportResponse::batchJobIdIsSet() const +{ + return m_BatchJobIdIsSet; +} + +void ModerationExportResponse::unsetBatchJobId() +{ + m_BatchJobIdIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationExportStatusResponse.cpp b/client/src/model/ModerationExportStatusResponse.cpp new file mode 100644 index 0000000..4d3fa93 --- /dev/null +++ b/client/src/model/ModerationExportStatusResponse.cpp @@ -0,0 +1,270 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationExportStatusResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationExportStatusResponse::ModerationExportStatusResponse() +{ + m_Status = utility::conversions::to_string_t(""); + m_StatusIsSet = false; + m_JobStatus = utility::conversions::to_string_t(""); + m_JobStatusIsSet = false; + m_RecordCount = 0; + m_RecordCountIsSet = false; + m_DownloadUrl = utility::conversions::to_string_t(""); + m_DownloadUrlIsSet = false; +} + +ModerationExportStatusResponse::~ModerationExportStatusResponse() +{ +} + +void ModerationExportStatusResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationExportStatusResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_JobStatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("jobStatus"))] = ModelBase::toJson(m_JobStatus); + } + if(m_RecordCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("recordCount"))] = ModelBase::toJson(m_RecordCount); + } + if(m_DownloadUrlIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("downloadUrl"))] = ModelBase::toJson(m_DownloadUrl); + } + + return val; +} + +bool ModerationExportStatusResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("jobStatus")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("jobStatus"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setJobStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setJobStatus); + setJobStatus(refVal_setJobStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("recordCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("recordCount"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setRecordCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setRecordCount); + setRecordCount(refVal_setRecordCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("downloadUrl")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("downloadUrl"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setDownloadUrl; + ok &= ModelBase::fromJson(fieldValue, refVal_setDownloadUrl); + setDownloadUrl(refVal_setDownloadUrl); + + } + } + return ok; +} + +void ModerationExportStatusResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_JobStatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("jobStatus")), m_JobStatus)); + } + if(m_RecordCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("recordCount")), m_RecordCount)); + } + if(m_DownloadUrlIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("downloadUrl")), m_DownloadUrl)); + } +} + +bool ModerationExportStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("jobStatus")))) + { + utility::string_t refVal_setJobStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("jobStatus"))), refVal_setJobStatus ); + setJobStatus(refVal_setJobStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("recordCount")))) + { + int32_t refVal_setRecordCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("recordCount"))), refVal_setRecordCount ); + setRecordCount(refVal_setRecordCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("downloadUrl")))) + { + utility::string_t refVal_setDownloadUrl; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("downloadUrl"))), refVal_setDownloadUrl ); + setDownloadUrl(refVal_setDownloadUrl); + } + return ok; +} + + +utility::string_t ModerationExportStatusResponse::getStatus() const +{ + return m_Status; +} + + +void ModerationExportStatusResponse::setStatus(const utility::string_t& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ModerationExportStatusResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ModerationExportStatusResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t ModerationExportStatusResponse::getJobStatus() const +{ + return m_JobStatus; +} + + +void ModerationExportStatusResponse::setJobStatus(const utility::string_t& value) +{ + m_JobStatus = value; + m_JobStatusIsSet = true; +} + +bool ModerationExportStatusResponse::jobStatusIsSet() const +{ + return m_JobStatusIsSet; +} + +void ModerationExportStatusResponse::unsetJobStatus() +{ + m_JobStatusIsSet = false; +} +int32_t ModerationExportStatusResponse::getRecordCount() const +{ + return m_RecordCount; +} + +void ModerationExportStatusResponse::setRecordCount(int32_t value) +{ + m_RecordCount = value; + m_RecordCountIsSet = true; +} + +bool ModerationExportStatusResponse::recordCountIsSet() const +{ + return m_RecordCountIsSet; +} + +void ModerationExportStatusResponse::unsetRecordCount() +{ + m_RecordCountIsSet = false; +} +utility::string_t ModerationExportStatusResponse::getDownloadUrl() const +{ + return m_DownloadUrl; +} + + +void ModerationExportStatusResponse::setDownloadUrl(const utility::string_t& value) +{ + m_DownloadUrl = value; + m_DownloadUrlIsSet = true; +} + +bool ModerationExportStatusResponse::downloadUrlIsSet() const +{ + return m_DownloadUrlIsSet; +} + +void ModerationExportStatusResponse::unsetDownloadUrl() +{ + m_DownloadUrlIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationFilter.cpp b/client/src/model/ModerationFilter.cpp new file mode 100644 index 0000000..613d182 --- /dev/null +++ b/client/src/model/ModerationFilter.cpp @@ -0,0 +1,655 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationFilter.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationFilter::ModerationFilter() +{ + m_Reviewed = false; + m_ReviewedIsSet = false; + m_Approved = false; + m_ApprovedIsSet = false; + m_IsSpam = false; + m_IsSpamIsSet = false; + m_IsBannedUser = false; + m_IsBannedUserIsSet = false; + m_IsLocked = false; + m_IsLockedIsSet = false; + m_FlagCountGt = 0.0; + m_FlagCountGtIsSet = false; + m_UserId = utility::conversions::to_string_t(""); + m_UserIdIsSet = false; + m_UrlId = utility::conversions::to_string_t(""); + m_UrlIdIsSet = false; + m_Domain = utility::conversions::to_string_t(""); + m_DomainIsSet = false; + m_ModerationGroupIdsIsSet = false; + m_CommentTextSearchIsSet = false; + m_ExactCommentText = utility::conversions::to_string_t(""); + m_ExactCommentTextIsSet = false; +} + +ModerationFilter::~ModerationFilter() +{ +} + +void ModerationFilter::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationFilter::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ReviewedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); + } + if(m_ApprovedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); + } + if(m_IsSpamIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); + } + if(m_IsBannedUserIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))] = ModelBase::toJson(m_IsBannedUser); + } + if(m_IsLockedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); + } + if(m_FlagCountGtIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("flagCountGt"))] = ModelBase::toJson(m_FlagCountGt); + } + if(m_UserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + } + if(m_UrlIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); + } + if(m_DomainIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); + } + if(m_ModerationGroupIdsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); + } + if(m_CommentTextSearchIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentTextSearch"))] = ModelBase::toJson(m_CommentTextSearch); + } + if(m_ExactCommentTextIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("exactCommentText"))] = ModelBase::toJson(m_ExactCommentText); + } + + return val; +} + +bool ModerationFilter::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reviewed")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reviewed"))); + if(!fieldValue.is_null()) + { + bool refVal_setReviewed; + ok &= ModelBase::fromJson(fieldValue, refVal_setReviewed); + setReviewed(refVal_setReviewed); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("approved")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("approved"))); + if(!fieldValue.is_null()) + { + bool refVal_setApproved; + ok &= ModelBase::fromJson(fieldValue, refVal_setApproved); + setApproved(refVal_setApproved); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isSpam")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isSpam"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsSpam; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsSpam); + setIsSpam(refVal_setIsSpam); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isBannedUser")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsBannedUser; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsBannedUser); + setIsBannedUser(refVal_setIsBannedUser); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isLocked")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isLocked"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsLocked; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsLocked); + setIsLocked(refVal_setIsLocked); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("flagCountGt")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("flagCountGt"))); + if(!fieldValue.is_null()) + { + double refVal_setFlagCountGt; + ok &= ModelBase::fromJson(fieldValue, refVal_setFlagCountGt); + setFlagCountGt(refVal_setFlagCountGt); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserId); + setUserId(refVal_setUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUrlId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUrlId); + setUrlId(refVal_setUrlId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("domain")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("domain"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setDomain; + ok &= ModelBase::fromJson(fieldValue, refVal_setDomain); + setDomain(refVal_setDomain); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setModerationGroupIds; + ok &= ModelBase::fromJson(fieldValue, refVal_setModerationGroupIds); + setModerationGroupIds(refVal_setModerationGroupIds); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentTextSearch")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentTextSearch"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setCommentTextSearch; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentTextSearch); + setCommentTextSearch(refVal_setCommentTextSearch); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("exactCommentText")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("exactCommentText"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setExactCommentText; + ok &= ModelBase::fromJson(fieldValue, refVal_setExactCommentText); + setExactCommentText(refVal_setExactCommentText); + + } + } + return ok; +} + +void ModerationFilter::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ReviewedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reviewed")), m_Reviewed)); + } + if(m_ApprovedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); + } + if(m_IsSpamIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); + } + if(m_IsBannedUserIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isBannedUser")), m_IsBannedUser)); + } + if(m_IsLockedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); + } + if(m_FlagCountGtIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCountGt")), m_FlagCountGt)); + } + if(m_UserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + } + if(m_UrlIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlId")), m_UrlId)); + } + if(m_DomainIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); + } + if(m_ModerationGroupIdsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds)); + } + if(m_CommentTextSearchIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentTextSearch")), m_CommentTextSearch)); + } + if(m_ExactCommentTextIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("exactCommentText")), m_ExactCommentText)); + } +} + +bool ModerationFilter::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reviewed")))) + { + bool refVal_setReviewed; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reviewed"))), refVal_setReviewed ); + setReviewed(refVal_setReviewed); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("approved")))) + { + bool refVal_setApproved; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("approved"))), refVal_setApproved ); + setApproved(refVal_setApproved); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isSpam")))) + { + bool refVal_setIsSpam; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isSpam"))), refVal_setIsSpam ); + setIsSpam(refVal_setIsSpam); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isBannedUser")))) + { + bool refVal_setIsBannedUser; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))), refVal_setIsBannedUser ); + setIsBannedUser(refVal_setIsBannedUser); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isLocked")))) + { + bool refVal_setIsLocked; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isLocked"))), refVal_setIsLocked ); + setIsLocked(refVal_setIsLocked); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("flagCountGt")))) + { + double refVal_setFlagCountGt; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("flagCountGt"))), refVal_setFlagCountGt ); + setFlagCountGt(refVal_setFlagCountGt); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userId")))) + { + utility::string_t refVal_setUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userId"))), refVal_setUserId ); + setUserId(refVal_setUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlId")))) + { + utility::string_t refVal_setUrlId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlId"))), refVal_setUrlId ); + setUrlId(refVal_setUrlId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("domain")))) + { + utility::string_t refVal_setDomain; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("domain"))), refVal_setDomain ); + setDomain(refVal_setDomain); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")))) + { + std::vector refVal_setModerationGroupIds; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))), refVal_setModerationGroupIds ); + setModerationGroupIds(refVal_setModerationGroupIds); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentTextSearch")))) + { + std::vector refVal_setCommentTextSearch; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentTextSearch"))), refVal_setCommentTextSearch ); + setCommentTextSearch(refVal_setCommentTextSearch); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("exactCommentText")))) + { + utility::string_t refVal_setExactCommentText; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("exactCommentText"))), refVal_setExactCommentText ); + setExactCommentText(refVal_setExactCommentText); + } + return ok; +} + + +bool ModerationFilter::isReviewed() const +{ + return m_Reviewed; +} + +void ModerationFilter::setReviewed(bool value) +{ + m_Reviewed = value; + m_ReviewedIsSet = true; +} + +bool ModerationFilter::reviewedIsSet() const +{ + return m_ReviewedIsSet; +} + +void ModerationFilter::unsetReviewed() +{ + m_ReviewedIsSet = false; +} +bool ModerationFilter::isApproved() const +{ + return m_Approved; +} + +void ModerationFilter::setApproved(bool value) +{ + m_Approved = value; + m_ApprovedIsSet = true; +} + +bool ModerationFilter::approvedIsSet() const +{ + return m_ApprovedIsSet; +} + +void ModerationFilter::unsetApproved() +{ + m_ApprovedIsSet = false; +} +bool ModerationFilter::isIsSpam() const +{ + return m_IsSpam; +} + +void ModerationFilter::setIsSpam(bool value) +{ + m_IsSpam = value; + m_IsSpamIsSet = true; +} + +bool ModerationFilter::isSpamIsSet() const +{ + return m_IsSpamIsSet; +} + +void ModerationFilter::unsetIsSpam() +{ + m_IsSpamIsSet = false; +} +bool ModerationFilter::isIsBannedUser() const +{ + return m_IsBannedUser; +} + +void ModerationFilter::setIsBannedUser(bool value) +{ + m_IsBannedUser = value; + m_IsBannedUserIsSet = true; +} + +bool ModerationFilter::isBannedUserIsSet() const +{ + return m_IsBannedUserIsSet; +} + +void ModerationFilter::unsetIsBannedUser() +{ + m_IsBannedUserIsSet = false; +} +bool ModerationFilter::isIsLocked() const +{ + return m_IsLocked; +} + +void ModerationFilter::setIsLocked(bool value) +{ + m_IsLocked = value; + m_IsLockedIsSet = true; +} + +bool ModerationFilter::isLockedIsSet() const +{ + return m_IsLockedIsSet; +} + +void ModerationFilter::unsetIsLocked() +{ + m_IsLockedIsSet = false; +} +double ModerationFilter::getFlagCountGt() const +{ + return m_FlagCountGt; +} + +void ModerationFilter::setFlagCountGt(double value) +{ + m_FlagCountGt = value; + m_FlagCountGtIsSet = true; +} + +bool ModerationFilter::flagCountGtIsSet() const +{ + return m_FlagCountGtIsSet; +} + +void ModerationFilter::unsetFlagCountGt() +{ + m_FlagCountGtIsSet = false; +} +utility::string_t ModerationFilter::getUserId() const +{ + return m_UserId; +} + + +void ModerationFilter::setUserId(const utility::string_t& value) +{ + m_UserId = value; + m_UserIdIsSet = true; +} + +bool ModerationFilter::userIdIsSet() const +{ + return m_UserIdIsSet; +} + +void ModerationFilter::unsetUserId() +{ + m_UserIdIsSet = false; +} +utility::string_t ModerationFilter::getUrlId() const +{ + return m_UrlId; +} + + +void ModerationFilter::setUrlId(const utility::string_t& value) +{ + m_UrlId = value; + m_UrlIdIsSet = true; +} + +bool ModerationFilter::urlIdIsSet() const +{ + return m_UrlIdIsSet; +} + +void ModerationFilter::unsetUrlId() +{ + m_UrlIdIsSet = false; +} +utility::string_t ModerationFilter::getDomain() const +{ + return m_Domain; +} + + +void ModerationFilter::setDomain(const utility::string_t& value) +{ + m_Domain = value; + m_DomainIsSet = true; +} + +bool ModerationFilter::domainIsSet() const +{ + return m_DomainIsSet; +} + +void ModerationFilter::unsetDomain() +{ + m_DomainIsSet = false; +} +std::vector ModerationFilter::getModerationGroupIds() const +{ + return m_ModerationGroupIds; +} + + +void ModerationFilter::setModerationGroupIds(const std::vector& value) +{ + m_ModerationGroupIds = value; + m_ModerationGroupIdsIsSet = true; +} + +bool ModerationFilter::moderationGroupIdsIsSet() const +{ + return m_ModerationGroupIdsIsSet; +} + +void ModerationFilter::unsetModerationGroupIds() +{ + m_ModerationGroupIdsIsSet = false; +} +std::vector ModerationFilter::getCommentTextSearch() const +{ + return m_CommentTextSearch; +} + + +void ModerationFilter::setCommentTextSearch(const std::vector& value) +{ + m_CommentTextSearch = value; + m_CommentTextSearchIsSet = true; +} + +bool ModerationFilter::commentTextSearchIsSet() const +{ + return m_CommentTextSearchIsSet; +} + +void ModerationFilter::unsetCommentTextSearch() +{ + m_CommentTextSearchIsSet = false; +} +utility::string_t ModerationFilter::getExactCommentText() const +{ + return m_ExactCommentText; +} + + +void ModerationFilter::setExactCommentText(const utility::string_t& value) +{ + m_ExactCommentText = value; + m_ExactCommentTextIsSet = true; +} + +bool ModerationFilter::exactCommentTextIsSet() const +{ + return m_ExactCommentTextIsSet; +} + +void ModerationFilter::unsetExactCommentText() +{ + m_ExactCommentTextIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationPageSearchProjected.cpp b/client/src/model/ModerationPageSearchProjected.cpp new file mode 100644 index 0000000..d3270f7 --- /dev/null +++ b/client/src/model/ModerationPageSearchProjected.cpp @@ -0,0 +1,270 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationPageSearchProjected.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationPageSearchProjected::ModerationPageSearchProjected() +{ + m_UrlId = utility::conversions::to_string_t(""); + m_UrlIdIsSet = false; + m_Url = utility::conversions::to_string_t(""); + m_UrlIsSet = false; + m_Title = utility::conversions::to_string_t(""); + m_TitleIsSet = false; + m_CommentCount = 0.0; + m_CommentCountIsSet = false; +} + +ModerationPageSearchProjected::~ModerationPageSearchProjected() +{ +} + +void ModerationPageSearchProjected::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationPageSearchProjected::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_UrlIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); + } + if(m_UrlIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); + } + if(m_TitleIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); + } + if(m_CommentCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); + } + + return val; +} + +bool ModerationPageSearchProjected::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUrlId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUrlId); + setUrlId(refVal_setUrlId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("url")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("url"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUrl; + ok &= ModelBase::fromJson(fieldValue, refVal_setUrl); + setUrl(refVal_setUrl); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("title")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("title"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTitle; + ok &= ModelBase::fromJson(fieldValue, refVal_setTitle); + setTitle(refVal_setTitle); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentCount"))); + if(!fieldValue.is_null()) + { + double refVal_setCommentCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentCount); + setCommentCount(refVal_setCommentCount); + + } + } + return ok; +} + +void ModerationPageSearchProjected::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_UrlIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlId")), m_UrlId)); + } + if(m_UrlIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); + } + if(m_TitleIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("title")), m_Title)); + } + if(m_CommentCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount)); + } +} + +bool ModerationPageSearchProjected::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlId")))) + { + utility::string_t refVal_setUrlId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlId"))), refVal_setUrlId ); + setUrlId(refVal_setUrlId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("url")))) + { + utility::string_t refVal_setUrl; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("url"))), refVal_setUrl ); + setUrl(refVal_setUrl); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("title")))) + { + utility::string_t refVal_setTitle; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("title"))), refVal_setTitle ); + setTitle(refVal_setTitle); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + double refVal_setCommentCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentCount"))), refVal_setCommentCount ); + setCommentCount(refVal_setCommentCount); + } + return ok; +} + + +utility::string_t ModerationPageSearchProjected::getUrlId() const +{ + return m_UrlId; +} + + +void ModerationPageSearchProjected::setUrlId(const utility::string_t& value) +{ + m_UrlId = value; + m_UrlIdIsSet = true; +} + +bool ModerationPageSearchProjected::urlIdIsSet() const +{ + return m_UrlIdIsSet; +} + +void ModerationPageSearchProjected::unsetUrlId() +{ + m_UrlIdIsSet = false; +} +utility::string_t ModerationPageSearchProjected::getUrl() const +{ + return m_Url; +} + + +void ModerationPageSearchProjected::setUrl(const utility::string_t& value) +{ + m_Url = value; + m_UrlIsSet = true; +} + +bool ModerationPageSearchProjected::urlIsSet() const +{ + return m_UrlIsSet; +} + +void ModerationPageSearchProjected::unsetUrl() +{ + m_UrlIsSet = false; +} +utility::string_t ModerationPageSearchProjected::getTitle() const +{ + return m_Title; +} + + +void ModerationPageSearchProjected::setTitle(const utility::string_t& value) +{ + m_Title = value; + m_TitleIsSet = true; +} + +bool ModerationPageSearchProjected::titleIsSet() const +{ + return m_TitleIsSet; +} + +void ModerationPageSearchProjected::unsetTitle() +{ + m_TitleIsSet = false; +} +double ModerationPageSearchProjected::getCommentCount() const +{ + return m_CommentCount; +} + +void ModerationPageSearchProjected::setCommentCount(double value) +{ + m_CommentCount = value; + m_CommentCountIsSet = true; +} + +bool ModerationPageSearchProjected::commentCountIsSet() const +{ + return m_CommentCountIsSet; +} + +void ModerationPageSearchProjected::unsetCommentCount() +{ + m_CommentCountIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationPageSearchResponse.cpp b/client/src/model/ModerationPageSearchResponse.cpp new file mode 100644 index 0000000..c635725 --- /dev/null +++ b/client/src/model/ModerationPageSearchResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationPageSearchResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationPageSearchResponse::ModerationPageSearchResponse() +{ + m_PagesIsSet = false; + m_StatusIsSet = false; +} + +ModerationPageSearchResponse::~ModerationPageSearchResponse() +{ +} + +void ModerationPageSearchResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationPageSearchResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_PagesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("pages"))] = ModelBase::toJson(m_Pages); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool ModerationPageSearchResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pages")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pages"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setPages; + ok &= ModelBase::fromJson(fieldValue, refVal_setPages); + setPages(refVal_setPages); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void ModerationPageSearchResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_PagesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pages")), m_Pages)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool ModerationPageSearchResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pages")))) + { + std::vector> refVal_setPages; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pages"))), refVal_setPages ); + setPages(refVal_setPages); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector> ModerationPageSearchResponse::getPages() const +{ + return m_Pages; +} + + +void ModerationPageSearchResponse::setPages(const std::vector>& value) +{ + m_Pages = value; + m_PagesIsSet = true; +} + +bool ModerationPageSearchResponse::pagesIsSet() const +{ + return m_PagesIsSet; +} + +void ModerationPageSearchResponse::unsetPages() +{ + m_PagesIsSet = false; +} +std::shared_ptr ModerationPageSearchResponse::getStatus() const +{ + return m_Status; +} + + +void ModerationPageSearchResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ModerationPageSearchResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ModerationPageSearchResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationSiteSearchProjected.cpp b/client/src/model/ModerationSiteSearchProjected.cpp new file mode 100644 index 0000000..15b39af --- /dev/null +++ b/client/src/model/ModerationSiteSearchProjected.cpp @@ -0,0 +1,173 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationSiteSearchProjected.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationSiteSearchProjected::ModerationSiteSearchProjected() +{ + m_Domain = utility::conversions::to_string_t(""); + m_DomainIsSet = false; + m_LogoSrc100px = utility::conversions::to_string_t(""); + m_LogoSrc100pxIsSet = false; +} + +ModerationSiteSearchProjected::~ModerationSiteSearchProjected() +{ +} + +void ModerationSiteSearchProjected::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationSiteSearchProjected::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_DomainIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); + } + if(m_LogoSrc100pxIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px); + } + + return val; +} + +bool ModerationSiteSearchProjected::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("domain")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("domain"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setDomain; + ok &= ModelBase::fromJson(fieldValue, refVal_setDomain); + setDomain(refVal_setDomain); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("logoSrc100px")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setLogoSrc100px; + ok &= ModelBase::fromJson(fieldValue, refVal_setLogoSrc100px); + setLogoSrc100px(refVal_setLogoSrc100px); + + } + } + return ok; +} + +void ModerationSiteSearchProjected::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_DomainIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); + } + if(m_LogoSrc100pxIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logoSrc100px")), m_LogoSrc100px)); + } +} + +bool ModerationSiteSearchProjected::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("domain")))) + { + utility::string_t refVal_setDomain; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("domain"))), refVal_setDomain ); + setDomain(refVal_setDomain); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("logoSrc100px")))) + { + utility::string_t refVal_setLogoSrc100px; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))), refVal_setLogoSrc100px ); + setLogoSrc100px(refVal_setLogoSrc100px); + } + return ok; +} + + +utility::string_t ModerationSiteSearchProjected::getDomain() const +{ + return m_Domain; +} + + +void ModerationSiteSearchProjected::setDomain(const utility::string_t& value) +{ + m_Domain = value; + m_DomainIsSet = true; +} + +bool ModerationSiteSearchProjected::domainIsSet() const +{ + return m_DomainIsSet; +} + +void ModerationSiteSearchProjected::unsetDomain() +{ + m_DomainIsSet = false; +} +utility::string_t ModerationSiteSearchProjected::getLogoSrc100px() const +{ + return m_LogoSrc100px; +} + + +void ModerationSiteSearchProjected::setLogoSrc100px(const utility::string_t& value) +{ + m_LogoSrc100px = value; + m_LogoSrc100pxIsSet = true; +} + +bool ModerationSiteSearchProjected::logoSrc100pxIsSet() const +{ + return m_LogoSrc100pxIsSet; +} + +void ModerationSiteSearchProjected::unsetLogoSrc100px() +{ + m_LogoSrc100pxIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationSiteSearchResponse.cpp b/client/src/model/ModerationSiteSearchResponse.cpp new file mode 100644 index 0000000..fbc967c --- /dev/null +++ b/client/src/model/ModerationSiteSearchResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationSiteSearchResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationSiteSearchResponse::ModerationSiteSearchResponse() +{ + m_SitesIsSet = false; + m_StatusIsSet = false; +} + +ModerationSiteSearchResponse::~ModerationSiteSearchResponse() +{ +} + +void ModerationSiteSearchResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationSiteSearchResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_SitesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("sites"))] = ModelBase::toJson(m_Sites); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool ModerationSiteSearchResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("sites")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("sites"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setSites; + ok &= ModelBase::fromJson(fieldValue, refVal_setSites); + setSites(refVal_setSites); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void ModerationSiteSearchResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_SitesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sites")), m_Sites)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool ModerationSiteSearchResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("sites")))) + { + std::vector> refVal_setSites; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("sites"))), refVal_setSites ); + setSites(refVal_setSites); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector> ModerationSiteSearchResponse::getSites() const +{ + return m_Sites; +} + + +void ModerationSiteSearchResponse::setSites(const std::vector>& value) +{ + m_Sites = value; + m_SitesIsSet = true; +} + +bool ModerationSiteSearchResponse::sitesIsSet() const +{ + return m_SitesIsSet; +} + +void ModerationSiteSearchResponse::unsetSites() +{ + m_SitesIsSet = false; +} +std::shared_ptr ModerationSiteSearchResponse::getStatus() const +{ + return m_Status; +} + + +void ModerationSiteSearchResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ModerationSiteSearchResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ModerationSiteSearchResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationSuggestResponse.cpp b/client/src/model/ModerationSuggestResponse.cpp new file mode 100644 index 0000000..4340fd4 --- /dev/null +++ b/client/src/model/ModerationSuggestResponse.cpp @@ -0,0 +1,269 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationSuggestResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationSuggestResponse::ModerationSuggestResponse() +{ + m_Status = utility::conversions::to_string_t(""); + m_StatusIsSet = false; + m_PagesIsSet = false; + m_UsersIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; +} + +ModerationSuggestResponse::~ModerationSuggestResponse() +{ +} + +void ModerationSuggestResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationSuggestResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_PagesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("pages"))] = ModelBase::toJson(m_Pages); + } + if(m_UsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + + return val; +} + +bool ModerationSuggestResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pages")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pages"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setPages; + ok &= ModelBase::fromJson(fieldValue, refVal_setPages); + setPages(refVal_setPages); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); + setUsers(refVal_setUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + return ok; +} + +void ModerationSuggestResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_PagesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pages")), m_Pages)); + } + if(m_UsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } +} + +bool ModerationSuggestResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pages")))) + { + std::vector> refVal_setPages; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pages"))), refVal_setPages ); + setPages(refVal_setPages); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); + setUsers(refVal_setUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + return ok; +} + + +utility::string_t ModerationSuggestResponse::getStatus() const +{ + return m_Status; +} + + +void ModerationSuggestResponse::setStatus(const utility::string_t& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ModerationSuggestResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ModerationSuggestResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> ModerationSuggestResponse::getPages() const +{ + return m_Pages; +} + + +void ModerationSuggestResponse::setPages(const std::vector>& value) +{ + m_Pages = value; + m_PagesIsSet = true; +} + +bool ModerationSuggestResponse::pagesIsSet() const +{ + return m_PagesIsSet; +} + +void ModerationSuggestResponse::unsetPages() +{ + m_PagesIsSet = false; +} +std::vector> ModerationSuggestResponse::getUsers() const +{ + return m_Users; +} + + +void ModerationSuggestResponse::setUsers(const std::vector>& value) +{ + m_Users = value; + m_UsersIsSet = true; +} + +bool ModerationSuggestResponse::usersIsSet() const +{ + return m_UsersIsSet; +} + +void ModerationSuggestResponse::unsetUsers() +{ + m_UsersIsSet = false; +} +utility::string_t ModerationSuggestResponse::getCode() const +{ + return m_Code; +} + + +void ModerationSuggestResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool ModerationSuggestResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void ModerationSuggestResponse::unsetCode() +{ + m_CodeIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationUserSearchProjected.cpp b/client/src/model/ModerationUserSearchProjected.cpp new file mode 100644 index 0000000..f847621 --- /dev/null +++ b/client/src/model/ModerationUserSearchProjected.cpp @@ -0,0 +1,271 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationUserSearchProjected.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationUserSearchProjected::ModerationUserSearchProjected() +{ + m__id = utility::conversions::to_string_t(""); + m__idIsSet = false; + m_Username = utility::conversions::to_string_t(""); + m_UsernameIsSet = false; + m_DisplayName = utility::conversions::to_string_t(""); + m_DisplayNameIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; +} + +ModerationUserSearchProjected::~ModerationUserSearchProjected() +{ +} + +void ModerationUserSearchProjected::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationUserSearchProjected::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m__idIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); + } + if(m_UsernameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); + } + if(m_DisplayNameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); + } + if(m_AvatarSrcIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + } + + return val; +} + +bool ModerationUserSearchProjected::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("_id"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromJson(fieldValue, refVal_setId); + setId(refVal_setId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("username")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("username"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUsername; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsername); + setUsername(refVal_setUsername); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("displayName")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("displayName"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setDisplayName; + ok &= ModelBase::fromJson(fieldValue, refVal_setDisplayName); + setDisplayName(refVal_setDisplayName); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("avatarSrc")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setAvatarSrc; + ok &= ModelBase::fromJson(fieldValue, refVal_setAvatarSrc); + setAvatarSrc(refVal_setAvatarSrc); + + } + } + return ok; +} + +void ModerationUserSearchProjected::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m__idIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); + } + if(m_UsernameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username)); + } + if(m_DisplayNameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayName")), m_DisplayName)); + } + if(m_AvatarSrcIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + } +} + +bool ModerationUserSearchProjected::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("_id"))), refVal_setId ); + setId(refVal_setId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("username")))) + { + utility::string_t refVal_setUsername; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("username"))), refVal_setUsername ); + setUsername(refVal_setUsername); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("displayName")))) + { + utility::string_t refVal_setDisplayName; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("displayName"))), refVal_setDisplayName ); + setDisplayName(refVal_setDisplayName); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("avatarSrc")))) + { + utility::string_t refVal_setAvatarSrc; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))), refVal_setAvatarSrc ); + setAvatarSrc(refVal_setAvatarSrc); + } + return ok; +} + + +utility::string_t ModerationUserSearchProjected::getId() const +{ + return m__id; +} + + +void ModerationUserSearchProjected::setId(const utility::string_t& value) +{ + m__id = value; + m__idIsSet = true; +} + +bool ModerationUserSearchProjected::idIsSet() const +{ + return m__idIsSet; +} + +void ModerationUserSearchProjected::unset_id() +{ + m__idIsSet = false; +} +utility::string_t ModerationUserSearchProjected::getUsername() const +{ + return m_Username; +} + + +void ModerationUserSearchProjected::setUsername(const utility::string_t& value) +{ + m_Username = value; + m_UsernameIsSet = true; +} + +bool ModerationUserSearchProjected::usernameIsSet() const +{ + return m_UsernameIsSet; +} + +void ModerationUserSearchProjected::unsetUsername() +{ + m_UsernameIsSet = false; +} +utility::string_t ModerationUserSearchProjected::getDisplayName() const +{ + return m_DisplayName; +} + + +void ModerationUserSearchProjected::setDisplayName(const utility::string_t& value) +{ + m_DisplayName = value; + m_DisplayNameIsSet = true; +} + +bool ModerationUserSearchProjected::displayNameIsSet() const +{ + return m_DisplayNameIsSet; +} + +void ModerationUserSearchProjected::unsetDisplayName() +{ + m_DisplayNameIsSet = false; +} +utility::string_t ModerationUserSearchProjected::getAvatarSrc() const +{ + return m_AvatarSrc; +} + + +void ModerationUserSearchProjected::setAvatarSrc(const utility::string_t& value) +{ + m_AvatarSrc = value; + m_AvatarSrcIsSet = true; +} + +bool ModerationUserSearchProjected::avatarSrcIsSet() const +{ + return m_AvatarSrcIsSet; +} + +void ModerationUserSearchProjected::unsetAvatarSrc() +{ + m_AvatarSrcIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ModerationUserSearchResponse.cpp b/client/src/model/ModerationUserSearchResponse.cpp new file mode 100644 index 0000000..b9b8117 --- /dev/null +++ b/client/src/model/ModerationUserSearchResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ModerationUserSearchResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ModerationUserSearchResponse::ModerationUserSearchResponse() +{ + m_UsersIsSet = false; + m_StatusIsSet = false; +} + +ModerationUserSearchResponse::~ModerationUserSearchResponse() +{ +} + +void ModerationUserSearchResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ModerationUserSearchResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_UsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool ModerationUserSearchResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); + setUsers(refVal_setUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void ModerationUserSearchResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_UsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool ModerationUserSearchResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); + setUsers(refVal_setUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector> ModerationUserSearchResponse::getUsers() const +{ + return m_Users; +} + + +void ModerationUserSearchResponse::setUsers(const std::vector>& value) +{ + m_Users = value; + m_UsersIsSet = true; +} + +bool ModerationUserSearchResponse::usersIsSet() const +{ + return m_UsersIsSet; +} + +void ModerationUserSearchResponse::unsetUsers() +{ + m_UsersIsSet = false; +} +std::shared_ptr ModerationUserSearchResponse::getStatus() const +{ + return m_Status; +} + + +void ModerationUserSearchResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ModerationUserSearchResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ModerationUserSearchResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/Moderator.cpp b/client/src/model/Moderator.cpp index 4bdf637..235886d 100644 --- a/client/src/model/Moderator.cpp +++ b/client/src/model/Moderator.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,8 +24,14 @@ Moderator::Moderator() m__idIsSet = false; m_TenantId = utility::conversions::to_string_t(""); m_TenantIdIsSet = false; + m_Name = utility::conversions::to_string_t(""); + m_NameIsSet = false; + m_UserId = utility::conversions::to_string_t(""); + m_UserIdIsSet = false; m_AcceptedInvite = false; m_AcceptedInviteIsSet = false; + m_Email = utility::conversions::to_string_t(""); + m_EmailIsSet = false; m_MarkReviewedCount = 0.0; m_MarkReviewedCountIsSet = false; m_DeletedCount = 0.0; @@ -44,8 +50,11 @@ Moderator::Moderator() m_BannedCountIsSet = false; m_UnFlaggedCount = 0.0; m_UnFlaggedCountIsSet = false; + m_VerificationId = utility::conversions::to_string_t(""); + m_VerificationIdIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; + m_ModerationGroupIdsIsSet = false; m_IsEmailSuppressed = false; m_IsEmailSuppressedIsSet = false; } @@ -63,97 +72,97 @@ web::json::value Moderator::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } - if(m_Name.has_value()) - { + if(m_NameIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name.get()); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_AcceptedInviteIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("acceptedInvite"))] = ModelBase::toJson(m_AcceptedInvite); } - if(m_Email.has_value()) - { + if(m_EmailIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_MarkReviewedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("markReviewedCount"))] = ModelBase::toJson(m_MarkReviewedCount); } if(m_DeletedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("deletedCount"))] = ModelBase::toJson(m_DeletedCount); } if(m_MarkedSpamCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("markedSpamCount"))] = ModelBase::toJson(m_MarkedSpamCount); } if(m_MarkedNotSpamCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("markedNotSpamCount"))] = ModelBase::toJson(m_MarkedNotSpamCount); } if(m_ApprovedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approvedCount"))] = ModelBase::toJson(m_ApprovedCount); } if(m_UnApprovedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("unApprovedCount"))] = ModelBase::toJson(m_UnApprovedCount); } if(m_EditedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("editedCount"))] = ModelBase::toJson(m_EditedCount); } if(m_BannedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bannedCount"))] = ModelBase::toJson(m_BannedCount); } if(m_UnFlaggedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("unFlaggedCount"))] = ModelBase::toJson(m_UnFlaggedCount); } - if(m_VerificationId.has_value()) - { + if(m_VerificationIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("verificationId"))] = ModelBase::toJson(m_VerificationId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("verificationId"))] = ModelBase::toJson(m_VerificationId); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } - if(m_ModerationGroupIds.has_value()) - { + if(m_ModerationGroupIdsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds.get()); + val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } if(m_IsEmailSuppressedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isEmailSuppressed"))] = ModelBase::toJson(m_IsEmailSuppressed); } @@ -391,21 +400,21 @@ void Moderator::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); } - if(m_Name.has_value()) + if(m_NameIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } if(m_AcceptedInviteIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("acceptedInvite")), m_AcceptedInvite)); } - if(m_Email.has_value()) + if(m_EmailIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); } if(m_MarkReviewedCountIsSet) { @@ -443,17 +452,17 @@ void Moderator::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("unFlaggedCount")), m_UnFlaggedCount)); } - if(m_VerificationId.has_value()) + if(m_VerificationIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verificationId")), m_VerificationId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verificationId")), m_VerificationId)); } if(m_CreatedAtIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); } - if(m_ModerationGroupIds.has_value()) + if(m_ModerationGroupIdsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds)); } if(m_IsEmailSuppressedIsSet) { @@ -632,43 +641,45 @@ void Moderator::unsetTenantId() } utility::string_t Moderator::getName() const { - return m_Name.get(); + return m_Name; } void Moderator::setName(const utility::string_t& value) { m_Name = value; + m_NameIsSet = true; } bool Moderator::nameIsSet() const { - return m_Name.has_value(); + return m_NameIsSet; } void Moderator::unsetName() { - m_Name.reset(); + m_NameIsSet = false; } utility::string_t Moderator::getUserId() const { - return m_UserId.get(); + return m_UserId; } void Moderator::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool Moderator::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void Moderator::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } bool Moderator::isAcceptedInvite() const { @@ -692,23 +703,24 @@ void Moderator::unsetAcceptedInvite() } utility::string_t Moderator::getEmail() const { - return m_Email.get(); + return m_Email; } void Moderator::setEmail(const utility::string_t& value) { m_Email = value; + m_EmailIsSet = true; } bool Moderator::emailIsSet() const { - return m_Email.has_value(); + return m_EmailIsSet; } void Moderator::unsetEmail() { - m_Email.reset(); + m_EmailIsSet = false; } double Moderator::getMarkReviewedCount() const { @@ -892,23 +904,24 @@ void Moderator::unsetUnFlaggedCount() } utility::string_t Moderator::getVerificationId() const { - return m_VerificationId.get(); + return m_VerificationId; } void Moderator::setVerificationId(const utility::string_t& value) { m_VerificationId = value; + m_VerificationIdIsSet = true; } bool Moderator::verificationIdIsSet() const { - return m_VerificationId.has_value(); + return m_VerificationIdIsSet; } void Moderator::unsetVerificationId() { - m_VerificationId.reset(); + m_VerificationIdIsSet = false; } utility::datetime Moderator::getCreatedAt() const { @@ -933,23 +946,24 @@ void Moderator::unsetCreatedAt() } std::vector Moderator::getModerationGroupIds() const { - return m_ModerationGroupIds.get(); + return m_ModerationGroupIds; } void Moderator::setModerationGroupIds(const std::vector& value) { m_ModerationGroupIds = value; + m_ModerationGroupIdsIsSet = true; } bool Moderator::moderationGroupIdsIsSet() const { - return m_ModerationGroupIds.has_value(); + return m_ModerationGroupIdsIsSet; } void Moderator::unsetModerationGroupIds() { - m_ModerationGroupIds.reset(); + m_ModerationGroupIdsIsSet = false; } bool Moderator::isIsEmailSuppressed() const { diff --git a/client/src/model/NotificationAndCount.cpp b/client/src/model/NotificationAndCount.cpp index 0ae001a..c6a2215 100644 --- a/client/src/model/NotificationAndCount.cpp +++ b/client/src/model/NotificationAndCount.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value NotificationAndCount::toJson() const { web::json::value val = web::json::value::object(); if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } diff --git a/client/src/model/NotificationObjectType.cpp b/client/src/model/NotificationObjectType.cpp index 324f401..5903659 100644 --- a/client/src/model/NotificationObjectType.cpp +++ b/client/src/model/NotificationObjectType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/NotificationType.cpp b/client/src/model/NotificationType.cpp index 2eeb28c..04c1031 100644 --- a/client/src/model/NotificationType.cpp +++ b/client/src/model/NotificationType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PageUserEntry.cpp b/client/src/model/PageUserEntry.cpp new file mode 100644 index 0000000..860d060 --- /dev/null +++ b/client/src/model/PageUserEntry.cpp @@ -0,0 +1,270 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PageUserEntry.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PageUserEntry::PageUserEntry() +{ + m_IsPrivate = false; + m_IsPrivateIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; + m_DisplayName = utility::conversions::to_string_t(""); + m_DisplayNameIsSet = false; + m_Id = utility::conversions::to_string_t(""); + m_IdIsSet = false; +} + +PageUserEntry::~PageUserEntry() +{ +} + +void PageUserEntry::validate() +{ + // TODO: implement validation +} + +web::json::value PageUserEntry::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_IsPrivateIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isPrivate"))] = ModelBase::toJson(m_IsPrivate); + } + if(m_AvatarSrcIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + } + if(m_DisplayNameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); + } + if(m_IdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); + } + + return val; +} + +bool PageUserEntry::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isPrivate")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isPrivate"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsPrivate; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsPrivate); + setIsPrivate(refVal_setIsPrivate); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("avatarSrc")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setAvatarSrc; + ok &= ModelBase::fromJson(fieldValue, refVal_setAvatarSrc); + setAvatarSrc(refVal_setAvatarSrc); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("displayName")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("displayName"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setDisplayName; + ok &= ModelBase::fromJson(fieldValue, refVal_setDisplayName); + setDisplayName(refVal_setDisplayName); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromJson(fieldValue, refVal_setId); + setId(refVal_setId); + + } + } + return ok; +} + +void PageUserEntry::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_IsPrivateIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPrivate")), m_IsPrivate)); + } + if(m_AvatarSrcIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + } + if(m_DisplayNameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayName")), m_DisplayName)); + } + if(m_IdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); + } +} + +bool PageUserEntry::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isPrivate")))) + { + bool refVal_setIsPrivate; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isPrivate"))), refVal_setIsPrivate ); + setIsPrivate(refVal_setIsPrivate); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("avatarSrc")))) + { + utility::string_t refVal_setAvatarSrc; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))), refVal_setAvatarSrc ); + setAvatarSrc(refVal_setAvatarSrc); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("displayName")))) + { + utility::string_t refVal_setDisplayName; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("displayName"))), refVal_setDisplayName ); + setDisplayName(refVal_setDisplayName); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId ); + setId(refVal_setId); + } + return ok; +} + + +bool PageUserEntry::isIsPrivate() const +{ + return m_IsPrivate; +} + +void PageUserEntry::setIsPrivate(bool value) +{ + m_IsPrivate = value; + m_IsPrivateIsSet = true; +} + +bool PageUserEntry::isPrivateIsSet() const +{ + return m_IsPrivateIsSet; +} + +void PageUserEntry::unsetIsPrivate() +{ + m_IsPrivateIsSet = false; +} +utility::string_t PageUserEntry::getAvatarSrc() const +{ + return m_AvatarSrc; +} + + +void PageUserEntry::setAvatarSrc(const utility::string_t& value) +{ + m_AvatarSrc = value; + m_AvatarSrcIsSet = true; +} + +bool PageUserEntry::avatarSrcIsSet() const +{ + return m_AvatarSrcIsSet; +} + +void PageUserEntry::unsetAvatarSrc() +{ + m_AvatarSrcIsSet = false; +} +utility::string_t PageUserEntry::getDisplayName() const +{ + return m_DisplayName; +} + + +void PageUserEntry::setDisplayName(const utility::string_t& value) +{ + m_DisplayName = value; + m_DisplayNameIsSet = true; +} + +bool PageUserEntry::displayNameIsSet() const +{ + return m_DisplayNameIsSet; +} + +void PageUserEntry::unsetDisplayName() +{ + m_DisplayNameIsSet = false; +} +utility::string_t PageUserEntry::getId() const +{ + return m_Id; +} + + +void PageUserEntry::setId(const utility::string_t& value) +{ + m_Id = value; + m_IdIsSet = true; +} + +bool PageUserEntry::idIsSet() const +{ + return m_IdIsSet; +} + +void PageUserEntry::unsetId() +{ + m_IdIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PageUsersInfoResponse.cpp b/client/src/model/PageUsersInfoResponse.cpp new file mode 100644 index 0000000..8ad6876 --- /dev/null +++ b/client/src/model/PageUsersInfoResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PageUsersInfoResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PageUsersInfoResponse::PageUsersInfoResponse() +{ + m_UsersIsSet = false; + m_StatusIsSet = false; +} + +PageUsersInfoResponse::~PageUsersInfoResponse() +{ +} + +void PageUsersInfoResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PageUsersInfoResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_UsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool PageUsersInfoResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); + setUsers(refVal_setUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void PageUsersInfoResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_UsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool PageUsersInfoResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); + setUsers(refVal_setUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector> PageUsersInfoResponse::getUsers() const +{ + return m_Users; +} + + +void PageUsersInfoResponse::setUsers(const std::vector>& value) +{ + m_Users = value; + m_UsersIsSet = true; +} + +bool PageUsersInfoResponse::usersIsSet() const +{ + return m_UsersIsSet; +} + +void PageUsersInfoResponse::unsetUsers() +{ + m_UsersIsSet = false; +} +std::shared_ptr PageUsersInfoResponse::getStatus() const +{ + return m_Status; +} + + +void PageUsersInfoResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PageUsersInfoResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PageUsersInfoResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PageUsersOfflineResponse.cpp b/client/src/model/PageUsersOfflineResponse.cpp new file mode 100644 index 0000000..aa4c71c --- /dev/null +++ b/client/src/model/PageUsersOfflineResponse.cpp @@ -0,0 +1,269 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PageUsersOfflineResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PageUsersOfflineResponse::PageUsersOfflineResponse() +{ + m_NextAfterUserId = utility::conversions::to_string_t(""); + m_NextAfterUserIdIsSet = false; + m_NextAfterName = utility::conversions::to_string_t(""); + m_NextAfterNameIsSet = false; + m_UsersIsSet = false; + m_StatusIsSet = false; +} + +PageUsersOfflineResponse::~PageUsersOfflineResponse() +{ +} + +void PageUsersOfflineResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PageUsersOfflineResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_NextAfterUserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))] = ModelBase::toJson(m_NextAfterUserId); + } + if(m_NextAfterNameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))] = ModelBase::toJson(m_NextAfterName); + } + if(m_UsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool PageUsersOfflineResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNextAfterUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setNextAfterUserId); + setNextAfterUserId(refVal_setNextAfterUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextAfterName")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNextAfterName; + ok &= ModelBase::fromJson(fieldValue, refVal_setNextAfterName); + setNextAfterName(refVal_setNextAfterName); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); + setUsers(refVal_setUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void PageUsersOfflineResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_NextAfterUserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")), m_NextAfterUserId)); + } + if(m_NextAfterNameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterName")), m_NextAfterName)); + } + if(m_UsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool PageUsersOfflineResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")))) + { + utility::string_t refVal_setNextAfterUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))), refVal_setNextAfterUserId ); + setNextAfterUserId(refVal_setNextAfterUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterName")))) + { + utility::string_t refVal_setNextAfterName; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))), refVal_setNextAfterName ); + setNextAfterName(refVal_setNextAfterName); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); + setUsers(refVal_setUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +utility::string_t PageUsersOfflineResponse::getNextAfterUserId() const +{ + return m_NextAfterUserId; +} + + +void PageUsersOfflineResponse::setNextAfterUserId(const utility::string_t& value) +{ + m_NextAfterUserId = value; + m_NextAfterUserIdIsSet = true; +} + +bool PageUsersOfflineResponse::nextAfterUserIdIsSet() const +{ + return m_NextAfterUserIdIsSet; +} + +void PageUsersOfflineResponse::unsetNextAfterUserId() +{ + m_NextAfterUserIdIsSet = false; +} +utility::string_t PageUsersOfflineResponse::getNextAfterName() const +{ + return m_NextAfterName; +} + + +void PageUsersOfflineResponse::setNextAfterName(const utility::string_t& value) +{ + m_NextAfterName = value; + m_NextAfterNameIsSet = true; +} + +bool PageUsersOfflineResponse::nextAfterNameIsSet() const +{ + return m_NextAfterNameIsSet; +} + +void PageUsersOfflineResponse::unsetNextAfterName() +{ + m_NextAfterNameIsSet = false; +} +std::vector> PageUsersOfflineResponse::getUsers() const +{ + return m_Users; +} + + +void PageUsersOfflineResponse::setUsers(const std::vector>& value) +{ + m_Users = value; + m_UsersIsSet = true; +} + +bool PageUsersOfflineResponse::usersIsSet() const +{ + return m_UsersIsSet; +} + +void PageUsersOfflineResponse::unsetUsers() +{ + m_UsersIsSet = false; +} +std::shared_ptr PageUsersOfflineResponse::getStatus() const +{ + return m_Status; +} + + +void PageUsersOfflineResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PageUsersOfflineResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PageUsersOfflineResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PageUsersOnlineResponse.cpp b/client/src/model/PageUsersOnlineResponse.cpp new file mode 100644 index 0000000..1cda718 --- /dev/null +++ b/client/src/model/PageUsersOnlineResponse.cpp @@ -0,0 +1,365 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PageUsersOnlineResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PageUsersOnlineResponse::PageUsersOnlineResponse() +{ + m_NextAfterUserId = utility::conversions::to_string_t(""); + m_NextAfterUserIdIsSet = false; + m_NextAfterName = utility::conversions::to_string_t(""); + m_NextAfterNameIsSet = false; + m_TotalCount = 0.0; + m_TotalCountIsSet = false; + m_AnonCount = 0.0; + m_AnonCountIsSet = false; + m_UsersIsSet = false; + m_StatusIsSet = false; +} + +PageUsersOnlineResponse::~PageUsersOnlineResponse() +{ +} + +void PageUsersOnlineResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PageUsersOnlineResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_NextAfterUserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))] = ModelBase::toJson(m_NextAfterUserId); + } + if(m_NextAfterNameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))] = ModelBase::toJson(m_NextAfterName); + } + if(m_TotalCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("totalCount"))] = ModelBase::toJson(m_TotalCount); + } + if(m_AnonCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("anonCount"))] = ModelBase::toJson(m_AnonCount); + } + if(m_UsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool PageUsersOnlineResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNextAfterUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setNextAfterUserId); + setNextAfterUserId(refVal_setNextAfterUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextAfterName")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNextAfterName; + ok &= ModelBase::fromJson(fieldValue, refVal_setNextAfterName); + setNextAfterName(refVal_setNextAfterName); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("totalCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("totalCount"))); + if(!fieldValue.is_null()) + { + double refVal_setTotalCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setTotalCount); + setTotalCount(refVal_setTotalCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("anonCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("anonCount"))); + if(!fieldValue.is_null()) + { + double refVal_setAnonCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setAnonCount); + setAnonCount(refVal_setAnonCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); + setUsers(refVal_setUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void PageUsersOnlineResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_NextAfterUserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")), m_NextAfterUserId)); + } + if(m_NextAfterNameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterName")), m_NextAfterName)); + } + if(m_TotalCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("totalCount")), m_TotalCount)); + } + if(m_AnonCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonCount")), m_AnonCount)); + } + if(m_UsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool PageUsersOnlineResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")))) + { + utility::string_t refVal_setNextAfterUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))), refVal_setNextAfterUserId ); + setNextAfterUserId(refVal_setNextAfterUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterName")))) + { + utility::string_t refVal_setNextAfterName; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))), refVal_setNextAfterName ); + setNextAfterName(refVal_setNextAfterName); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("totalCount")))) + { + double refVal_setTotalCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("totalCount"))), refVal_setTotalCount ); + setTotalCount(refVal_setTotalCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("anonCount")))) + { + double refVal_setAnonCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("anonCount"))), refVal_setAnonCount ); + setAnonCount(refVal_setAnonCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); + setUsers(refVal_setUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +utility::string_t PageUsersOnlineResponse::getNextAfterUserId() const +{ + return m_NextAfterUserId; +} + + +void PageUsersOnlineResponse::setNextAfterUserId(const utility::string_t& value) +{ + m_NextAfterUserId = value; + m_NextAfterUserIdIsSet = true; +} + +bool PageUsersOnlineResponse::nextAfterUserIdIsSet() const +{ + return m_NextAfterUserIdIsSet; +} + +void PageUsersOnlineResponse::unsetNextAfterUserId() +{ + m_NextAfterUserIdIsSet = false; +} +utility::string_t PageUsersOnlineResponse::getNextAfterName() const +{ + return m_NextAfterName; +} + + +void PageUsersOnlineResponse::setNextAfterName(const utility::string_t& value) +{ + m_NextAfterName = value; + m_NextAfterNameIsSet = true; +} + +bool PageUsersOnlineResponse::nextAfterNameIsSet() const +{ + return m_NextAfterNameIsSet; +} + +void PageUsersOnlineResponse::unsetNextAfterName() +{ + m_NextAfterNameIsSet = false; +} +double PageUsersOnlineResponse::getTotalCount() const +{ + return m_TotalCount; +} + +void PageUsersOnlineResponse::setTotalCount(double value) +{ + m_TotalCount = value; + m_TotalCountIsSet = true; +} + +bool PageUsersOnlineResponse::totalCountIsSet() const +{ + return m_TotalCountIsSet; +} + +void PageUsersOnlineResponse::unsetTotalCount() +{ + m_TotalCountIsSet = false; +} +double PageUsersOnlineResponse::getAnonCount() const +{ + return m_AnonCount; +} + +void PageUsersOnlineResponse::setAnonCount(double value) +{ + m_AnonCount = value; + m_AnonCountIsSet = true; +} + +bool PageUsersOnlineResponse::anonCountIsSet() const +{ + return m_AnonCountIsSet; +} + +void PageUsersOnlineResponse::unsetAnonCount() +{ + m_AnonCountIsSet = false; +} +std::vector> PageUsersOnlineResponse::getUsers() const +{ + return m_Users; +} + + +void PageUsersOnlineResponse::setUsers(const std::vector>& value) +{ + m_Users = value; + m_UsersIsSet = true; +} + +bool PageUsersOnlineResponse::usersIsSet() const +{ + return m_UsersIsSet; +} + +void PageUsersOnlineResponse::unsetUsers() +{ + m_UsersIsSet = false; +} +std::shared_ptr PageUsersOnlineResponse::getStatus() const +{ + return m_Status; +} + + +void PageUsersOnlineResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PageUsersOnlineResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PageUsersOnlineResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PagesSortBy.cpp b/client/src/model/PagesSortBy.cpp new file mode 100644 index 0000000..6efcffe --- /dev/null +++ b/client/src/model/PagesSortBy.cpp @@ -0,0 +1,129 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PagesSortBy.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +namespace +{ +using EnumUnderlyingType = utility::string_t; + +PagesSortBy::ePagesSortBy toEnum(const EnumUnderlyingType& val) +{ + if (val == utility::conversions::to_string_t(_XPLATSTR("updatedAt"))) + return PagesSortBy::ePagesSortBy::UPDATEDAT; + if (val == utility::conversions::to_string_t(_XPLATSTR("commentCount"))) + return PagesSortBy::ePagesSortBy::COMMENTCOUNT; + if (val == utility::conversions::to_string_t(_XPLATSTR("title"))) + return PagesSortBy::ePagesSortBy::TITLE; + return {}; +} + +EnumUnderlyingType fromEnum(PagesSortBy::ePagesSortBy e) +{ + switch (e) + { + case PagesSortBy::ePagesSortBy::UPDATEDAT: + return _XPLATSTR("updatedAt"); + case PagesSortBy::ePagesSortBy::COMMENTCOUNT: + return _XPLATSTR("commentCount"); + case PagesSortBy::ePagesSortBy::TITLE: + return _XPLATSTR("title"); + default: + break; + } + return {}; +} +} + +PagesSortBy::PagesSortBy() +{ +} + +PagesSortBy::~PagesSortBy() +{ +} + +void PagesSortBy::validate() +{ + // TODO: implement validation +} + +web::json::value PagesSortBy::toJson() const +{ + auto val = fromEnum(m_value); + return web::json::value(val); +} + +bool PagesSortBy::fromJson(const web::json::value& val) +{ + m_value = toEnum(val.as_string()); + return true; +} + +void PagesSortBy::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) + { + namePrefix.push_back(_XPLATSTR('.')); + } + + auto e = fromEnum(m_value); + multipart->add(ModelBase::toHttpContent(namePrefix, e)); +} + +bool PagesSortBy::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) + { + namePrefix.push_back(_XPLATSTR('.')); + } + { + EnumUnderlyingType e; + ok = ModelBase::fromHttpContent(multipart->getContent(namePrefix), e); + if (ok) + { + auto v = toEnum(e); + setValue(v); + } + } + return ok; +} + +PagesSortBy::ePagesSortBy PagesSortBy::getValue() const +{ + return m_value; +} + +void PagesSortBy::setValue(PagesSortBy::ePagesSortBy const value) +{ + m_value = value; +} + +PagesSortBy::PagesSortBy(utility::string_t str){ + setValue( strToEnumMap[str] ); +} + +} +} +} +} + + diff --git a/client/src/model/PatchDomainConfigParams.cpp b/client/src/model/PatchDomainConfigParams.cpp index bfb0148..96cae56 100644 --- a/client/src/model/PatchDomainConfigParams.cpp +++ b/client/src/model/PatchDomainConfigParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -48,37 +48,37 @@ web::json::value PatchDomainConfigParams::toJson() const { web::json::value val = web::json::value::object(); if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_EmailFromNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailFromName"))] = ModelBase::toJson(m_EmailFromName); } if(m_EmailFromEmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailFromEmail"))] = ModelBase::toJson(m_EmailFromEmail); } if(m_LogoSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("logoSrc"))] = ModelBase::toJson(m_LogoSrc); } if(m_LogoSrc100pxIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px); } if(m_FooterUnsubscribeURLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("footerUnsubscribeURL"))] = ModelBase::toJson(m_FooterUnsubscribeURL); } if(m_EmailHeadersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailHeaders"))] = ModelBase::toJson(m_EmailHeaders); } diff --git a/client/src/model/PatchDomainConfigResponse.cpp b/client/src/model/PatchDomainConfigResponse.cpp new file mode 100644 index 0000000..7bc4c0c --- /dev/null +++ b/client/src/model/PatchDomainConfigResponse.cpp @@ -0,0 +1,269 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PatchDomainConfigResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PatchDomainConfigResponse::PatchDomainConfigResponse() +{ + m_ConfigurationIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; +} + +PatchDomainConfigResponse::~PatchDomainConfigResponse() +{ +} + +void PatchDomainConfigResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PatchDomainConfigResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ConfigurationIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + + return val; +} + +bool PatchDomainConfigResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("configuration")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("configuration"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setConfiguration; + ok &= ModelBase::fromJson(fieldValue, refVal_setConfiguration); + setConfiguration(refVal_setConfiguration); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + return ok; +} + +void PatchDomainConfigResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ConfigurationIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } +} + +bool PatchDomainConfigResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("configuration")))) + { + std::shared_ptr refVal_setConfiguration; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("configuration"))), refVal_setConfiguration ); + setConfiguration(refVal_setConfiguration); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + return ok; +} + + +std::shared_ptr PatchDomainConfigResponse::getConfiguration() const +{ + return m_Configuration; +} + + +void PatchDomainConfigResponse::setConfiguration(const std::shared_ptr& value) +{ + m_Configuration = value; + m_ConfigurationIsSet = true; +} + +bool PatchDomainConfigResponse::configurationIsSet() const +{ + return m_ConfigurationIsSet; +} + +void PatchDomainConfigResponse::unsetConfiguration() +{ + m_ConfigurationIsSet = false; +} +std::shared_ptr PatchDomainConfigResponse::getStatus() const +{ + return m_Status; +} + + +void PatchDomainConfigResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PatchDomainConfigResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PatchDomainConfigResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PatchDomainConfigResponse::getReason() const +{ + return m_Reason; +} + + +void PatchDomainConfigResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PatchDomainConfigResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PatchDomainConfigResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PatchDomainConfigResponse::getCode() const +{ + return m_Code; +} + + +void PatchDomainConfigResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PatchDomainConfigResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PatchDomainConfigResponse::unsetCode() +{ + m_CodeIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PatchPageAPIResponse.cpp b/client/src/model/PatchPageAPIResponse.cpp index 3e86fa4..04f09c3 100644 --- a/client/src/model/PatchPageAPIResponse.cpp +++ b/client/src/model/PatchPageAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -44,27 +44,27 @@ web::json::value PatchPageAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_CommentsUpdatedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentsUpdated"))] = ModelBase::toJson(m_CommentsUpdated); } if(m_PageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("page"))] = ModelBase::toJson(m_Page); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/PatchSSOUserAPIResponse.cpp b/client/src/model/PatchSSOUserAPIResponse.cpp index d5925ac..50ceb7f 100644 --- a/client/src/model/PatchSSOUserAPIResponse.cpp +++ b/client/src/model/PatchSSOUserAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value PatchSSOUserAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/PendingCommentToSyncOutbound.cpp b/client/src/model/PendingCommentToSyncOutbound.cpp index 03d5e61..afe8fc0 100644 --- a/client/src/model/PendingCommentToSyncOutbound.cpp +++ b/client/src/model/PendingCommentToSyncOutbound.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -25,6 +25,8 @@ PendingCommentToSyncOutbound::PendingCommentToSyncOutbound() m_CommentId = utility::conversions::to_string_t(""); m_CommentIdIsSet = false; m_CommentIsSet = false; + m_ExternalId = utility::conversions::to_string_t(""); + m_ExternalIdIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; m_TenantId = utility::conversions::to_string_t(""); @@ -57,67 +59,67 @@ web::json::value PendingCommentToSyncOutbound::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_CommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_ExternalId.has_value()) - { + if(m_ExternalIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("externalId"))] = ModelBase::toJson(m_ExternalId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("externalId"))] = ModelBase::toJson(m_ExternalId); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_AttemptCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("attemptCount"))] = ModelBase::toJson(m_AttemptCount); } if(m_NextAttemptAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("nextAttemptAt"))] = ModelBase::toJson(m_NextAttemptAt); } if(m_EventTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("eventType"))] = ModelBase::toJson(m_EventType); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_LastErrorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastError"))] = ModelBase::toJson(m_LastError); } if(m_WebhookIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("webhookId"))] = ModelBase::toJson(m_WebhookId); } @@ -293,9 +295,9 @@ void PendingCommentToSyncOutbound::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_ExternalId.has_value()) + if(m_ExternalIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalId")), m_ExternalId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalId")), m_ExternalId)); } if(m_CreatedAtIsSet) { @@ -491,23 +493,24 @@ void PendingCommentToSyncOutbound::unsetComment() } utility::string_t PendingCommentToSyncOutbound::getExternalId() const { - return m_ExternalId.get(); + return m_ExternalId; } void PendingCommentToSyncOutbound::setExternalId(const utility::string_t& value) { m_ExternalId = value; + m_ExternalIdIsSet = true; } bool PendingCommentToSyncOutbound::externalIdIsSet() const { - return m_ExternalId.has_value(); + return m_ExternalIdIsSet; } void PendingCommentToSyncOutbound::unsetExternalId() { - m_ExternalId.reset(); + m_ExternalIdIsSet = false; } utility::datetime PendingCommentToSyncOutbound::getCreatedAt() const { diff --git a/client/src/model/PinComment_200_response.cpp b/client/src/model/PinComment_200_response.cpp deleted file mode 100644 index 7f9b285..0000000 --- a/client/src/model/PinComment_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PinComment_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PinComment_200_response::PinComment_200_response() -{ - m_CommentPositionsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PinComment_200_response::~PinComment_200_response() -{ -} - -void PinComment_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value PinComment_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CommentPositionsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentPositions"))] = ModelBase::toJson(m_CommentPositions); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PinComment_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentPositions")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentPositions"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setCommentPositions; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentPositions); - setCommentPositions(refVal_setCommentPositions); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PinComment_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CommentPositionsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentPositions")), m_CommentPositions)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PinComment_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentPositions")))) - { - std::map> refVal_setCommentPositions; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentPositions"))), refVal_setCommentPositions ); - setCommentPositions(refVal_setCommentPositions); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::map> PinComment_200_response::getCommentPositions() const -{ - return m_CommentPositions; -} - - -void PinComment_200_response::setCommentPositions(const std::map>& value) -{ - m_CommentPositions = value; - m_CommentPositionsIsSet = true; -} - -bool PinComment_200_response::commentPositionsIsSet() const -{ - return m_CommentPositionsIsSet; -} - -void PinComment_200_response::unsetCommentPositions() -{ - m_CommentPositionsIsSet = false; -} -std::shared_ptr PinComment_200_response::getStatus() const -{ - return m_Status; -} - - -void PinComment_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PinComment_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PinComment_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PinComment_200_response::getReason() const -{ - return m_Reason; -} - - -void PinComment_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PinComment_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PinComment_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PinComment_200_response::getCode() const -{ - return m_Code; -} - - -void PinComment_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PinComment_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PinComment_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PinComment_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PinComment_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PinComment_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PinComment_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PinComment_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PinComment_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PinComment_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PinComment_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PinComment_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PinComment_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PinComment_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PinComment_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PinComment_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PinComment_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PinComment_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PinComment_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PinComment_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PinComment_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PinComment_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PinComment_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostRemoveCommentResponse.cpp b/client/src/model/PostRemoveCommentResponse.cpp new file mode 100644 index 0000000..7e5dddf --- /dev/null +++ b/client/src/model/PostRemoveCommentResponse.cpp @@ -0,0 +1,173 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostRemoveCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostRemoveCommentResponse::PostRemoveCommentResponse() +{ + m_Action = utility::conversions::to_string_t(""); + m_ActionIsSet = false; + m_Status = utility::conversions::to_string_t(""); + m_StatusIsSet = false; +} + +PostRemoveCommentResponse::~PostRemoveCommentResponse() +{ +} + +void PostRemoveCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostRemoveCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ActionIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("action"))] = ModelBase::toJson(m_Action); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool PostRemoveCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("action")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("action"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setAction; + ok &= ModelBase::fromJson(fieldValue, refVal_setAction); + setAction(refVal_setAction); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void PostRemoveCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ActionIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("action")), m_Action)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool PostRemoveCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("action")))) + { + utility::string_t refVal_setAction; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("action"))), refVal_setAction ); + setAction(refVal_setAction); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +utility::string_t PostRemoveCommentResponse::getAction() const +{ + return m_Action; +} + + +void PostRemoveCommentResponse::setAction(const utility::string_t& value) +{ + m_Action = value; + m_ActionIsSet = true; +} + +bool PostRemoveCommentResponse::actionIsSet() const +{ + return m_ActionIsSet; +} + +void PostRemoveCommentResponse::unsetAction() +{ + m_ActionIsSet = false; +} +utility::string_t PostRemoveCommentResponse::getStatus() const +{ + return m_Status; +} + + +void PostRemoveCommentResponse::setStatus(const utility::string_t& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostRemoveCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostRemoveCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PreBanSummary.cpp b/client/src/model/PreBanSummary.cpp new file mode 100644 index 0000000..baa21bf --- /dev/null +++ b/client/src/model/PreBanSummary.cpp @@ -0,0 +1,219 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PreBanSummary.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PreBanSummary::PreBanSummary() +{ + m_StatusIsSet = false; + m_UsernamesIsSet = false; + m_Count = 0.0; + m_CountIsSet = false; +} + +PreBanSummary::~PreBanSummary() +{ +} + +void PreBanSummary::validate() +{ + // TODO: implement validation +} + +web::json::value PreBanSummary::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_UsernamesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("usernames"))] = ModelBase::toJson(m_Usernames); + } + if(m_CountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); + } + + return val; +} + +bool PreBanSummary::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("usernames")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("usernames"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setUsernames; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsernames); + setUsernames(refVal_setUsernames); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); + if(!fieldValue.is_null()) + { + double refVal_setCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCount); + setCount(refVal_setCount); + + } + } + return ok; +} + +void PreBanSummary::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_UsernamesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("usernames")), m_Usernames)); + } + if(m_CountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); + } +} + +bool PreBanSummary::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("usernames")))) + { + std::vector refVal_setUsernames; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("usernames"))), refVal_setUsernames ); + setUsernames(refVal_setUsernames); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + double refVal_setCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); + setCount(refVal_setCount); + } + return ok; +} + + +std::shared_ptr PreBanSummary::getStatus() const +{ + return m_Status; +} + + +void PreBanSummary::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PreBanSummary::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PreBanSummary::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector PreBanSummary::getUsernames() const +{ + return m_Usernames; +} + + +void PreBanSummary::setUsernames(const std::vector& value) +{ + m_Usernames = value; + m_UsernamesIsSet = true; +} + +bool PreBanSummary::usernamesIsSet() const +{ + return m_UsernamesIsSet; +} + +void PreBanSummary::unsetUsernames() +{ + m_UsernamesIsSet = false; +} +double PreBanSummary::getCount() const +{ + return m_Count; +} + +void PreBanSummary::setCount(double value) +{ + m_Count = value; + m_CountIsSet = true; +} + +bool PreBanSummary::countIsSet() const +{ + return m_CountIsSet; +} + +void PreBanSummary::unsetCount() +{ + m_CountIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PubSubComment.cpp b/client/src/model/PubSubComment.cpp index e50b465..d01aee7 100644 --- a/client/src/model/PubSubComment.cpp +++ b/client/src/model/PubSubComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,16 +24,30 @@ PubSubComment::PubSubComment() m__idIsSet = false; m_TenantId = utility::conversions::to_string_t(""); m_TenantIdIsSet = false; + m_UserId = nullptr; + m_UserIdIsSet = false; m_UrlId = utility::conversions::to_string_t(""); m_UrlIdIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; + m_CommenterLink = utility::conversions::to_string_t(""); + m_CommenterLinkIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; + m_ParentId = utility::conversions::to_string_t(""); + m_ParentIdIsSet = false; + m_Votes = 0; + m_VotesIsSet = false; + m_VotesUp = 0; + m_VotesUpIsSet = false; + m_VotesDown = 0; + m_VotesDownIsSet = false; m_Verified = false; m_VerifiedIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; m_HasImages = false; m_HasImagesIsSet = false; m_HasLinks = false; @@ -42,23 +56,47 @@ PubSubComment::PubSubComment() m_IsByAdminIsSet = false; m_IsByModerator = false; m_IsByModeratorIsSet = false; + m_IsPinned = false; + m_IsPinnedIsSet = false; + m_IsLocked = false; + m_IsLockedIsSet = false; + m_DisplayLabel = utility::conversions::to_string_t(""); + m_DisplayLabelIsSet = false; + m_Rating = 0.0; + m_RatingIsSet = false; + m_BadgesIsSet = false; + m_ViewCount = 0L; + m_ViewCountIsSet = false; m_IsDeleted = false; m_IsDeletedIsSet = false; m_IsDeletedUser = false; m_IsDeletedUserIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; + m_AnonUserId = utility::conversions::to_string_t(""); + m_AnonUserIdIsSet = false; m_FeedbackIdsIsSet = false; + m_FlagCount = 0; + m_FlagCountIsSet = false; + m_Domain = nullptr; + m_DomainIsSet = false; m_Url = utility::conversions::to_string_t(""); m_UrlIsSet = false; + m_PageTitle = utility::conversions::to_string_t(""); + m_PageTitleIsSet = false; + m_ExpireAt = utility::datetime(); + m_ExpireAtIsSet = false; m_Reviewed = false; m_ReviewedIsSet = false; m_HasCode = false; m_HasCodeIsSet = false; m_Approved = false; m_ApprovedIsSet = false; + m_Locale = utility::conversions::to_string_t(""); + m_LocaleIsSet = false; m_IsBannedUser = false; m_IsBannedUserIsSet = false; + m_GroupIdsIsSet = false; m_IsLive = false; m_IsLiveIsSet = false; m_Hidden = false; @@ -80,217 +118,217 @@ web::json::value PubSubComment::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterLink.has_value()) - { + if(m_CommenterLinkIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_ParentId.has_value()) - { + if(m_ParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); } - if(m_Votes.has_value()) - { + if(m_VotesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); } - if(m_VotesUp.has_value()) - { + if(m_VotesUpIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); } - if(m_VotesDown.has_value()) - { + if(m_VotesDownIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_AvatarSrc.has_value()) - { + if(m_AvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } if(m_HasLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLinks"))] = ModelBase::toJson(m_HasLinks); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } - if(m_IsPinned.has_value()) - { + if(m_IsPinnedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); } - if(m_IsLocked.has_value()) - { + if(m_IsLockedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); } - if(m_DisplayLabel.has_value()) - { + if(m_DisplayLabelIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } - if(m_Rating.has_value()) - { + if(m_RatingIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); } - if(m_Badges.has_value()) - { + if(m_BadgesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } - if(m_ViewCount.has_value()) - { + if(m_ViewCountIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount.get()); + val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } - if(m_AnonUserId.has_value()) - { + if(m_AnonUserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } - if(m_FlagCount.has_value()) - { + if(m_FlagCountIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); } - if(m_Domain.has_value()) - { + if(m_DomainIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain.get()); + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } - if(m_PageTitle.has_value()) - { + if(m_PageTitleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } - if(m_ExpireAt.has_value()) - { + if(m_ExpireAtIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt.get()); + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_HasCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasCode"))] = ModelBase::toJson(m_HasCode); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } - if(m_Locale.has_value()) - { + if(m_LocaleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale.get()); + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_IsBannedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))] = ModelBase::toJson(m_IsBannedUser); } - if(m_GroupIds.has_value()) - { + if(m_GroupIdsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds.get()); + val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); } if(m_IsLiveIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isLive"))] = ModelBase::toJson(m_IsLive); } if(m_HiddenIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hidden"))] = ModelBase::toJson(m_Hidden); } if(m_dateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); } @@ -792,9 +830,9 @@ void PubSubComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } if(m_UrlIdIsSet) { @@ -804,9 +842,9 @@ void PubSubComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterLink.has_value()) + if(m_CommenterLinkIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); } if(m_CommentHTMLIsSet) { @@ -816,29 +854,29 @@ void PubSubComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_ParentId.has_value()) + if(m_ParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); } - if(m_Votes.has_value()) + if(m_VotesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); } - if(m_VotesUp.has_value()) + if(m_VotesUpIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); } - if(m_VotesDown.has_value()) + if(m_VotesDownIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_AvatarSrc.has_value()) + if(m_AvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); } if(m_HasImagesIsSet) { @@ -856,29 +894,29 @@ void PubSubComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); } - if(m_IsPinned.has_value()) + if(m_IsPinnedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); } - if(m_IsLocked.has_value()) + if(m_IsLockedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); } - if(m_DisplayLabel.has_value()) + if(m_DisplayLabelIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); } - if(m_Rating.has_value()) + if(m_RatingIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); } - if(m_Badges.has_value()) + if(m_BadgesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); } - if(m_ViewCount.has_value()) + if(m_ViewCountIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount)); } if(m_IsDeletedIsSet) { @@ -892,33 +930,33 @@ void PubSubComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); } - if(m_AnonUserId.has_value()) + if(m_AnonUserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); } if(m_FeedbackIdsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedbackIds")), m_FeedbackIds)); } - if(m_FlagCount.has_value()) + if(m_FlagCountIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); } - if(m_Domain.has_value()) + if(m_DomainIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); } if(m_UrlIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } - if(m_PageTitle.has_value()) + if(m_PageTitleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); } - if(m_ExpireAt.has_value()) + if(m_ExpireAtIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); } if(m_ReviewedIsSet) { @@ -932,17 +970,17 @@ void PubSubComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); } - if(m_Locale.has_value()) + if(m_LocaleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); } if(m_IsBannedUserIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isBannedUser")), m_IsBannedUser)); } - if(m_GroupIds.has_value()) + if(m_GroupIdsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("groupIds")), m_GroupIds.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("groupIds")), m_GroupIds)); } if(m_IsLiveIsSet) { @@ -1273,23 +1311,24 @@ void PubSubComment::unsetTenantId() } utility::string_t PubSubComment::getUserId() const { - return m_UserId.get(); + return m_UserId; } void PubSubComment::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool PubSubComment::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void PubSubComment::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } utility::string_t PubSubComment::getUrlId() const { @@ -1335,23 +1374,24 @@ void PubSubComment::unsetCommenterName() } utility::string_t PubSubComment::getCommenterLink() const { - return m_CommenterLink.get(); + return m_CommenterLink; } void PubSubComment::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; + m_CommenterLinkIsSet = true; } bool PubSubComment::commenterLinkIsSet() const { - return m_CommenterLink.has_value(); + return m_CommenterLinkIsSet; } void PubSubComment::unsetCommenterLink() { - m_CommenterLink.reset(); + m_CommenterLinkIsSet = false; } utility::string_t PubSubComment::getCommentHTML() const { @@ -1397,80 +1437,84 @@ void PubSubComment::unsetComment() } utility::string_t PubSubComment::getParentId() const { - return m_ParentId.get(); + return m_ParentId; } void PubSubComment::setParentId(const utility::string_t& value) { m_ParentId = value; + m_ParentIdIsSet = true; } bool PubSubComment::parentIdIsSet() const { - return m_ParentId.has_value(); + return m_ParentIdIsSet; } void PubSubComment::unsetParentId() { - m_ParentId.reset(); + m_ParentIdIsSet = false; } int32_t PubSubComment::getVotes() const { - return m_Votes.get(); + return m_Votes; } void PubSubComment::setVotes(int32_t value) { m_Votes = value; + m_VotesIsSet = true; } bool PubSubComment::votesIsSet() const { - return m_Votes.has_value(); + return m_VotesIsSet; } void PubSubComment::unsetVotes() { - m_Votes.reset(); + m_VotesIsSet = false; } int32_t PubSubComment::getVotesUp() const { - return m_VotesUp.get(); + return m_VotesUp; } void PubSubComment::setVotesUp(int32_t value) { m_VotesUp = value; + m_VotesUpIsSet = true; } bool PubSubComment::votesUpIsSet() const { - return m_VotesUp.has_value(); + return m_VotesUpIsSet; } void PubSubComment::unsetVotesUp() { - m_VotesUp.reset(); + m_VotesUpIsSet = false; } int32_t PubSubComment::getVotesDown() const { - return m_VotesDown.get(); + return m_VotesDown; } void PubSubComment::setVotesDown(int32_t value) { m_VotesDown = value; + m_VotesDownIsSet = true; } bool PubSubComment::votesDownIsSet() const { - return m_VotesDown.has_value(); + return m_VotesDownIsSet; } void PubSubComment::unsetVotesDown() { - m_VotesDown.reset(); + m_VotesDownIsSet = false; } bool PubSubComment::isVerified() const { @@ -1494,23 +1538,24 @@ void PubSubComment::unsetVerified() } utility::string_t PubSubComment::getAvatarSrc() const { - return m_AvatarSrc.get(); + return m_AvatarSrc; } void PubSubComment::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; + m_AvatarSrcIsSet = true; } bool PubSubComment::avatarSrcIsSet() const { - return m_AvatarSrc.has_value(); + return m_AvatarSrcIsSet; } void PubSubComment::unsetAvatarSrc() { - m_AvatarSrc.reset(); + m_AvatarSrcIsSet = false; } bool PubSubComment::isHasImages() const { @@ -1594,119 +1639,125 @@ void PubSubComment::unsetIsByModerator() } bool PubSubComment::isIsPinned() const { - return m_IsPinned.get(); + return m_IsPinned; } void PubSubComment::setIsPinned(bool value) { m_IsPinned = value; + m_IsPinnedIsSet = true; } bool PubSubComment::isPinnedIsSet() const { - return m_IsPinned.has_value(); + return m_IsPinnedIsSet; } void PubSubComment::unsetIsPinned() { - m_IsPinned.reset(); + m_IsPinnedIsSet = false; } bool PubSubComment::isIsLocked() const { - return m_IsLocked.get(); + return m_IsLocked; } void PubSubComment::setIsLocked(bool value) { m_IsLocked = value; + m_IsLockedIsSet = true; } bool PubSubComment::isLockedIsSet() const { - return m_IsLocked.has_value(); + return m_IsLockedIsSet; } void PubSubComment::unsetIsLocked() { - m_IsLocked.reset(); + m_IsLockedIsSet = false; } utility::string_t PubSubComment::getDisplayLabel() const { - return m_DisplayLabel.get(); + return m_DisplayLabel; } void PubSubComment::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; + m_DisplayLabelIsSet = true; } bool PubSubComment::displayLabelIsSet() const { - return m_DisplayLabel.has_value(); + return m_DisplayLabelIsSet; } void PubSubComment::unsetDisplayLabel() { - m_DisplayLabel.reset(); + m_DisplayLabelIsSet = false; } double PubSubComment::getRating() const { - return m_Rating.get(); + return m_Rating; } void PubSubComment::setRating(double value) { m_Rating = value; + m_RatingIsSet = true; } bool PubSubComment::ratingIsSet() const { - return m_Rating.has_value(); + return m_RatingIsSet; } void PubSubComment::unsetRating() { - m_Rating.reset(); + m_RatingIsSet = false; } std::vector> PubSubComment::getBadges() const { - return m_Badges.get(); + return m_Badges; } void PubSubComment::setBadges(const std::vector>& value) { m_Badges = value; + m_BadgesIsSet = true; } bool PubSubComment::badgesIsSet() const { - return m_Badges.has_value(); + return m_BadgesIsSet; } void PubSubComment::unsetBadges() { - m_Badges.reset(); + m_BadgesIsSet = false; } int64_t PubSubComment::getViewCount() const { - return m_ViewCount.get(); + return m_ViewCount; } void PubSubComment::setViewCount(int64_t value) { m_ViewCount = value; + m_ViewCountIsSet = true; } bool PubSubComment::viewCountIsSet() const { - return m_ViewCount.has_value(); + return m_ViewCountIsSet; } void PubSubComment::unsetViewCount() { - m_ViewCount.reset(); + m_ViewCountIsSet = false; } bool PubSubComment::isIsDeleted() const { @@ -1770,23 +1821,24 @@ void PubSubComment::unsetIsSpam() } utility::string_t PubSubComment::getAnonUserId() const { - return m_AnonUserId.get(); + return m_AnonUserId; } void PubSubComment::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; + m_AnonUserIdIsSet = true; } bool PubSubComment::anonUserIdIsSet() const { - return m_AnonUserId.has_value(); + return m_AnonUserIdIsSet; } void PubSubComment::unsetAnonUserId() { - m_AnonUserId.reset(); + m_AnonUserIdIsSet = false; } std::vector PubSubComment::getFeedbackIds() const { @@ -1811,42 +1863,44 @@ void PubSubComment::unsetFeedbackIds() } int32_t PubSubComment::getFlagCount() const { - return m_FlagCount.get(); + return m_FlagCount; } void PubSubComment::setFlagCount(int32_t value) { m_FlagCount = value; + m_FlagCountIsSet = true; } bool PubSubComment::flagCountIsSet() const { - return m_FlagCount.has_value(); + return m_FlagCountIsSet; } void PubSubComment::unsetFlagCount() { - m_FlagCount.reset(); + m_FlagCountIsSet = false; } utility::string_t PubSubComment::getDomain() const { - return m_Domain.get(); + return m_Domain; } void PubSubComment::setDomain(const utility::string_t& value) { m_Domain = value; + m_DomainIsSet = true; } bool PubSubComment::domainIsSet() const { - return m_Domain.has_value(); + return m_DomainIsSet; } void PubSubComment::unsetDomain() { - m_Domain.reset(); + m_DomainIsSet = false; } utility::string_t PubSubComment::getUrl() const { @@ -1871,43 +1925,45 @@ void PubSubComment::unsetUrl() } utility::string_t PubSubComment::getPageTitle() const { - return m_PageTitle.get(); + return m_PageTitle; } void PubSubComment::setPageTitle(const utility::string_t& value) { m_PageTitle = value; + m_PageTitleIsSet = true; } bool PubSubComment::pageTitleIsSet() const { - return m_PageTitle.has_value(); + return m_PageTitleIsSet; } void PubSubComment::unsetPageTitle() { - m_PageTitle.reset(); + m_PageTitleIsSet = false; } utility::datetime PubSubComment::getExpireAt() const { - return m_ExpireAt.get(); + return m_ExpireAt; } void PubSubComment::setExpireAt(const utility::datetime& value) { m_ExpireAt = value; + m_ExpireAtIsSet = true; } bool PubSubComment::expireAtIsSet() const { - return m_ExpireAt.has_value(); + return m_ExpireAtIsSet; } void PubSubComment::unsetExpireAt() { - m_ExpireAt.reset(); + m_ExpireAtIsSet = false; } bool PubSubComment::isReviewed() const { @@ -1971,23 +2027,24 @@ void PubSubComment::unsetApproved() } utility::string_t PubSubComment::getLocale() const { - return m_Locale.get(); + return m_Locale; } void PubSubComment::setLocale(const utility::string_t& value) { m_Locale = value; + m_LocaleIsSet = true; } bool PubSubComment::localeIsSet() const { - return m_Locale.has_value(); + return m_LocaleIsSet; } void PubSubComment::unsetLocale() { - m_Locale.reset(); + m_LocaleIsSet = false; } bool PubSubComment::isIsBannedUser() const { @@ -2011,23 +2068,24 @@ void PubSubComment::unsetIsBannedUser() } std::vector PubSubComment::getGroupIds() const { - return m_GroupIds.get(); + return m_GroupIds; } void PubSubComment::setGroupIds(const std::vector& value) { m_GroupIds = value; + m_GroupIdsIsSet = true; } bool PubSubComment::groupIdsIsSet() const { - return m_GroupIds.has_value(); + return m_GroupIdsIsSet; } void PubSubComment::unsetGroupIds() { - m_GroupIds.reset(); + m_GroupIdsIsSet = false; } bool PubSubComment::isIsLive() const { diff --git a/client/src/model/PubSubCommentBase.cpp b/client/src/model/PubSubCommentBase.cpp index ca69d60..c217406 100644 --- a/client/src/model/PubSubCommentBase.cpp +++ b/client/src/model/PubSubCommentBase.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,16 +24,30 @@ PubSubCommentBase::PubSubCommentBase() m__idIsSet = false; m_TenantId = utility::conversions::to_string_t(""); m_TenantIdIsSet = false; + m_UserId = nullptr; + m_UserIdIsSet = false; m_UrlId = utility::conversions::to_string_t(""); m_UrlIdIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; + m_CommenterLink = utility::conversions::to_string_t(""); + m_CommenterLinkIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; + m_ParentId = utility::conversions::to_string_t(""); + m_ParentIdIsSet = false; + m_Votes = 0; + m_VotesIsSet = false; + m_VotesUp = 0; + m_VotesUpIsSet = false; + m_VotesDown = 0; + m_VotesDownIsSet = false; m_Verified = false; m_VerifiedIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; m_HasImages = false; m_HasImagesIsSet = false; m_HasLinks = false; @@ -42,23 +56,47 @@ PubSubCommentBase::PubSubCommentBase() m_IsByAdminIsSet = false; m_IsByModerator = false; m_IsByModeratorIsSet = false; + m_IsPinned = false; + m_IsPinnedIsSet = false; + m_IsLocked = false; + m_IsLockedIsSet = false; + m_DisplayLabel = utility::conversions::to_string_t(""); + m_DisplayLabelIsSet = false; + m_Rating = 0.0; + m_RatingIsSet = false; + m_BadgesIsSet = false; + m_ViewCount = 0L; + m_ViewCountIsSet = false; m_IsDeleted = false; m_IsDeletedIsSet = false; m_IsDeletedUser = false; m_IsDeletedUserIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; + m_AnonUserId = utility::conversions::to_string_t(""); + m_AnonUserIdIsSet = false; m_FeedbackIdsIsSet = false; + m_FlagCount = 0; + m_FlagCountIsSet = false; + m_Domain = nullptr; + m_DomainIsSet = false; m_Url = utility::conversions::to_string_t(""); m_UrlIsSet = false; + m_PageTitle = utility::conversions::to_string_t(""); + m_PageTitleIsSet = false; + m_ExpireAt = utility::datetime(); + m_ExpireAtIsSet = false; m_Reviewed = false; m_ReviewedIsSet = false; m_HasCode = false; m_HasCodeIsSet = false; m_Approved = false; m_ApprovedIsSet = false; + m_Locale = utility::conversions::to_string_t(""); + m_LocaleIsSet = false; m_IsBannedUser = false; m_IsBannedUserIsSet = false; + m_GroupIdsIsSet = false; } PubSubCommentBase::~PubSubCommentBase() @@ -74,204 +112,204 @@ web::json::value PubSubCommentBase::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterLink.has_value()) - { + if(m_CommenterLinkIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_ParentId.has_value()) - { + if(m_ParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); } - if(m_Votes.has_value()) - { + if(m_VotesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); } - if(m_VotesUp.has_value()) - { + if(m_VotesUpIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); } - if(m_VotesDown.has_value()) - { + if(m_VotesDownIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_AvatarSrc.has_value()) - { + if(m_AvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } if(m_HasLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLinks"))] = ModelBase::toJson(m_HasLinks); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } - if(m_IsPinned.has_value()) - { + if(m_IsPinnedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); } - if(m_IsLocked.has_value()) - { + if(m_IsLockedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); } - if(m_DisplayLabel.has_value()) - { + if(m_DisplayLabelIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } - if(m_Rating.has_value()) - { + if(m_RatingIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); } - if(m_Badges.has_value()) - { + if(m_BadgesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } - if(m_ViewCount.has_value()) - { + if(m_ViewCountIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount.get()); + val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } - if(m_AnonUserId.has_value()) - { + if(m_AnonUserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } - if(m_FlagCount.has_value()) - { + if(m_FlagCountIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); } - if(m_Domain.has_value()) - { + if(m_DomainIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain.get()); + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } - if(m_PageTitle.has_value()) - { + if(m_PageTitleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } - if(m_ExpireAt.has_value()) - { + if(m_ExpireAtIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt.get()); + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_HasCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasCode"))] = ModelBase::toJson(m_HasCode); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } - if(m_Locale.has_value()) - { + if(m_LocaleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale.get()); + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_IsBannedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))] = ModelBase::toJson(m_IsBannedUser); } - if(m_GroupIds.has_value()) - { + if(m_GroupIdsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds.get()); + val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); } return val; @@ -738,9 +776,9 @@ void PubSubCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } if(m_UrlIdIsSet) { @@ -750,9 +788,9 @@ void PubSubCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterLink.has_value()) + if(m_CommenterLinkIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); } if(m_CommentHTMLIsSet) { @@ -762,29 +800,29 @@ void PubSubCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_ParentId.has_value()) + if(m_ParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); } - if(m_Votes.has_value()) + if(m_VotesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); } - if(m_VotesUp.has_value()) + if(m_VotesUpIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); } - if(m_VotesDown.has_value()) + if(m_VotesDownIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_AvatarSrc.has_value()) + if(m_AvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); } if(m_HasImagesIsSet) { @@ -802,29 +840,29 @@ void PubSubCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); } - if(m_IsPinned.has_value()) + if(m_IsPinnedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); } - if(m_IsLocked.has_value()) + if(m_IsLockedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); } - if(m_DisplayLabel.has_value()) + if(m_DisplayLabelIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); } - if(m_Rating.has_value()) + if(m_RatingIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); } - if(m_Badges.has_value()) + if(m_BadgesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); } - if(m_ViewCount.has_value()) + if(m_ViewCountIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount)); } if(m_IsDeletedIsSet) { @@ -838,33 +876,33 @@ void PubSubCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); } - if(m_AnonUserId.has_value()) + if(m_AnonUserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); } if(m_FeedbackIdsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedbackIds")), m_FeedbackIds)); } - if(m_FlagCount.has_value()) + if(m_FlagCountIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); } - if(m_Domain.has_value()) + if(m_DomainIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); } if(m_UrlIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } - if(m_PageTitle.has_value()) + if(m_PageTitleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); } - if(m_ExpireAt.has_value()) + if(m_ExpireAtIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); } if(m_ReviewedIsSet) { @@ -878,17 +916,17 @@ void PubSubCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); } - if(m_Locale.has_value()) + if(m_LocaleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); } if(m_IsBannedUserIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isBannedUser")), m_IsBannedUser)); } - if(m_GroupIds.has_value()) + if(m_GroupIdsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("groupIds")), m_GroupIds.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("groupIds")), m_GroupIds)); } } @@ -1189,23 +1227,24 @@ void PubSubCommentBase::unsetTenantId() } utility::string_t PubSubCommentBase::getUserId() const { - return m_UserId.get(); + return m_UserId; } void PubSubCommentBase::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool PubSubCommentBase::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void PubSubCommentBase::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } utility::string_t PubSubCommentBase::getUrlId() const { @@ -1251,23 +1290,24 @@ void PubSubCommentBase::unsetCommenterName() } utility::string_t PubSubCommentBase::getCommenterLink() const { - return m_CommenterLink.get(); + return m_CommenterLink; } void PubSubCommentBase::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; + m_CommenterLinkIsSet = true; } bool PubSubCommentBase::commenterLinkIsSet() const { - return m_CommenterLink.has_value(); + return m_CommenterLinkIsSet; } void PubSubCommentBase::unsetCommenterLink() { - m_CommenterLink.reset(); + m_CommenterLinkIsSet = false; } utility::string_t PubSubCommentBase::getCommentHTML() const { @@ -1313,80 +1353,84 @@ void PubSubCommentBase::unsetComment() } utility::string_t PubSubCommentBase::getParentId() const { - return m_ParentId.get(); + return m_ParentId; } void PubSubCommentBase::setParentId(const utility::string_t& value) { m_ParentId = value; + m_ParentIdIsSet = true; } bool PubSubCommentBase::parentIdIsSet() const { - return m_ParentId.has_value(); + return m_ParentIdIsSet; } void PubSubCommentBase::unsetParentId() { - m_ParentId.reset(); + m_ParentIdIsSet = false; } int32_t PubSubCommentBase::getVotes() const { - return m_Votes.get(); + return m_Votes; } void PubSubCommentBase::setVotes(int32_t value) { m_Votes = value; + m_VotesIsSet = true; } bool PubSubCommentBase::votesIsSet() const { - return m_Votes.has_value(); + return m_VotesIsSet; } void PubSubCommentBase::unsetVotes() { - m_Votes.reset(); + m_VotesIsSet = false; } int32_t PubSubCommentBase::getVotesUp() const { - return m_VotesUp.get(); + return m_VotesUp; } void PubSubCommentBase::setVotesUp(int32_t value) { m_VotesUp = value; + m_VotesUpIsSet = true; } bool PubSubCommentBase::votesUpIsSet() const { - return m_VotesUp.has_value(); + return m_VotesUpIsSet; } void PubSubCommentBase::unsetVotesUp() { - m_VotesUp.reset(); + m_VotesUpIsSet = false; } int32_t PubSubCommentBase::getVotesDown() const { - return m_VotesDown.get(); + return m_VotesDown; } void PubSubCommentBase::setVotesDown(int32_t value) { m_VotesDown = value; + m_VotesDownIsSet = true; } bool PubSubCommentBase::votesDownIsSet() const { - return m_VotesDown.has_value(); + return m_VotesDownIsSet; } void PubSubCommentBase::unsetVotesDown() { - m_VotesDown.reset(); + m_VotesDownIsSet = false; } bool PubSubCommentBase::isVerified() const { @@ -1410,23 +1454,24 @@ void PubSubCommentBase::unsetVerified() } utility::string_t PubSubCommentBase::getAvatarSrc() const { - return m_AvatarSrc.get(); + return m_AvatarSrc; } void PubSubCommentBase::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; + m_AvatarSrcIsSet = true; } bool PubSubCommentBase::avatarSrcIsSet() const { - return m_AvatarSrc.has_value(); + return m_AvatarSrcIsSet; } void PubSubCommentBase::unsetAvatarSrc() { - m_AvatarSrc.reset(); + m_AvatarSrcIsSet = false; } bool PubSubCommentBase::isHasImages() const { @@ -1510,119 +1555,125 @@ void PubSubCommentBase::unsetIsByModerator() } bool PubSubCommentBase::isIsPinned() const { - return m_IsPinned.get(); + return m_IsPinned; } void PubSubCommentBase::setIsPinned(bool value) { m_IsPinned = value; + m_IsPinnedIsSet = true; } bool PubSubCommentBase::isPinnedIsSet() const { - return m_IsPinned.has_value(); + return m_IsPinnedIsSet; } void PubSubCommentBase::unsetIsPinned() { - m_IsPinned.reset(); + m_IsPinnedIsSet = false; } bool PubSubCommentBase::isIsLocked() const { - return m_IsLocked.get(); + return m_IsLocked; } void PubSubCommentBase::setIsLocked(bool value) { m_IsLocked = value; + m_IsLockedIsSet = true; } bool PubSubCommentBase::isLockedIsSet() const { - return m_IsLocked.has_value(); + return m_IsLockedIsSet; } void PubSubCommentBase::unsetIsLocked() { - m_IsLocked.reset(); + m_IsLockedIsSet = false; } utility::string_t PubSubCommentBase::getDisplayLabel() const { - return m_DisplayLabel.get(); + return m_DisplayLabel; } void PubSubCommentBase::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; + m_DisplayLabelIsSet = true; } bool PubSubCommentBase::displayLabelIsSet() const { - return m_DisplayLabel.has_value(); + return m_DisplayLabelIsSet; } void PubSubCommentBase::unsetDisplayLabel() { - m_DisplayLabel.reset(); + m_DisplayLabelIsSet = false; } double PubSubCommentBase::getRating() const { - return m_Rating.get(); + return m_Rating; } void PubSubCommentBase::setRating(double value) { m_Rating = value; + m_RatingIsSet = true; } bool PubSubCommentBase::ratingIsSet() const { - return m_Rating.has_value(); + return m_RatingIsSet; } void PubSubCommentBase::unsetRating() { - m_Rating.reset(); + m_RatingIsSet = false; } std::vector> PubSubCommentBase::getBadges() const { - return m_Badges.get(); + return m_Badges; } void PubSubCommentBase::setBadges(const std::vector>& value) { m_Badges = value; + m_BadgesIsSet = true; } bool PubSubCommentBase::badgesIsSet() const { - return m_Badges.has_value(); + return m_BadgesIsSet; } void PubSubCommentBase::unsetBadges() { - m_Badges.reset(); + m_BadgesIsSet = false; } int64_t PubSubCommentBase::getViewCount() const { - return m_ViewCount.get(); + return m_ViewCount; } void PubSubCommentBase::setViewCount(int64_t value) { m_ViewCount = value; + m_ViewCountIsSet = true; } bool PubSubCommentBase::viewCountIsSet() const { - return m_ViewCount.has_value(); + return m_ViewCountIsSet; } void PubSubCommentBase::unsetViewCount() { - m_ViewCount.reset(); + m_ViewCountIsSet = false; } bool PubSubCommentBase::isIsDeleted() const { @@ -1686,23 +1737,24 @@ void PubSubCommentBase::unsetIsSpam() } utility::string_t PubSubCommentBase::getAnonUserId() const { - return m_AnonUserId.get(); + return m_AnonUserId; } void PubSubCommentBase::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; + m_AnonUserIdIsSet = true; } bool PubSubCommentBase::anonUserIdIsSet() const { - return m_AnonUserId.has_value(); + return m_AnonUserIdIsSet; } void PubSubCommentBase::unsetAnonUserId() { - m_AnonUserId.reset(); + m_AnonUserIdIsSet = false; } std::vector PubSubCommentBase::getFeedbackIds() const { @@ -1727,42 +1779,44 @@ void PubSubCommentBase::unsetFeedbackIds() } int32_t PubSubCommentBase::getFlagCount() const { - return m_FlagCount.get(); + return m_FlagCount; } void PubSubCommentBase::setFlagCount(int32_t value) { m_FlagCount = value; + m_FlagCountIsSet = true; } bool PubSubCommentBase::flagCountIsSet() const { - return m_FlagCount.has_value(); + return m_FlagCountIsSet; } void PubSubCommentBase::unsetFlagCount() { - m_FlagCount.reset(); + m_FlagCountIsSet = false; } utility::string_t PubSubCommentBase::getDomain() const { - return m_Domain.get(); + return m_Domain; } void PubSubCommentBase::setDomain(const utility::string_t& value) { m_Domain = value; + m_DomainIsSet = true; } bool PubSubCommentBase::domainIsSet() const { - return m_Domain.has_value(); + return m_DomainIsSet; } void PubSubCommentBase::unsetDomain() { - m_Domain.reset(); + m_DomainIsSet = false; } utility::string_t PubSubCommentBase::getUrl() const { @@ -1787,43 +1841,45 @@ void PubSubCommentBase::unsetUrl() } utility::string_t PubSubCommentBase::getPageTitle() const { - return m_PageTitle.get(); + return m_PageTitle; } void PubSubCommentBase::setPageTitle(const utility::string_t& value) { m_PageTitle = value; + m_PageTitleIsSet = true; } bool PubSubCommentBase::pageTitleIsSet() const { - return m_PageTitle.has_value(); + return m_PageTitleIsSet; } void PubSubCommentBase::unsetPageTitle() { - m_PageTitle.reset(); + m_PageTitleIsSet = false; } utility::datetime PubSubCommentBase::getExpireAt() const { - return m_ExpireAt.get(); + return m_ExpireAt; } void PubSubCommentBase::setExpireAt(const utility::datetime& value) { m_ExpireAt = value; + m_ExpireAtIsSet = true; } bool PubSubCommentBase::expireAtIsSet() const { - return m_ExpireAt.has_value(); + return m_ExpireAtIsSet; } void PubSubCommentBase::unsetExpireAt() { - m_ExpireAt.reset(); + m_ExpireAtIsSet = false; } bool PubSubCommentBase::isReviewed() const { @@ -1887,23 +1943,24 @@ void PubSubCommentBase::unsetApproved() } utility::string_t PubSubCommentBase::getLocale() const { - return m_Locale.get(); + return m_Locale; } void PubSubCommentBase::setLocale(const utility::string_t& value) { m_Locale = value; + m_LocaleIsSet = true; } bool PubSubCommentBase::localeIsSet() const { - return m_Locale.has_value(); + return m_LocaleIsSet; } void PubSubCommentBase::unsetLocale() { - m_Locale.reset(); + m_LocaleIsSet = false; } bool PubSubCommentBase::isIsBannedUser() const { @@ -1927,23 +1984,24 @@ void PubSubCommentBase::unsetIsBannedUser() } std::vector PubSubCommentBase::getGroupIds() const { - return m_GroupIds.get(); + return m_GroupIds; } void PubSubCommentBase::setGroupIds(const std::vector& value) { m_GroupIds = value; + m_GroupIdsIsSet = true; } bool PubSubCommentBase::groupIdsIsSet() const { - return m_GroupIds.has_value(); + return m_GroupIdsIsSet; } void PubSubCommentBase::unsetGroupIds() { - m_GroupIds.reset(); + m_GroupIdsIsSet = false; } } diff --git a/client/src/model/PubSubVote.cpp b/client/src/model/PubSubVote.cpp index 037bfbd..14b1fc4 100644 --- a/client/src/model/PubSubVote.cpp +++ b/client/src/model/PubSubVote.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,10 +30,14 @@ PubSubVote::PubSubVote() m_UrlIdRawIsSet = false; m_CommentId = utility::conversions::to_string_t(""); m_CommentIdIsSet = false; + m_UserId = utility::conversions::to_string_t(""); + m_UserIdIsSet = false; m_Direction = 0; m_DirectionIsSet = false; m_CreatedAt = 0L; m_CreatedAtIsSet = false; + m_VerificationId = utility::conversions::to_string_t(""); + m_VerificationIdIsSet = false; } PubSubVote::~PubSubVote() @@ -49,49 +53,49 @@ web::json::value PubSubVote::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIdRawIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdRaw"))] = ModelBase::toJson(m_UrlIdRaw); } if(m_CommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_DirectionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("direction"))] = ModelBase::toJson(m_Direction); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } - if(m_VerificationId.has_value()) - { + if(m_VerificationIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("verificationId"))] = ModelBase::toJson(m_VerificationId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("verificationId"))] = ModelBase::toJson(m_VerificationId); } return val; @@ -229,9 +233,9 @@ void PubSubVote::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentId")), m_CommentId)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } if(m_DirectionIsSet) { @@ -241,9 +245,9 @@ void PubSubVote::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); } - if(m_VerificationId.has_value()) + if(m_VerificationIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verificationId")), m_VerificationId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verificationId")), m_VerificationId)); } } @@ -421,23 +425,24 @@ void PubSubVote::unsetCommentId() } utility::string_t PubSubVote::getUserId() const { - return m_UserId.get(); + return m_UserId; } void PubSubVote::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool PubSubVote::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void PubSubVote::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } int32_t PubSubVote::getDirection() const { @@ -481,23 +486,24 @@ void PubSubVote::unsetCreatedAt() } utility::string_t PubSubVote::getVerificationId() const { - return m_VerificationId.get(); + return m_VerificationId; } void PubSubVote::setVerificationId(const utility::string_t& value) { m_VerificationId = value; + m_VerificationIdIsSet = true; } bool PubSubVote::verificationIdIsSet() const { - return m_VerificationId.has_value(); + return m_VerificationIdIsSet; } void PubSubVote::unsetVerificationId() { - m_VerificationId.reset(); + m_VerificationIdIsSet = false; } } diff --git a/client/src/model/PublicAPIDeleteCommentResponse.cpp b/client/src/model/PublicAPIDeleteCommentResponse.cpp index aa87f7c..fcfa7f8 100644 --- a/client/src/model/PublicAPIDeleteCommentResponse.cpp +++ b/client/src/model/PublicAPIDeleteCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value PublicAPIDeleteCommentResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_HardRemovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hardRemoved"))] = ModelBase::toJson(m_HardRemoved); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/PublicAPIGetCommentTextResponse.cpp b/client/src/model/PublicAPIGetCommentTextResponse.cpp index 0f0e1e1..2cf2b9b 100644 --- a/client/src/model/PublicAPIGetCommentTextResponse.cpp +++ b/client/src/model/PublicAPIGetCommentTextResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,17 +40,17 @@ web::json::value PublicAPIGetCommentTextResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentText"))] = ModelBase::toJson(m_CommentText); } if(m_SanitizedCommentTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText"))] = ModelBase::toJson(m_SanitizedCommentText); } diff --git a/client/src/model/PublicAPISetCommentTextResponse.cpp b/client/src/model/PublicAPISetCommentTextResponse.cpp index 6e785eb..274d619 100644 --- a/client/src/model/PublicAPISetCommentTextResponse.cpp +++ b/client/src/model/PublicAPISetCommentTextResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value PublicAPISetCommentTextResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/PublicBlockFromCommentParams.cpp b/client/src/model/PublicBlockFromCommentParams.cpp index 78a7d06..bb7d37b 100644 --- a/client/src/model/PublicBlockFromCommentParams.cpp +++ b/client/src/model/PublicBlockFromCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,6 +20,7 @@ namespace model { PublicBlockFromCommentParams::PublicBlockFromCommentParams() { + m_CommentIdsIsSet = false; } PublicBlockFromCommentParams::~PublicBlockFromCommentParams() @@ -34,10 +35,10 @@ void PublicBlockFromCommentParams::validate() web::json::value PublicBlockFromCommentParams::toJson() const { web::json::value val = web::json::value::object(); - if(m_CommentIds.has_value()) - { + if(m_CommentIdsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commentIds"))] = ModelBase::toJson(m_CommentIds.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commentIds"))] = ModelBase::toJson(m_CommentIds); } return val; @@ -67,9 +68,9 @@ void PublicBlockFromCommentParams::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentIds")), m_CommentIds.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentIds")), m_CommentIds)); } } @@ -94,23 +95,24 @@ bool PublicBlockFromCommentParams::fromMultiPart(std::shared_ptr PublicBlockFromCommentParams::getCommentIds() const { - return m_CommentIds.get(); + return m_CommentIds; } void PublicBlockFromCommentParams::setCommentIds(const std::vector& value) { m_CommentIds = value; + m_CommentIdsIsSet = true; } bool PublicBlockFromCommentParams::commentIdsIsSet() const { - return m_CommentIds.has_value(); + return m_CommentIdsIsSet; } void PublicBlockFromCommentParams::unsetCommentIds() { - m_CommentIds.reset(); + m_CommentIdsIsSet = false; } } diff --git a/client/src/model/PublicComment.cpp b/client/src/model/PublicComment.cpp index 1342a02..447bf9c 100644 --- a/client/src/model/PublicComment.cpp +++ b/client/src/model/PublicComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,24 +22,53 @@ PublicComment::PublicComment() { m__id = utility::conversions::to_string_t(""); m__idIsSet = false; + m_UserId = nullptr; + m_UserIdIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; + m_CommenterLink = utility::conversions::to_string_t(""); + m_CommenterLinkIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; + m_ParentId = utility::conversions::to_string_t(""); + m_ParentIdIsSet = false; + m_date = utility::datetime(); + m_dateIsSet = false; + m_Votes = 0; + m_VotesIsSet = false; + m_VotesUp = 0; + m_VotesUpIsSet = false; + m_VotesDown = 0; + m_VotesDownIsSet = false; m_Verified = false; m_VerifiedIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; m_HasImages = false; m_HasImagesIsSet = false; m_IsByAdmin = false; m_IsByAdminIsSet = false; m_IsByModerator = false; m_IsByModeratorIsSet = false; + m_IsPinned = false; + m_IsPinnedIsSet = false; + m_IsLocked = false; + m_IsLockedIsSet = false; + m_DisplayLabel = utility::conversions::to_string_t(""); + m_DisplayLabelIsSet = false; + m_Rating = 0.0; + m_RatingIsSet = false; + m_BadgesIsSet = false; + m_ViewCount = 0L; + m_ViewCountIsSet = false; m_IsDeleted = false; m_IsDeletedIsSet = false; m_IsDeletedUser = false; m_IsDeletedUserIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; + m_AnonUserId = utility::conversions::to_string_t(""); + m_AnonUserIdIsSet = false; m_FeedbackIdsIsSet = false; m_RequiresVerification = false; m_RequiresVerificationIsSet = false; @@ -81,197 +110,197 @@ web::json::value PublicComment::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterLink.has_value()) - { + if(m_CommenterLinkIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } - if(m_ParentId.has_value()) - { + if(m_ParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); } - if(m_date.has_value()) - { + if(m_dateIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); } - if(m_Votes.has_value()) - { + if(m_VotesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); } - if(m_VotesUp.has_value()) - { + if(m_VotesUpIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); } - if(m_VotesDown.has_value()) - { + if(m_VotesDownIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_AvatarSrc.has_value()) - { + if(m_AvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } - if(m_IsPinned.has_value()) - { + if(m_IsPinnedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); } - if(m_IsLocked.has_value()) - { + if(m_IsLockedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); } - if(m_DisplayLabel.has_value()) - { + if(m_DisplayLabelIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } - if(m_Rating.has_value()) - { + if(m_RatingIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); } - if(m_Badges.has_value()) - { + if(m_BadgesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } - if(m_ViewCount.has_value()) - { + if(m_ViewCountIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount.get()); + val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } - if(m_AnonUserId.has_value()) - { + if(m_AnonUserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } if(m_RequiresVerificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("requiresVerification"))] = ModelBase::toJson(m_RequiresVerification); } if(m_EditKeyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } if(m_IsUnreadIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isUnread"))] = ModelBase::toJson(m_IsUnread); } if(m_MyVoteIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("myVoteId"))] = ModelBase::toJson(m_MyVoteId); } if(m_IsVotedDownIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isVotedDown"))] = ModelBase::toJson(m_IsVotedDown); } if(m_IsVotedUpIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isVotedUp"))] = ModelBase::toJson(m_IsVotedUp); } if(m_HasChildrenIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasChildren"))] = ModelBase::toJson(m_HasChildren); } if(m_NestedChildrenCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("nestedChildrenCount"))] = ModelBase::toJson(m_NestedChildrenCount); } if(m_ChildCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("childCount"))] = ModelBase::toJson(m_ChildCount); } if(m_ChildrenIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("children"))] = ModelBase::toJson(m_Children); } if(m_IsFlaggedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isFlagged"))] = ModelBase::toJson(m_IsFlagged); } if(m_IsBlockedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBlocked"))] = ModelBase::toJson(m_IsBlocked); } @@ -725,49 +754,49 @@ void PublicComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } if(m_CommenterNameIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterLink.has_value()) + if(m_CommenterLinkIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); } if(m_CommentHTMLIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); } - if(m_ParentId.has_value()) + if(m_ParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); } - if(m_date.has_value()) + if(m_dateIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); } - if(m_Votes.has_value()) + if(m_VotesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); } - if(m_VotesUp.has_value()) + if(m_VotesUpIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); } - if(m_VotesDown.has_value()) + if(m_VotesDownIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_AvatarSrc.has_value()) + if(m_AvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); } if(m_HasImagesIsSet) { @@ -781,29 +810,29 @@ void PublicComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); } - if(m_IsPinned.has_value()) + if(m_IsPinnedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); } - if(m_IsLocked.has_value()) + if(m_IsLockedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); } - if(m_DisplayLabel.has_value()) + if(m_DisplayLabelIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); } - if(m_Rating.has_value()) + if(m_RatingIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); } - if(m_Badges.has_value()) + if(m_BadgesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); } - if(m_ViewCount.has_value()) + if(m_ViewCountIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount)); } if(m_IsDeletedIsSet) { @@ -817,9 +846,9 @@ void PublicComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); } - if(m_AnonUserId.has_value()) + if(m_AnonUserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); } if(m_FeedbackIdsIsSet) { @@ -1149,23 +1178,24 @@ void PublicComment::unset_id() } utility::string_t PublicComment::getUserId() const { - return m_UserId.get(); + return m_UserId; } void PublicComment::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool PublicComment::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void PublicComment::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } utility::string_t PublicComment::getCommenterName() const { @@ -1190,23 +1220,24 @@ void PublicComment::unsetCommenterName() } utility::string_t PublicComment::getCommenterLink() const { - return m_CommenterLink.get(); + return m_CommenterLink; } void PublicComment::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; + m_CommenterLinkIsSet = true; } bool PublicComment::commenterLinkIsSet() const { - return m_CommenterLink.has_value(); + return m_CommenterLinkIsSet; } void PublicComment::unsetCommenterLink() { - m_CommenterLink.reset(); + m_CommenterLinkIsSet = false; } utility::string_t PublicComment::getCommentHTML() const { @@ -1231,100 +1262,105 @@ void PublicComment::unsetCommentHTML() } utility::string_t PublicComment::getParentId() const { - return m_ParentId.get(); + return m_ParentId; } void PublicComment::setParentId(const utility::string_t& value) { m_ParentId = value; + m_ParentIdIsSet = true; } bool PublicComment::parentIdIsSet() const { - return m_ParentId.has_value(); + return m_ParentIdIsSet; } void PublicComment::unsetParentId() { - m_ParentId.reset(); + m_ParentIdIsSet = false; } utility::datetime PublicComment::getDate() const { - return m_date.get(); + return m_date; } void PublicComment::setDate(const utility::datetime& value) { m_date = value; + m_dateIsSet = true; } bool PublicComment::dateIsSet() const { - return m_date.has_value(); + return m_dateIsSet; } void PublicComment::unsetdate() { - m_date.reset(); + m_dateIsSet = false; } int32_t PublicComment::getVotes() const { - return m_Votes.get(); + return m_Votes; } void PublicComment::setVotes(int32_t value) { m_Votes = value; + m_VotesIsSet = true; } bool PublicComment::votesIsSet() const { - return m_Votes.has_value(); + return m_VotesIsSet; } void PublicComment::unsetVotes() { - m_Votes.reset(); + m_VotesIsSet = false; } int32_t PublicComment::getVotesUp() const { - return m_VotesUp.get(); + return m_VotesUp; } void PublicComment::setVotesUp(int32_t value) { m_VotesUp = value; + m_VotesUpIsSet = true; } bool PublicComment::votesUpIsSet() const { - return m_VotesUp.has_value(); + return m_VotesUpIsSet; } void PublicComment::unsetVotesUp() { - m_VotesUp.reset(); + m_VotesUpIsSet = false; } int32_t PublicComment::getVotesDown() const { - return m_VotesDown.get(); + return m_VotesDown; } void PublicComment::setVotesDown(int32_t value) { m_VotesDown = value; + m_VotesDownIsSet = true; } bool PublicComment::votesDownIsSet() const { - return m_VotesDown.has_value(); + return m_VotesDownIsSet; } void PublicComment::unsetVotesDown() { - m_VotesDown.reset(); + m_VotesDownIsSet = false; } bool PublicComment::isVerified() const { @@ -1348,23 +1384,24 @@ void PublicComment::unsetVerified() } utility::string_t PublicComment::getAvatarSrc() const { - return m_AvatarSrc.get(); + return m_AvatarSrc; } void PublicComment::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; + m_AvatarSrcIsSet = true; } bool PublicComment::avatarSrcIsSet() const { - return m_AvatarSrc.has_value(); + return m_AvatarSrcIsSet; } void PublicComment::unsetAvatarSrc() { - m_AvatarSrc.reset(); + m_AvatarSrcIsSet = false; } bool PublicComment::isHasImages() const { @@ -1428,119 +1465,125 @@ void PublicComment::unsetIsByModerator() } bool PublicComment::isIsPinned() const { - return m_IsPinned.get(); + return m_IsPinned; } void PublicComment::setIsPinned(bool value) { m_IsPinned = value; + m_IsPinnedIsSet = true; } bool PublicComment::isPinnedIsSet() const { - return m_IsPinned.has_value(); + return m_IsPinnedIsSet; } void PublicComment::unsetIsPinned() { - m_IsPinned.reset(); + m_IsPinnedIsSet = false; } bool PublicComment::isIsLocked() const { - return m_IsLocked.get(); + return m_IsLocked; } void PublicComment::setIsLocked(bool value) { m_IsLocked = value; + m_IsLockedIsSet = true; } bool PublicComment::isLockedIsSet() const { - return m_IsLocked.has_value(); + return m_IsLockedIsSet; } void PublicComment::unsetIsLocked() { - m_IsLocked.reset(); + m_IsLockedIsSet = false; } utility::string_t PublicComment::getDisplayLabel() const { - return m_DisplayLabel.get(); + return m_DisplayLabel; } void PublicComment::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; + m_DisplayLabelIsSet = true; } bool PublicComment::displayLabelIsSet() const { - return m_DisplayLabel.has_value(); + return m_DisplayLabelIsSet; } void PublicComment::unsetDisplayLabel() { - m_DisplayLabel.reset(); + m_DisplayLabelIsSet = false; } double PublicComment::getRating() const { - return m_Rating.get(); + return m_Rating; } void PublicComment::setRating(double value) { m_Rating = value; + m_RatingIsSet = true; } bool PublicComment::ratingIsSet() const { - return m_Rating.has_value(); + return m_RatingIsSet; } void PublicComment::unsetRating() { - m_Rating.reset(); + m_RatingIsSet = false; } std::vector> PublicComment::getBadges() const { - return m_Badges.get(); + return m_Badges; } void PublicComment::setBadges(const std::vector>& value) { m_Badges = value; + m_BadgesIsSet = true; } bool PublicComment::badgesIsSet() const { - return m_Badges.has_value(); + return m_BadgesIsSet; } void PublicComment::unsetBadges() { - m_Badges.reset(); + m_BadgesIsSet = false; } int64_t PublicComment::getViewCount() const { - return m_ViewCount.get(); + return m_ViewCount; } void PublicComment::setViewCount(int64_t value) { m_ViewCount = value; + m_ViewCountIsSet = true; } bool PublicComment::viewCountIsSet() const { - return m_ViewCount.has_value(); + return m_ViewCountIsSet; } void PublicComment::unsetViewCount() { - m_ViewCount.reset(); + m_ViewCountIsSet = false; } bool PublicComment::isIsDeleted() const { @@ -1604,23 +1647,24 @@ void PublicComment::unsetIsSpam() } utility::string_t PublicComment::getAnonUserId() const { - return m_AnonUserId.get(); + return m_AnonUserId; } void PublicComment::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; + m_AnonUserIdIsSet = true; } bool PublicComment::anonUserIdIsSet() const { - return m_AnonUserId.has_value(); + return m_AnonUserIdIsSet; } void PublicComment::unsetAnonUserId() { - m_AnonUserId.reset(); + m_AnonUserIdIsSet = false; } std::vector PublicComment::getFeedbackIds() const { diff --git a/client/src/model/PublicCommentBase.cpp b/client/src/model/PublicCommentBase.cpp index c953faf..11c32b0 100644 --- a/client/src/model/PublicCommentBase.cpp +++ b/client/src/model/PublicCommentBase.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,24 +22,53 @@ PublicCommentBase::PublicCommentBase() { m__id = utility::conversions::to_string_t(""); m__idIsSet = false; + m_UserId = nullptr; + m_UserIdIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; + m_CommenterLink = utility::conversions::to_string_t(""); + m_CommenterLinkIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; + m_ParentId = utility::conversions::to_string_t(""); + m_ParentIdIsSet = false; + m_date = utility::datetime(); + m_dateIsSet = false; + m_Votes = 0; + m_VotesIsSet = false; + m_VotesUp = 0; + m_VotesUpIsSet = false; + m_VotesDown = 0; + m_VotesDownIsSet = false; m_Verified = false; m_VerifiedIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; m_HasImages = false; m_HasImagesIsSet = false; m_IsByAdmin = false; m_IsByAdminIsSet = false; m_IsByModerator = false; m_IsByModeratorIsSet = false; + m_IsPinned = false; + m_IsPinnedIsSet = false; + m_IsLocked = false; + m_IsLockedIsSet = false; + m_DisplayLabel = utility::conversions::to_string_t(""); + m_DisplayLabelIsSet = false; + m_Rating = 0.0; + m_RatingIsSet = false; + m_BadgesIsSet = false; + m_ViewCount = 0L; + m_ViewCountIsSet = false; m_IsDeleted = false; m_IsDeletedIsSet = false; m_IsDeletedUser = false; m_IsDeletedUserIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; + m_AnonUserId = utility::conversions::to_string_t(""); + m_AnonUserIdIsSet = false; m_FeedbackIdsIsSet = false; m_RequiresVerification = false; m_RequiresVerificationIsSet = false; @@ -62,147 +91,147 @@ web::json::value PublicCommentBase::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterLink.has_value()) - { + if(m_CommenterLinkIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } - if(m_ParentId.has_value()) - { + if(m_ParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); } - if(m_date.has_value()) - { + if(m_dateIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); } - if(m_Votes.has_value()) - { + if(m_VotesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); } - if(m_VotesUp.has_value()) - { + if(m_VotesUpIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); } - if(m_VotesDown.has_value()) - { + if(m_VotesDownIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_AvatarSrc.has_value()) - { + if(m_AvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } - if(m_IsPinned.has_value()) - { + if(m_IsPinnedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); } - if(m_IsLocked.has_value()) - { + if(m_IsLockedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); } - if(m_DisplayLabel.has_value()) - { + if(m_DisplayLabelIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } - if(m_Rating.has_value()) - { + if(m_RatingIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); } - if(m_Badges.has_value()) - { + if(m_BadgesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } - if(m_ViewCount.has_value()) - { + if(m_ViewCountIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount.get()); + val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } - if(m_AnonUserId.has_value()) - { + if(m_AnonUserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } if(m_RequiresVerificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("requiresVerification"))] = ModelBase::toJson(m_RequiresVerification); } if(m_EditKeyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } @@ -546,49 +575,49 @@ void PublicCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } if(m_CommenterNameIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterLink.has_value()) + if(m_CommenterLinkIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); } if(m_CommentHTMLIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); } - if(m_ParentId.has_value()) + if(m_ParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); } - if(m_date.has_value()) + if(m_dateIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); } - if(m_Votes.has_value()) + if(m_VotesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); } - if(m_VotesUp.has_value()) + if(m_VotesUpIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); } - if(m_VotesDown.has_value()) + if(m_VotesDownIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_AvatarSrc.has_value()) + if(m_AvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); } if(m_HasImagesIsSet) { @@ -602,29 +631,29 @@ void PublicCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); } - if(m_IsPinned.has_value()) + if(m_IsPinnedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); } - if(m_IsLocked.has_value()) + if(m_IsLockedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); } - if(m_DisplayLabel.has_value()) + if(m_DisplayLabelIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); } - if(m_Rating.has_value()) + if(m_RatingIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); } - if(m_Badges.has_value()) + if(m_BadgesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); } - if(m_ViewCount.has_value()) + if(m_ViewCountIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount)); } if(m_IsDeletedIsSet) { @@ -638,9 +667,9 @@ void PublicCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); } - if(m_AnonUserId.has_value()) + if(m_AnonUserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); } if(m_FeedbackIdsIsSet) { @@ -870,23 +899,24 @@ void PublicCommentBase::unset_id() } utility::string_t PublicCommentBase::getUserId() const { - return m_UserId.get(); + return m_UserId; } void PublicCommentBase::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool PublicCommentBase::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void PublicCommentBase::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } utility::string_t PublicCommentBase::getCommenterName() const { @@ -911,23 +941,24 @@ void PublicCommentBase::unsetCommenterName() } utility::string_t PublicCommentBase::getCommenterLink() const { - return m_CommenterLink.get(); + return m_CommenterLink; } void PublicCommentBase::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; + m_CommenterLinkIsSet = true; } bool PublicCommentBase::commenterLinkIsSet() const { - return m_CommenterLink.has_value(); + return m_CommenterLinkIsSet; } void PublicCommentBase::unsetCommenterLink() { - m_CommenterLink.reset(); + m_CommenterLinkIsSet = false; } utility::string_t PublicCommentBase::getCommentHTML() const { @@ -952,100 +983,105 @@ void PublicCommentBase::unsetCommentHTML() } utility::string_t PublicCommentBase::getParentId() const { - return m_ParentId.get(); + return m_ParentId; } void PublicCommentBase::setParentId(const utility::string_t& value) { m_ParentId = value; + m_ParentIdIsSet = true; } bool PublicCommentBase::parentIdIsSet() const { - return m_ParentId.has_value(); + return m_ParentIdIsSet; } void PublicCommentBase::unsetParentId() { - m_ParentId.reset(); + m_ParentIdIsSet = false; } utility::datetime PublicCommentBase::getDate() const { - return m_date.get(); + return m_date; } void PublicCommentBase::setDate(const utility::datetime& value) { m_date = value; + m_dateIsSet = true; } bool PublicCommentBase::dateIsSet() const { - return m_date.has_value(); + return m_dateIsSet; } void PublicCommentBase::unsetdate() { - m_date.reset(); + m_dateIsSet = false; } int32_t PublicCommentBase::getVotes() const { - return m_Votes.get(); + return m_Votes; } void PublicCommentBase::setVotes(int32_t value) { m_Votes = value; + m_VotesIsSet = true; } bool PublicCommentBase::votesIsSet() const { - return m_Votes.has_value(); + return m_VotesIsSet; } void PublicCommentBase::unsetVotes() { - m_Votes.reset(); + m_VotesIsSet = false; } int32_t PublicCommentBase::getVotesUp() const { - return m_VotesUp.get(); + return m_VotesUp; } void PublicCommentBase::setVotesUp(int32_t value) { m_VotesUp = value; + m_VotesUpIsSet = true; } bool PublicCommentBase::votesUpIsSet() const { - return m_VotesUp.has_value(); + return m_VotesUpIsSet; } void PublicCommentBase::unsetVotesUp() { - m_VotesUp.reset(); + m_VotesUpIsSet = false; } int32_t PublicCommentBase::getVotesDown() const { - return m_VotesDown.get(); + return m_VotesDown; } void PublicCommentBase::setVotesDown(int32_t value) { m_VotesDown = value; + m_VotesDownIsSet = true; } bool PublicCommentBase::votesDownIsSet() const { - return m_VotesDown.has_value(); + return m_VotesDownIsSet; } void PublicCommentBase::unsetVotesDown() { - m_VotesDown.reset(); + m_VotesDownIsSet = false; } bool PublicCommentBase::isVerified() const { @@ -1069,23 +1105,24 @@ void PublicCommentBase::unsetVerified() } utility::string_t PublicCommentBase::getAvatarSrc() const { - return m_AvatarSrc.get(); + return m_AvatarSrc; } void PublicCommentBase::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; + m_AvatarSrcIsSet = true; } bool PublicCommentBase::avatarSrcIsSet() const { - return m_AvatarSrc.has_value(); + return m_AvatarSrcIsSet; } void PublicCommentBase::unsetAvatarSrc() { - m_AvatarSrc.reset(); + m_AvatarSrcIsSet = false; } bool PublicCommentBase::isHasImages() const { @@ -1149,119 +1186,125 @@ void PublicCommentBase::unsetIsByModerator() } bool PublicCommentBase::isIsPinned() const { - return m_IsPinned.get(); + return m_IsPinned; } void PublicCommentBase::setIsPinned(bool value) { m_IsPinned = value; + m_IsPinnedIsSet = true; } bool PublicCommentBase::isPinnedIsSet() const { - return m_IsPinned.has_value(); + return m_IsPinnedIsSet; } void PublicCommentBase::unsetIsPinned() { - m_IsPinned.reset(); + m_IsPinnedIsSet = false; } bool PublicCommentBase::isIsLocked() const { - return m_IsLocked.get(); + return m_IsLocked; } void PublicCommentBase::setIsLocked(bool value) { m_IsLocked = value; + m_IsLockedIsSet = true; } bool PublicCommentBase::isLockedIsSet() const { - return m_IsLocked.has_value(); + return m_IsLockedIsSet; } void PublicCommentBase::unsetIsLocked() { - m_IsLocked.reset(); + m_IsLockedIsSet = false; } utility::string_t PublicCommentBase::getDisplayLabel() const { - return m_DisplayLabel.get(); + return m_DisplayLabel; } void PublicCommentBase::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; + m_DisplayLabelIsSet = true; } bool PublicCommentBase::displayLabelIsSet() const { - return m_DisplayLabel.has_value(); + return m_DisplayLabelIsSet; } void PublicCommentBase::unsetDisplayLabel() { - m_DisplayLabel.reset(); + m_DisplayLabelIsSet = false; } double PublicCommentBase::getRating() const { - return m_Rating.get(); + return m_Rating; } void PublicCommentBase::setRating(double value) { m_Rating = value; + m_RatingIsSet = true; } bool PublicCommentBase::ratingIsSet() const { - return m_Rating.has_value(); + return m_RatingIsSet; } void PublicCommentBase::unsetRating() { - m_Rating.reset(); + m_RatingIsSet = false; } std::vector> PublicCommentBase::getBadges() const { - return m_Badges.get(); + return m_Badges; } void PublicCommentBase::setBadges(const std::vector>& value) { m_Badges = value; + m_BadgesIsSet = true; } bool PublicCommentBase::badgesIsSet() const { - return m_Badges.has_value(); + return m_BadgesIsSet; } void PublicCommentBase::unsetBadges() { - m_Badges.reset(); + m_BadgesIsSet = false; } int64_t PublicCommentBase::getViewCount() const { - return m_ViewCount.get(); + return m_ViewCount; } void PublicCommentBase::setViewCount(int64_t value) { m_ViewCount = value; + m_ViewCountIsSet = true; } bool PublicCommentBase::viewCountIsSet() const { - return m_ViewCount.has_value(); + return m_ViewCountIsSet; } void PublicCommentBase::unsetViewCount() { - m_ViewCount.reset(); + m_ViewCountIsSet = false; } bool PublicCommentBase::isIsDeleted() const { @@ -1325,23 +1368,24 @@ void PublicCommentBase::unsetIsSpam() } utility::string_t PublicCommentBase::getAnonUserId() const { - return m_AnonUserId.get(); + return m_AnonUserId; } void PublicCommentBase::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; + m_AnonUserIdIsSet = true; } bool PublicCommentBase::anonUserIdIsSet() const { - return m_AnonUserId.has_value(); + return m_AnonUserIdIsSet; } void PublicCommentBase::unsetAnonUserId() { - m_AnonUserId.reset(); + m_AnonUserIdIsSet = false; } std::vector PublicCommentBase::getFeedbackIds() const { diff --git a/client/src/model/PublicFeedPostsResponse.cpp b/client/src/model/PublicFeedPostsResponse.cpp index 9ecc61b..2b3362d 100644 --- a/client/src/model/PublicFeedPostsResponse.cpp +++ b/client/src/model/PublicFeedPostsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,6 +22,7 @@ PublicFeedPostsResponse::PublicFeedPostsResponse() { m_StatusIsSet = false; m_FeedPostsIsSet = false; + m_UserIsSet = false; m_UrlIdWS = utility::conversions::to_string_t(""); m_UrlIdWSIsSet = false; m_UserIdWS = utility::conversions::to_string_t(""); @@ -44,37 +45,37 @@ web::json::value PublicFeedPostsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_FeedPostsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedPosts"))] = ModelBase::toJson(m_FeedPosts); } - if(m_User.has_value()) - { + if(m_UserIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_UrlIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); } if(m_UserIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); } if(m_TenantIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))] = ModelBase::toJson(m_TenantIdWS); } if(m_MyReactsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("myReacts"))] = ModelBase::toJson(m_MyReacts); } @@ -180,9 +181,9 @@ void PublicFeedPostsResponse::toMultipart(std::shared_ptr mul { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPosts")), m_FeedPosts)); } - if(m_User.has_value()) + if(m_UserIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); } if(m_UrlIdWSIsSet) { @@ -301,23 +302,24 @@ void PublicFeedPostsResponse::unsetFeedPosts() } std::shared_ptr PublicFeedPostsResponse::getUser() const { - return m_User.get(); + return m_User; } void PublicFeedPostsResponse::setUser(const std::shared_ptr& value) { m_User = value; + m_UserIsSet = true; } bool PublicFeedPostsResponse::userIsSet() const { - return m_User.has_value(); + return m_UserIsSet; } void PublicFeedPostsResponse::unsetUser() { - m_User.reset(); + m_UserIsSet = false; } utility::string_t PublicFeedPostsResponse::getUrlIdWS() const { diff --git a/client/src/model/PublicPage.cpp b/client/src/model/PublicPage.cpp new file mode 100644 index 0000000..20c13f9 --- /dev/null +++ b/client/src/model/PublicPage.cpp @@ -0,0 +1,318 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PublicPage.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PublicPage::PublicPage() +{ + m_UpdatedAt = 0L; + m_UpdatedAtIsSet = false; + m_CommentCount = 0; + m_CommentCountIsSet = false; + m_Title = utility::conversions::to_string_t(""); + m_TitleIsSet = false; + m_Url = utility::conversions::to_string_t(""); + m_UrlIsSet = false; + m_UrlId = utility::conversions::to_string_t(""); + m_UrlIdIsSet = false; +} + +PublicPage::~PublicPage() +{ +} + +void PublicPage::validate() +{ + // TODO: implement validation +} + +web::json::value PublicPage::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_UpdatedAtIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("updatedAt"))] = ModelBase::toJson(m_UpdatedAt); + } + if(m_CommentCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); + } + if(m_TitleIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); + } + if(m_UrlIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); + } + if(m_UrlIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); + } + + return val; +} + +bool PublicPage::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("updatedAt")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("updatedAt"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setUpdatedAt; + ok &= ModelBase::fromJson(fieldValue, refVal_setUpdatedAt); + setUpdatedAt(refVal_setUpdatedAt); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentCount"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setCommentCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentCount); + setCommentCount(refVal_setCommentCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("title")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("title"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTitle; + ok &= ModelBase::fromJson(fieldValue, refVal_setTitle); + setTitle(refVal_setTitle); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("url")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("url"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUrl; + ok &= ModelBase::fromJson(fieldValue, refVal_setUrl); + setUrl(refVal_setUrl); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUrlId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUrlId); + setUrlId(refVal_setUrlId); + + } + } + return ok; +} + +void PublicPage::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_UpdatedAtIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("updatedAt")), m_UpdatedAt)); + } + if(m_CommentCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount)); + } + if(m_TitleIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("title")), m_Title)); + } + if(m_UrlIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); + } + if(m_UrlIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlId")), m_UrlId)); + } +} + +bool PublicPage::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("updatedAt")))) + { + int64_t refVal_setUpdatedAt; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updatedAt"))), refVal_setUpdatedAt ); + setUpdatedAt(refVal_setUpdatedAt); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + int32_t refVal_setCommentCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentCount"))), refVal_setCommentCount ); + setCommentCount(refVal_setCommentCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("title")))) + { + utility::string_t refVal_setTitle; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("title"))), refVal_setTitle ); + setTitle(refVal_setTitle); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("url")))) + { + utility::string_t refVal_setUrl; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("url"))), refVal_setUrl ); + setUrl(refVal_setUrl); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlId")))) + { + utility::string_t refVal_setUrlId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlId"))), refVal_setUrlId ); + setUrlId(refVal_setUrlId); + } + return ok; +} + + +int64_t PublicPage::getUpdatedAt() const +{ + return m_UpdatedAt; +} + +void PublicPage::setUpdatedAt(int64_t value) +{ + m_UpdatedAt = value; + m_UpdatedAtIsSet = true; +} + +bool PublicPage::updatedAtIsSet() const +{ + return m_UpdatedAtIsSet; +} + +void PublicPage::unsetUpdatedAt() +{ + m_UpdatedAtIsSet = false; +} +int32_t PublicPage::getCommentCount() const +{ + return m_CommentCount; +} + +void PublicPage::setCommentCount(int32_t value) +{ + m_CommentCount = value; + m_CommentCountIsSet = true; +} + +bool PublicPage::commentCountIsSet() const +{ + return m_CommentCountIsSet; +} + +void PublicPage::unsetCommentCount() +{ + m_CommentCountIsSet = false; +} +utility::string_t PublicPage::getTitle() const +{ + return m_Title; +} + + +void PublicPage::setTitle(const utility::string_t& value) +{ + m_Title = value; + m_TitleIsSet = true; +} + +bool PublicPage::titleIsSet() const +{ + return m_TitleIsSet; +} + +void PublicPage::unsetTitle() +{ + m_TitleIsSet = false; +} +utility::string_t PublicPage::getUrl() const +{ + return m_Url; +} + + +void PublicPage::setUrl(const utility::string_t& value) +{ + m_Url = value; + m_UrlIsSet = true; +} + +bool PublicPage::urlIsSet() const +{ + return m_UrlIsSet; +} + +void PublicPage::unsetUrl() +{ + m_UrlIsSet = false; +} +utility::string_t PublicPage::getUrlId() const +{ + return m_UrlId; +} + + +void PublicPage::setUrlId(const utility::string_t& value) +{ + m_UrlId = value; + m_UrlIdIsSet = true; +} + +bool PublicPage::urlIdIsSet() const +{ + return m_UrlIdIsSet; +} + +void PublicPage::unsetUrlId() +{ + m_UrlIdIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PublicVote.cpp b/client/src/model/PublicVote.cpp index 6389cc7..b940dbe 100644 --- a/client/src/model/PublicVote.cpp +++ b/client/src/model/PublicVote.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -47,32 +47,32 @@ web::json::value PublicVote::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_CommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_DirectionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("direction"))] = ModelBase::toJson(m_Direction); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } diff --git a/client/src/model/PutDomainConfigResponse.cpp b/client/src/model/PutDomainConfigResponse.cpp new file mode 100644 index 0000000..703540b --- /dev/null +++ b/client/src/model/PutDomainConfigResponse.cpp @@ -0,0 +1,269 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PutDomainConfigResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PutDomainConfigResponse::PutDomainConfigResponse() +{ + m_ConfigurationIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; +} + +PutDomainConfigResponse::~PutDomainConfigResponse() +{ +} + +void PutDomainConfigResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PutDomainConfigResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ConfigurationIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + + return val; +} + +bool PutDomainConfigResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("configuration")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("configuration"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setConfiguration; + ok &= ModelBase::fromJson(fieldValue, refVal_setConfiguration); + setConfiguration(refVal_setConfiguration); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + return ok; +} + +void PutDomainConfigResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ConfigurationIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } +} + +bool PutDomainConfigResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("configuration")))) + { + std::shared_ptr refVal_setConfiguration; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("configuration"))), refVal_setConfiguration ); + setConfiguration(refVal_setConfiguration); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + return ok; +} + + +std::shared_ptr PutDomainConfigResponse::getConfiguration() const +{ + return m_Configuration; +} + + +void PutDomainConfigResponse::setConfiguration(const std::shared_ptr& value) +{ + m_Configuration = value; + m_ConfigurationIsSet = true; +} + +bool PutDomainConfigResponse::configurationIsSet() const +{ + return m_ConfigurationIsSet; +} + +void PutDomainConfigResponse::unsetConfiguration() +{ + m_ConfigurationIsSet = false; +} +std::shared_ptr PutDomainConfigResponse::getStatus() const +{ + return m_Status; +} + + +void PutDomainConfigResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PutDomainConfigResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PutDomainConfigResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PutDomainConfigResponse::getReason() const +{ + return m_Reason; +} + + +void PutDomainConfigResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PutDomainConfigResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PutDomainConfigResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PutDomainConfigResponse::getCode() const +{ + return m_Code; +} + + +void PutDomainConfigResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PutDomainConfigResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PutDomainConfigResponse::unsetCode() +{ + m_CodeIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PutSSOUserAPIResponse.cpp b/client/src/model/PutSSOUserAPIResponse.cpp index 4ff289d..db53426 100644 --- a/client/src/model/PutSSOUserAPIResponse.cpp +++ b/client/src/model/PutSSOUserAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,6 +24,7 @@ PutSSOUserAPIResponse::PutSSOUserAPIResponse() m_ReasonIsSet = false; m_Code = utility::conversions::to_string_t(""); m_CodeIsSet = false; + m_UserIsSet = false; m_Status = utility::conversions::to_string_t(""); m_StatusIsSet = false; } @@ -41,22 +42,22 @@ web::json::value PutSSOUserAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } - if(m_User.has_value()) - { + if(m_UserIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } @@ -129,9 +130,9 @@ void PutSSOUserAPIResponse::toMultipart(std::shared_ptr multi { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); } - if(m_User.has_value()) + if(m_UserIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); } if(m_StatusIsSet) { @@ -220,23 +221,24 @@ void PutSSOUserAPIResponse::unsetCode() } std::shared_ptr PutSSOUserAPIResponse::getUser() const { - return m_User.get(); + return m_User; } void PutSSOUserAPIResponse::setUser(const std::shared_ptr& value) { m_User = value; + m_UserIsSet = true; } bool PutSSOUserAPIResponse::userIsSet() const { - return m_User.has_value(); + return m_UserIsSet; } void PutSSOUserAPIResponse::unsetUser() { - m_User.reset(); + m_UserIsSet = false; } utility::string_t PutSSOUserAPIResponse::getStatus() const { diff --git a/client/src/model/QueryPredicate.cpp b/client/src/model/QueryPredicate.cpp index 57d70dd..75f9831 100644 --- a/client/src/model/QueryPredicate.cpp +++ b/client/src/model/QueryPredicate.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value QueryPredicate::toJson() const { web::json::value val = web::json::value::object(); if(m_KeyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("key"))] = ModelBase::toJson(m_Key); } if(m_ValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("value"))] = ModelBase::toJson(m_Value); } if(m_r_operatorIsSet) - { + { utility::string_t refVal = fromR_operatorEnum(m_r_operator); val[utility::conversions::to_string_t(_XPLATSTR("operator"))] = ModelBase::toJson(refVal); diff --git a/client/src/model/QueryPredicate_value.cpp b/client/src/model/QueryPredicate_value.cpp index 9c335cf..c1bcbd7 100644 --- a/client/src/model/QueryPredicate_value.cpp +++ b/client/src/model/QueryPredicate_value.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionConfig.cpp b/client/src/model/QuestionConfig.cpp index ee8d490..0fddc00 100644 --- a/client/src/model/QuestionConfig.cpp +++ b/client/src/model/QuestionConfig.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -75,107 +75,107 @@ web::json::value QuestionConfig::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_QuestionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("question"))] = ModelBase::toJson(m_Question); } if(m_SummaryLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("summaryLabel"))] = ModelBase::toJson(m_SummaryLabel); } if(m_HelpTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("helpText"))] = ModelBase::toJson(m_HelpText); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_CreatedByIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdBy"))] = ModelBase::toJson(m_CreatedBy); } if(m_UsedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("usedCount"))] = ModelBase::toJson(m_UsedCount); } if(m_LastUsedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastUsed"))] = ModelBase::toJson(m_LastUsed); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_NumStarsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("numStars"))] = ModelBase::toJson(m_NumStars); } if(m_MinIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("min"))] = ModelBase::toJson(m_Min); } if(m_MaxIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("max"))] = ModelBase::toJson(m_Max); } if(m_DefaultValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("defaultValue"))] = ModelBase::toJson(m_DefaultValue); } if(m_LabelNegativeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("labelNegative"))] = ModelBase::toJson(m_LabelNegative); } if(m_LabelPositiveIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("labelPositive"))] = ModelBase::toJson(m_LabelPositive); } if(m_CustomOptionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customOptions"))] = ModelBase::toJson(m_CustomOptions); } if(m_SubQuestionIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subQuestionIds"))] = ModelBase::toJson(m_SubQuestionIds); } if(m_AlwaysShowSubQuestionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("alwaysShowSubQuestions"))] = ModelBase::toJson(m_AlwaysShowSubQuestions); } if(m_ReportingOrderIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reportingOrder"))] = ModelBase::toJson(m_ReportingOrder); } diff --git a/client/src/model/QuestionConfig_customOptions_inner.cpp b/client/src/model/QuestionConfig_customOptions_inner.cpp index 74f463a..65131aa 100644 --- a/client/src/model/QuestionConfig_customOptions_inner.cpp +++ b/client/src/model/QuestionConfig_customOptions_inner.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value QuestionConfig_customOptions_inner::toJson() const { web::json::value val = web::json::value::object(); if(m_ImageSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("imageSrc"))] = ModelBase::toJson(m_ImageSrc); } if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } diff --git a/client/src/model/QuestionDatum.cpp b/client/src/model/QuestionDatum.cpp index c1548b5..fe0dc70 100644 --- a/client/src/model/QuestionDatum.cpp +++ b/client/src/model/QuestionDatum.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value QuestionDatum::toJson() const { web::json::value val = web::json::value::object(); if(m_vIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("v"))] = ModelBase::toJson(m_v); } if(m_TotalIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("total"))] = ModelBase::toJson(m_Total); } diff --git a/client/src/model/QuestionRenderingType.cpp b/client/src/model/QuestionRenderingType.cpp index 69ad5e4..e024107 100644 --- a/client/src/model/QuestionRenderingType.cpp +++ b/client/src/model/QuestionRenderingType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionResult.cpp b/client/src/model/QuestionResult.cpp index ced0b0c..7a110c0 100644 --- a/client/src/model/QuestionResult.cpp +++ b/client/src/model/QuestionResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -34,8 +34,11 @@ QuestionResult::QuestionResult() m_CreatedAtIsSet = false; m_Value = 0; m_ValueIsSet = false; + m_CommentId = utility::conversions::to_string_t(""); + m_CommentIdIsSet = false; m_QuestionId = utility::conversions::to_string_t(""); m_QuestionIdIsSet = false; + m_MetaIsSet = false; m_IpHash = utility::conversions::to_string_t(""); m_IpHashIsSet = false; } @@ -53,57 +56,57 @@ web::json::value QuestionResult::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_AnonUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_ValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("value"))] = ModelBase::toJson(m_Value); } - if(m_CommentId.has_value()) - { + if(m_CommentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId); } if(m_QuestionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionId"))] = ModelBase::toJson(m_QuestionId); } - if(m_Meta.has_value()) - { + if(m_MetaIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } if(m_IpHashIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); } @@ -273,17 +276,17 @@ void QuestionResult::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("value")), m_Value)); } - if(m_CommentId.has_value()) + if(m_CommentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentId")), m_CommentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentId")), m_CommentId)); } if(m_QuestionIdIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionId")), m_QuestionId)); } - if(m_Meta.has_value()) + if(m_MetaIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); } if(m_IpHashIsSet) { @@ -518,23 +521,24 @@ void QuestionResult::unsetValue() } utility::string_t QuestionResult::getCommentId() const { - return m_CommentId.get(); + return m_CommentId; } void QuestionResult::setCommentId(const utility::string_t& value) { m_CommentId = value; + m_CommentIdIsSet = true; } bool QuestionResult::commentIdIsSet() const { - return m_CommentId.has_value(); + return m_CommentIdIsSet; } void QuestionResult::unsetCommentId() { - m_CommentId.reset(); + m_CommentIdIsSet = false; } utility::string_t QuestionResult::getQuestionId() const { @@ -559,23 +563,24 @@ void QuestionResult::unsetQuestionId() } std::vector> QuestionResult::getMeta() const { - return m_Meta.get(); + return m_Meta; } void QuestionResult::setMeta(const std::vector>& value) { m_Meta = value; + m_MetaIsSet = true; } bool QuestionResult::metaIsSet() const { - return m_Meta.has_value(); + return m_MetaIsSet; } void QuestionResult::unsetMeta() { - m_Meta.reset(); + m_MetaIsSet = false; } utility::string_t QuestionResult::getIpHash() const { diff --git a/client/src/model/QuestionResultAggregationOverall.cpp b/client/src/model/QuestionResultAggregationOverall.cpp index dd76c51..6fa5b7d 100644 --- a/client/src/model/QuestionResultAggregationOverall.cpp +++ b/client/src/model/QuestionResultAggregationOverall.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -44,32 +44,32 @@ web::json::value QuestionResultAggregationOverall::toJson() const { web::json::value val = web::json::value::object(); if(m_DataByDateBucketIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("dataByDateBucket"))] = ModelBase::toJson(m_DataByDateBucket); } if(m_DataByUrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("dataByUrlId"))] = ModelBase::toJson(m_DataByUrlId); } if(m_CountsByValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("countsByValue"))] = ModelBase::toJson(m_CountsByValue); } if(m_TotalIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("total"))] = ModelBase::toJson(m_Total); } if(m_AverageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("average"))] = ModelBase::toJson(m_Average); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } diff --git a/client/src/model/QuestionSubQuestionVisibility.cpp b/client/src/model/QuestionSubQuestionVisibility.cpp index 9ee96e1..5cd3512 100644 --- a/client/src/model/QuestionSubQuestionVisibility.cpp +++ b/client/src/model/QuestionSubQuestionVisibility.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionWhenSave.cpp b/client/src/model/QuestionWhenSave.cpp index 2a01229..2f966e1 100644 --- a/client/src/model/QuestionWhenSave.cpp +++ b/client/src/model/QuestionWhenSave.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ReactBodyParams.cpp b/client/src/model/ReactBodyParams.cpp index 6ecf54b..a681d5e 100644 --- a/client/src/model/ReactBodyParams.cpp +++ b/client/src/model/ReactBodyParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,7 @@ web::json::value ReactBodyParams::toJson() const { web::json::value val = web::json::value::object(); if(m_ReactTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reactType"))] = ModelBase::toJson(m_ReactType); } diff --git a/client/src/model/ReactFeedPostPublic_200_response.cpp b/client/src/model/ReactFeedPostPublic_200_response.cpp deleted file mode 100644 index e0af65e..0000000 --- a/client/src/model/ReactFeedPostPublic_200_response.cpp +++ /dev/null @@ -1,560 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/ReactFeedPostPublic_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -ReactFeedPostPublic_200_response::ReactFeedPostPublic_200_response() -{ - m_StatusIsSet = false; - m_ReactType = utility::conversions::to_string_t(""); - m_ReactTypeIsSet = false; - m_IsUndo = false; - m_IsUndoIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -ReactFeedPostPublic_200_response::~ReactFeedPostPublic_200_response() -{ -} - -void ReactFeedPostPublic_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value ReactFeedPostPublic_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReactTypeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reactType"))] = ModelBase::toJson(m_ReactType); - } - if(m_IsUndoIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isUndo"))] = ModelBase::toJson(m_IsUndo); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool ReactFeedPostPublic_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reactType")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reactType"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReactType; - ok &= ModelBase::fromJson(fieldValue, refVal_setReactType); - setReactType(refVal_setReactType); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isUndo")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isUndo"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsUndo; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsUndo); - setIsUndo(refVal_setIsUndo); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void ReactFeedPostPublic_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReactTypeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reactType")), m_ReactType)); - } - if(m_IsUndoIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isUndo")), m_IsUndo)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool ReactFeedPostPublic_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reactType")))) - { - utility::string_t refVal_setReactType; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reactType"))), refVal_setReactType ); - setReactType(refVal_setReactType); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isUndo")))) - { - bool refVal_setIsUndo; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isUndo"))), refVal_setIsUndo ); - setIsUndo(refVal_setIsUndo); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr ReactFeedPostPublic_200_response::getStatus() const -{ - return m_Status; -} - - -void ReactFeedPostPublic_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool ReactFeedPostPublic_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void ReactFeedPostPublic_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t ReactFeedPostPublic_200_response::getReactType() const -{ - return m_ReactType; -} - - -void ReactFeedPostPublic_200_response::setReactType(const utility::string_t& value) -{ - m_ReactType = value; - m_ReactTypeIsSet = true; -} - -bool ReactFeedPostPublic_200_response::reactTypeIsSet() const -{ - return m_ReactTypeIsSet; -} - -void ReactFeedPostPublic_200_response::unsetReactType() -{ - m_ReactTypeIsSet = false; -} -bool ReactFeedPostPublic_200_response::isIsUndo() const -{ - return m_IsUndo; -} - -void ReactFeedPostPublic_200_response::setIsUndo(bool value) -{ - m_IsUndo = value; - m_IsUndoIsSet = true; -} - -bool ReactFeedPostPublic_200_response::isUndoIsSet() const -{ - return m_IsUndoIsSet; -} - -void ReactFeedPostPublic_200_response::unsetIsUndo() -{ - m_IsUndoIsSet = false; -} -utility::string_t ReactFeedPostPublic_200_response::getReason() const -{ - return m_Reason; -} - - -void ReactFeedPostPublic_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool ReactFeedPostPublic_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void ReactFeedPostPublic_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t ReactFeedPostPublic_200_response::getCode() const -{ - return m_Code; -} - - -void ReactFeedPostPublic_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool ReactFeedPostPublic_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void ReactFeedPostPublic_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t ReactFeedPostPublic_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void ReactFeedPostPublic_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool ReactFeedPostPublic_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void ReactFeedPostPublic_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t ReactFeedPostPublic_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void ReactFeedPostPublic_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool ReactFeedPostPublic_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void ReactFeedPostPublic_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t ReactFeedPostPublic_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void ReactFeedPostPublic_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool ReactFeedPostPublic_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void ReactFeedPostPublic_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t ReactFeedPostPublic_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void ReactFeedPostPublic_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool ReactFeedPostPublic_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void ReactFeedPostPublic_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr ReactFeedPostPublic_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void ReactFeedPostPublic_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool ReactFeedPostPublic_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void ReactFeedPostPublic_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/ReactFeedPostResponse.cpp b/client/src/model/ReactFeedPostResponse.cpp index 4905602..fc62cd1 100644 --- a/client/src/model/ReactFeedPostResponse.cpp +++ b/client/src/model/ReactFeedPostResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,17 +40,17 @@ web::json::value ReactFeedPostResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ReactTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reactType"))] = ModelBase::toJson(m_ReactType); } if(m_IsUndoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isUndo"))] = ModelBase::toJson(m_IsUndo); } diff --git a/client/src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp b/client/src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp index a30d9fe..e679434 100644 --- a/client/src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp +++ b/client/src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value Record_string__before_string_or_null__after_string_or_null___va { web::json::value val = web::json::value::object(); if(m_AfterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("after"))] = ModelBase::toJson(m_After); } if(m_BeforeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("before"))] = ModelBase::toJson(m_Before); } diff --git a/client/src/model/RemoveCommentActionResponse.cpp b/client/src/model/RemoveCommentActionResponse.cpp new file mode 100644 index 0000000..cd8255a --- /dev/null +++ b/client/src/model/RemoveCommentActionResponse.cpp @@ -0,0 +1,173 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/RemoveCommentActionResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +RemoveCommentActionResponse::RemoveCommentActionResponse() +{ + m_Status = utility::conversions::to_string_t(""); + m_StatusIsSet = false; + m_Action = utility::conversions::to_string_t(""); + m_ActionIsSet = false; +} + +RemoveCommentActionResponse::~RemoveCommentActionResponse() +{ +} + +void RemoveCommentActionResponse::validate() +{ + // TODO: implement validation +} + +web::json::value RemoveCommentActionResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ActionIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("action"))] = ModelBase::toJson(m_Action); + } + + return val; +} + +bool RemoveCommentActionResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("action")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("action"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setAction; + ok &= ModelBase::fromJson(fieldValue, refVal_setAction); + setAction(refVal_setAction); + + } + } + return ok; +} + +void RemoveCommentActionResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ActionIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("action")), m_Action)); + } +} + +bool RemoveCommentActionResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + utility::string_t refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("action")))) + { + utility::string_t refVal_setAction; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("action"))), refVal_setAction ); + setAction(refVal_setAction); + } + return ok; +} + + +utility::string_t RemoveCommentActionResponse::getStatus() const +{ + return m_Status; +} + + +void RemoveCommentActionResponse::setStatus(const utility::string_t& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool RemoveCommentActionResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void RemoveCommentActionResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t RemoveCommentActionResponse::getAction() const +{ + return m_Action; +} + + +void RemoveCommentActionResponse::setAction(const utility::string_t& value) +{ + m_Action = value; + m_ActionIsSet = true; +} + +bool RemoveCommentActionResponse::actionIsSet() const +{ + return m_ActionIsSet; +} + +void RemoveCommentActionResponse::unsetAction() +{ + m_ActionIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/RemoveUserBadgeResponse.cpp b/client/src/model/RemoveUserBadgeResponse.cpp new file mode 100644 index 0000000..b77ec59 --- /dev/null +++ b/client/src/model/RemoveUserBadgeResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/RemoveUserBadgeResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +RemoveUserBadgeResponse::RemoveUserBadgeResponse() +{ + m_BadgesIsSet = false; + m_StatusIsSet = false; +} + +RemoveUserBadgeResponse::~RemoveUserBadgeResponse() +{ +} + +void RemoveUserBadgeResponse::validate() +{ + // TODO: implement validation +} + +web::json::value RemoveUserBadgeResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_BadgesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool RemoveUserBadgeResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("badges"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromJson(fieldValue, refVal_setBadges); + setBadges(refVal_setBadges); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void RemoveUserBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_BadgesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool RemoveUserBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badges"))), refVal_setBadges ); + setBadges(refVal_setBadges); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::vector> RemoveUserBadgeResponse::getBadges() const +{ + return m_Badges; +} + + +void RemoveUserBadgeResponse::setBadges(const std::vector>& value) +{ + m_Badges = value; + m_BadgesIsSet = true; +} + +bool RemoveUserBadgeResponse::badgesIsSet() const +{ + return m_BadgesIsSet; +} + +void RemoveUserBadgeResponse::unsetBadges() +{ + m_BadgesIsSet = false; +} +std::shared_ptr RemoveUserBadgeResponse::getStatus() const +{ + return m_Status; +} + + +void RemoveUserBadgeResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool RemoveUserBadgeResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void RemoveUserBadgeResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/RenderEmailTemplateBody.cpp b/client/src/model/RenderEmailTemplateBody.cpp index 24750e9..aae90d9 100644 --- a/client/src/model/RenderEmailTemplateBody.cpp +++ b/client/src/model/RenderEmailTemplateBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,22 +41,22 @@ web::json::value RenderEmailTemplateBody::toJson() const { web::json::value val = web::json::value::object(); if(m_EmailTemplateIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplateId"))] = ModelBase::toJson(m_EmailTemplateId); } if(m_EjsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ejs"))] = ModelBase::toJson(m_Ejs); } if(m_TestDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("testData"))] = ModelBase::toJson(m_TestData); } if(m_TranslationOverridesByLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))] = ModelBase::toJson(m_TranslationOverridesByLocale); } @@ -105,7 +105,7 @@ bool RenderEmailTemplateBody::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))); if(!fieldValue.is_null()) { - std::map> refVal_setTranslationOverridesByLocale; + std::map refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromJson(fieldValue, refVal_setTranslationOverridesByLocale); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); @@ -168,7 +168,7 @@ bool RenderEmailTemplateBody::fromMultiPart(std::shared_ptr m } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale")))) { - std::map> refVal_setTranslationOverridesByLocale; + std::map refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))), refVal_setTranslationOverridesByLocale ); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); } @@ -239,13 +239,13 @@ void RenderEmailTemplateBody::unsetTestData() { m_TestDataIsSet = false; } -std::map> RenderEmailTemplateBody::getTranslationOverridesByLocale() const +std::map RenderEmailTemplateBody::getTranslationOverridesByLocale() const { return m_TranslationOverridesByLocale; } -void RenderEmailTemplateBody::setTranslationOverridesByLocale(const std::map>& value) +void RenderEmailTemplateBody::setTranslationOverridesByLocale(const std::map& value) { m_TranslationOverridesByLocale = value; m_TranslationOverridesByLocaleIsSet = true; diff --git a/client/src/model/RenderEmailTemplateResponse.cpp b/client/src/model/RenderEmailTemplateResponse.cpp index 82581c4..aa83e94 100644 --- a/client/src/model/RenderEmailTemplateResponse.cpp +++ b/client/src/model/RenderEmailTemplateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value RenderEmailTemplateResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_HtmlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("html"))] = ModelBase::toJson(m_Html); } diff --git a/client/src/model/RenderEmailTemplate_200_response.cpp b/client/src/model/RenderEmailTemplate_200_response.cpp deleted file mode 100644 index 6c44578..0000000 --- a/client/src/model/RenderEmailTemplate_200_response.cpp +++ /dev/null @@ -1,512 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/RenderEmailTemplate_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -RenderEmailTemplate_200_response::RenderEmailTemplate_200_response() -{ - m_StatusIsSet = false; - m_Html = utility::conversions::to_string_t(""); - m_HtmlIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -RenderEmailTemplate_200_response::~RenderEmailTemplate_200_response() -{ -} - -void RenderEmailTemplate_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value RenderEmailTemplate_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_HtmlIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("html"))] = ModelBase::toJson(m_Html); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool RenderEmailTemplate_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("html")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("html"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setHtml; - ok &= ModelBase::fromJson(fieldValue, refVal_setHtml); - setHtml(refVal_setHtml); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void RenderEmailTemplate_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_HtmlIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("html")), m_Html)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool RenderEmailTemplate_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("html")))) - { - utility::string_t refVal_setHtml; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("html"))), refVal_setHtml ); - setHtml(refVal_setHtml); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr RenderEmailTemplate_200_response::getStatus() const -{ - return m_Status; -} - - -void RenderEmailTemplate_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool RenderEmailTemplate_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void RenderEmailTemplate_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t RenderEmailTemplate_200_response::getHtml() const -{ - return m_Html; -} - - -void RenderEmailTemplate_200_response::setHtml(const utility::string_t& value) -{ - m_Html = value; - m_HtmlIsSet = true; -} - -bool RenderEmailTemplate_200_response::htmlIsSet() const -{ - return m_HtmlIsSet; -} - -void RenderEmailTemplate_200_response::unsetHtml() -{ - m_HtmlIsSet = false; -} -utility::string_t RenderEmailTemplate_200_response::getReason() const -{ - return m_Reason; -} - - -void RenderEmailTemplate_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool RenderEmailTemplate_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void RenderEmailTemplate_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t RenderEmailTemplate_200_response::getCode() const -{ - return m_Code; -} - - -void RenderEmailTemplate_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool RenderEmailTemplate_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void RenderEmailTemplate_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t RenderEmailTemplate_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void RenderEmailTemplate_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool RenderEmailTemplate_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void RenderEmailTemplate_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t RenderEmailTemplate_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void RenderEmailTemplate_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool RenderEmailTemplate_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void RenderEmailTemplate_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t RenderEmailTemplate_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void RenderEmailTemplate_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool RenderEmailTemplate_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void RenderEmailTemplate_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t RenderEmailTemplate_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void RenderEmailTemplate_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool RenderEmailTemplate_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void RenderEmailTemplate_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr RenderEmailTemplate_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void RenderEmailTemplate_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool RenderEmailTemplate_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void RenderEmailTemplate_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/RenderableUserNotification.cpp b/client/src/model/RenderableUserNotification.cpp index 6ba698a..95f5a3c 100644 --- a/client/src/model/RenderableUserNotification.cpp +++ b/client/src/model/RenderableUserNotification.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,6 +31,14 @@ RenderableUserNotification::RenderableUserNotification() m_CountIsSet = false; m_OptedOut = false; m_OptedOutIsSet = false; + m_FromUserAvatarSrc = utility::conversions::to_string_t(""); + m_FromUserAvatarSrcIsSet = false; + m_FromUserId = utility::conversions::to_string_t(""); + m_FromUserIdIsSet = false; + m_FromUserName = utility::conversions::to_string_t(""); + m_FromUserNameIsSet = false; + m_FromCommentId = utility::conversions::to_string_t(""); + m_FromCommentIdIsSet = false; m_TypeIsSet = false; m_CreatedAt = utility::conversions::to_string_t(""); m_CreatedAtIsSet = false; @@ -41,6 +49,8 @@ RenderableUserNotification::RenderableUserNotification() m_RelatedObjectId = utility::conversions::to_string_t(""); m_RelatedObjectIdIsSet = false; m_RelatedObjectTypeIsSet = false; + m_PageTitle = utility::conversions::to_string_t(""); + m_PageTitleIsSet = false; m_Url = utility::conversions::to_string_t(""); m_UrlIsSet = false; m_UrlId = utility::conversions::to_string_t(""); @@ -62,107 +72,107 @@ web::json::value RenderableUserNotification::toJson() const { web::json::value val = web::json::value::object(); if(m_ConversationIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("conversationId"))] = ModelBase::toJson(m_ConversationId); } if(m_ContextHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("contextHTML"))] = ModelBase::toJson(m_ContextHTML); } if(m_FromUserNamesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserNames"))] = ModelBase::toJson(m_FromUserNames); } if(m_FromUserIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserIds"))] = ModelBase::toJson(m_FromUserIds); } if(m_RelatedIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("relatedIds"))] = ModelBase::toJson(m_RelatedIds); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } if(m_OptedOutIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedOut"))] = ModelBase::toJson(m_OptedOut); } - if(m_FromUserAvatarSrc.has_value()) - { + if(m_FromUserAvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc"))] = ModelBase::toJson(m_FromUserAvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc"))] = ModelBase::toJson(m_FromUserAvatarSrc); } - if(m_FromUserId.has_value()) - { + if(m_FromUserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserId"))] = ModelBase::toJson(m_FromUserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserId"))] = ModelBase::toJson(m_FromUserId); } - if(m_FromUserName.has_value()) - { + if(m_FromUserNameIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserName"))] = ModelBase::toJson(m_FromUserName.get()); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserName"))] = ModelBase::toJson(m_FromUserName); } - if(m_FromCommentId.has_value()) - { + if(m_FromCommentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromCommentId"))] = ModelBase::toJson(m_FromCommentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("fromCommentId"))] = ModelBase::toJson(m_FromCommentId); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_SentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sent"))] = ModelBase::toJson(m_Sent); } if(m_ViewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("viewed"))] = ModelBase::toJson(m_Viewed); } if(m_RelatedObjectIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("relatedObjectId"))] = ModelBase::toJson(m_RelatedObjectId); } if(m_RelatedObjectTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("relatedObjectType"))] = ModelBase::toJson(m_RelatedObjectType); } - if(m_PageTitle.has_value()) - { + if(m_PageTitleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } @@ -442,21 +452,21 @@ void RenderableUserNotification::toMultipart(std::shared_ptr { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("optedOut")), m_OptedOut)); } - if(m_FromUserAvatarSrc.has_value()) + if(m_FromUserAvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc")), m_FromUserAvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc")), m_FromUserAvatarSrc)); } - if(m_FromUserId.has_value()) + if(m_FromUserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserId")), m_FromUserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserId")), m_FromUserId)); } - if(m_FromUserName.has_value()) + if(m_FromUserNameIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserName")), m_FromUserName.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserName")), m_FromUserName)); } - if(m_FromCommentId.has_value()) + if(m_FromCommentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromCommentId")), m_FromCommentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromCommentId")), m_FromCommentId)); } if(m_TypeIsSet) { @@ -482,9 +492,9 @@ void RenderableUserNotification::toMultipart(std::shared_ptr { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("relatedObjectType")), m_RelatedObjectType)); } - if(m_PageTitle.has_value()) + if(m_PageTitleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); } if(m_UrlIsSet) { @@ -786,83 +796,87 @@ void RenderableUserNotification::unsetOptedOut() } utility::string_t RenderableUserNotification::getFromUserAvatarSrc() const { - return m_FromUserAvatarSrc.get(); + return m_FromUserAvatarSrc; } void RenderableUserNotification::setFromUserAvatarSrc(const utility::string_t& value) { m_FromUserAvatarSrc = value; + m_FromUserAvatarSrcIsSet = true; } bool RenderableUserNotification::fromUserAvatarSrcIsSet() const { - return m_FromUserAvatarSrc.has_value(); + return m_FromUserAvatarSrcIsSet; } void RenderableUserNotification::unsetFromUserAvatarSrc() { - m_FromUserAvatarSrc.reset(); + m_FromUserAvatarSrcIsSet = false; } utility::string_t RenderableUserNotification::getFromUserId() const { - return m_FromUserId.get(); + return m_FromUserId; } void RenderableUserNotification::setFromUserId(const utility::string_t& value) { m_FromUserId = value; + m_FromUserIdIsSet = true; } bool RenderableUserNotification::fromUserIdIsSet() const { - return m_FromUserId.has_value(); + return m_FromUserIdIsSet; } void RenderableUserNotification::unsetFromUserId() { - m_FromUserId.reset(); + m_FromUserIdIsSet = false; } utility::string_t RenderableUserNotification::getFromUserName() const { - return m_FromUserName.get(); + return m_FromUserName; } void RenderableUserNotification::setFromUserName(const utility::string_t& value) { m_FromUserName = value; + m_FromUserNameIsSet = true; } bool RenderableUserNotification::fromUserNameIsSet() const { - return m_FromUserName.has_value(); + return m_FromUserNameIsSet; } void RenderableUserNotification::unsetFromUserName() { - m_FromUserName.reset(); + m_FromUserNameIsSet = false; } utility::string_t RenderableUserNotification::getFromCommentId() const { - return m_FromCommentId.get(); + return m_FromCommentId; } void RenderableUserNotification::setFromCommentId(const utility::string_t& value) { m_FromCommentId = value; + m_FromCommentIdIsSet = true; } bool RenderableUserNotification::fromCommentIdIsSet() const { - return m_FromCommentId.has_value(); + return m_FromCommentIdIsSet; } void RenderableUserNotification::unsetFromCommentId() { - m_FromCommentId.reset(); + m_FromCommentIdIsSet = false; } std::shared_ptr RenderableUserNotification::getType() const { @@ -992,23 +1006,24 @@ void RenderableUserNotification::unsetRelatedObjectType() } utility::string_t RenderableUserNotification::getPageTitle() const { - return m_PageTitle.get(); + return m_PageTitle; } void RenderableUserNotification::setPageTitle(const utility::string_t& value) { m_PageTitle = value; + m_PageTitleIsSet = true; } bool RenderableUserNotification::pageTitleIsSet() const { - return m_PageTitle.has_value(); + return m_PageTitleIsSet; } void RenderableUserNotification::unsetPageTitle() { - m_PageTitle.reset(); + m_PageTitleIsSet = false; } utility::string_t RenderableUserNotification::getUrl() const { diff --git a/client/src/model/RepeatCommentCheckIgnoredReason.cpp b/client/src/model/RepeatCommentCheckIgnoredReason.cpp index c02d666..e2ceb84 100644 --- a/client/src/model/RepeatCommentCheckIgnoredReason.cpp +++ b/client/src/model/RepeatCommentCheckIgnoredReason.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/RepeatCommentHandlingAction.cpp b/client/src/model/RepeatCommentHandlingAction.cpp index e6f42f7..c20d30d 100644 --- a/client/src/model/RepeatCommentHandlingAction.cpp +++ b/client/src/model/RepeatCommentHandlingAction.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ReplaceTenantPackageBody.cpp b/client/src/model/ReplaceTenantPackageBody.cpp index 1ca1b98..d3c4acc 100644 --- a/client/src/model/ReplaceTenantPackageBody.cpp +++ b/client/src/model/ReplaceTenantPackageBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -96,157 +96,157 @@ web::json::value ReplaceTenantPackageBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_MonthlyCostUSDIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD"))] = ModelBase::toJson(m_MonthlyCostUSD); } if(m_YearlyCostUSDIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD"))] = ModelBase::toJson(m_YearlyCostUSD); } if(m_MaxMonthlyPageLoadsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyPageLoads"))] = ModelBase::toJson(m_MaxMonthlyPageLoads); } if(m_MaxMonthlyAPICreditsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyAPICredits"))] = ModelBase::toJson(m_MaxMonthlyAPICredits); } if(m_MaxMonthlyCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyComments"))] = ModelBase::toJson(m_MaxMonthlyComments); } if(m_MaxConcurrentUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxConcurrentUsers"))] = ModelBase::toJson(m_MaxConcurrentUsers); } if(m_MaxTenantUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxTenantUsers"))] = ModelBase::toJson(m_MaxTenantUsers); } if(m_MaxSSOUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxSSOUsers"))] = ModelBase::toJson(m_MaxSSOUsers); } if(m_MaxModeratorsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxModerators"))] = ModelBase::toJson(m_MaxModerators); } if(m_MaxDomainsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxDomains"))] = ModelBase::toJson(m_MaxDomains); } if(m_MaxCustomCollectionSizeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCustomCollectionSize"))] = ModelBase::toJson(m_MaxCustomCollectionSize); } if(m_HasDebrandingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasDebranding"))] = ModelBase::toJson(m_HasDebranding); } if(m_ForWhoTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("forWhoText"))] = ModelBase::toJson(m_ForWhoText); } if(m_FeatureTaglinesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("featureTaglines"))] = ModelBase::toJson(m_FeatureTaglines); } if(m_HasFlexPricingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasFlexPricing"))] = ModelBase::toJson(m_HasFlexPricing); } if(m_FlexPageLoadCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadCostCents"))] = ModelBase::toJson(m_FlexPageLoadCostCents); } if(m_FlexPageLoadUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadUnit"))] = ModelBase::toJson(m_FlexPageLoadUnit); } if(m_FlexCommentCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentCostCents"))] = ModelBase::toJson(m_FlexCommentCostCents); } if(m_FlexCommentUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentUnit"))] = ModelBase::toJson(m_FlexCommentUnit); } if(m_FlexSSOUserCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserCostCents"))] = ModelBase::toJson(m_FlexSSOUserCostCents); } if(m_FlexSSOUserUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserUnit"))] = ModelBase::toJson(m_FlexSSOUserUnit); } if(m_FlexAPICreditCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditCostCents"))] = ModelBase::toJson(m_FlexAPICreditCostCents); } if(m_FlexAPICreditUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditUnit"))] = ModelBase::toJson(m_FlexAPICreditUnit); } if(m_FlexModeratorCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorCostCents"))] = ModelBase::toJson(m_FlexModeratorCostCents); } if(m_FlexModeratorUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorUnit"))] = ModelBase::toJson(m_FlexModeratorUnit); } if(m_FlexAdminCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminCostCents"))] = ModelBase::toJson(m_FlexAdminCostCents); } if(m_FlexAdminUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminUnit"))] = ModelBase::toJson(m_FlexAdminUnit); } if(m_FlexDomainCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainCostCents"))] = ModelBase::toJson(m_FlexDomainCostCents); } if(m_FlexDomainUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainUnit"))] = ModelBase::toJson(m_FlexDomainUnit); } if(m_FlexMinimumCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexMinimumCostCents"))] = ModelBase::toJson(m_FlexMinimumCostCents); } diff --git a/client/src/model/ReplaceTenantUserBody.cpp b/client/src/model/ReplaceTenantUserBody.cpp index bb41e18..6d2a0e0 100644 --- a/client/src/model/ReplaceTenantUserBody.cpp +++ b/client/src/model/ReplaceTenantUserBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -90,142 +90,142 @@ web::json::value ReplaceTenantUserBody::toJson() const { web::json::value val = web::json::value::object(); if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_LocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_OptedInTenantNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInTenantNotifications"))] = ModelBase::toJson(m_OptedInTenantNotifications); } if(m_HideAccountCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hideAccountCode"))] = ModelBase::toJson(m_HideAccountCode); } if(m_AvatarSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_IsHelpRequestAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isHelpRequestAdmin"))] = ModelBase::toJson(m_IsHelpRequestAdmin); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsBillingAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBillingAdmin"))] = ModelBase::toJson(m_IsBillingAdmin); } if(m_IsAnalyticsAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAnalyticsAdmin"))] = ModelBase::toJson(m_IsAnalyticsAdmin); } if(m_IsCustomizationAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCustomizationAdmin"))] = ModelBase::toJson(m_IsCustomizationAdmin); } if(m_IsManageDataAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isManageDataAdmin"))] = ModelBase::toJson(m_IsManageDataAdmin); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsAPIAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAPIAdmin"))] = ModelBase::toJson(m_IsAPIAdmin); } if(m_ModeratorIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderatorIds"))] = ModelBase::toJson(m_ModeratorIds); } if(m_DigestEmailFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("digestEmailFrequency"))] = ModelBase::toJson(m_DigestEmailFrequency); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } if(m_CreatedFromUrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId"))] = ModelBase::toJson(m_CreatedFromUrlId); } if(m_CreatedFromTenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdFromTenantId"))] = ModelBase::toJson(m_CreatedFromTenantId); } if(m_LastLoginDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastLoginDate"))] = ModelBase::toJson(m_LastLoginDate); } if(m_KarmaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("karma"))] = ModelBase::toJson(m_Karma); } diff --git a/client/src/model/ResetUserNotificationsResponse.cpp b/client/src/model/ResetUserNotificationsResponse.cpp index 6eb50ea..d321cbf 100644 --- a/client/src/model/ResetUserNotificationsResponse.cpp +++ b/client/src/model/ResetUserNotificationsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value ResetUserNotificationsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CodeIsSet) - { + { utility::string_t refVal = fromCodeEnum(m_Code); val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(refVal); diff --git a/client/src/model/ResetUserNotifications_200_response.cpp b/client/src/model/ResetUserNotifications_200_response.cpp deleted file mode 100644 index 8006c6c..0000000 --- a/client/src/model/ResetUserNotifications_200_response.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/ResetUserNotifications_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -ResetUserNotifications_200_response::ResetUserNotifications_200_response() -{ - m_StatusIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -ResetUserNotifications_200_response::~ResetUserNotifications_200_response() -{ -} - -void ResetUserNotifications_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value ResetUserNotifications_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool ResetUserNotifications_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void ResetUserNotifications_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool ResetUserNotifications_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr ResetUserNotifications_200_response::getStatus() const -{ - return m_Status; -} - - -void ResetUserNotifications_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool ResetUserNotifications_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void ResetUserNotifications_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t ResetUserNotifications_200_response::getCode() const -{ - return m_Code; -} - - -void ResetUserNotifications_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool ResetUserNotifications_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void ResetUserNotifications_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t ResetUserNotifications_200_response::getReason() const -{ - return m_Reason; -} - - -void ResetUserNotifications_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool ResetUserNotifications_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void ResetUserNotifications_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t ResetUserNotifications_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void ResetUserNotifications_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool ResetUserNotifications_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void ResetUserNotifications_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t ResetUserNotifications_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void ResetUserNotifications_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool ResetUserNotifications_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void ResetUserNotifications_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t ResetUserNotifications_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void ResetUserNotifications_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool ResetUserNotifications_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void ResetUserNotifications_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t ResetUserNotifications_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void ResetUserNotifications_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool ResetUserNotifications_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void ResetUserNotifications_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr ResetUserNotifications_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void ResetUserNotifications_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool ResetUserNotifications_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void ResetUserNotifications_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/SORT_DIR.cpp b/client/src/model/SORT_DIR.cpp index 901465d..765a162 100644 --- a/client/src/model/SORT_DIR.cpp +++ b/client/src/model/SORT_DIR.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SSOSecurityLevel.cpp b/client/src/model/SSOSecurityLevel.cpp index 7760e56..8d6f7e4 100644 --- a/client/src/model/SSOSecurityLevel.cpp +++ b/client/src/model/SSOSecurityLevel.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SaveCommentResponseOptimized.cpp b/client/src/model/SaveCommentResponseOptimized.cpp index 5ba5008..18c75e2 100644 --- a/client/src/model/SaveCommentResponseOptimized.cpp +++ b/client/src/model/SaveCommentResponseOptimized.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,6 +22,7 @@ SaveCommentResponseOptimized::SaveCommentResponseOptimized() { m_StatusIsSet = false; m_CommentIsSet = false; + m_UserIsSet = false; m_ModuleDataIsSet = false; } @@ -38,22 +39,22 @@ web::json::value SaveCommentResponseOptimized::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_User.has_value()) - { + if(m_UserIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_ModuleDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); } @@ -126,9 +127,9 @@ void SaveCommentResponseOptimized::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_User.has_value()) + if(m_UserIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); } if(m_ModuleDataIsSet) { @@ -217,23 +218,24 @@ void SaveCommentResponseOptimized::unsetComment() } std::shared_ptr SaveCommentResponseOptimized::getUser() const { - return m_User.get(); + return m_User; } void SaveCommentResponseOptimized::setUser(const std::shared_ptr& value) { m_User = value; + m_UserIsSet = true; } bool SaveCommentResponseOptimized::userIsSet() const { - return m_User.has_value(); + return m_UserIsSet; } void SaveCommentResponseOptimized::unsetUser() { - m_User.reset(); + m_UserIsSet = false; } std::map> SaveCommentResponseOptimized::getModuleData() const { diff --git a/client/src/model/SaveComment_200_response.cpp b/client/src/model/SaveCommentsBulkResponse.cpp similarity index 81% rename from client/src/model/SaveComment_200_response.cpp rename to client/src/model/SaveCommentsBulkResponse.cpp index f7ef56e..2984bf6 100644 --- a/client/src/model/SaveComment_200_response.cpp +++ b/client/src/model/SaveCommentsBulkResponse.cpp @@ -4,24 +4,25 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ -#include "FastCommentsClient/model/SaveComment_200_response.h" +#include "FastCommentsClient/model/SaveCommentsBulkResponse.h" namespace org { namespace openapitools { namespace client { namespace model { -SaveComment_200_response::SaveComment_200_response() +SaveCommentsBulkResponse::SaveCommentsBulkResponse() { m_StatusIsSet = false; m_CommentIsSet = false; + m_UserIsSet = false; m_ModuleDataIsSet = false; m_Reason = utility::conversions::to_string_t(""); m_ReasonIsSet = false; @@ -38,70 +39,70 @@ SaveComment_200_response::SaveComment_200_response() m_CustomConfigIsSet = false; } -SaveComment_200_response::~SaveComment_200_response() +SaveCommentsBulkResponse::~SaveCommentsBulkResponse() { } -void SaveComment_200_response::validate() +void SaveCommentsBulkResponse::validate() { // TODO: implement validation } -web::json::value SaveComment_200_response::toJson() const +web::json::value SaveCommentsBulkResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_User.has_value()) - { + if(m_UserIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_ModuleDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_SecondaryCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); } if(m_BannedUntilIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); } if(m_MaxCharacterLengthIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); } if(m_TranslatedErrorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); } if(m_CustomConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); } @@ -109,7 +110,7 @@ web::json::value SaveComment_200_response::toJson() const return val; } -bool SaveComment_200_response::fromJson(const web::json::value& val) +bool SaveCommentsBulkResponse::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) @@ -128,7 +129,7 @@ bool SaveComment_200_response::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); if(!fieldValue.is_null()) { - std::shared_ptr refVal_setComment; + std::shared_ptr refVal_setComment; ok &= ModelBase::fromJson(fieldValue, refVal_setComment); setComment(refVal_setComment); @@ -236,7 +237,7 @@ bool SaveComment_200_response::fromJson(const web::json::value& val) return ok; } -void SaveComment_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void SaveCommentsBulkResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) @@ -251,9 +252,9 @@ void SaveComment_200_response::toMultipart(std::shared_ptr mu { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_User.has_value()) + if(m_UserIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); } if(m_ModuleDataIsSet) { @@ -289,7 +290,7 @@ void SaveComment_200_response::toMultipart(std::shared_ptr mu } } -bool SaveComment_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool SaveCommentsBulkResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -306,7 +307,7 @@ bool SaveComment_200_response::fromMultiPart(std::shared_ptr } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) { - std::shared_ptr refVal_setComment; + std::shared_ptr refVal_setComment; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); setComment(refVal_setComment); } @@ -368,231 +369,232 @@ bool SaveComment_200_response::fromMultiPart(std::shared_ptr } -std::shared_ptr SaveComment_200_response::getStatus() const +std::shared_ptr SaveCommentsBulkResponse::getStatus() const { return m_Status; } -void SaveComment_200_response::setStatus(const std::shared_ptr& value) +void SaveCommentsBulkResponse::setStatus(const std::shared_ptr& value) { m_Status = value; m_StatusIsSet = true; } -bool SaveComment_200_response::statusIsSet() const +bool SaveCommentsBulkResponse::statusIsSet() const { return m_StatusIsSet; } -void SaveComment_200_response::unsetStatus() +void SaveCommentsBulkResponse::unsetStatus() { m_StatusIsSet = false; } -std::shared_ptr SaveComment_200_response::getComment() const +std::shared_ptr SaveCommentsBulkResponse::getComment() const { return m_Comment; } -void SaveComment_200_response::setComment(const std::shared_ptr& value) +void SaveCommentsBulkResponse::setComment(const std::shared_ptr& value) { m_Comment = value; m_CommentIsSet = true; } -bool SaveComment_200_response::commentIsSet() const +bool SaveCommentsBulkResponse::commentIsSet() const { return m_CommentIsSet; } -void SaveComment_200_response::unsetComment() +void SaveCommentsBulkResponse::unsetComment() { m_CommentIsSet = false; } -std::shared_ptr SaveComment_200_response::getUser() const +std::shared_ptr SaveCommentsBulkResponse::getUser() const { - return m_User.get(); + return m_User; } -void SaveComment_200_response::setUser(const std::shared_ptr& value) +void SaveCommentsBulkResponse::setUser(const std::shared_ptr& value) { m_User = value; + m_UserIsSet = true; } -bool SaveComment_200_response::userIsSet() const +bool SaveCommentsBulkResponse::userIsSet() const { - return m_User.has_value(); + return m_UserIsSet; } -void SaveComment_200_response::unsetUser() +void SaveCommentsBulkResponse::unsetUser() { - m_User.reset(); + m_UserIsSet = false; } -std::map> SaveComment_200_response::getModuleData() const +std::map> SaveCommentsBulkResponse::getModuleData() const { return m_ModuleData; } -void SaveComment_200_response::setModuleData(const std::map>& value) +void SaveCommentsBulkResponse::setModuleData(const std::map>& value) { m_ModuleData = value; m_ModuleDataIsSet = true; } -bool SaveComment_200_response::moduleDataIsSet() const +bool SaveCommentsBulkResponse::moduleDataIsSet() const { return m_ModuleDataIsSet; } -void SaveComment_200_response::unsetModuleData() +void SaveCommentsBulkResponse::unsetModuleData() { m_ModuleDataIsSet = false; } -utility::string_t SaveComment_200_response::getReason() const +utility::string_t SaveCommentsBulkResponse::getReason() const { return m_Reason; } -void SaveComment_200_response::setReason(const utility::string_t& value) +void SaveCommentsBulkResponse::setReason(const utility::string_t& value) { m_Reason = value; m_ReasonIsSet = true; } -bool SaveComment_200_response::reasonIsSet() const +bool SaveCommentsBulkResponse::reasonIsSet() const { return m_ReasonIsSet; } -void SaveComment_200_response::unsetReason() +void SaveCommentsBulkResponse::unsetReason() { m_ReasonIsSet = false; } -utility::string_t SaveComment_200_response::getCode() const +utility::string_t SaveCommentsBulkResponse::getCode() const { return m_Code; } -void SaveComment_200_response::setCode(const utility::string_t& value) +void SaveCommentsBulkResponse::setCode(const utility::string_t& value) { m_Code = value; m_CodeIsSet = true; } -bool SaveComment_200_response::codeIsSet() const +bool SaveCommentsBulkResponse::codeIsSet() const { return m_CodeIsSet; } -void SaveComment_200_response::unsetCode() +void SaveCommentsBulkResponse::unsetCode() { m_CodeIsSet = false; } -utility::string_t SaveComment_200_response::getSecondaryCode() const +utility::string_t SaveCommentsBulkResponse::getSecondaryCode() const { return m_SecondaryCode; } -void SaveComment_200_response::setSecondaryCode(const utility::string_t& value) +void SaveCommentsBulkResponse::setSecondaryCode(const utility::string_t& value) { m_SecondaryCode = value; m_SecondaryCodeIsSet = true; } -bool SaveComment_200_response::secondaryCodeIsSet() const +bool SaveCommentsBulkResponse::secondaryCodeIsSet() const { return m_SecondaryCodeIsSet; } -void SaveComment_200_response::unsetSecondaryCode() +void SaveCommentsBulkResponse::unsetSecondaryCode() { m_SecondaryCodeIsSet = false; } -int64_t SaveComment_200_response::getBannedUntil() const +int64_t SaveCommentsBulkResponse::getBannedUntil() const { return m_BannedUntil; } -void SaveComment_200_response::setBannedUntil(int64_t value) +void SaveCommentsBulkResponse::setBannedUntil(int64_t value) { m_BannedUntil = value; m_BannedUntilIsSet = true; } -bool SaveComment_200_response::bannedUntilIsSet() const +bool SaveCommentsBulkResponse::bannedUntilIsSet() const { return m_BannedUntilIsSet; } -void SaveComment_200_response::unsetBannedUntil() +void SaveCommentsBulkResponse::unsetBannedUntil() { m_BannedUntilIsSet = false; } -int32_t SaveComment_200_response::getMaxCharacterLength() const +int32_t SaveCommentsBulkResponse::getMaxCharacterLength() const { return m_MaxCharacterLength; } -void SaveComment_200_response::setMaxCharacterLength(int32_t value) +void SaveCommentsBulkResponse::setMaxCharacterLength(int32_t value) { m_MaxCharacterLength = value; m_MaxCharacterLengthIsSet = true; } -bool SaveComment_200_response::maxCharacterLengthIsSet() const +bool SaveCommentsBulkResponse::maxCharacterLengthIsSet() const { return m_MaxCharacterLengthIsSet; } -void SaveComment_200_response::unsetMaxCharacterLength() +void SaveCommentsBulkResponse::unsetMaxCharacterLength() { m_MaxCharacterLengthIsSet = false; } -utility::string_t SaveComment_200_response::getTranslatedError() const +utility::string_t SaveCommentsBulkResponse::getTranslatedError() const { return m_TranslatedError; } -void SaveComment_200_response::setTranslatedError(const utility::string_t& value) +void SaveCommentsBulkResponse::setTranslatedError(const utility::string_t& value) { m_TranslatedError = value; m_TranslatedErrorIsSet = true; } -bool SaveComment_200_response::translatedErrorIsSet() const +bool SaveCommentsBulkResponse::translatedErrorIsSet() const { return m_TranslatedErrorIsSet; } -void SaveComment_200_response::unsetTranslatedError() +void SaveCommentsBulkResponse::unsetTranslatedError() { m_TranslatedErrorIsSet = false; } -std::shared_ptr SaveComment_200_response::getCustomConfig() const +std::shared_ptr SaveCommentsBulkResponse::getCustomConfig() const { return m_CustomConfig; } -void SaveComment_200_response::setCustomConfig(const std::shared_ptr& value) +void SaveCommentsBulkResponse::setCustomConfig(const std::shared_ptr& value) { m_CustomConfig = value; m_CustomConfigIsSet = true; } -bool SaveComment_200_response::customConfigIsSet() const +bool SaveCommentsBulkResponse::customConfigIsSet() const { return m_CustomConfigIsSet; } -void SaveComment_200_response::unsetCustomConfig() +void SaveCommentsBulkResponse::unsetCustomConfig() { m_CustomConfigIsSet = false; } diff --git a/client/src/model/SaveCommentsResponseWithPresence.cpp b/client/src/model/SaveCommentsResponseWithPresence.cpp index 34eeb04..4ef8e23 100644 --- a/client/src/model/SaveCommentsResponseWithPresence.cpp +++ b/client/src/model/SaveCommentsResponseWithPresence.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,6 +22,7 @@ SaveCommentsResponseWithPresence::SaveCommentsResponseWithPresence() { m_StatusIsSet = false; m_CommentIsSet = false; + m_UserIsSet = false; m_ModuleDataIsSet = false; m_UserIdWS = utility::conversions::to_string_t(""); m_UserIdWSIsSet = false; @@ -40,27 +41,27 @@ web::json::value SaveCommentsResponseWithPresence::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_User.has_value()) - { + if(m_UserIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_ModuleDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); } if(m_UserIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); } @@ -144,9 +145,9 @@ void SaveCommentsResponseWithPresence::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_User.has_value()) + if(m_UserIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); } if(m_ModuleDataIsSet) { @@ -245,23 +246,24 @@ void SaveCommentsResponseWithPresence::unsetComment() } std::shared_ptr SaveCommentsResponseWithPresence::getUser() const { - return m_User.get(); + return m_User; } void SaveCommentsResponseWithPresence::setUser(const std::shared_ptr& value) { m_User = value; + m_UserIsSet = true; } bool SaveCommentsResponseWithPresence::userIsSet() const { - return m_User.has_value(); + return m_UserIsSet; } void SaveCommentsResponseWithPresence::unsetUser() { - m_User.reset(); + m_UserIsSet = false; } std::map> SaveCommentsResponseWithPresence::getModuleData() const { diff --git a/client/src/model/SearchUsersResponse.cpp b/client/src/model/SearchUsersResponse.cpp index ec8d7ed..52fd33c 100644 --- a/client/src/model/SearchUsersResponse.cpp +++ b/client/src/model/SearchUsersResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value SearchUsersResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); } diff --git a/client/src/model/SearchUsersResult.cpp b/client/src/model/SearchUsersResult.cpp new file mode 100644 index 0000000..18b2919 --- /dev/null +++ b/client/src/model/SearchUsersResult.cpp @@ -0,0 +1,219 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/SearchUsersResult.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +SearchUsersResult::SearchUsersResult() +{ + m_StatusIsSet = false; + m_SectionsIsSet = false; + m_UsersIsSet = false; +} + +SearchUsersResult::~SearchUsersResult() +{ +} + +void SearchUsersResult::validate() +{ + // TODO: implement validation +} + +web::json::value SearchUsersResult::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_SectionsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("sections"))] = ModelBase::toJson(m_Sections); + } + if(m_UsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); + } + + return val; +} + +bool SearchUsersResult::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("sections")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("sections"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setSections; + ok &= ModelBase::fromJson(fieldValue, refVal_setSections); + setSections(refVal_setSections); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); + setUsers(refVal_setUsers); + + } + } + return ok; +} + +void SearchUsersResult::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_SectionsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sections")), m_Sections)); + } + if(m_UsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); + } +} + +bool SearchUsersResult::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("sections")))) + { + std::vector> refVal_setSections; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("sections"))), refVal_setSections ); + setSections(refVal_setSections); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); + setUsers(refVal_setUsers); + } + return ok; +} + + +std::shared_ptr SearchUsersResult::getStatus() const +{ + return m_Status; +} + + +void SearchUsersResult::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool SearchUsersResult::statusIsSet() const +{ + return m_StatusIsSet; +} + +void SearchUsersResult::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> SearchUsersResult::getSections() const +{ + return m_Sections; +} + + +void SearchUsersResult::setSections(const std::vector>& value) +{ + m_Sections = value; + m_SectionsIsSet = true; +} + +bool SearchUsersResult::sectionsIsSet() const +{ + return m_SectionsIsSet; +} + +void SearchUsersResult::unsetSections() +{ + m_SectionsIsSet = false; +} +std::vector> SearchUsersResult::getUsers() const +{ + return m_Users; +} + + +void SearchUsersResult::setUsers(const std::vector>& value) +{ + m_Users = value; + m_UsersIsSet = true; +} + +bool SearchUsersResult::usersIsSet() const +{ + return m_UsersIsSet; +} + +void SearchUsersResult::unsetUsers() +{ + m_UsersIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/SearchUsersSectionedResponse.cpp b/client/src/model/SearchUsersSectionedResponse.cpp index a8256c3..dfff5b1 100644 --- a/client/src/model/SearchUsersSectionedResponse.cpp +++ b/client/src/model/SearchUsersSectionedResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value SearchUsersSectionedResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_SectionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sections"))] = ModelBase::toJson(m_Sections); } diff --git a/client/src/model/SearchUsers_200_response.cpp b/client/src/model/SearchUsers_200_response.cpp deleted file mode 100644 index 9fcce8f..0000000 --- a/client/src/model/SearchUsers_200_response.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/SearchUsers_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -SearchUsers_200_response::SearchUsers_200_response() -{ - m_StatusIsSet = false; - m_SectionsIsSet = false; - m_UsersIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -SearchUsers_200_response::~SearchUsers_200_response() -{ -} - -void SearchUsers_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value SearchUsers_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_SectionsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("sections"))] = ModelBase::toJson(m_Sections); - } - if(m_UsersIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool SearchUsers_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("sections")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("sections"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setSections; - ok &= ModelBase::fromJson(fieldValue, refVal_setSections); - setSections(refVal_setSections); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); - setUsers(refVal_setUsers); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void SearchUsers_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_SectionsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sections")), m_Sections)); - } - if(m_UsersIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool SearchUsers_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("sections")))) - { - std::vector> refVal_setSections; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("sections"))), refVal_setSections ); - setSections(refVal_setSections); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); - setUsers(refVal_setUsers); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr SearchUsers_200_response::getStatus() const -{ - return m_Status; -} - - -void SearchUsers_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool SearchUsers_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void SearchUsers_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> SearchUsers_200_response::getSections() const -{ - return m_Sections; -} - - -void SearchUsers_200_response::setSections(const std::vector>& value) -{ - m_Sections = value; - m_SectionsIsSet = true; -} - -bool SearchUsers_200_response::sectionsIsSet() const -{ - return m_SectionsIsSet; -} - -void SearchUsers_200_response::unsetSections() -{ - m_SectionsIsSet = false; -} -std::vector> SearchUsers_200_response::getUsers() const -{ - return m_Users; -} - - -void SearchUsers_200_response::setUsers(const std::vector>& value) -{ - m_Users = value; - m_UsersIsSet = true; -} - -bool SearchUsers_200_response::usersIsSet() const -{ - return m_UsersIsSet; -} - -void SearchUsers_200_response::unsetUsers() -{ - m_UsersIsSet = false; -} -utility::string_t SearchUsers_200_response::getReason() const -{ - return m_Reason; -} - - -void SearchUsers_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool SearchUsers_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void SearchUsers_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t SearchUsers_200_response::getCode() const -{ - return m_Code; -} - - -void SearchUsers_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool SearchUsers_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void SearchUsers_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t SearchUsers_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void SearchUsers_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool SearchUsers_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void SearchUsers_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t SearchUsers_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void SearchUsers_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool SearchUsers_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void SearchUsers_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t SearchUsers_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void SearchUsers_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool SearchUsers_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void SearchUsers_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t SearchUsers_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void SearchUsers_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool SearchUsers_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void SearchUsers_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr SearchUsers_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void SearchUsers_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool SearchUsers_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void SearchUsers_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/SetCommentApprovedResponse.cpp b/client/src/model/SetCommentApprovedResponse.cpp new file mode 100644 index 0000000..2e010a4 --- /dev/null +++ b/client/src/model/SetCommentApprovedResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/SetCommentApprovedResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +SetCommentApprovedResponse::SetCommentApprovedResponse() +{ + m_DidResetFlaggedCount = false; + m_DidResetFlaggedCountIsSet = false; + m_StatusIsSet = false; +} + +SetCommentApprovedResponse::~SetCommentApprovedResponse() +{ +} + +void SetCommentApprovedResponse::validate() +{ + // TODO: implement validation +} + +web::json::value SetCommentApprovedResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_DidResetFlaggedCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount"))] = ModelBase::toJson(m_DidResetFlaggedCount); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool SetCommentApprovedResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount"))); + if(!fieldValue.is_null()) + { + bool refVal_setDidResetFlaggedCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setDidResetFlaggedCount); + setDidResetFlaggedCount(refVal_setDidResetFlaggedCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void SetCommentApprovedResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_DidResetFlaggedCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount")), m_DidResetFlaggedCount)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool SetCommentApprovedResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount")))) + { + bool refVal_setDidResetFlaggedCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount"))), refVal_setDidResetFlaggedCount ); + setDidResetFlaggedCount(refVal_setDidResetFlaggedCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +bool SetCommentApprovedResponse::isDidResetFlaggedCount() const +{ + return m_DidResetFlaggedCount; +} + +void SetCommentApprovedResponse::setDidResetFlaggedCount(bool value) +{ + m_DidResetFlaggedCount = value; + m_DidResetFlaggedCountIsSet = true; +} + +bool SetCommentApprovedResponse::didResetFlaggedCountIsSet() const +{ + return m_DidResetFlaggedCountIsSet; +} + +void SetCommentApprovedResponse::unsetDidResetFlaggedCount() +{ + m_DidResetFlaggedCountIsSet = false; +} +std::shared_ptr SetCommentApprovedResponse::getStatus() const +{ + return m_Status; +} + + +void SetCommentApprovedResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool SetCommentApprovedResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void SetCommentApprovedResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/SetCommentTextParams.cpp b/client/src/model/SetCommentTextParams.cpp new file mode 100644 index 0000000..4d487e3 --- /dev/null +++ b/client/src/model/SetCommentTextParams.cpp @@ -0,0 +1,124 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/SetCommentTextParams.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +SetCommentTextParams::SetCommentTextParams() +{ + m_Comment = utility::conversions::to_string_t(""); + m_CommentIsSet = false; +} + +SetCommentTextParams::~SetCommentTextParams() +{ +} + +void SetCommentTextParams::validate() +{ + // TODO: implement validation +} + +web::json::value SetCommentTextParams::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); + } + + return val; +} + +bool SetCommentTextParams::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setComment; + ok &= ModelBase::fromJson(fieldValue, refVal_setComment); + setComment(refVal_setComment); + + } + } + return ok; +} + +void SetCommentTextParams::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); + } +} + +bool SetCommentTextParams::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + utility::string_t refVal_setComment; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); + setComment(refVal_setComment); + } + return ok; +} + + +utility::string_t SetCommentTextParams::getComment() const +{ + return m_Comment; +} + + +void SetCommentTextParams::setComment(const utility::string_t& value) +{ + m_Comment = value; + m_CommentIsSet = true; +} + +bool SetCommentTextParams::commentIsSet() const +{ + return m_CommentIsSet; +} + +void SetCommentTextParams::unsetComment() +{ + m_CommentIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/SetCommentTextResponse.cpp b/client/src/model/SetCommentTextResponse.cpp new file mode 100644 index 0000000..7c6dcd2 --- /dev/null +++ b/client/src/model/SetCommentTextResponse.cpp @@ -0,0 +1,172 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/SetCommentTextResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +SetCommentTextResponse::SetCommentTextResponse() +{ + m_NewCommentTextHTML = utility::conversions::to_string_t(""); + m_NewCommentTextHTMLIsSet = false; + m_StatusIsSet = false; +} + +SetCommentTextResponse::~SetCommentTextResponse() +{ +} + +void SetCommentTextResponse::validate() +{ + // TODO: implement validation +} + +web::json::value SetCommentTextResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_NewCommentTextHTMLIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML"))] = ModelBase::toJson(m_NewCommentTextHTML); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool SetCommentTextResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNewCommentTextHTML; + ok &= ModelBase::fromJson(fieldValue, refVal_setNewCommentTextHTML); + setNewCommentTextHTML(refVal_setNewCommentTextHTML); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void SetCommentTextResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_NewCommentTextHTMLIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML")), m_NewCommentTextHTML)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool SetCommentTextResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML")))) + { + utility::string_t refVal_setNewCommentTextHTML; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML"))), refVal_setNewCommentTextHTML ); + setNewCommentTextHTML(refVal_setNewCommentTextHTML); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +utility::string_t SetCommentTextResponse::getNewCommentTextHTML() const +{ + return m_NewCommentTextHTML; +} + + +void SetCommentTextResponse::setNewCommentTextHTML(const utility::string_t& value) +{ + m_NewCommentTextHTML = value; + m_NewCommentTextHTMLIsSet = true; +} + +bool SetCommentTextResponse::newCommentTextHTMLIsSet() const +{ + return m_NewCommentTextHTMLIsSet; +} + +void SetCommentTextResponse::unsetNewCommentTextHTML() +{ + m_NewCommentTextHTMLIsSet = false; +} +std::shared_ptr SetCommentTextResponse::getStatus() const +{ + return m_Status; +} + + +void SetCommentTextResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool SetCommentTextResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void SetCommentTextResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/SetCommentTextResult.cpp b/client/src/model/SetCommentTextResult.cpp index f3967cd..e3107b5 100644 --- a/client/src/model/SetCommentTextResult.cpp +++ b/client/src/model/SetCommentTextResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value SetCommentTextResult::toJson() const { web::json::value val = web::json::value::object(); if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } diff --git a/client/src/model/SetCommentText_200_response.cpp b/client/src/model/SetCommentText_200_response.cpp deleted file mode 100644 index 69d00f7..0000000 --- a/client/src/model/SetCommentText_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/SetCommentText_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -SetCommentText_200_response::SetCommentText_200_response() -{ - m_CommentIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -SetCommentText_200_response::~SetCommentText_200_response() -{ -} - -void SetCommentText_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value SetCommentText_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CommentIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool SetCommentText_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromJson(fieldValue, refVal_setComment); - setComment(refVal_setComment); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void SetCommentText_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CommentIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool SetCommentText_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); - setComment(refVal_setComment); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr SetCommentText_200_response::getComment() const -{ - return m_Comment; -} - - -void SetCommentText_200_response::setComment(const std::shared_ptr& value) -{ - m_Comment = value; - m_CommentIsSet = true; -} - -bool SetCommentText_200_response::commentIsSet() const -{ - return m_CommentIsSet; -} - -void SetCommentText_200_response::unsetComment() -{ - m_CommentIsSet = false; -} -std::shared_ptr SetCommentText_200_response::getStatus() const -{ - return m_Status; -} - - -void SetCommentText_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool SetCommentText_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void SetCommentText_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t SetCommentText_200_response::getReason() const -{ - return m_Reason; -} - - -void SetCommentText_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool SetCommentText_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void SetCommentText_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t SetCommentText_200_response::getCode() const -{ - return m_Code; -} - - -void SetCommentText_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool SetCommentText_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void SetCommentText_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t SetCommentText_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void SetCommentText_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool SetCommentText_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void SetCommentText_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t SetCommentText_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void SetCommentText_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool SetCommentText_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void SetCommentText_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t SetCommentText_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void SetCommentText_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool SetCommentText_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void SetCommentText_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t SetCommentText_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void SetCommentText_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool SetCommentText_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void SetCommentText_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr SetCommentText_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void SetCommentText_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool SetCommentText_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void SetCommentText_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/SetUserTrustFactorResponse.cpp b/client/src/model/SetUserTrustFactorResponse.cpp new file mode 100644 index 0000000..020b45b --- /dev/null +++ b/client/src/model/SetUserTrustFactorResponse.cpp @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/SetUserTrustFactorResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +SetUserTrustFactorResponse::SetUserTrustFactorResponse() +{ + m_PreviousManualTrustFactor = 0.0; + m_PreviousManualTrustFactorIsSet = false; + m_StatusIsSet = false; +} + +SetUserTrustFactorResponse::~SetUserTrustFactorResponse() +{ +} + +void SetUserTrustFactorResponse::validate() +{ + // TODO: implement validation +} + +web::json::value SetUserTrustFactorResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_PreviousManualTrustFactorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor"))] = ModelBase::toJson(m_PreviousManualTrustFactor); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool SetUserTrustFactorResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor"))); + if(!fieldValue.is_null()) + { + double refVal_setPreviousManualTrustFactor; + ok &= ModelBase::fromJson(fieldValue, refVal_setPreviousManualTrustFactor); + setPreviousManualTrustFactor(refVal_setPreviousManualTrustFactor); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void SetUserTrustFactorResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_PreviousManualTrustFactorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor")), m_PreviousManualTrustFactor)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool SetUserTrustFactorResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor")))) + { + double refVal_setPreviousManualTrustFactor; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor"))), refVal_setPreviousManualTrustFactor ); + setPreviousManualTrustFactor(refVal_setPreviousManualTrustFactor); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +double SetUserTrustFactorResponse::getPreviousManualTrustFactor() const +{ + return m_PreviousManualTrustFactor; +} + +void SetUserTrustFactorResponse::setPreviousManualTrustFactor(double value) +{ + m_PreviousManualTrustFactor = value; + m_PreviousManualTrustFactorIsSet = true; +} + +bool SetUserTrustFactorResponse::previousManualTrustFactorIsSet() const +{ + return m_PreviousManualTrustFactorIsSet; +} + +void SetUserTrustFactorResponse::unsetPreviousManualTrustFactor() +{ + m_PreviousManualTrustFactorIsSet = false; +} +std::shared_ptr SetUserTrustFactorResponse::getStatus() const +{ + return m_Status; +} + + +void SetUserTrustFactorResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool SetUserTrustFactorResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void SetUserTrustFactorResponse::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/SizePreset.cpp b/client/src/model/SizePreset.cpp index e72a9a4..ed1c183 100644 --- a/client/src/model/SizePreset.cpp +++ b/client/src/model/SizePreset.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SortDirections.cpp b/client/src/model/SortDirections.cpp index 8954be8..5cb8b16 100644 --- a/client/src/model/SortDirections.cpp +++ b/client/src/model/SortDirections.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SpamRule.cpp b/client/src/model/SpamRule.cpp index b608cb5..bf47c59 100644 --- a/client/src/model/SpamRule.cpp +++ b/client/src/model/SpamRule.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,14 +38,14 @@ web::json::value SpamRule::toJson() const { web::json::value val = web::json::value::object(); if(m_ActionsIsSet) - { + { std::vector refVal = fromActionsEnum(m_Actions); val[utility::conversions::to_string_t(_XPLATSTR("actions"))] = ModelBase::toJson(refVal); } if(m_CommentContainsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentContains"))] = ModelBase::toJson(m_CommentContains); } diff --git a/client/src/model/TOSConfig.cpp b/client/src/model/TOSConfig.cpp index 0fe1c60..2300ed6 100644 --- a/client/src/model/TOSConfig.cpp +++ b/client/src/model/TOSConfig.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,17 +40,17 @@ web::json::value TOSConfig::toJson() const { web::json::value val = web::json::value::object(); if(m_EnabledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enabled"))] = ModelBase::toJson(m_Enabled); } if(m_TextByLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("textByLocale"))] = ModelBase::toJson(m_TextByLocale); } if(m_LastUpdatedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastUpdated"))] = ModelBase::toJson(m_LastUpdated); } diff --git a/client/src/model/TenantBadge.cpp b/client/src/model/TenantBadge.cpp new file mode 100644 index 0000000..a82ce8f --- /dev/null +++ b/client/src/model/TenantBadge.cpp @@ -0,0 +1,1097 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/TenantBadge.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +TenantBadge::TenantBadge() +{ + m__id = utility::conversions::to_string_t(""); + m__idIsSet = false; + m_TenantId = utility::conversions::to_string_t(""); + m_TenantIdIsSet = false; + m_CreatedByUserId = utility::conversions::to_string_t(""); + m_CreatedByUserIdIsSet = false; + m_CreatedAt = utility::datetime(); + m_CreatedAtIsSet = false; + m_Enabled = false; + m_EnabledIsSet = false; + m_UrlId = utility::conversions::to_string_t(""); + m_UrlIdIsSet = false; + m_Type = 0.0; + m_TypeIsSet = false; + m_Threshold = 0.0; + m_ThresholdIsSet = false; + m_Uses = 0.0; + m_UsesIsSet = false; + m_Name = utility::conversions::to_string_t(""); + m_NameIsSet = false; + m_Description = utility::conversions::to_string_t(""); + m_DescriptionIsSet = false; + m_DisplayLabel = utility::conversions::to_string_t(""); + m_DisplayLabelIsSet = false; + m_DisplaySrc = utility::conversions::to_string_t(""); + m_DisplaySrcIsSet = false; + m_BackgroundColor = utility::conversions::to_string_t(""); + m_BackgroundColorIsSet = false; + m_BorderColor = utility::conversions::to_string_t(""); + m_BorderColorIsSet = false; + m_TextColor = utility::conversions::to_string_t(""); + m_TextColorIsSet = false; + m_CssClass = utility::conversions::to_string_t(""); + m_CssClassIsSet = false; + m_VeteranUserThresholdMillis = 0.0; + m_VeteranUserThresholdMillisIsSet = false; + m_IsAwaitingReprocess = false; + m_IsAwaitingReprocessIsSet = false; + m_IsAwaitingDeletion = false; + m_IsAwaitingDeletionIsSet = false; + m_ReplacesBadgeId = utility::conversions::to_string_t(""); + m_ReplacesBadgeIdIsSet = false; +} + +TenantBadge::~TenantBadge() +{ +} + +void TenantBadge::validate() +{ + // TODO: implement validation +} + +web::json::value TenantBadge::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m__idIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); + } + if(m_TenantIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); + } + if(m_CreatedByUserIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("createdByUserId"))] = ModelBase::toJson(m_CreatedByUserId); + } + if(m_CreatedAtIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); + } + if(m_EnabledIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("enabled"))] = ModelBase::toJson(m_Enabled); + } + if(m_UrlIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); + } + if(m_TypeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); + } + if(m_ThresholdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("threshold"))] = ModelBase::toJson(m_Threshold); + } + if(m_UsesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("uses"))] = ModelBase::toJson(m_Uses); + } + if(m_NameIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); + } + if(m_DescriptionIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); + } + if(m_DisplayLabelIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); + } + if(m_DisplaySrcIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("displaySrc"))] = ModelBase::toJson(m_DisplaySrc); + } + if(m_BackgroundColorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))] = ModelBase::toJson(m_BackgroundColor); + } + if(m_BorderColorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("borderColor"))] = ModelBase::toJson(m_BorderColor); + } + if(m_TextColorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("textColor"))] = ModelBase::toJson(m_TextColor); + } + if(m_CssClassIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("cssClass"))] = ModelBase::toJson(m_CssClass); + } + if(m_VeteranUserThresholdMillisIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("veteranUserThresholdMillis"))] = ModelBase::toJson(m_VeteranUserThresholdMillis); + } + if(m_IsAwaitingReprocessIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isAwaitingReprocess"))] = ModelBase::toJson(m_IsAwaitingReprocess); + } + if(m_IsAwaitingDeletionIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isAwaitingDeletion"))] = ModelBase::toJson(m_IsAwaitingDeletion); + } + if(m_ReplacesBadgeIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("replacesBadgeId"))] = ModelBase::toJson(m_ReplacesBadgeId); + } + + return val; +} + +bool TenantBadge::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("_id"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromJson(fieldValue, refVal_setId); + setId(refVal_setId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTenantId; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantId); + setTenantId(refVal_setTenantId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("createdByUserId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("createdByUserId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCreatedByUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setCreatedByUserId); + setCreatedByUserId(refVal_setCreatedByUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("createdAt")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("createdAt"))); + if(!fieldValue.is_null()) + { + utility::datetime refVal_setCreatedAt; + ok &= ModelBase::fromJson(fieldValue, refVal_setCreatedAt); + setCreatedAt(refVal_setCreatedAt); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("enabled")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("enabled"))); + if(!fieldValue.is_null()) + { + bool refVal_setEnabled; + ok &= ModelBase::fromJson(fieldValue, refVal_setEnabled); + setEnabled(refVal_setEnabled); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUrlId; + ok &= ModelBase::fromJson(fieldValue, refVal_setUrlId); + setUrlId(refVal_setUrlId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("type")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("type"))); + if(!fieldValue.is_null()) + { + double refVal_setType; + ok &= ModelBase::fromJson(fieldValue, refVal_setType); + setType(refVal_setType); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("threshold")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("threshold"))); + if(!fieldValue.is_null()) + { + double refVal_setThreshold; + ok &= ModelBase::fromJson(fieldValue, refVal_setThreshold); + setThreshold(refVal_setThreshold); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("uses")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("uses"))); + if(!fieldValue.is_null()) + { + double refVal_setUses; + ok &= ModelBase::fromJson(fieldValue, refVal_setUses); + setUses(refVal_setUses); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setName; + ok &= ModelBase::fromJson(fieldValue, refVal_setName); + setName(refVal_setName); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("description")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("description"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setDescription; + ok &= ModelBase::fromJson(fieldValue, refVal_setDescription); + setDescription(refVal_setDescription); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("displayLabel")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("displayLabel"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setDisplayLabel; + ok &= ModelBase::fromJson(fieldValue, refVal_setDisplayLabel); + setDisplayLabel(refVal_setDisplayLabel); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("displaySrc")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("displaySrc"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setDisplaySrc; + ok &= ModelBase::fromJson(fieldValue, refVal_setDisplaySrc); + setDisplaySrc(refVal_setDisplaySrc); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("backgroundColor")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBackgroundColor; + ok &= ModelBase::fromJson(fieldValue, refVal_setBackgroundColor); + setBackgroundColor(refVal_setBackgroundColor); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("borderColor")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("borderColor"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBorderColor; + ok &= ModelBase::fromJson(fieldValue, refVal_setBorderColor); + setBorderColor(refVal_setBorderColor); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("textColor")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("textColor"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTextColor; + ok &= ModelBase::fromJson(fieldValue, refVal_setTextColor); + setTextColor(refVal_setTextColor); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("cssClass")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("cssClass"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCssClass; + ok &= ModelBase::fromJson(fieldValue, refVal_setCssClass); + setCssClass(refVal_setCssClass); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("veteranUserThresholdMillis")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("veteranUserThresholdMillis"))); + if(!fieldValue.is_null()) + { + double refVal_setVeteranUserThresholdMillis; + ok &= ModelBase::fromJson(fieldValue, refVal_setVeteranUserThresholdMillis); + setVeteranUserThresholdMillis(refVal_setVeteranUserThresholdMillis); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isAwaitingReprocess")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isAwaitingReprocess"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsAwaitingReprocess; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsAwaitingReprocess); + setIsAwaitingReprocess(refVal_setIsAwaitingReprocess); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isAwaitingDeletion")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isAwaitingDeletion"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsAwaitingDeletion; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsAwaitingDeletion); + setIsAwaitingDeletion(refVal_setIsAwaitingDeletion); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("replacesBadgeId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("replacesBadgeId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReplacesBadgeId; + ok &= ModelBase::fromJson(fieldValue, refVal_setReplacesBadgeId); + setReplacesBadgeId(refVal_setReplacesBadgeId); + + } + } + return ok; +} + +void TenantBadge::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m__idIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); + } + if(m_TenantIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); + } + if(m_CreatedByUserIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdByUserId")), m_CreatedByUserId)); + } + if(m_CreatedAtIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); + } + if(m_EnabledIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("enabled")), m_Enabled)); + } + if(m_UrlIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlId")), m_UrlId)); + } + if(m_TypeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type)); + } + if(m_ThresholdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("threshold")), m_Threshold)); + } + if(m_UsesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("uses")), m_Uses)); + } + if(m_NameIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); + } + if(m_DescriptionIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("description")), m_Description)); + } + if(m_DisplayLabelIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); + } + if(m_DisplaySrcIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displaySrc")), m_DisplaySrc)); + } + if(m_BackgroundColorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("backgroundColor")), m_BackgroundColor)); + } + if(m_BorderColorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("borderColor")), m_BorderColor)); + } + if(m_TextColorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textColor")), m_TextColor)); + } + if(m_CssClassIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("cssClass")), m_CssClass)); + } + if(m_VeteranUserThresholdMillisIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("veteranUserThresholdMillis")), m_VeteranUserThresholdMillis)); + } + if(m_IsAwaitingReprocessIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isAwaitingReprocess")), m_IsAwaitingReprocess)); + } + if(m_IsAwaitingDeletionIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isAwaitingDeletion")), m_IsAwaitingDeletion)); + } + if(m_ReplacesBadgeIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("replacesBadgeId")), m_ReplacesBadgeId)); + } +} + +bool TenantBadge::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("_id")))) + { + utility::string_t refVal_setId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("_id"))), refVal_setId ); + setId(refVal_setId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantId")))) + { + utility::string_t refVal_setTenantId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantId"))), refVal_setTenantId ); + setTenantId(refVal_setTenantId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("createdByUserId")))) + { + utility::string_t refVal_setCreatedByUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("createdByUserId"))), refVal_setCreatedByUserId ); + setCreatedByUserId(refVal_setCreatedByUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("createdAt")))) + { + utility::datetime refVal_setCreatedAt; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("createdAt"))), refVal_setCreatedAt ); + setCreatedAt(refVal_setCreatedAt); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("enabled")))) + { + bool refVal_setEnabled; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("enabled"))), refVal_setEnabled ); + setEnabled(refVal_setEnabled); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlId")))) + { + utility::string_t refVal_setUrlId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlId"))), refVal_setUrlId ); + setUrlId(refVal_setUrlId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("type")))) + { + double refVal_setType; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("type"))), refVal_setType ); + setType(refVal_setType); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("threshold")))) + { + double refVal_setThreshold; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("threshold"))), refVal_setThreshold ); + setThreshold(refVal_setThreshold); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("uses")))) + { + double refVal_setUses; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("uses"))), refVal_setUses ); + setUses(refVal_setUses); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) + { + utility::string_t refVal_setName; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName ); + setName(refVal_setName); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("description")))) + { + utility::string_t refVal_setDescription; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("description"))), refVal_setDescription ); + setDescription(refVal_setDescription); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("displayLabel")))) + { + utility::string_t refVal_setDisplayLabel; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("displayLabel"))), refVal_setDisplayLabel ); + setDisplayLabel(refVal_setDisplayLabel); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("displaySrc")))) + { + utility::string_t refVal_setDisplaySrc; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("displaySrc"))), refVal_setDisplaySrc ); + setDisplaySrc(refVal_setDisplaySrc); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("backgroundColor")))) + { + utility::string_t refVal_setBackgroundColor; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))), refVal_setBackgroundColor ); + setBackgroundColor(refVal_setBackgroundColor); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("borderColor")))) + { + utility::string_t refVal_setBorderColor; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("borderColor"))), refVal_setBorderColor ); + setBorderColor(refVal_setBorderColor); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("textColor")))) + { + utility::string_t refVal_setTextColor; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("textColor"))), refVal_setTextColor ); + setTextColor(refVal_setTextColor); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("cssClass")))) + { + utility::string_t refVal_setCssClass; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("cssClass"))), refVal_setCssClass ); + setCssClass(refVal_setCssClass); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("veteranUserThresholdMillis")))) + { + double refVal_setVeteranUserThresholdMillis; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("veteranUserThresholdMillis"))), refVal_setVeteranUserThresholdMillis ); + setVeteranUserThresholdMillis(refVal_setVeteranUserThresholdMillis); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isAwaitingReprocess")))) + { + bool refVal_setIsAwaitingReprocess; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isAwaitingReprocess"))), refVal_setIsAwaitingReprocess ); + setIsAwaitingReprocess(refVal_setIsAwaitingReprocess); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isAwaitingDeletion")))) + { + bool refVal_setIsAwaitingDeletion; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isAwaitingDeletion"))), refVal_setIsAwaitingDeletion ); + setIsAwaitingDeletion(refVal_setIsAwaitingDeletion); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("replacesBadgeId")))) + { + utility::string_t refVal_setReplacesBadgeId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("replacesBadgeId"))), refVal_setReplacesBadgeId ); + setReplacesBadgeId(refVal_setReplacesBadgeId); + } + return ok; +} + + +utility::string_t TenantBadge::getId() const +{ + return m__id; +} + + +void TenantBadge::setId(const utility::string_t& value) +{ + m__id = value; + m__idIsSet = true; +} + +bool TenantBadge::idIsSet() const +{ + return m__idIsSet; +} + +void TenantBadge::unset_id() +{ + m__idIsSet = false; +} +utility::string_t TenantBadge::getTenantId() const +{ + return m_TenantId; +} + + +void TenantBadge::setTenantId(const utility::string_t& value) +{ + m_TenantId = value; + m_TenantIdIsSet = true; +} + +bool TenantBadge::tenantIdIsSet() const +{ + return m_TenantIdIsSet; +} + +void TenantBadge::unsetTenantId() +{ + m_TenantIdIsSet = false; +} +utility::string_t TenantBadge::getCreatedByUserId() const +{ + return m_CreatedByUserId; +} + + +void TenantBadge::setCreatedByUserId(const utility::string_t& value) +{ + m_CreatedByUserId = value; + m_CreatedByUserIdIsSet = true; +} + +bool TenantBadge::createdByUserIdIsSet() const +{ + return m_CreatedByUserIdIsSet; +} + +void TenantBadge::unsetCreatedByUserId() +{ + m_CreatedByUserIdIsSet = false; +} +utility::datetime TenantBadge::getCreatedAt() const +{ + return m_CreatedAt; +} + + +void TenantBadge::setCreatedAt(const utility::datetime& value) +{ + m_CreatedAt = value; + m_CreatedAtIsSet = true; +} + +bool TenantBadge::createdAtIsSet() const +{ + return m_CreatedAtIsSet; +} + +void TenantBadge::unsetCreatedAt() +{ + m_CreatedAtIsSet = false; +} +bool TenantBadge::isEnabled() const +{ + return m_Enabled; +} + +void TenantBadge::setEnabled(bool value) +{ + m_Enabled = value; + m_EnabledIsSet = true; +} + +bool TenantBadge::enabledIsSet() const +{ + return m_EnabledIsSet; +} + +void TenantBadge::unsetEnabled() +{ + m_EnabledIsSet = false; +} +utility::string_t TenantBadge::getUrlId() const +{ + return m_UrlId; +} + + +void TenantBadge::setUrlId(const utility::string_t& value) +{ + m_UrlId = value; + m_UrlIdIsSet = true; +} + +bool TenantBadge::urlIdIsSet() const +{ + return m_UrlIdIsSet; +} + +void TenantBadge::unsetUrlId() +{ + m_UrlIdIsSet = false; +} +double TenantBadge::getType() const +{ + return m_Type; +} + +void TenantBadge::setType(double value) +{ + m_Type = value; + m_TypeIsSet = true; +} + +bool TenantBadge::typeIsSet() const +{ + return m_TypeIsSet; +} + +void TenantBadge::unsetType() +{ + m_TypeIsSet = false; +} +double TenantBadge::getThreshold() const +{ + return m_Threshold; +} + +void TenantBadge::setThreshold(double value) +{ + m_Threshold = value; + m_ThresholdIsSet = true; +} + +bool TenantBadge::thresholdIsSet() const +{ + return m_ThresholdIsSet; +} + +void TenantBadge::unsetThreshold() +{ + m_ThresholdIsSet = false; +} +double TenantBadge::getUses() const +{ + return m_Uses; +} + +void TenantBadge::setUses(double value) +{ + m_Uses = value; + m_UsesIsSet = true; +} + +bool TenantBadge::usesIsSet() const +{ + return m_UsesIsSet; +} + +void TenantBadge::unsetUses() +{ + m_UsesIsSet = false; +} +utility::string_t TenantBadge::getName() const +{ + return m_Name; +} + + +void TenantBadge::setName(const utility::string_t& value) +{ + m_Name = value; + m_NameIsSet = true; +} + +bool TenantBadge::nameIsSet() const +{ + return m_NameIsSet; +} + +void TenantBadge::unsetName() +{ + m_NameIsSet = false; +} +utility::string_t TenantBadge::getDescription() const +{ + return m_Description; +} + + +void TenantBadge::setDescription(const utility::string_t& value) +{ + m_Description = value; + m_DescriptionIsSet = true; +} + +bool TenantBadge::descriptionIsSet() const +{ + return m_DescriptionIsSet; +} + +void TenantBadge::unsetDescription() +{ + m_DescriptionIsSet = false; +} +utility::string_t TenantBadge::getDisplayLabel() const +{ + return m_DisplayLabel; +} + + +void TenantBadge::setDisplayLabel(const utility::string_t& value) +{ + m_DisplayLabel = value; + m_DisplayLabelIsSet = true; +} + +bool TenantBadge::displayLabelIsSet() const +{ + return m_DisplayLabelIsSet; +} + +void TenantBadge::unsetDisplayLabel() +{ + m_DisplayLabelIsSet = false; +} +utility::string_t TenantBadge::getDisplaySrc() const +{ + return m_DisplaySrc; +} + + +void TenantBadge::setDisplaySrc(const utility::string_t& value) +{ + m_DisplaySrc = value; + m_DisplaySrcIsSet = true; +} + +bool TenantBadge::displaySrcIsSet() const +{ + return m_DisplaySrcIsSet; +} + +void TenantBadge::unsetDisplaySrc() +{ + m_DisplaySrcIsSet = false; +} +utility::string_t TenantBadge::getBackgroundColor() const +{ + return m_BackgroundColor; +} + + +void TenantBadge::setBackgroundColor(const utility::string_t& value) +{ + m_BackgroundColor = value; + m_BackgroundColorIsSet = true; +} + +bool TenantBadge::backgroundColorIsSet() const +{ + return m_BackgroundColorIsSet; +} + +void TenantBadge::unsetBackgroundColor() +{ + m_BackgroundColorIsSet = false; +} +utility::string_t TenantBadge::getBorderColor() const +{ + return m_BorderColor; +} + + +void TenantBadge::setBorderColor(const utility::string_t& value) +{ + m_BorderColor = value; + m_BorderColorIsSet = true; +} + +bool TenantBadge::borderColorIsSet() const +{ + return m_BorderColorIsSet; +} + +void TenantBadge::unsetBorderColor() +{ + m_BorderColorIsSet = false; +} +utility::string_t TenantBadge::getTextColor() const +{ + return m_TextColor; +} + + +void TenantBadge::setTextColor(const utility::string_t& value) +{ + m_TextColor = value; + m_TextColorIsSet = true; +} + +bool TenantBadge::textColorIsSet() const +{ + return m_TextColorIsSet; +} + +void TenantBadge::unsetTextColor() +{ + m_TextColorIsSet = false; +} +utility::string_t TenantBadge::getCssClass() const +{ + return m_CssClass; +} + + +void TenantBadge::setCssClass(const utility::string_t& value) +{ + m_CssClass = value; + m_CssClassIsSet = true; +} + +bool TenantBadge::cssClassIsSet() const +{ + return m_CssClassIsSet; +} + +void TenantBadge::unsetCssClass() +{ + m_CssClassIsSet = false; +} +double TenantBadge::getVeteranUserThresholdMillis() const +{ + return m_VeteranUserThresholdMillis; +} + +void TenantBadge::setVeteranUserThresholdMillis(double value) +{ + m_VeteranUserThresholdMillis = value; + m_VeteranUserThresholdMillisIsSet = true; +} + +bool TenantBadge::veteranUserThresholdMillisIsSet() const +{ + return m_VeteranUserThresholdMillisIsSet; +} + +void TenantBadge::unsetVeteranUserThresholdMillis() +{ + m_VeteranUserThresholdMillisIsSet = false; +} +bool TenantBadge::isIsAwaitingReprocess() const +{ + return m_IsAwaitingReprocess; +} + +void TenantBadge::setIsAwaitingReprocess(bool value) +{ + m_IsAwaitingReprocess = value; + m_IsAwaitingReprocessIsSet = true; +} + +bool TenantBadge::isAwaitingReprocessIsSet() const +{ + return m_IsAwaitingReprocessIsSet; +} + +void TenantBadge::unsetIsAwaitingReprocess() +{ + m_IsAwaitingReprocessIsSet = false; +} +bool TenantBadge::isIsAwaitingDeletion() const +{ + return m_IsAwaitingDeletion; +} + +void TenantBadge::setIsAwaitingDeletion(bool value) +{ + m_IsAwaitingDeletion = value; + m_IsAwaitingDeletionIsSet = true; +} + +bool TenantBadge::isAwaitingDeletionIsSet() const +{ + return m_IsAwaitingDeletionIsSet; +} + +void TenantBadge::unsetIsAwaitingDeletion() +{ + m_IsAwaitingDeletionIsSet = false; +} +utility::string_t TenantBadge::getReplacesBadgeId() const +{ + return m_ReplacesBadgeId; +} + + +void TenantBadge::setReplacesBadgeId(const utility::string_t& value) +{ + m_ReplacesBadgeId = value; + m_ReplacesBadgeIdIsSet = true; +} + +bool TenantBadge::replacesBadgeIdIsSet() const +{ + return m_ReplacesBadgeIdIsSet; +} + +void TenantBadge::unsetReplacesBadgeId() +{ + m_ReplacesBadgeIdIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/TenantHashTag.cpp b/client/src/model/TenantHashTag.cpp index 3811421..ba65811 100644 --- a/client/src/model/TenantHashTag.cpp +++ b/client/src/model/TenantHashTag.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -45,27 +45,27 @@ web::json::value TenantHashTag::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_TagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } diff --git a/client/src/model/TenantPackage.cpp b/client/src/model/TenantPackage.cpp index bdcd5bd..8a63dd9 100644 --- a/client/src/model/TenantPackage.cpp +++ b/client/src/model/TenantPackage.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -28,6 +28,16 @@ TenantPackage::TenantPackage() m_TenantIdIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; + m_TemplateId = utility::conversions::to_string_t(""); + m_TemplateIdIsSet = false; + m_MonthlyCostUSD = 0.0; + m_MonthlyCostUSDIsSet = false; + m_YearlyCostUSD = 0.0; + m_YearlyCostUSDIsSet = false; + m_MonthlyStripePlanId = utility::conversions::to_string_t(""); + m_MonthlyStripePlanIdIsSet = false; + m_YearlyStripePlanId = utility::conversions::to_string_t(""); + m_YearlyStripePlanIdIsSet = false; m_MaxMonthlyPageLoads = 0.0; m_MaxMonthlyPageLoadsIsSet = false; m_MaxMonthlyAPICredits = 0.0; @@ -105,6 +115,10 @@ TenantPackage::TenantPackage() m_FlexChatGPTCostCentsIsSet = false; m_FlexChatGPTUnit = 0.0; m_FlexChatGPTUnitIsSet = false; + m_FlexLLMCostCents = 0.0; + m_FlexLLMCostCentsIsSet = false; + m_FlexLLMUnit = 0.0; + m_FlexLLMUnitIsSet = false; m_FlexMinimumCostCents = 0.0; m_FlexMinimumCostCentsIsSet = false; m_FlexManagedTenantCostCents = 0.0; @@ -119,6 +133,14 @@ TenantPackage::TenantPackage() m_FlexSSOModeratorUnitIsSet = false; m_IsSSOBillingMonthlyActiveUsers = false; m_IsSSOBillingMonthlyActiveUsersIsSet = false; + m_HasAIAgents = false; + m_HasAIAgentsIsSet = false; + m_MaxAIAgents = 0.0; + m_MaxAIAgentsIsSet = false; + m_AiAgentDailyBudgetCents = 0.0; + m_AiAgentDailyBudgetCentsIsSet = false; + m_AiAgentMonthlyBudgetCents = 0.0; + m_AiAgentMonthlyBudgetCentsIsSet = false; } TenantPackage::~TenantPackage() @@ -134,275 +156,310 @@ web::json::value TenantPackage::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } - if(m_MonthlyCostUSD.has_value()) - { + if(m_TemplateIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD"))] = ModelBase::toJson(m_MonthlyCostUSD.get()); + val[utility::conversions::to_string_t(_XPLATSTR("templateId"))] = ModelBase::toJson(m_TemplateId); } - if(m_YearlyCostUSD.has_value()) - { + if(m_MonthlyCostUSDIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD"))] = ModelBase::toJson(m_YearlyCostUSD.get()); + val[utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD"))] = ModelBase::toJson(m_MonthlyCostUSD); } - if(m_MonthlyStripePlanId.has_value()) - { + if(m_YearlyCostUSDIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId"))] = ModelBase::toJson(m_MonthlyStripePlanId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD"))] = ModelBase::toJson(m_YearlyCostUSD); } - if(m_YearlyStripePlanId.has_value()) - { + if(m_MonthlyStripePlanIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId"))] = ModelBase::toJson(m_MonthlyStripePlanId); + } + if(m_YearlyStripePlanIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId"))] = ModelBase::toJson(m_YearlyStripePlanId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId"))] = ModelBase::toJson(m_YearlyStripePlanId); } if(m_MaxMonthlyPageLoadsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyPageLoads"))] = ModelBase::toJson(m_MaxMonthlyPageLoads); } if(m_MaxMonthlyAPICreditsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyAPICredits"))] = ModelBase::toJson(m_MaxMonthlyAPICredits); } if(m_MaxMonthlySmallWidgetsCreditsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlySmallWidgetsCredits"))] = ModelBase::toJson(m_MaxMonthlySmallWidgetsCredits); } if(m_MaxMonthlyCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyComments"))] = ModelBase::toJson(m_MaxMonthlyComments); } if(m_MaxConcurrentUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxConcurrentUsers"))] = ModelBase::toJson(m_MaxConcurrentUsers); } if(m_MaxTenantUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxTenantUsers"))] = ModelBase::toJson(m_MaxTenantUsers); } if(m_MaxSSOUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxSSOUsers"))] = ModelBase::toJson(m_MaxSSOUsers); } if(m_MaxModeratorsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxModerators"))] = ModelBase::toJson(m_MaxModerators); } if(m_MaxDomainsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxDomains"))] = ModelBase::toJson(m_MaxDomains); } if(m_MaxWhiteLabeledTenantsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxWhiteLabeledTenants"))] = ModelBase::toJson(m_MaxWhiteLabeledTenants); } if(m_MaxMonthlyEventLogRequestsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyEventLogRequests"))] = ModelBase::toJson(m_MaxMonthlyEventLogRequests); } if(m_MaxCustomCollectionSizeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCustomCollectionSize"))] = ModelBase::toJson(m_MaxCustomCollectionSize); } if(m_HasWhiteLabelingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasWhiteLabeling"))] = ModelBase::toJson(m_HasWhiteLabeling); } if(m_HasDebrandingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasDebranding"))] = ModelBase::toJson(m_HasDebranding); } if(m_HasLLMSpamDetectionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLLMSpamDetection"))] = ModelBase::toJson(m_HasLLMSpamDetection); } if(m_ForWhoTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("forWhoText"))] = ModelBase::toJson(m_ForWhoText); } if(m_FeatureTaglinesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("featureTaglines"))] = ModelBase::toJson(m_FeatureTaglines); } if(m_HasAuditingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasAuditing"))] = ModelBase::toJson(m_HasAuditing); } if(m_HasFlexPricingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasFlexPricing"))] = ModelBase::toJson(m_HasFlexPricing); } if(m_EnableSAMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSAML"))] = ModelBase::toJson(m_EnableSAML); } if(m_EnableCanvasLTIIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableCanvasLTI"))] = ModelBase::toJson(m_EnableCanvasLTI); } if(m_FlexPageLoadCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadCostCents"))] = ModelBase::toJson(m_FlexPageLoadCostCents); } if(m_FlexPageLoadUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadUnit"))] = ModelBase::toJson(m_FlexPageLoadUnit); } if(m_FlexCommentCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentCostCents"))] = ModelBase::toJson(m_FlexCommentCostCents); } if(m_FlexCommentUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentUnit"))] = ModelBase::toJson(m_FlexCommentUnit); } if(m_FlexSSOUserCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserCostCents"))] = ModelBase::toJson(m_FlexSSOUserCostCents); } if(m_FlexSSOUserUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserUnit"))] = ModelBase::toJson(m_FlexSSOUserUnit); } if(m_FlexAPICreditCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditCostCents"))] = ModelBase::toJson(m_FlexAPICreditCostCents); } if(m_FlexAPICreditUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditUnit"))] = ModelBase::toJson(m_FlexAPICreditUnit); } if(m_FlexSmallWidgetsCreditCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSmallWidgetsCreditCostCents"))] = ModelBase::toJson(m_FlexSmallWidgetsCreditCostCents); } if(m_FlexSmallWidgetsCreditUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSmallWidgetsCreditUnit"))] = ModelBase::toJson(m_FlexSmallWidgetsCreditUnit); } if(m_FlexModeratorCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorCostCents"))] = ModelBase::toJson(m_FlexModeratorCostCents); } if(m_FlexModeratorUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorUnit"))] = ModelBase::toJson(m_FlexModeratorUnit); } if(m_FlexAdminCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminCostCents"))] = ModelBase::toJson(m_FlexAdminCostCents); } if(m_FlexAdminUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminUnit"))] = ModelBase::toJson(m_FlexAdminUnit); } if(m_FlexDomainCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainCostCents"))] = ModelBase::toJson(m_FlexDomainCostCents); } if(m_FlexDomainUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainUnit"))] = ModelBase::toJson(m_FlexDomainUnit); } if(m_FlexChatGPTCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexChatGPTCostCents"))] = ModelBase::toJson(m_FlexChatGPTCostCents); } if(m_FlexChatGPTUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexChatGPTUnit"))] = ModelBase::toJson(m_FlexChatGPTUnit); } + if(m_FlexLLMCostCentsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents"))] = ModelBase::toJson(m_FlexLLMCostCents); + } + if(m_FlexLLMUnitIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit"))] = ModelBase::toJson(m_FlexLLMUnit); + } if(m_FlexMinimumCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexMinimumCostCents"))] = ModelBase::toJson(m_FlexMinimumCostCents); } if(m_FlexManagedTenantCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexManagedTenantCostCents"))] = ModelBase::toJson(m_FlexManagedTenantCostCents); } if(m_FlexSSOAdminCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOAdminCostCents"))] = ModelBase::toJson(m_FlexSSOAdminCostCents); } if(m_FlexSSOAdminUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOAdminUnit"))] = ModelBase::toJson(m_FlexSSOAdminUnit); } if(m_FlexSSOModeratorCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOModeratorCostCents"))] = ModelBase::toJson(m_FlexSSOModeratorCostCents); } if(m_FlexSSOModeratorUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOModeratorUnit"))] = ModelBase::toJson(m_FlexSSOModeratorUnit); } if(m_IsSSOBillingMonthlyActiveUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSSOBillingMonthlyActiveUsers"))] = ModelBase::toJson(m_IsSSOBillingMonthlyActiveUsers); } + if(m_HasAIAgentsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hasAIAgents"))] = ModelBase::toJson(m_HasAIAgents); + } + if(m_MaxAIAgentsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxAIAgents"))] = ModelBase::toJson(m_MaxAIAgents); + } + if(m_AiAgentDailyBudgetCentsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("aiAgentDailyBudgetCents"))] = ModelBase::toJson(m_AiAgentDailyBudgetCents); + } + if(m_AiAgentMonthlyBudgetCentsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("aiAgentMonthlyBudgetCents"))] = ModelBase::toJson(m_AiAgentMonthlyBudgetCents); + } return val; } @@ -454,6 +511,17 @@ bool TenantPackage::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("templateId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("templateId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTemplateId; + ok &= ModelBase::fromJson(fieldValue, refVal_setTemplateId); + setTemplateId(refVal_setTemplateId); + + } + } if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD")))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD"))); @@ -927,6 +995,28 @@ bool TenantPackage::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents"))); + if(!fieldValue.is_null()) + { + double refVal_setFlexLLMCostCents; + ok &= ModelBase::fromJson(fieldValue, refVal_setFlexLLMCostCents); + setFlexLLMCostCents(refVal_setFlexLLMCostCents); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit"))); + if(!fieldValue.is_null()) + { + double refVal_setFlexLLMUnit; + ok &= ModelBase::fromJson(fieldValue, refVal_setFlexLLMUnit); + setFlexLLMUnit(refVal_setFlexLLMUnit); + + } + } if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("flexMinimumCostCents")))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("flexMinimumCostCents"))); @@ -1004,6 +1094,50 @@ bool TenantPackage::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasAIAgents")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasAIAgents"))); + if(!fieldValue.is_null()) + { + bool refVal_setHasAIAgents; + ok &= ModelBase::fromJson(fieldValue, refVal_setHasAIAgents); + setHasAIAgents(refVal_setHasAIAgents); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxAIAgents")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxAIAgents"))); + if(!fieldValue.is_null()) + { + double refVal_setMaxAIAgents; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxAIAgents); + setMaxAIAgents(refVal_setMaxAIAgents); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("aiAgentDailyBudgetCents")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("aiAgentDailyBudgetCents"))); + if(!fieldValue.is_null()) + { + double refVal_setAiAgentDailyBudgetCents; + ok &= ModelBase::fromJson(fieldValue, refVal_setAiAgentDailyBudgetCents); + setAiAgentDailyBudgetCents(refVal_setAiAgentDailyBudgetCents); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("aiAgentMonthlyBudgetCents")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("aiAgentMonthlyBudgetCents"))); + if(!fieldValue.is_null()) + { + double refVal_setAiAgentMonthlyBudgetCents; + ok &= ModelBase::fromJson(fieldValue, refVal_setAiAgentMonthlyBudgetCents); + setAiAgentMonthlyBudgetCents(refVal_setAiAgentMonthlyBudgetCents); + + } + } return ok; } @@ -1030,21 +1164,25 @@ void TenantPackage::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); } - if(m_MonthlyCostUSD.has_value()) + if(m_TemplateIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("templateId")), m_TemplateId)); + } + if(m_MonthlyCostUSDIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD")), m_MonthlyCostUSD.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD")), m_MonthlyCostUSD)); } - if(m_YearlyCostUSD.has_value()) + if(m_YearlyCostUSDIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD")), m_YearlyCostUSD.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD")), m_YearlyCostUSD)); } - if(m_MonthlyStripePlanId.has_value()) + if(m_MonthlyStripePlanIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId")), m_MonthlyStripePlanId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId")), m_MonthlyStripePlanId)); } - if(m_YearlyStripePlanId.has_value()) + if(m_YearlyStripePlanIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId")), m_YearlyStripePlanId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId")), m_YearlyStripePlanId)); } if(m_MaxMonthlyPageLoadsIsSet) { @@ -1202,6 +1340,14 @@ void TenantPackage::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flexChatGPTUnit")), m_FlexChatGPTUnit)); } + if(m_FlexLLMCostCentsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents")), m_FlexLLMCostCents)); + } + if(m_FlexLLMUnitIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit")), m_FlexLLMUnit)); + } if(m_FlexMinimumCostCentsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flexMinimumCostCents")), m_FlexMinimumCostCents)); @@ -1230,6 +1376,22 @@ void TenantPackage::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSSOBillingMonthlyActiveUsers")), m_IsSSOBillingMonthlyActiveUsers)); } + if(m_HasAIAgentsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasAIAgents")), m_HasAIAgents)); + } + if(m_MaxAIAgentsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxAIAgents")), m_MaxAIAgents)); + } + if(m_AiAgentDailyBudgetCentsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("aiAgentDailyBudgetCents")), m_AiAgentDailyBudgetCents)); + } + if(m_AiAgentMonthlyBudgetCentsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("aiAgentMonthlyBudgetCents")), m_AiAgentMonthlyBudgetCents)); + } } bool TenantPackage::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -1265,6 +1427,12 @@ bool TenantPackage::fromMultiPart(std::shared_ptr multipart, ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("createdAt"))), refVal_setCreatedAt ); setCreatedAt(refVal_setCreatedAt); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("templateId")))) + { + utility::string_t refVal_setTemplateId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("templateId"))), refVal_setTemplateId ); + setTemplateId(refVal_setTemplateId); + } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD")))) { double refVal_setMonthlyCostUSD; @@ -1523,6 +1691,18 @@ bool TenantPackage::fromMultiPart(std::shared_ptr multipart, ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("flexChatGPTUnit"))), refVal_setFlexChatGPTUnit ); setFlexChatGPTUnit(refVal_setFlexChatGPTUnit); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents")))) + { + double refVal_setFlexLLMCostCents; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents"))), refVal_setFlexLLMCostCents ); + setFlexLLMCostCents(refVal_setFlexLLMCostCents); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit")))) + { + double refVal_setFlexLLMUnit; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit"))), refVal_setFlexLLMUnit ); + setFlexLLMUnit(refVal_setFlexLLMUnit); + } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("flexMinimumCostCents")))) { double refVal_setFlexMinimumCostCents; @@ -1565,6 +1745,30 @@ bool TenantPackage::fromMultiPart(std::shared_ptr multipart, ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isSSOBillingMonthlyActiveUsers"))), refVal_setIsSSOBillingMonthlyActiveUsers ); setIsSSOBillingMonthlyActiveUsers(refVal_setIsSSOBillingMonthlyActiveUsers); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasAIAgents")))) + { + bool refVal_setHasAIAgents; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasAIAgents"))), refVal_setHasAIAgents ); + setHasAIAgents(refVal_setHasAIAgents); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxAIAgents")))) + { + double refVal_setMaxAIAgents; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxAIAgents"))), refVal_setMaxAIAgents ); + setMaxAIAgents(refVal_setMaxAIAgents); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("aiAgentDailyBudgetCents")))) + { + double refVal_setAiAgentDailyBudgetCents; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("aiAgentDailyBudgetCents"))), refVal_setAiAgentDailyBudgetCents ); + setAiAgentDailyBudgetCents(refVal_setAiAgentDailyBudgetCents); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("aiAgentMonthlyBudgetCents")))) + { + double refVal_setAiAgentMonthlyBudgetCents; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("aiAgentMonthlyBudgetCents"))), refVal_setAiAgentMonthlyBudgetCents ); + setAiAgentMonthlyBudgetCents(refVal_setAiAgentMonthlyBudgetCents); + } return ok; } @@ -1653,83 +1857,108 @@ void TenantPackage::unsetCreatedAt() { m_CreatedAtIsSet = false; } +utility::string_t TenantPackage::getTemplateId() const +{ + return m_TemplateId; +} + + +void TenantPackage::setTemplateId(const utility::string_t& value) +{ + m_TemplateId = value; + m_TemplateIdIsSet = true; +} + +bool TenantPackage::templateIdIsSet() const +{ + return m_TemplateIdIsSet; +} + +void TenantPackage::unsetTemplateId() +{ + m_TemplateIdIsSet = false; +} double TenantPackage::getMonthlyCostUSD() const { - return m_MonthlyCostUSD.get(); + return m_MonthlyCostUSD; } void TenantPackage::setMonthlyCostUSD(double value) { m_MonthlyCostUSD = value; + m_MonthlyCostUSDIsSet = true; } bool TenantPackage::monthlyCostUSDIsSet() const { - return m_MonthlyCostUSD.has_value(); + return m_MonthlyCostUSDIsSet; } void TenantPackage::unsetMonthlyCostUSD() { - m_MonthlyCostUSD.reset(); + m_MonthlyCostUSDIsSet = false; } double TenantPackage::getYearlyCostUSD() const { - return m_YearlyCostUSD.get(); + return m_YearlyCostUSD; } void TenantPackage::setYearlyCostUSD(double value) { m_YearlyCostUSD = value; + m_YearlyCostUSDIsSet = true; } bool TenantPackage::yearlyCostUSDIsSet() const { - return m_YearlyCostUSD.has_value(); + return m_YearlyCostUSDIsSet; } void TenantPackage::unsetYearlyCostUSD() { - m_YearlyCostUSD.reset(); + m_YearlyCostUSDIsSet = false; } utility::string_t TenantPackage::getMonthlyStripePlanId() const { - return m_MonthlyStripePlanId.get(); + return m_MonthlyStripePlanId; } void TenantPackage::setMonthlyStripePlanId(const utility::string_t& value) { m_MonthlyStripePlanId = value; + m_MonthlyStripePlanIdIsSet = true; } bool TenantPackage::monthlyStripePlanIdIsSet() const { - return m_MonthlyStripePlanId.has_value(); + return m_MonthlyStripePlanIdIsSet; } void TenantPackage::unsetMonthlyStripePlanId() { - m_MonthlyStripePlanId.reset(); + m_MonthlyStripePlanIdIsSet = false; } utility::string_t TenantPackage::getYearlyStripePlanId() const { - return m_YearlyStripePlanId.get(); + return m_YearlyStripePlanId; } void TenantPackage::setYearlyStripePlanId(const utility::string_t& value) { m_YearlyStripePlanId = value; + m_YearlyStripePlanIdIsSet = true; } bool TenantPackage::yearlyStripePlanIdIsSet() const { - return m_YearlyStripePlanId.has_value(); + return m_YearlyStripePlanIdIsSet; } void TenantPackage::unsetYearlyStripePlanId() { - m_YearlyStripePlanId.reset(); + m_YearlyStripePlanIdIsSet = false; } double TenantPackage::getMaxMonthlyPageLoads() const { @@ -2513,6 +2742,46 @@ void TenantPackage::unsetFlexChatGPTUnit() { m_FlexChatGPTUnitIsSet = false; } +double TenantPackage::getFlexLLMCostCents() const +{ + return m_FlexLLMCostCents; +} + +void TenantPackage::setFlexLLMCostCents(double value) +{ + m_FlexLLMCostCents = value; + m_FlexLLMCostCentsIsSet = true; +} + +bool TenantPackage::flexLLMCostCentsIsSet() const +{ + return m_FlexLLMCostCentsIsSet; +} + +void TenantPackage::unsetFlexLLMCostCents() +{ + m_FlexLLMCostCentsIsSet = false; +} +double TenantPackage::getFlexLLMUnit() const +{ + return m_FlexLLMUnit; +} + +void TenantPackage::setFlexLLMUnit(double value) +{ + m_FlexLLMUnit = value; + m_FlexLLMUnitIsSet = true; +} + +bool TenantPackage::flexLLMUnitIsSet() const +{ + return m_FlexLLMUnitIsSet; +} + +void TenantPackage::unsetFlexLLMUnit() +{ + m_FlexLLMUnitIsSet = false; +} double TenantPackage::getFlexMinimumCostCents() const { return m_FlexMinimumCostCents; @@ -2653,6 +2922,86 @@ void TenantPackage::unsetIsSSOBillingMonthlyActiveUsers() { m_IsSSOBillingMonthlyActiveUsersIsSet = false; } +bool TenantPackage::isHasAIAgents() const +{ + return m_HasAIAgents; +} + +void TenantPackage::setHasAIAgents(bool value) +{ + m_HasAIAgents = value; + m_HasAIAgentsIsSet = true; +} + +bool TenantPackage::hasAIAgentsIsSet() const +{ + return m_HasAIAgentsIsSet; +} + +void TenantPackage::unsetHasAIAgents() +{ + m_HasAIAgentsIsSet = false; +} +double TenantPackage::getMaxAIAgents() const +{ + return m_MaxAIAgents; +} + +void TenantPackage::setMaxAIAgents(double value) +{ + m_MaxAIAgents = value; + m_MaxAIAgentsIsSet = true; +} + +bool TenantPackage::maxAIAgentsIsSet() const +{ + return m_MaxAIAgentsIsSet; +} + +void TenantPackage::unsetMaxAIAgents() +{ + m_MaxAIAgentsIsSet = false; +} +double TenantPackage::getAiAgentDailyBudgetCents() const +{ + return m_AiAgentDailyBudgetCents; +} + +void TenantPackage::setAiAgentDailyBudgetCents(double value) +{ + m_AiAgentDailyBudgetCents = value; + m_AiAgentDailyBudgetCentsIsSet = true; +} + +bool TenantPackage::aiAgentDailyBudgetCentsIsSet() const +{ + return m_AiAgentDailyBudgetCentsIsSet; +} + +void TenantPackage::unsetAiAgentDailyBudgetCents() +{ + m_AiAgentDailyBudgetCentsIsSet = false; +} +double TenantPackage::getAiAgentMonthlyBudgetCents() const +{ + return m_AiAgentMonthlyBudgetCents; +} + +void TenantPackage::setAiAgentMonthlyBudgetCents(double value) +{ + m_AiAgentMonthlyBudgetCents = value; + m_AiAgentMonthlyBudgetCentsIsSet = true; +} + +bool TenantPackage::aiAgentMonthlyBudgetCentsIsSet() const +{ + return m_AiAgentMonthlyBudgetCentsIsSet; +} + +void TenantPackage::unsetAiAgentMonthlyBudgetCents() +{ + m_AiAgentMonthlyBudgetCentsIsSet = false; +} } } diff --git a/client/src/model/UnBlockCommentPublic_200_response.cpp b/client/src/model/UnBlockCommentPublic_200_response.cpp deleted file mode 100644 index 17e0057..0000000 --- a/client/src/model/UnBlockCommentPublic_200_response.cpp +++ /dev/null @@ -1,510 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UnBlockCommentPublic_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UnBlockCommentPublic_200_response::UnBlockCommentPublic_200_response() -{ - m_StatusIsSet = false; - m_CommentStatusesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UnBlockCommentPublic_200_response::~UnBlockCommentPublic_200_response() -{ -} - -void UnBlockCommentPublic_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value UnBlockCommentPublic_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentStatusesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UnBlockCommentPublic_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))); - if(!fieldValue.is_null()) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentStatuses); - setCommentStatuses(refVal_setCommentStatuses); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UnBlockCommentPublic_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentStatusesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentStatuses")), m_CommentStatuses)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UnBlockCommentPublic_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))), refVal_setCommentStatuses ); - setCommentStatuses(refVal_setCommentStatuses); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UnBlockCommentPublic_200_response::getStatus() const -{ - return m_Status; -} - - -void UnBlockCommentPublic_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UnBlockCommentPublic_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UnBlockCommentPublic_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map UnBlockCommentPublic_200_response::getCommentStatuses() const -{ - return m_CommentStatuses; -} - -void UnBlockCommentPublic_200_response::setCommentStatuses(std::map value) -{ - m_CommentStatuses = value; - m_CommentStatusesIsSet = true; -} - -bool UnBlockCommentPublic_200_response::commentStatusesIsSet() const -{ - return m_CommentStatusesIsSet; -} - -void UnBlockCommentPublic_200_response::unsetCommentStatuses() -{ - m_CommentStatusesIsSet = false; -} -utility::string_t UnBlockCommentPublic_200_response::getReason() const -{ - return m_Reason; -} - - -void UnBlockCommentPublic_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UnBlockCommentPublic_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UnBlockCommentPublic_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UnBlockCommentPublic_200_response::getCode() const -{ - return m_Code; -} - - -void UnBlockCommentPublic_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UnBlockCommentPublic_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UnBlockCommentPublic_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UnBlockCommentPublic_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UnBlockCommentPublic_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UnBlockCommentPublic_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UnBlockCommentPublic_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UnBlockCommentPublic_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UnBlockCommentPublic_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UnBlockCommentPublic_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UnBlockCommentPublic_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UnBlockCommentPublic_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UnBlockCommentPublic_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UnBlockCommentPublic_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UnBlockCommentPublic_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UnBlockCommentPublic_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UnBlockCommentPublic_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UnBlockCommentPublic_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UnBlockCommentPublic_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UnBlockCommentPublic_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UnBlockCommentPublic_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UnBlockCommentPublic_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UnBlockCommentPublic_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UnBlockFromCommentParams.cpp b/client/src/model/UnBlockFromCommentParams.cpp index e537b03..8a0e480 100644 --- a/client/src/model/UnBlockFromCommentParams.cpp +++ b/client/src/model/UnBlockFromCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value UnBlockFromCommentParams::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentIdsToCheckIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentIdsToCheck"))] = ModelBase::toJson(m_CommentIdsToCheck); } diff --git a/client/src/model/UnblockSuccess.cpp b/client/src/model/UnblockSuccess.cpp index ccac523..f820fa1 100644 --- a/client/src/model/UnblockSuccess.cpp +++ b/client/src/model/UnblockSuccess.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value UnblockSuccess::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentStatusesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); } diff --git a/client/src/model/UpdatableCommentParams.cpp b/client/src/model/UpdatableCommentParams.cpp index a9a14d9..ca2d831 100644 --- a/client/src/model/UpdatableCommentParams.cpp +++ b/client/src/model/UpdatableCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -26,14 +26,40 @@ UpdatableCommentParams::UpdatableCommentParams() m_UrlIdRawIsSet = false; m_Url = utility::conversions::to_string_t(""); m_UrlIsSet = false; + m_PageTitle = utility::conversions::to_string_t(""); + m_PageTitleIsSet = false; + m_UserId = nullptr; + m_UserIdIsSet = false; + m_CommenterEmail = utility::conversions::to_string_t(""); + m_CommenterEmailIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; + m_CommenterLink = utility::conversions::to_string_t(""); + m_CommenterLinkIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; + m_ParentId = utility::conversions::to_string_t(""); + m_ParentIdIsSet = false; + m_date = 0.0; + m_dateIsSet = false; + m_LocalDateString = utility::conversions::to_string_t(""); + m_LocalDateStringIsSet = false; + m_LocalDateHours = 0; + m_LocalDateHoursIsSet = false; + m_Votes = 0; + m_VotesIsSet = false; + m_VotesUp = 0; + m_VotesUpIsSet = false; + m_VotesDown = 0; + m_VotesDownIsSet = false; + m_ExpireAt = utility::datetime(); + m_ExpireAtIsSet = false; m_Verified = false; m_VerifiedIsSet = false; + m_VerifiedDate = utility::datetime(); + m_VerifiedDateIsSet = false; m_NotificationSentForParent = false; m_NotificationSentForParentIsSet = false; m_NotificationSentForParentTenant = false; @@ -42,6 +68,10 @@ UpdatableCommentParams::UpdatableCommentParams() m_ReviewedIsSet = false; m_ExternalId = utility::conversions::to_string_t(""); m_ExternalIdIsSet = false; + m_ExternalParentId = utility::conversions::to_string_t(""); + m_ExternalParentIdIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; m_Approved = false; @@ -54,6 +84,16 @@ UpdatableCommentParams::UpdatableCommentParams() m_IsByAdminIsSet = false; m_IsByModerator = false; m_IsByModeratorIsSet = false; + m_IsPinned = false; + m_IsPinnedIsSet = false; + m_IsLocked = false; + m_IsLockedIsSet = false; + m_FlagCount = 0; + m_FlagCountIsSet = false; + m_DisplayLabel = utility::conversions::to_string_t(""); + m_DisplayLabelIsSet = false; + m_MetaIsSet = false; + m_ModerationGroupIdsIsSet = false; m_FeedbackIdsIsSet = false; } @@ -70,197 +110,197 @@ web::json::value UpdatableCommentParams::toJson() const { web::json::value val = web::json::value::object(); if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIdRawIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdRaw"))] = ModelBase::toJson(m_UrlIdRaw); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } - if(m_PageTitle.has_value()) - { + if(m_PageTitleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } - if(m_CommenterEmail.has_value()) - { + if(m_CommenterEmailIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterLink.has_value()) - { + if(m_CommenterLinkIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } - if(m_ParentId.has_value()) - { + if(m_ParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); } - if(m_date.has_value()) - { + if(m_dateIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); } - if(m_LocalDateString.has_value()) - { + if(m_LocalDateStringIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString.get()); + val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); } - if(m_LocalDateHours.has_value()) - { + if(m_LocalDateHoursIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours.get()); + val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours); } - if(m_Votes.has_value()) - { + if(m_VotesIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); } - if(m_VotesUp.has_value()) - { + if(m_VotesUpIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); } - if(m_VotesDown.has_value()) - { + if(m_VotesDownIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); } - if(m_ExpireAt.has_value()) - { + if(m_ExpireAtIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt.get()); + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_VerifiedDate.has_value()) - { + if(m_VerifiedDateIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate.get()); + val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate); } if(m_NotificationSentForParentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParent"))] = ModelBase::toJson(m_NotificationSentForParent); } if(m_NotificationSentForParentTenantIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParentTenant"))] = ModelBase::toJson(m_NotificationSentForParentTenant); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_ExternalIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("externalId"))] = ModelBase::toJson(m_ExternalId); } - if(m_ExternalParentId.has_value()) - { + if(m_ExternalParentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId); } - if(m_AvatarSrc.has_value()) - { + if(m_AvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } - if(m_IsPinned.has_value()) - { + if(m_IsPinnedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); } - if(m_IsLocked.has_value()) - { + if(m_IsLockedIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); } - if(m_FlagCount.has_value()) - { + if(m_FlagCountIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); } - if(m_DisplayLabel.has_value()) - { + if(m_DisplayLabelIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } - if(m_Meta.has_value()) - { + if(m_MetaIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } - if(m_ModerationGroupIds.has_value()) - { + if(m_ModerationGroupIdsIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds.get()); + val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } @@ -722,25 +762,25 @@ void UpdatableCommentParams::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } - if(m_PageTitle.has_value()) + if(m_PageTitleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } - if(m_CommenterEmail.has_value()) + if(m_CommenterEmailIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); } if(m_CommenterNameIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterLink.has_value()) + if(m_CommenterLinkIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); } if(m_CommentIsSet) { @@ -750,45 +790,45 @@ void UpdatableCommentParams::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); } - if(m_ParentId.has_value()) + if(m_ParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); } - if(m_date.has_value()) + if(m_dateIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); } - if(m_LocalDateString.has_value()) + if(m_LocalDateStringIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString)); } - if(m_LocalDateHours.has_value()) + if(m_LocalDateHoursIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours)); } - if(m_Votes.has_value()) + if(m_VotesIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); } - if(m_VotesUp.has_value()) + if(m_VotesUpIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); } - if(m_VotesDown.has_value()) + if(m_VotesDownIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); } - if(m_ExpireAt.has_value()) + if(m_ExpireAtIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_VerifiedDate.has_value()) + if(m_VerifiedDateIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate)); } if(m_NotificationSentForParentIsSet) { @@ -806,13 +846,13 @@ void UpdatableCommentParams::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalId")), m_ExternalId)); } - if(m_ExternalParentId.has_value()) + if(m_ExternalParentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId)); } - if(m_AvatarSrc.has_value()) + if(m_AvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); } if(m_IsSpamIsSet) { @@ -838,29 +878,29 @@ void UpdatableCommentParams::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); } - if(m_IsPinned.has_value()) + if(m_IsPinnedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); } - if(m_IsLocked.has_value()) + if(m_IsLockedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); } - if(m_FlagCount.has_value()) + if(m_FlagCountIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); } - if(m_DisplayLabel.has_value()) + if(m_DisplayLabelIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); } - if(m_Meta.has_value()) + if(m_MetaIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); } - if(m_ModerationGroupIds.has_value()) + if(m_ModerationGroupIdsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds)); } if(m_FeedbackIdsIsSet) { @@ -1180,63 +1220,66 @@ void UpdatableCommentParams::unsetUrl() } utility::string_t UpdatableCommentParams::getPageTitle() const { - return m_PageTitle.get(); + return m_PageTitle; } void UpdatableCommentParams::setPageTitle(const utility::string_t& value) { m_PageTitle = value; + m_PageTitleIsSet = true; } bool UpdatableCommentParams::pageTitleIsSet() const { - return m_PageTitle.has_value(); + return m_PageTitleIsSet; } void UpdatableCommentParams::unsetPageTitle() { - m_PageTitle.reset(); + m_PageTitleIsSet = false; } utility::string_t UpdatableCommentParams::getUserId() const { - return m_UserId.get(); + return m_UserId; } void UpdatableCommentParams::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool UpdatableCommentParams::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void UpdatableCommentParams::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } utility::string_t UpdatableCommentParams::getCommenterEmail() const { - return m_CommenterEmail.get(); + return m_CommenterEmail; } void UpdatableCommentParams::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; + m_CommenterEmailIsSet = true; } bool UpdatableCommentParams::commenterEmailIsSet() const { - return m_CommenterEmail.has_value(); + return m_CommenterEmailIsSet; } void UpdatableCommentParams::unsetCommenterEmail() { - m_CommenterEmail.reset(); + m_CommenterEmailIsSet = false; } utility::string_t UpdatableCommentParams::getCommenterName() const { @@ -1261,23 +1304,24 @@ void UpdatableCommentParams::unsetCommenterName() } utility::string_t UpdatableCommentParams::getCommenterLink() const { - return m_CommenterLink.get(); + return m_CommenterLink; } void UpdatableCommentParams::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; + m_CommenterLinkIsSet = true; } bool UpdatableCommentParams::commenterLinkIsSet() const { - return m_CommenterLink.has_value(); + return m_CommenterLinkIsSet; } void UpdatableCommentParams::unsetCommenterLink() { - m_CommenterLink.reset(); + m_CommenterLinkIsSet = false; } utility::string_t UpdatableCommentParams::getComment() const { @@ -1323,158 +1367,166 @@ void UpdatableCommentParams::unsetCommentHTML() } utility::string_t UpdatableCommentParams::getParentId() const { - return m_ParentId.get(); + return m_ParentId; } void UpdatableCommentParams::setParentId(const utility::string_t& value) { m_ParentId = value; + m_ParentIdIsSet = true; } bool UpdatableCommentParams::parentIdIsSet() const { - return m_ParentId.has_value(); + return m_ParentIdIsSet; } void UpdatableCommentParams::unsetParentId() { - m_ParentId.reset(); + m_ParentIdIsSet = false; } double UpdatableCommentParams::getDate() const { - return m_date.get(); + return m_date; } void UpdatableCommentParams::setDate(double value) { m_date = value; + m_dateIsSet = true; } bool UpdatableCommentParams::dateIsSet() const { - return m_date.has_value(); + return m_dateIsSet; } void UpdatableCommentParams::unsetdate() { - m_date.reset(); + m_dateIsSet = false; } utility::string_t UpdatableCommentParams::getLocalDateString() const { - return m_LocalDateString.get(); + return m_LocalDateString; } void UpdatableCommentParams::setLocalDateString(const utility::string_t& value) { m_LocalDateString = value; + m_LocalDateStringIsSet = true; } bool UpdatableCommentParams::localDateStringIsSet() const { - return m_LocalDateString.has_value(); + return m_LocalDateStringIsSet; } void UpdatableCommentParams::unsetLocalDateString() { - m_LocalDateString.reset(); + m_LocalDateStringIsSet = false; } int32_t UpdatableCommentParams::getLocalDateHours() const { - return m_LocalDateHours.get(); + return m_LocalDateHours; } void UpdatableCommentParams::setLocalDateHours(int32_t value) { m_LocalDateHours = value; + m_LocalDateHoursIsSet = true; } bool UpdatableCommentParams::localDateHoursIsSet() const { - return m_LocalDateHours.has_value(); + return m_LocalDateHoursIsSet; } void UpdatableCommentParams::unsetLocalDateHours() { - m_LocalDateHours.reset(); + m_LocalDateHoursIsSet = false; } int32_t UpdatableCommentParams::getVotes() const { - return m_Votes.get(); + return m_Votes; } void UpdatableCommentParams::setVotes(int32_t value) { m_Votes = value; + m_VotesIsSet = true; } bool UpdatableCommentParams::votesIsSet() const { - return m_Votes.has_value(); + return m_VotesIsSet; } void UpdatableCommentParams::unsetVotes() { - m_Votes.reset(); + m_VotesIsSet = false; } int32_t UpdatableCommentParams::getVotesUp() const { - return m_VotesUp.get(); + return m_VotesUp; } void UpdatableCommentParams::setVotesUp(int32_t value) { m_VotesUp = value; + m_VotesUpIsSet = true; } bool UpdatableCommentParams::votesUpIsSet() const { - return m_VotesUp.has_value(); + return m_VotesUpIsSet; } void UpdatableCommentParams::unsetVotesUp() { - m_VotesUp.reset(); + m_VotesUpIsSet = false; } int32_t UpdatableCommentParams::getVotesDown() const { - return m_VotesDown.get(); + return m_VotesDown; } void UpdatableCommentParams::setVotesDown(int32_t value) { m_VotesDown = value; + m_VotesDownIsSet = true; } bool UpdatableCommentParams::votesDownIsSet() const { - return m_VotesDown.has_value(); + return m_VotesDownIsSet; } void UpdatableCommentParams::unsetVotesDown() { - m_VotesDown.reset(); + m_VotesDownIsSet = false; } utility::datetime UpdatableCommentParams::getExpireAt() const { - return m_ExpireAt.get(); + return m_ExpireAt; } void UpdatableCommentParams::setExpireAt(const utility::datetime& value) { m_ExpireAt = value; + m_ExpireAtIsSet = true; } bool UpdatableCommentParams::expireAtIsSet() const { - return m_ExpireAt.has_value(); + return m_ExpireAtIsSet; } void UpdatableCommentParams::unsetExpireAt() { - m_ExpireAt.reset(); + m_ExpireAtIsSet = false; } bool UpdatableCommentParams::isVerified() const { @@ -1498,23 +1550,24 @@ void UpdatableCommentParams::unsetVerified() } utility::datetime UpdatableCommentParams::getVerifiedDate() const { - return m_VerifiedDate.get(); + return m_VerifiedDate; } void UpdatableCommentParams::setVerifiedDate(const utility::datetime& value) { m_VerifiedDate = value; + m_VerifiedDateIsSet = true; } bool UpdatableCommentParams::verifiedDateIsSet() const { - return m_VerifiedDate.has_value(); + return m_VerifiedDateIsSet; } void UpdatableCommentParams::unsetVerifiedDate() { - m_VerifiedDate.reset(); + m_VerifiedDateIsSet = false; } bool UpdatableCommentParams::isNotificationSentForParent() const { @@ -1599,43 +1652,45 @@ void UpdatableCommentParams::unsetExternalId() } utility::string_t UpdatableCommentParams::getExternalParentId() const { - return m_ExternalParentId.get(); + return m_ExternalParentId; } void UpdatableCommentParams::setExternalParentId(const utility::string_t& value) { m_ExternalParentId = value; + m_ExternalParentIdIsSet = true; } bool UpdatableCommentParams::externalParentIdIsSet() const { - return m_ExternalParentId.has_value(); + return m_ExternalParentIdIsSet; } void UpdatableCommentParams::unsetExternalParentId() { - m_ExternalParentId.reset(); + m_ExternalParentIdIsSet = false; } utility::string_t UpdatableCommentParams::getAvatarSrc() const { - return m_AvatarSrc.get(); + return m_AvatarSrc; } void UpdatableCommentParams::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; + m_AvatarSrcIsSet = true; } bool UpdatableCommentParams::avatarSrcIsSet() const { - return m_AvatarSrc.has_value(); + return m_AvatarSrcIsSet; } void UpdatableCommentParams::unsetAvatarSrc() { - m_AvatarSrc.reset(); + m_AvatarSrcIsSet = false; } bool UpdatableCommentParams::isIsSpam() const { @@ -1759,120 +1814,126 @@ void UpdatableCommentParams::unsetIsByModerator() } bool UpdatableCommentParams::isIsPinned() const { - return m_IsPinned.get(); + return m_IsPinned; } void UpdatableCommentParams::setIsPinned(bool value) { m_IsPinned = value; + m_IsPinnedIsSet = true; } bool UpdatableCommentParams::isPinnedIsSet() const { - return m_IsPinned.has_value(); + return m_IsPinnedIsSet; } void UpdatableCommentParams::unsetIsPinned() { - m_IsPinned.reset(); + m_IsPinnedIsSet = false; } bool UpdatableCommentParams::isIsLocked() const { - return m_IsLocked.get(); + return m_IsLocked; } void UpdatableCommentParams::setIsLocked(bool value) { m_IsLocked = value; + m_IsLockedIsSet = true; } bool UpdatableCommentParams::isLockedIsSet() const { - return m_IsLocked.has_value(); + return m_IsLockedIsSet; } void UpdatableCommentParams::unsetIsLocked() { - m_IsLocked.reset(); + m_IsLockedIsSet = false; } int32_t UpdatableCommentParams::getFlagCount() const { - return m_FlagCount.get(); + return m_FlagCount; } void UpdatableCommentParams::setFlagCount(int32_t value) { m_FlagCount = value; + m_FlagCountIsSet = true; } bool UpdatableCommentParams::flagCountIsSet() const { - return m_FlagCount.has_value(); + return m_FlagCountIsSet; } void UpdatableCommentParams::unsetFlagCount() { - m_FlagCount.reset(); + m_FlagCountIsSet = false; } utility::string_t UpdatableCommentParams::getDisplayLabel() const { - return m_DisplayLabel.get(); + return m_DisplayLabel; } void UpdatableCommentParams::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; + m_DisplayLabelIsSet = true; } bool UpdatableCommentParams::displayLabelIsSet() const { - return m_DisplayLabel.has_value(); + return m_DisplayLabelIsSet; } void UpdatableCommentParams::unsetDisplayLabel() { - m_DisplayLabel.reset(); + m_DisplayLabelIsSet = false; } std::shared_ptr UpdatableCommentParams::getMeta() const { - return m_Meta.get(); + return m_Meta; } void UpdatableCommentParams::setMeta(const std::shared_ptr& value) { m_Meta = value; + m_MetaIsSet = true; } bool UpdatableCommentParams::metaIsSet() const { - return m_Meta.has_value(); + return m_MetaIsSet; } void UpdatableCommentParams::unsetMeta() { - m_Meta.reset(); + m_MetaIsSet = false; } std::vector UpdatableCommentParams::getModerationGroupIds() const { - return m_ModerationGroupIds.get(); + return m_ModerationGroupIds; } void UpdatableCommentParams::setModerationGroupIds(const std::vector& value) { m_ModerationGroupIds = value; + m_ModerationGroupIdsIsSet = true; } bool UpdatableCommentParams::moderationGroupIdsIsSet() const { - return m_ModerationGroupIds.has_value(); + return m_ModerationGroupIdsIsSet; } void UpdatableCommentParams::unsetModerationGroupIds() { - m_ModerationGroupIds.reset(); + m_ModerationGroupIdsIsSet = false; } std::vector UpdatableCommentParams::getFeedbackIds() const { diff --git a/client/src/model/UpdateAPIPageData.cpp b/client/src/model/UpdateAPIPageData.cpp index 4312be3..01eef75 100644 --- a/client/src/model/UpdateAPIPageData.cpp +++ b/client/src/model/UpdateAPIPageData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -44,27 +44,27 @@ web::json::value UpdateAPIPageData::toJson() const { web::json::value val = web::json::value::object(); if(m_IsClosedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isClosed"))] = ModelBase::toJson(m_IsClosed); } if(m_AccessibleByGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("accessibleByGroupIds"))] = ModelBase::toJson(m_AccessibleByGroupIds); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } diff --git a/client/src/model/UpdateAPISSOUserData.cpp b/client/src/model/UpdateAPISSOUserData.cpp index f26dcd8..92ccfe0 100644 --- a/client/src/model/UpdateAPISSOUserData.cpp +++ b/client/src/model/UpdateAPISSOUserData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -74,102 +74,102 @@ web::json::value UpdateAPISSOUserData::toJson() const { web::json::value val = web::json::value::object(); if(m_GroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); } if(m_HasBlockedUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBlockedUsers"))] = ModelBase::toJson(m_HasBlockedUsers); } if(m_IsProfileDMDisabledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileDMDisabled"))] = ModelBase::toJson(m_IsProfileDMDisabled); } if(m_IsProfileCommentsPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileCommentsPrivate"))] = ModelBase::toJson(m_IsProfileCommentsPrivate); } if(m_IsProfileActivityPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileActivityPrivate"))] = ModelBase::toJson(m_IsProfileActivityPrivate); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } if(m_OptedInSubscriptionNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInSubscriptionNotifications"))] = ModelBase::toJson(m_OptedInSubscriptionNotifications); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_AvatarSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_CreatedFromUrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId"))] = ModelBase::toJson(m_CreatedFromUrlId); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } diff --git a/client/src/model/UpdateAPIUserSubscriptionData.cpp b/client/src/model/UpdateAPIUserSubscriptionData.cpp index f087164..ecef071 100644 --- a/client/src/model/UpdateAPIUserSubscriptionData.cpp +++ b/client/src/model/UpdateAPIUserSubscriptionData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,7 @@ web::json::value UpdateAPIUserSubscriptionData::toJson() const { web::json::value val = web::json::value::object(); if(m_NotificationFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationFrequency"))] = ModelBase::toJson(m_NotificationFrequency); } diff --git a/client/src/model/UpdateDomainConfigParams.cpp b/client/src/model/UpdateDomainConfigParams.cpp index 034cd59..196382d 100644 --- a/client/src/model/UpdateDomainConfigParams.cpp +++ b/client/src/model/UpdateDomainConfigParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -48,37 +48,37 @@ web::json::value UpdateDomainConfigParams::toJson() const { web::json::value val = web::json::value::object(); if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_EmailFromNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailFromName"))] = ModelBase::toJson(m_EmailFromName); } if(m_EmailFromEmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailFromEmail"))] = ModelBase::toJson(m_EmailFromEmail); } if(m_LogoSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("logoSrc"))] = ModelBase::toJson(m_LogoSrc); } if(m_LogoSrc100pxIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px); } if(m_FooterUnsubscribeURLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("footerUnsubscribeURL"))] = ModelBase::toJson(m_FooterUnsubscribeURL); } if(m_EmailHeadersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailHeaders"))] = ModelBase::toJson(m_EmailHeaders); } diff --git a/client/src/model/UpdateEmailTemplateBody.cpp b/client/src/model/UpdateEmailTemplateBody.cpp index 39fc2f3..8c9830b 100644 --- a/client/src/model/UpdateEmailTemplateBody.cpp +++ b/client/src/model/UpdateEmailTemplateBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -45,32 +45,32 @@ web::json::value UpdateEmailTemplateBody::toJson() const { web::json::value val = web::json::value::object(); if(m_EmailTemplateIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplateId"))] = ModelBase::toJson(m_EmailTemplateId); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_EjsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ejs"))] = ModelBase::toJson(m_Ejs); } if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_TranslationOverridesByLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))] = ModelBase::toJson(m_TranslationOverridesByLocale); } if(m_TestDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("testData"))] = ModelBase::toJson(m_TestData); } @@ -130,7 +130,7 @@ bool UpdateEmailTemplateBody::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))); if(!fieldValue.is_null()) { - std::map> refVal_setTranslationOverridesByLocale; + std::map refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromJson(fieldValue, refVal_setTranslationOverridesByLocale); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); @@ -218,7 +218,7 @@ bool UpdateEmailTemplateBody::fromMultiPart(std::shared_ptr m } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale")))) { - std::map> refVal_setTranslationOverridesByLocale; + std::map refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))), refVal_setTranslationOverridesByLocale ); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); } @@ -316,13 +316,13 @@ void UpdateEmailTemplateBody::unsetDomain() { m_DomainIsSet = false; } -std::map> UpdateEmailTemplateBody::getTranslationOverridesByLocale() const +std::map UpdateEmailTemplateBody::getTranslationOverridesByLocale() const { return m_TranslationOverridesByLocale; } -void UpdateEmailTemplateBody::setTranslationOverridesByLocale(const std::map>& value) +void UpdateEmailTemplateBody::setTranslationOverridesByLocale(const std::map& value) { m_TranslationOverridesByLocale = value; m_TranslationOverridesByLocaleIsSet = true; diff --git a/client/src/model/UpdateFeedPostParams.cpp b/client/src/model/UpdateFeedPostParams.cpp index a9c1c88..8c2b90c 100644 --- a/client/src/model/UpdateFeedPostParams.cpp +++ b/client/src/model/UpdateFeedPostParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,32 +43,32 @@ web::json::value UpdateFeedPostParams::toJson() const { web::json::value val = web::json::value::object(); if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_ContentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("contentHTML"))] = ModelBase::toJson(m_ContentHTML); } if(m_MediaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("media"))] = ModelBase::toJson(m_Media); } if(m_LinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("links"))] = ModelBase::toJson(m_Links); } if(m_TagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tags"))] = ModelBase::toJson(m_Tags); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } diff --git a/client/src/model/UpdateHashTagBody.cpp b/client/src/model/UpdateHashTagBody.cpp index 9428f09..cadcfa9 100644 --- a/client/src/model/UpdateHashTagBody.cpp +++ b/client/src/model/UpdateHashTagBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value UpdateHashTagBody::toJson() const { web::json::value val = web::json::value::object(); if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_TagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } diff --git a/client/src/model/UpdateHashTagResponse.cpp b/client/src/model/UpdateHashTagResponse.cpp index dee1f8a..acbb11c 100644 --- a/client/src/model/UpdateHashTagResponse.cpp +++ b/client/src/model/UpdateHashTagResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value UpdateHashTagResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_HashTagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTag"))] = ModelBase::toJson(m_HashTag); } diff --git a/client/src/model/UpdateModeratorBody.cpp b/client/src/model/UpdateModeratorBody.cpp index 8f9177b..efa804b 100644 --- a/client/src/model/UpdateModeratorBody.cpp +++ b/client/src/model/UpdateModeratorBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -27,7 +27,6 @@ UpdateModeratorBody::UpdateModeratorBody() m_UserId = utility::conversions::to_string_t(""); m_UserIdIsSet = false; m_ModerationGroupIdsIsSet = false; - m_AdditionalPropertiesIsSet = false; } UpdateModeratorBody::~UpdateModeratorBody() @@ -43,33 +42,25 @@ web::json::value UpdateModeratorBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_ModerationGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } - // Serialize additional properties - if(m_AdditionalPropertiesIsSet) - { - for(const auto& item : m_AdditionalProperties) - { - val[item.first] = item.second; - } - } return val; } @@ -121,21 +112,6 @@ bool UpdateModeratorBody::fromJson(const web::json::value& val) } } - // Capture additional properties (keys not defined in the schema) - if(val.is_object()) - { - for(const auto& item : val.as_object()) - { - // Skip known properties - if(item.first == utility::conversions::to_string_t(_XPLATSTR("name"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("email"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("userId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))) continue; - // This is an additional property - m_AdditionalProperties[item.first] = item.second; - m_AdditionalPropertiesIsSet = true; - } - } return ok; } @@ -286,34 +262,6 @@ void UpdateModeratorBody::unsetModerationGroupIds() m_ModerationGroupIdsIsSet = false; } - -std::map UpdateModeratorBody::getAdditionalProperties() const -{ - return m_AdditionalProperties; -} - -void UpdateModeratorBody::setAdditionalProperties(const std::map& value) -{ - m_AdditionalProperties = value; - m_AdditionalPropertiesIsSet = true; -} - -void UpdateModeratorBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) -{ - m_AdditionalProperties[key] = value; - m_AdditionalPropertiesIsSet = true; -} - -bool UpdateModeratorBody::additionalPropertiesIsSet() const -{ - return m_AdditionalPropertiesIsSet; -} - -void UpdateModeratorBody::unsetAdditionalProperties() -{ - m_AdditionalProperties.clear(); - m_AdditionalPropertiesIsSet = false; -} } } } diff --git a/client/src/model/UpdateNotificationBody.cpp b/client/src/model/UpdateNotificationBody.cpp index b84ae8c..a2725c9 100644 --- a/client/src/model/UpdateNotificationBody.cpp +++ b/client/src/model/UpdateNotificationBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,7 +24,6 @@ UpdateNotificationBody::UpdateNotificationBody() m_ViewedIsSet = false; m_OptedOut = false; m_OptedOutIsSet = false; - m_AdditionalPropertiesIsSet = false; } UpdateNotificationBody::~UpdateNotificationBody() @@ -40,23 +39,15 @@ web::json::value UpdateNotificationBody::toJson() const { web::json::value val = web::json::value::object(); if(m_ViewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("viewed"))] = ModelBase::toJson(m_Viewed); } if(m_OptedOutIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedOut"))] = ModelBase::toJson(m_OptedOut); } - // Serialize additional properties - if(m_AdditionalPropertiesIsSet) - { - for(const auto& item : m_AdditionalProperties) - { - val[item.first] = item.second; - } - } return val; } @@ -86,19 +77,6 @@ bool UpdateNotificationBody::fromJson(const web::json::value& val) } } - // Capture additional properties (keys not defined in the schema) - if(val.is_object()) - { - for(const auto& item : val.as_object()) - { - // Skip known properties - if(item.first == utility::conversions::to_string_t(_XPLATSTR("viewed"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("optedOut"))) continue; - // This is an additional property - m_AdditionalProperties[item.first] = item.second; - m_AdditionalPropertiesIsSet = true; - } - } return ok; } @@ -185,34 +163,6 @@ void UpdateNotificationBody::unsetOptedOut() m_OptedOutIsSet = false; } - -std::map UpdateNotificationBody::getAdditionalProperties() const -{ - return m_AdditionalProperties; -} - -void UpdateNotificationBody::setAdditionalProperties(const std::map& value) -{ - m_AdditionalProperties = value; - m_AdditionalPropertiesIsSet = true; -} - -void UpdateNotificationBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) -{ - m_AdditionalProperties[key] = value; - m_AdditionalPropertiesIsSet = true; -} - -bool UpdateNotificationBody::additionalPropertiesIsSet() const -{ - return m_AdditionalPropertiesIsSet; -} - -void UpdateNotificationBody::unsetAdditionalProperties() -{ - m_AdditionalProperties.clear(); - m_AdditionalPropertiesIsSet = false; -} } } } diff --git a/client/src/model/UpdateQuestionConfigBody.cpp b/client/src/model/UpdateQuestionConfigBody.cpp index a9cda76..a8a3b1f 100644 --- a/client/src/model/UpdateQuestionConfigBody.cpp +++ b/client/src/model/UpdateQuestionConfigBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -46,7 +46,6 @@ UpdateQuestionConfigBody::UpdateQuestionConfigBody() m_AlwaysShowSubQuestionsIsSet = false; m_ReportingOrder = 0.0; m_ReportingOrderIsSet = false; - m_AdditionalPropertiesIsSet = false; } UpdateQuestionConfigBody::~UpdateQuestionConfigBody() @@ -62,83 +61,75 @@ web::json::value UpdateQuestionConfigBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_QuestionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("question"))] = ModelBase::toJson(m_Question); } if(m_HelpTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("helpText"))] = ModelBase::toJson(m_HelpText); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_NumStarsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("numStars"))] = ModelBase::toJson(m_NumStars); } if(m_MinIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("min"))] = ModelBase::toJson(m_Min); } if(m_MaxIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("max"))] = ModelBase::toJson(m_Max); } if(m_DefaultValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("defaultValue"))] = ModelBase::toJson(m_DefaultValue); } if(m_LabelNegativeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("labelNegative"))] = ModelBase::toJson(m_LabelNegative); } if(m_LabelPositiveIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("labelPositive"))] = ModelBase::toJson(m_LabelPositive); } if(m_CustomOptionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customOptions"))] = ModelBase::toJson(m_CustomOptions); } if(m_SubQuestionIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subQuestionIds"))] = ModelBase::toJson(m_SubQuestionIds); } if(m_AlwaysShowSubQuestionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("alwaysShowSubQuestions"))] = ModelBase::toJson(m_AlwaysShowSubQuestions); } if(m_ReportingOrderIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reportingOrder"))] = ModelBase::toJson(m_ReportingOrder); } - // Serialize additional properties - if(m_AdditionalPropertiesIsSet) - { - for(const auto& item : m_AdditionalProperties) - { - val[item.first] = item.second; - } - } return val; } @@ -300,31 +291,6 @@ bool UpdateQuestionConfigBody::fromJson(const web::json::value& val) } } - // Capture additional properties (keys not defined in the schema) - if(val.is_object()) - { - for(const auto& item : val.as_object()) - { - // Skip known properties - if(item.first == utility::conversions::to_string_t(_XPLATSTR("name"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("question"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("helpText"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("type"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("numStars"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("min"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("max"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("defaultValue"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("labelNegative"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("labelPositive"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("customOptions"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("subQuestionIds"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("alwaysShowSubQuestions"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("reportingOrder"))) continue; - // This is an additional property - m_AdditionalProperties[item.first] = item.second; - m_AdditionalPropertiesIsSet = true; - } - } return ok; } @@ -779,34 +745,6 @@ void UpdateQuestionConfigBody::unsetReportingOrder() m_ReportingOrderIsSet = false; } - -std::map UpdateQuestionConfigBody::getAdditionalProperties() const -{ - return m_AdditionalProperties; -} - -void UpdateQuestionConfigBody::setAdditionalProperties(const std::map& value) -{ - m_AdditionalProperties = value; - m_AdditionalPropertiesIsSet = true; -} - -void UpdateQuestionConfigBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) -{ - m_AdditionalProperties[key] = value; - m_AdditionalPropertiesIsSet = true; -} - -bool UpdateQuestionConfigBody::additionalPropertiesIsSet() const -{ - return m_AdditionalPropertiesIsSet; -} - -void UpdateQuestionConfigBody::unsetAdditionalProperties() -{ - m_AdditionalProperties.clear(); - m_AdditionalPropertiesIsSet = false; -} } } } diff --git a/client/src/model/UpdateQuestionResultBody.cpp b/client/src/model/UpdateQuestionResultBody.cpp index 91f08d4..92a3036 100644 --- a/client/src/model/UpdateQuestionResultBody.cpp +++ b/client/src/model/UpdateQuestionResultBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -32,7 +32,7 @@ UpdateQuestionResultBody::UpdateQuestionResultBody() m_CommentIdIsSet = false; m_QuestionId = utility::conversions::to_string_t(""); m_QuestionIdIsSet = false; - m_AdditionalPropertiesIsSet = false; + m_MetaIsSet = false; } UpdateQuestionResultBody::~UpdateQuestionResultBody() @@ -48,47 +48,39 @@ web::json::value UpdateQuestionResultBody::toJson() const { web::json::value val = web::json::value::object(); if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_AnonUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_ValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("value"))] = ModelBase::toJson(m_Value); } if(m_CommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId); } if(m_QuestionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionId"))] = ModelBase::toJson(m_QuestionId); } - if(m_Meta.has_value()) - { + if(m_MetaIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); - } - // Serialize additional properties - if(m_AdditionalPropertiesIsSet) - { - for(const auto& item : m_AdditionalProperties) - { - val[item.first] = item.second; - } + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } return val; @@ -174,24 +166,6 @@ bool UpdateQuestionResultBody::fromJson(const web::json::value& val) } } - // Capture additional properties (keys not defined in the schema) - if(val.is_object()) - { - for(const auto& item : val.as_object()) - { - // Skip known properties - if(item.first == utility::conversions::to_string_t(_XPLATSTR("urlId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("anonUserId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("userId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("value"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("commentId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("questionId"))) continue; - if(item.first == utility::conversions::to_string_t(_XPLATSTR("meta"))) continue; - // This is an additional property - m_AdditionalProperties[item.first] = item.second; - m_AdditionalPropertiesIsSet = true; - } - } return ok; } @@ -226,9 +200,9 @@ void UpdateQuestionResultBody::toMultipart(std::shared_ptr mu { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionId")), m_QuestionId)); } - if(m_Meta.has_value()) + if(m_MetaIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); } } @@ -414,53 +388,26 @@ void UpdateQuestionResultBody::unsetQuestionId() } std::vector> UpdateQuestionResultBody::getMeta() const { - return m_Meta.get(); + return m_Meta; } void UpdateQuestionResultBody::setMeta(const std::vector>& value) { m_Meta = value; + m_MetaIsSet = true; } bool UpdateQuestionResultBody::metaIsSet() const { - return m_Meta.has_value(); + return m_MetaIsSet; } void UpdateQuestionResultBody::unsetMeta() { - m_Meta.reset(); + m_MetaIsSet = false; } - -std::map UpdateQuestionResultBody::getAdditionalProperties() const -{ - return m_AdditionalProperties; -} - -void UpdateQuestionResultBody::setAdditionalProperties(const std::map& value) -{ - m_AdditionalProperties = value; - m_AdditionalPropertiesIsSet = true; -} - -void UpdateQuestionResultBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) -{ - m_AdditionalProperties[key] = value; - m_AdditionalPropertiesIsSet = true; -} - -bool UpdateQuestionResultBody::additionalPropertiesIsSet() const -{ - return m_AdditionalPropertiesIsSet; -} - -void UpdateQuestionResultBody::unsetAdditionalProperties() -{ - m_AdditionalProperties.clear(); - m_AdditionalPropertiesIsSet = false; -} } } } diff --git a/client/src/model/UpdateSubscriptionAPIResponse.cpp b/client/src/model/UpdateSubscriptionAPIResponse.cpp index 2c0ca87..5faea2c 100644 --- a/client/src/model/UpdateSubscriptionAPIResponse.cpp +++ b/client/src/model/UpdateSubscriptionAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value UpdateSubscriptionAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_SubscriptionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subscription"))] = ModelBase::toJson(m_Subscription); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/UpdateTenantBody.cpp b/client/src/model/UpdateTenantBody.cpp index 276c8f1..f9edbfa 100644 --- a/client/src/model/UpdateTenantBody.cpp +++ b/client/src/model/UpdateTenantBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -80,122 +80,122 @@ web::json::value UpdateTenantBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_PackageIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("packageId"))] = ModelBase::toJson(m_PackageId); } if(m_PaymentFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("paymentFrequency"))] = ModelBase::toJson(m_PaymentFrequency); } if(m_BillingInfoValidIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingInfoValid"))] = ModelBase::toJson(m_BillingInfoValid); } if(m_BillingHandledExternallyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingHandledExternally"))] = ModelBase::toJson(m_BillingHandledExternally); } if(m_CreatedByIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdBy"))] = ModelBase::toJson(m_CreatedBy); } if(m_IsSetupIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSetup"))] = ModelBase::toJson(m_IsSetup); } if(m_DomainConfigurationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domainConfiguration"))] = ModelBase::toJson(m_DomainConfiguration); } if(m_BillingInfoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingInfo"))] = ModelBase::toJson(m_BillingInfo); } if(m_StripeCustomerIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripeCustomerId"))] = ModelBase::toJson(m_StripeCustomerId); } if(m_StripeSubscriptionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripeSubscriptionId"))] = ModelBase::toJson(m_StripeSubscriptionId); } if(m_StripePlanIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripePlanId"))] = ModelBase::toJson(m_StripePlanId); } if(m_EnableProfanityFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableProfanityFilter"))] = ModelBase::toJson(m_EnableProfanityFilter); } if(m_EnableSpamFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSpamFilter"))] = ModelBase::toJson(m_EnableSpamFilter); } if(m_RemoveUnverifiedCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("removeUnverifiedComments"))] = ModelBase::toJson(m_RemoveUnverifiedComments); } if(m_UnverifiedCommentsTTLmsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("unverifiedCommentsTTLms"))] = ModelBase::toJson(m_UnverifiedCommentsTTLms); } if(m_CommentsRequireApprovalIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentsRequireApproval"))] = ModelBase::toJson(m_CommentsRequireApproval); } if(m_AutoApproveCommentOnVerificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoApproveCommentOnVerification"))] = ModelBase::toJson(m_AutoApproveCommentOnVerification); } if(m_SendProfaneToSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sendProfaneToSpam"))] = ModelBase::toJson(m_SendProfaneToSpam); } if(m_DeAnonIpAddrIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("deAnonIpAddr"))] = ModelBase::toJson(m_DeAnonIpAddr); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } if(m_ManagedByTenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("managedByTenantId"))] = ModelBase::toJson(m_ManagedByTenantId); } diff --git a/client/src/model/UpdateTenantPackageBody.cpp b/client/src/model/UpdateTenantPackageBody.cpp index a8a71ce..ae26b59 100644 --- a/client/src/model/UpdateTenantPackageBody.cpp +++ b/client/src/model/UpdateTenantPackageBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -98,162 +98,162 @@ web::json::value UpdateTenantPackageBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_MonthlyCostUSDIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD"))] = ModelBase::toJson(m_MonthlyCostUSD); } if(m_YearlyCostUSDIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD"))] = ModelBase::toJson(m_YearlyCostUSD); } if(m_MaxMonthlyPageLoadsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyPageLoads"))] = ModelBase::toJson(m_MaxMonthlyPageLoads); } if(m_MaxMonthlyAPICreditsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyAPICredits"))] = ModelBase::toJson(m_MaxMonthlyAPICredits); } if(m_MaxMonthlyCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyComments"))] = ModelBase::toJson(m_MaxMonthlyComments); } if(m_MaxConcurrentUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxConcurrentUsers"))] = ModelBase::toJson(m_MaxConcurrentUsers); } if(m_MaxTenantUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxTenantUsers"))] = ModelBase::toJson(m_MaxTenantUsers); } if(m_MaxSSOUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxSSOUsers"))] = ModelBase::toJson(m_MaxSSOUsers); } if(m_MaxModeratorsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxModerators"))] = ModelBase::toJson(m_MaxModerators); } if(m_MaxDomainsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxDomains"))] = ModelBase::toJson(m_MaxDomains); } if(m_MaxCustomCollectionSizeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCustomCollectionSize"))] = ModelBase::toJson(m_MaxCustomCollectionSize); } if(m_HasDebrandingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasDebranding"))] = ModelBase::toJson(m_HasDebranding); } if(m_HasWhiteLabelingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasWhiteLabeling"))] = ModelBase::toJson(m_HasWhiteLabeling); } if(m_ForWhoTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("forWhoText"))] = ModelBase::toJson(m_ForWhoText); } if(m_FeatureTaglinesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("featureTaglines"))] = ModelBase::toJson(m_FeatureTaglines); } if(m_HasFlexPricingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasFlexPricing"))] = ModelBase::toJson(m_HasFlexPricing); } if(m_FlexPageLoadCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadCostCents"))] = ModelBase::toJson(m_FlexPageLoadCostCents); } if(m_FlexPageLoadUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadUnit"))] = ModelBase::toJson(m_FlexPageLoadUnit); } if(m_FlexCommentCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentCostCents"))] = ModelBase::toJson(m_FlexCommentCostCents); } if(m_FlexCommentUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentUnit"))] = ModelBase::toJson(m_FlexCommentUnit); } if(m_FlexSSOUserCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserCostCents"))] = ModelBase::toJson(m_FlexSSOUserCostCents); } if(m_FlexSSOUserUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserUnit"))] = ModelBase::toJson(m_FlexSSOUserUnit); } if(m_FlexAPICreditCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditCostCents"))] = ModelBase::toJson(m_FlexAPICreditCostCents); } if(m_FlexAPICreditUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditUnit"))] = ModelBase::toJson(m_FlexAPICreditUnit); } if(m_FlexModeratorCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorCostCents"))] = ModelBase::toJson(m_FlexModeratorCostCents); } if(m_FlexModeratorUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorUnit"))] = ModelBase::toJson(m_FlexModeratorUnit); } if(m_FlexAdminCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminCostCents"))] = ModelBase::toJson(m_FlexAdminCostCents); } if(m_FlexAdminUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminUnit"))] = ModelBase::toJson(m_FlexAdminUnit); } if(m_FlexDomainCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainCostCents"))] = ModelBase::toJson(m_FlexDomainCostCents); } if(m_FlexDomainUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainUnit"))] = ModelBase::toJson(m_FlexDomainUnit); } if(m_FlexMinimumCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexMinimumCostCents"))] = ModelBase::toJson(m_FlexMinimumCostCents); } diff --git a/client/src/model/UpdateTenantUserBody.cpp b/client/src/model/UpdateTenantUserBody.cpp index 20cabd7..613a598 100644 --- a/client/src/model/UpdateTenantUserBody.cpp +++ b/client/src/model/UpdateTenantUserBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -82,122 +82,122 @@ web::json::value UpdateTenantUserBody::toJson() const { web::json::value val = web::json::value::object(); if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_OptedInTenantNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInTenantNotifications"))] = ModelBase::toJson(m_OptedInTenantNotifications); } if(m_HideAccountCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hideAccountCode"))] = ModelBase::toJson(m_HideAccountCode); } if(m_AvatarSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_IsHelpRequestAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isHelpRequestAdmin"))] = ModelBase::toJson(m_IsHelpRequestAdmin); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsBillingAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBillingAdmin"))] = ModelBase::toJson(m_IsBillingAdmin); } if(m_IsAnalyticsAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAnalyticsAdmin"))] = ModelBase::toJson(m_IsAnalyticsAdmin); } if(m_IsCustomizationAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCustomizationAdmin"))] = ModelBase::toJson(m_IsCustomizationAdmin); } if(m_IsManageDataAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isManageDataAdmin"))] = ModelBase::toJson(m_IsManageDataAdmin); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsAPIAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAPIAdmin"))] = ModelBase::toJson(m_IsAPIAdmin); } if(m_ModeratorIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderatorIds"))] = ModelBase::toJson(m_ModeratorIds); } if(m_LocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_DigestEmailFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("digestEmailFrequency"))] = ModelBase::toJson(m_DigestEmailFrequency); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } diff --git a/client/src/model/UpdateUserBadgeParams.cpp b/client/src/model/UpdateUserBadgeParams.cpp index ffb1eef..c643db0 100644 --- a/client/src/model/UpdateUserBadgeParams.cpp +++ b/client/src/model/UpdateUserBadgeParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,7 @@ web::json::value UpdateUserBadgeParams::toJson() const { web::json::value val = web::json::value::object(); if(m_DisplayedOnCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayedOnComments"))] = ModelBase::toJson(m_DisplayedOnComments); } diff --git a/client/src/model/UpdateUserBadge_200_response.cpp b/client/src/model/UpdateUserBadge_200_response.cpp deleted file mode 100644 index 253c2e3..0000000 --- a/client/src/model/UpdateUserBadge_200_response.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateUserBadge_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateUserBadge_200_response::UpdateUserBadge_200_response() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateUserBadge_200_response::~UpdateUserBadge_200_response() -{ -} - -void UpdateUserBadge_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateUserBadge_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateUserBadge_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateUserBadge_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateUserBadge_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UpdateUserBadge_200_response::getStatus() const -{ - return m_Status; -} - - -void UpdateUserBadge_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateUserBadge_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateUserBadge_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UpdateUserBadge_200_response::getReason() const -{ - return m_Reason; -} - - -void UpdateUserBadge_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateUserBadge_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateUserBadge_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateUserBadge_200_response::getCode() const -{ - return m_Code; -} - - -void UpdateUserBadge_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateUserBadge_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateUserBadge_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateUserBadge_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateUserBadge_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateUserBadge_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateUserBadge_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateUserBadge_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateUserBadge_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateUserBadge_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateUserBadge_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateUserBadge_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateUserBadge_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateUserBadge_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateUserBadge_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateUserBadge_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateUserBadge_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateUserBadge_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateUserBadge_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateUserBadge_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateUserBadge_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateUserBadge_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateUserBadge_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp b/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp new file mode 100644 index 0000000..2941c4c --- /dev/null +++ b/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp @@ -0,0 +1,297 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateUserNotificationCommentSubscriptionStatusResponse::UpdateUserNotificationCommentSubscriptionStatusResponse() +{ + m_StatusIsSet = false; + m_MatchedCount = 0L; + m_MatchedCountIsSet = false; + m_ModifiedCount = 0L; + m_ModifiedCountIsSet = false; + m_NoteIsSet = false; +} + +UpdateUserNotificationCommentSubscriptionStatusResponse::~UpdateUserNotificationCommentSubscriptionStatusResponse() +{ +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateUserNotificationCommentSubscriptionStatusResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_MatchedCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("matchedCount"))] = ModelBase::toJson(m_MatchedCount); + } + if(m_ModifiedCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))] = ModelBase::toJson(m_ModifiedCount); + } + if(m_NoteIsSet) + { + + utility::string_t refVal = fromNoteEnum(m_Note); + val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); + + } + + return val; +} + +bool UpdateUserNotificationCommentSubscriptionStatusResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("matchedCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("matchedCount"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setMatchedCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setMatchedCount); + setMatchedCount(refVal_setMatchedCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("modifiedCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setModifiedCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setModifiedCount); + setModifiedCount(refVal_setModifiedCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("note")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("note"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNote; + ok &= ModelBase::fromJson(fieldValue, refVal_setNote); + + setNote(toNoteEnum(refVal_setNote)); + + } + } + return ok; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_MatchedCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("matchedCount")), m_MatchedCount)); + } + if(m_ModifiedCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("modifiedCount")), m_ModifiedCount)); + } + if(m_NoteIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("note")), fromNoteEnum(m_Note))); + } +} + +bool UpdateUserNotificationCommentSubscriptionStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("matchedCount")))) + { + int64_t refVal_setMatchedCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("matchedCount"))), refVal_setMatchedCount ); + setMatchedCount(refVal_setMatchedCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("modifiedCount")))) + { + int64_t refVal_setModifiedCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))), refVal_setModifiedCount ); + setModifiedCount(refVal_setModifiedCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("note")))) + { + utility::string_t refVal_setNote; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("note"))), refVal_setNote ); + setNote(toNoteEnum(refVal_setNote)); + } + return ok; +} + +UpdateUserNotificationCommentSubscriptionStatusResponse::NoteEnum UpdateUserNotificationCommentSubscriptionStatusResponse::toNoteEnum(const utility::string_t& value) const +{ + + if (value == utility::conversions::to_string_t("ignored-since-impersonated")) { + return NoteEnum::IGNORED_SINCE_IMPERSONATED; + } + + if (value == utility::conversions::to_string_t("demo-noop")) { + return NoteEnum::DEMO_NOOP; + } + + throw std::invalid_argument("Invalid value for conversion to NoteEnum"); +} + + +const utility::string_t UpdateUserNotificationCommentSubscriptionStatusResponse::fromNoteEnum(const NoteEnum value) const +{ + switch(value) + { + + case NoteEnum::IGNORED_SINCE_IMPERSONATED: return utility::conversions::to_string_t("ignored-since-impersonated"); + + case NoteEnum::DEMO_NOOP: return utility::conversions::to_string_t("demo-noop"); + + } +} + + +std::shared_ptr UpdateUserNotificationCommentSubscriptionStatusResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateUserNotificationCommentSubscriptionStatusResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateUserNotificationCommentSubscriptionStatusResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +int64_t UpdateUserNotificationCommentSubscriptionStatusResponse::getMatchedCount() const +{ + return m_MatchedCount; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::setMatchedCount(int64_t value) +{ + m_MatchedCount = value; + m_MatchedCountIsSet = true; +} + +bool UpdateUserNotificationCommentSubscriptionStatusResponse::matchedCountIsSet() const +{ + return m_MatchedCountIsSet; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetMatchedCount() +{ + m_MatchedCountIsSet = false; +} +int64_t UpdateUserNotificationCommentSubscriptionStatusResponse::getModifiedCount() const +{ + return m_ModifiedCount; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::setModifiedCount(int64_t value) +{ + m_ModifiedCount = value; + m_ModifiedCountIsSet = true; +} + +bool UpdateUserNotificationCommentSubscriptionStatusResponse::modifiedCountIsSet() const +{ + return m_ModifiedCountIsSet; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetModifiedCount() +{ + m_ModifiedCountIsSet = false; +} +UpdateUserNotificationCommentSubscriptionStatusResponse::NoteEnum UpdateUserNotificationCommentSubscriptionStatusResponse::getNote() const +{ + return m_Note; +} + + +void UpdateUserNotificationCommentSubscriptionStatusResponse::setNote(const NoteEnum value) +{ + m_Note = value; + m_NoteIsSet = true; +} + +bool UpdateUserNotificationCommentSubscriptionStatusResponse::noteIsSet() const +{ + return m_NoteIsSet; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetNote() +{ + m_NoteIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp b/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp new file mode 100644 index 0000000..01f2185 --- /dev/null +++ b/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp @@ -0,0 +1,297 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateUserNotificationPageSubscriptionStatusResponse::UpdateUserNotificationPageSubscriptionStatusResponse() +{ + m_StatusIsSet = false; + m_MatchedCount = 0L; + m_MatchedCountIsSet = false; + m_ModifiedCount = 0L; + m_ModifiedCountIsSet = false; + m_NoteIsSet = false; +} + +UpdateUserNotificationPageSubscriptionStatusResponse::~UpdateUserNotificationPageSubscriptionStatusResponse() +{ +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateUserNotificationPageSubscriptionStatusResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_MatchedCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("matchedCount"))] = ModelBase::toJson(m_MatchedCount); + } + if(m_ModifiedCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))] = ModelBase::toJson(m_ModifiedCount); + } + if(m_NoteIsSet) + { + + utility::string_t refVal = fromNoteEnum(m_Note); + val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); + + } + + return val; +} + +bool UpdateUserNotificationPageSubscriptionStatusResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("matchedCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("matchedCount"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setMatchedCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setMatchedCount); + setMatchedCount(refVal_setMatchedCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("modifiedCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setModifiedCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setModifiedCount); + setModifiedCount(refVal_setModifiedCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("note")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("note"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNote; + ok &= ModelBase::fromJson(fieldValue, refVal_setNote); + + setNote(toNoteEnum(refVal_setNote)); + + } + } + return ok; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_MatchedCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("matchedCount")), m_MatchedCount)); + } + if(m_ModifiedCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("modifiedCount")), m_ModifiedCount)); + } + if(m_NoteIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("note")), fromNoteEnum(m_Note))); + } +} + +bool UpdateUserNotificationPageSubscriptionStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("matchedCount")))) + { + int64_t refVal_setMatchedCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("matchedCount"))), refVal_setMatchedCount ); + setMatchedCount(refVal_setMatchedCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("modifiedCount")))) + { + int64_t refVal_setModifiedCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))), refVal_setModifiedCount ); + setModifiedCount(refVal_setModifiedCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("note")))) + { + utility::string_t refVal_setNote; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("note"))), refVal_setNote ); + setNote(toNoteEnum(refVal_setNote)); + } + return ok; +} + +UpdateUserNotificationPageSubscriptionStatusResponse::NoteEnum UpdateUserNotificationPageSubscriptionStatusResponse::toNoteEnum(const utility::string_t& value) const +{ + + if (value == utility::conversions::to_string_t("ignored-since-impersonated")) { + return NoteEnum::IGNORED_SINCE_IMPERSONATED; + } + + if (value == utility::conversions::to_string_t("demo-noop")) { + return NoteEnum::DEMO_NOOP; + } + + throw std::invalid_argument("Invalid value for conversion to NoteEnum"); +} + + +const utility::string_t UpdateUserNotificationPageSubscriptionStatusResponse::fromNoteEnum(const NoteEnum value) const +{ + switch(value) + { + + case NoteEnum::IGNORED_SINCE_IMPERSONATED: return utility::conversions::to_string_t("ignored-since-impersonated"); + + case NoteEnum::DEMO_NOOP: return utility::conversions::to_string_t("demo-noop"); + + } +} + + +std::shared_ptr UpdateUserNotificationPageSubscriptionStatusResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateUserNotificationPageSubscriptionStatusResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateUserNotificationPageSubscriptionStatusResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +int64_t UpdateUserNotificationPageSubscriptionStatusResponse::getMatchedCount() const +{ + return m_MatchedCount; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::setMatchedCount(int64_t value) +{ + m_MatchedCount = value; + m_MatchedCountIsSet = true; +} + +bool UpdateUserNotificationPageSubscriptionStatusResponse::matchedCountIsSet() const +{ + return m_MatchedCountIsSet; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::unsetMatchedCount() +{ + m_MatchedCountIsSet = false; +} +int64_t UpdateUserNotificationPageSubscriptionStatusResponse::getModifiedCount() const +{ + return m_ModifiedCount; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::setModifiedCount(int64_t value) +{ + m_ModifiedCount = value; + m_ModifiedCountIsSet = true; +} + +bool UpdateUserNotificationPageSubscriptionStatusResponse::modifiedCountIsSet() const +{ + return m_ModifiedCountIsSet; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::unsetModifiedCount() +{ + m_ModifiedCountIsSet = false; +} +UpdateUserNotificationPageSubscriptionStatusResponse::NoteEnum UpdateUserNotificationPageSubscriptionStatusResponse::getNote() const +{ + return m_Note; +} + + +void UpdateUserNotificationPageSubscriptionStatusResponse::setNote(const NoteEnum value) +{ + m_Note = value; + m_NoteIsSet = true; +} + +bool UpdateUserNotificationPageSubscriptionStatusResponse::noteIsSet() const +{ + return m_NoteIsSet; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::unsetNote() +{ + m_NoteIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateUserNotificationStatusResponse.cpp b/client/src/model/UpdateUserNotificationStatusResponse.cpp new file mode 100644 index 0000000..1b5199e --- /dev/null +++ b/client/src/model/UpdateUserNotificationStatusResponse.cpp @@ -0,0 +1,297 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateUserNotificationStatusResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateUserNotificationStatusResponse::UpdateUserNotificationStatusResponse() +{ + m_StatusIsSet = false; + m_MatchedCount = 0L; + m_MatchedCountIsSet = false; + m_ModifiedCount = 0L; + m_ModifiedCountIsSet = false; + m_NoteIsSet = false; +} + +UpdateUserNotificationStatusResponse::~UpdateUserNotificationStatusResponse() +{ +} + +void UpdateUserNotificationStatusResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateUserNotificationStatusResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_MatchedCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("matchedCount"))] = ModelBase::toJson(m_MatchedCount); + } + if(m_ModifiedCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))] = ModelBase::toJson(m_ModifiedCount); + } + if(m_NoteIsSet) + { + + utility::string_t refVal = fromNoteEnum(m_Note); + val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); + + } + + return val; +} + +bool UpdateUserNotificationStatusResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("matchedCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("matchedCount"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setMatchedCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setMatchedCount); + setMatchedCount(refVal_setMatchedCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("modifiedCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setModifiedCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setModifiedCount); + setModifiedCount(refVal_setModifiedCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("note")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("note"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNote; + ok &= ModelBase::fromJson(fieldValue, refVal_setNote); + + setNote(toNoteEnum(refVal_setNote)); + + } + } + return ok; +} + +void UpdateUserNotificationStatusResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_MatchedCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("matchedCount")), m_MatchedCount)); + } + if(m_ModifiedCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("modifiedCount")), m_ModifiedCount)); + } + if(m_NoteIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("note")), fromNoteEnum(m_Note))); + } +} + +bool UpdateUserNotificationStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("matchedCount")))) + { + int64_t refVal_setMatchedCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("matchedCount"))), refVal_setMatchedCount ); + setMatchedCount(refVal_setMatchedCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("modifiedCount")))) + { + int64_t refVal_setModifiedCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))), refVal_setModifiedCount ); + setModifiedCount(refVal_setModifiedCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("note")))) + { + utility::string_t refVal_setNote; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("note"))), refVal_setNote ); + setNote(toNoteEnum(refVal_setNote)); + } + return ok; +} + +UpdateUserNotificationStatusResponse::NoteEnum UpdateUserNotificationStatusResponse::toNoteEnum(const utility::string_t& value) const +{ + + if (value == utility::conversions::to_string_t("ignored-since-impersonated")) { + return NoteEnum::IGNORED_SINCE_IMPERSONATED; + } + + if (value == utility::conversions::to_string_t("demo-noop")) { + return NoteEnum::DEMO_NOOP; + } + + throw std::invalid_argument("Invalid value for conversion to NoteEnum"); +} + + +const utility::string_t UpdateUserNotificationStatusResponse::fromNoteEnum(const NoteEnum value) const +{ + switch(value) + { + + case NoteEnum::IGNORED_SINCE_IMPERSONATED: return utility::conversions::to_string_t("ignored-since-impersonated"); + + case NoteEnum::DEMO_NOOP: return utility::conversions::to_string_t("demo-noop"); + + } +} + + +std::shared_ptr UpdateUserNotificationStatusResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateUserNotificationStatusResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateUserNotificationStatusResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateUserNotificationStatusResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +int64_t UpdateUserNotificationStatusResponse::getMatchedCount() const +{ + return m_MatchedCount; +} + +void UpdateUserNotificationStatusResponse::setMatchedCount(int64_t value) +{ + m_MatchedCount = value; + m_MatchedCountIsSet = true; +} + +bool UpdateUserNotificationStatusResponse::matchedCountIsSet() const +{ + return m_MatchedCountIsSet; +} + +void UpdateUserNotificationStatusResponse::unsetMatchedCount() +{ + m_MatchedCountIsSet = false; +} +int64_t UpdateUserNotificationStatusResponse::getModifiedCount() const +{ + return m_ModifiedCount; +} + +void UpdateUserNotificationStatusResponse::setModifiedCount(int64_t value) +{ + m_ModifiedCount = value; + m_ModifiedCountIsSet = true; +} + +bool UpdateUserNotificationStatusResponse::modifiedCountIsSet() const +{ + return m_ModifiedCountIsSet; +} + +void UpdateUserNotificationStatusResponse::unsetModifiedCount() +{ + m_ModifiedCountIsSet = false; +} +UpdateUserNotificationStatusResponse::NoteEnum UpdateUserNotificationStatusResponse::getNote() const +{ + return m_Note; +} + + +void UpdateUserNotificationStatusResponse::setNote(const NoteEnum value) +{ + m_Note = value; + m_NoteIsSet = true; +} + +bool UpdateUserNotificationStatusResponse::noteIsSet() const +{ + return m_NoteIsSet; +} + +void UpdateUserNotificationStatusResponse::unsetNote() +{ + m_NoteIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateUserNotificationStatus_200_response.cpp b/client/src/model/UpdateUserNotificationStatus_200_response.cpp deleted file mode 100644 index 6cdc567..0000000 --- a/client/src/model/UpdateUserNotificationStatus_200_response.cpp +++ /dev/null @@ -1,637 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateUserNotificationStatus_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateUserNotificationStatus_200_response::UpdateUserNotificationStatus_200_response() -{ - m_StatusIsSet = false; - m_MatchedCount = 0L; - m_MatchedCountIsSet = false; - m_ModifiedCount = 0L; - m_ModifiedCountIsSet = false; - m_NoteIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateUserNotificationStatus_200_response::~UpdateUserNotificationStatus_200_response() -{ -} - -void UpdateUserNotificationStatus_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateUserNotificationStatus_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_MatchedCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("matchedCount"))] = ModelBase::toJson(m_MatchedCount); - } - if(m_ModifiedCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))] = ModelBase::toJson(m_ModifiedCount); - } - if(m_NoteIsSet) - { - - utility::string_t refVal = fromNoteEnum(m_Note); - val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); - - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateUserNotificationStatus_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("matchedCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("matchedCount"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setMatchedCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setMatchedCount); - setMatchedCount(refVal_setMatchedCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("modifiedCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setModifiedCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setModifiedCount); - setModifiedCount(refVal_setModifiedCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("note")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("note"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setNote; - ok &= ModelBase::fromJson(fieldValue, refVal_setNote); - - setNote(toNoteEnum(refVal_setNote)); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateUserNotificationStatus_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_MatchedCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("matchedCount")), m_MatchedCount)); - } - if(m_ModifiedCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("modifiedCount")), m_ModifiedCount)); - } - if(m_NoteIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("note")), fromNoteEnum(m_Note))); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateUserNotificationStatus_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("matchedCount")))) - { - int64_t refVal_setMatchedCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("matchedCount"))), refVal_setMatchedCount ); - setMatchedCount(refVal_setMatchedCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("modifiedCount")))) - { - int64_t refVal_setModifiedCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))), refVal_setModifiedCount ); - setModifiedCount(refVal_setModifiedCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("note")))) - { - utility::string_t refVal_setNote; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("note"))), refVal_setNote ); - setNote(toNoteEnum(refVal_setNote)); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - -UpdateUserNotificationStatus_200_response::NoteEnum UpdateUserNotificationStatus_200_response::toNoteEnum(const utility::string_t& value) const -{ - - if (value == utility::conversions::to_string_t("ignored-since-impersonated")) { - return NoteEnum::IGNORED_SINCE_IMPERSONATED; - } - - if (value == utility::conversions::to_string_t("demo-noop")) { - return NoteEnum::DEMO_NOOP; - } - - throw std::invalid_argument("Invalid value for conversion to NoteEnum"); -} - - -const utility::string_t UpdateUserNotificationStatus_200_response::fromNoteEnum(const NoteEnum value) const -{ - switch(value) - { - - case NoteEnum::IGNORED_SINCE_IMPERSONATED: return utility::conversions::to_string_t("ignored-since-impersonated"); - - case NoteEnum::DEMO_NOOP: return utility::conversions::to_string_t("demo-noop"); - - } -} - - -std::shared_ptr UpdateUserNotificationStatus_200_response::getStatus() const -{ - return m_Status; -} - - -void UpdateUserNotificationStatus_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateUserNotificationStatus_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateUserNotificationStatus_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -int64_t UpdateUserNotificationStatus_200_response::getMatchedCount() const -{ - return m_MatchedCount; -} - -void UpdateUserNotificationStatus_200_response::setMatchedCount(int64_t value) -{ - m_MatchedCount = value; - m_MatchedCountIsSet = true; -} - -bool UpdateUserNotificationStatus_200_response::matchedCountIsSet() const -{ - return m_MatchedCountIsSet; -} - -void UpdateUserNotificationStatus_200_response::unsetMatchedCount() -{ - m_MatchedCountIsSet = false; -} -int64_t UpdateUserNotificationStatus_200_response::getModifiedCount() const -{ - return m_ModifiedCount; -} - -void UpdateUserNotificationStatus_200_response::setModifiedCount(int64_t value) -{ - m_ModifiedCount = value; - m_ModifiedCountIsSet = true; -} - -bool UpdateUserNotificationStatus_200_response::modifiedCountIsSet() const -{ - return m_ModifiedCountIsSet; -} - -void UpdateUserNotificationStatus_200_response::unsetModifiedCount() -{ - m_ModifiedCountIsSet = false; -} -UpdateUserNotificationStatus_200_response::NoteEnum UpdateUserNotificationStatus_200_response::getNote() const -{ - return m_Note; -} - - -void UpdateUserNotificationStatus_200_response::setNote(const NoteEnum value) -{ - m_Note = value; - m_NoteIsSet = true; -} - -bool UpdateUserNotificationStatus_200_response::noteIsSet() const -{ - return m_NoteIsSet; -} - -void UpdateUserNotificationStatus_200_response::unsetNote() -{ - m_NoteIsSet = false; -} -utility::string_t UpdateUserNotificationStatus_200_response::getReason() const -{ - return m_Reason; -} - - -void UpdateUserNotificationStatus_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateUserNotificationStatus_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateUserNotificationStatus_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateUserNotificationStatus_200_response::getCode() const -{ - return m_Code; -} - - -void UpdateUserNotificationStatus_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateUserNotificationStatus_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateUserNotificationStatus_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateUserNotificationStatus_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateUserNotificationStatus_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateUserNotificationStatus_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateUserNotificationStatus_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateUserNotificationStatus_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateUserNotificationStatus_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateUserNotificationStatus_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateUserNotificationStatus_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateUserNotificationStatus_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateUserNotificationStatus_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateUserNotificationStatus_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateUserNotificationStatus_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateUserNotificationStatus_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateUserNotificationStatus_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateUserNotificationStatus_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateUserNotificationStatus_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateUserNotificationStatus_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateUserNotificationStatus_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateUserNotificationStatus_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateUserNotificationStatus_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UploadImageResponse.cpp b/client/src/model/UploadImageResponse.cpp index 066c0a7..9d17d91 100644 --- a/client/src/model/UploadImageResponse.cpp +++ b/client/src/model/UploadImageResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,27 +43,27 @@ web::json::value UploadImageResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_MediaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("media"))] = ModelBase::toJson(m_Media); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } diff --git a/client/src/model/User.cpp b/client/src/model/User.cpp index deb5a33..27906e7 100644 --- a/client/src/model/User.cpp +++ b/client/src/model/User.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,10 +22,16 @@ User::User() { m__id = utility::conversions::to_string_t(""); m__idIsSet = false; + m_TenantId = utility::conversions::to_string_t(""); + m_TenantIdIsSet = false; m_Username = utility::conversions::to_string_t(""); m_UsernameIsSet = false; m_DisplayName = utility::conversions::to_string_t(""); m_DisplayNameIsSet = false; + m_WebsiteUrl = utility::conversions::to_string_t(""); + m_WebsiteUrlIsSet = false; + m_Email = utility::conversions::to_string_t(""); + m_EmailIsSet = false; m_PendingEmail = utility::conversions::to_string_t(""); m_PendingEmailIsSet = false; m_BackupEmail = utility::conversions::to_string_t(""); @@ -34,6 +40,10 @@ User::User() m_PendingBackupEmailIsSet = false; m_SignUpDate = 0L; m_SignUpDateIsSet = false; + m_CreatedFromUrlId = utility::conversions::to_string_t(""); + m_CreatedFromUrlIdIsSet = false; + m_CreatedFromTenantId = utility::conversions::to_string_t(""); + m_CreatedFromTenantIdIsSet = false; m_CreatedFromIpHashed = utility::conversions::to_string_t(""); m_CreatedFromIpHashedIsSet = false; m_Verified = false; @@ -50,6 +60,8 @@ User::User() m_OptedInTenantNotificationsIsSet = false; m_HideAccountCode = false; m_HideAccountCodeIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; m_IsFastCommentsHelpRequestAdmin = false; m_IsFastCommentsHelpRequestAdminIsSet = false; m_IsHelpRequestAdmin = false; @@ -84,6 +96,7 @@ User::User() m_NotificationFrequencyIsSet = false; m_AdminNotificationFrequency = 0.0; m_AdminNotificationFrequencyIsSet = false; + m_AgentApprovalNotificationFrequencyIsSet = false; m_LastTenantNotificationSentDate = utility::datetime(); m_LastTenantNotificationSentDateIsSet = false; m_LastReplyNotificationSentDate = utility::datetime(); @@ -106,6 +119,8 @@ User::User() m_KarmaIsSet = false; m_PasswordHash = utility::conversions::to_string_t(""); m_PasswordHashIsSet = false; + m_AverageTicketAckTimeMS = 0.0; + m_AverageTicketAckTimeMSIsSet = false; m_HasBlockedUsers = false; m_HasBlockedUsersIsSet = false; m_Bio = utility::conversions::to_string_t(""); @@ -136,297 +151,302 @@ web::json::value User::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } - if(m_TenantId.has_value()) - { + if(m_TenantIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } - if(m_WebsiteUrl.has_value()) - { + if(m_WebsiteUrlIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl.get()); + val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } - if(m_Email.has_value()) - { + if(m_EmailIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_PendingEmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pendingEmail"))] = ModelBase::toJson(m_PendingEmail); } if(m_BackupEmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("backupEmail"))] = ModelBase::toJson(m_BackupEmail); } if(m_PendingBackupEmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pendingBackupEmail"))] = ModelBase::toJson(m_PendingBackupEmail); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } - if(m_CreatedFromUrlId.has_value()) - { + if(m_CreatedFromUrlIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId"))] = ModelBase::toJson(m_CreatedFromUrlId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId"))] = ModelBase::toJson(m_CreatedFromUrlId); } - if(m_CreatedFromTenantId.has_value()) - { + if(m_CreatedFromTenantIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("createdFromTenantId"))] = ModelBase::toJson(m_CreatedFromTenantId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("createdFromTenantId"))] = ModelBase::toJson(m_CreatedFromTenantId); } if(m_CreatedFromIpHashedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdFromIpHashed"))] = ModelBase::toJson(m_CreatedFromIpHashed); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if(m_LoginIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginId"))] = ModelBase::toJson(m_LoginId); } if(m_LoginIdDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginIdDate"))] = ModelBase::toJson(m_LoginIdDate); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_OptedInTenantNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInTenantNotifications"))] = ModelBase::toJson(m_OptedInTenantNotifications); } if(m_HideAccountCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hideAccountCode"))] = ModelBase::toJson(m_HideAccountCode); } - if(m_AvatarSrc.has_value()) - { + if(m_AvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_IsFastCommentsHelpRequestAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isFastCommentsHelpRequestAdmin"))] = ModelBase::toJson(m_IsFastCommentsHelpRequestAdmin); } if(m_IsHelpRequestAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isHelpRequestAdmin"))] = ModelBase::toJson(m_IsHelpRequestAdmin); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsBillingAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBillingAdmin"))] = ModelBase::toJson(m_IsBillingAdmin); } if(m_IsAnalyticsAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAnalyticsAdmin"))] = ModelBase::toJson(m_IsAnalyticsAdmin); } if(m_IsCustomizationAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCustomizationAdmin"))] = ModelBase::toJson(m_IsCustomizationAdmin); } if(m_IsManageDataAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isManageDataAdmin"))] = ModelBase::toJson(m_IsManageDataAdmin); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsAPIAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAPIAdmin"))] = ModelBase::toJson(m_IsAPIAdmin); } if(m_IsSiteAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))] = ModelBase::toJson(m_IsSiteAdmin); } if(m_ModeratorIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderatorIds"))] = ModelBase::toJson(m_ModeratorIds); } if(m_IsImpersonatorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isImpersonator"))] = ModelBase::toJson(m_IsImpersonator); } if(m_IsCouponManagerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCouponManager"))] = ModelBase::toJson(m_IsCouponManager); } if(m_LocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_DigestEmailFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("digestEmailFrequency"))] = ModelBase::toJson(m_DigestEmailFrequency); } if(m_NotificationFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationFrequency"))] = ModelBase::toJson(m_NotificationFrequency); } if(m_AdminNotificationFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("adminNotificationFrequency"))] = ModelBase::toJson(m_AdminNotificationFrequency); } + if(m_AgentApprovalNotificationFrequencyIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("agentApprovalNotificationFrequency"))] = ModelBase::toJson(m_AgentApprovalNotificationFrequency); + } if(m_LastTenantNotificationSentDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastTenantNotificationSentDate"))] = ModelBase::toJson(m_LastTenantNotificationSentDate); } if(m_LastReplyNotificationSentDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastReplyNotificationSentDate"))] = ModelBase::toJson(m_LastReplyNotificationSentDate); } if(m_IgnoredAddToMySiteMessagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ignoredAddToMySiteMessages"))] = ModelBase::toJson(m_IgnoredAddToMySiteMessages); } if(m_LastLoginDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastLoginDate"))] = ModelBase::toJson(m_LastLoginDate); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } if(m_IsProfileActivityPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileActivityPrivate"))] = ModelBase::toJson(m_IsProfileActivityPrivate); } if(m_IsProfileCommentsPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileCommentsPrivate"))] = ModelBase::toJson(m_IsProfileCommentsPrivate); } if(m_IsProfileDMDisabledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileDMDisabled"))] = ModelBase::toJson(m_IsProfileDMDisabled); } if(m_ProfileCommentApprovalModeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("profileCommentApprovalMode"))] = ModelBase::toJson(m_ProfileCommentApprovalMode); } if(m_KarmaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("karma"))] = ModelBase::toJson(m_Karma); } if(m_PasswordHashIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("passwordHash"))] = ModelBase::toJson(m_PasswordHash); } - if(m_AverageTicketAckTimeMS.has_value()) - { + if(m_AverageTicketAckTimeMSIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("averageTicketAckTimeMS"))] = ModelBase::toJson(m_AverageTicketAckTimeMS.get()); + val[utility::conversions::to_string_t(_XPLATSTR("averageTicketAckTimeMS"))] = ModelBase::toJson(m_AverageTicketAckTimeMS); } if(m_HasBlockedUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBlockedUsers"))] = ModelBase::toJson(m_HasBlockedUsers); } if(m_BioIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bio"))] = ModelBase::toJson(m_Bio); } if(m_HeaderBackgroundSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("headerBackgroundSrc"))] = ModelBase::toJson(m_HeaderBackgroundSrc); } if(m_CountryCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("countryCode"))] = ModelBase::toJson(m_CountryCode); } if(m_CountryFlagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("countryFlag"))] = ModelBase::toJson(m_CountryFlag); } if(m_SocialLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("socialLinks"))] = ModelBase::toJson(m_SocialLinks); } if(m_HasTwoFactorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasTwoFactor"))] = ModelBase::toJson(m_HasTwoFactor); } if(m_IsEmailSuppressedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isEmailSuppressed"))] = ModelBase::toJson(m_IsEmailSuppressed); } @@ -866,6 +886,17 @@ bool User::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("agentApprovalNotificationFrequency")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("agentApprovalNotificationFrequency"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setAgentApprovalNotificationFrequency; + ok &= ModelBase::fromJson(fieldValue, refVal_setAgentApprovalNotificationFrequency); + setAgentApprovalNotificationFrequency(refVal_setAgentApprovalNotificationFrequency); + + } + } if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("lastTenantNotificationSentDate")))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("lastTenantNotificationSentDate"))); @@ -1100,9 +1131,9 @@ void User::toMultipart(std::shared_ptr multipart, const utili { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); } - if(m_TenantId.has_value()) + if(m_TenantIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); } if(m_UsernameIsSet) { @@ -1112,13 +1143,13 @@ void User::toMultipart(std::shared_ptr multipart, const utili { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayName")), m_DisplayName)); } - if(m_WebsiteUrl.has_value()) + if(m_WebsiteUrlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("websiteUrl")), m_WebsiteUrl.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("websiteUrl")), m_WebsiteUrl)); } - if(m_Email.has_value()) + if(m_EmailIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); } if(m_PendingEmailIsSet) { @@ -1136,13 +1167,13 @@ void User::toMultipart(std::shared_ptr multipart, const utili { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("signUpDate")), m_SignUpDate)); } - if(m_CreatedFromUrlId.has_value()) + if(m_CreatedFromUrlIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId")), m_CreatedFromUrlId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId")), m_CreatedFromUrlId)); } - if(m_CreatedFromTenantId.has_value()) + if(m_CreatedFromTenantIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdFromTenantId")), m_CreatedFromTenantId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdFromTenantId")), m_CreatedFromTenantId)); } if(m_CreatedFromIpHashedIsSet) { @@ -1176,9 +1207,9 @@ void User::toMultipart(std::shared_ptr multipart, const utili { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hideAccountCode")), m_HideAccountCode)); } - if(m_AvatarSrc.has_value()) + if(m_AvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); } if(m_IsFastCommentsHelpRequestAdminIsSet) { @@ -1252,6 +1283,10 @@ void User::toMultipart(std::shared_ptr multipart, const utili { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("adminNotificationFrequency")), m_AdminNotificationFrequency)); } + if(m_AgentApprovalNotificationFrequencyIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("agentApprovalNotificationFrequency")), m_AgentApprovalNotificationFrequency)); + } if(m_LastTenantNotificationSentDateIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastTenantNotificationSentDate")), m_LastTenantNotificationSentDate)); @@ -1296,9 +1331,9 @@ void User::toMultipart(std::shared_ptr multipart, const utili { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("passwordHash")), m_PasswordHash)); } - if(m_AverageTicketAckTimeMS.has_value()) + if(m_AverageTicketAckTimeMSIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("averageTicketAckTimeMS")), m_AverageTicketAckTimeMS.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("averageTicketAckTimeMS")), m_AverageTicketAckTimeMS)); } if(m_HasBlockedUsersIsSet) { @@ -1577,6 +1612,12 @@ bool User::fromMultiPart(std::shared_ptr multipart, const uti ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("adminNotificationFrequency"))), refVal_setAdminNotificationFrequency ); setAdminNotificationFrequency(refVal_setAdminNotificationFrequency); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("agentApprovalNotificationFrequency")))) + { + std::shared_ptr refVal_setAgentApprovalNotificationFrequency; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("agentApprovalNotificationFrequency"))), refVal_setAgentApprovalNotificationFrequency ); + setAgentApprovalNotificationFrequency(refVal_setAgentApprovalNotificationFrequency); + } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("lastTenantNotificationSentDate")))) { utility::datetime refVal_setLastTenantNotificationSentDate; @@ -1724,23 +1765,24 @@ void User::unset_id() } utility::string_t User::getTenantId() const { - return m_TenantId.get(); + return m_TenantId; } void User::setTenantId(const utility::string_t& value) { m_TenantId = value; + m_TenantIdIsSet = true; } bool User::tenantIdIsSet() const { - return m_TenantId.has_value(); + return m_TenantIdIsSet; } void User::unsetTenantId() { - m_TenantId.reset(); + m_TenantIdIsSet = false; } utility::string_t User::getUsername() const { @@ -1786,43 +1828,45 @@ void User::unsetDisplayName() } utility::string_t User::getWebsiteUrl() const { - return m_WebsiteUrl.get(); + return m_WebsiteUrl; } void User::setWebsiteUrl(const utility::string_t& value) { m_WebsiteUrl = value; + m_WebsiteUrlIsSet = true; } bool User::websiteUrlIsSet() const { - return m_WebsiteUrl.has_value(); + return m_WebsiteUrlIsSet; } void User::unsetWebsiteUrl() { - m_WebsiteUrl.reset(); + m_WebsiteUrlIsSet = false; } utility::string_t User::getEmail() const { - return m_Email.get(); + return m_Email; } void User::setEmail(const utility::string_t& value) { m_Email = value; + m_EmailIsSet = true; } bool User::emailIsSet() const { - return m_Email.has_value(); + return m_EmailIsSet; } void User::unsetEmail() { - m_Email.reset(); + m_EmailIsSet = false; } utility::string_t User::getPendingEmail() const { @@ -1909,43 +1953,45 @@ void User::unsetSignUpDate() } utility::string_t User::getCreatedFromUrlId() const { - return m_CreatedFromUrlId.get(); + return m_CreatedFromUrlId; } void User::setCreatedFromUrlId(const utility::string_t& value) { m_CreatedFromUrlId = value; + m_CreatedFromUrlIdIsSet = true; } bool User::createdFromUrlIdIsSet() const { - return m_CreatedFromUrlId.has_value(); + return m_CreatedFromUrlIdIsSet; } void User::unsetCreatedFromUrlId() { - m_CreatedFromUrlId.reset(); + m_CreatedFromUrlIdIsSet = false; } utility::string_t User::getCreatedFromTenantId() const { - return m_CreatedFromTenantId.get(); + return m_CreatedFromTenantId; } void User::setCreatedFromTenantId(const utility::string_t& value) { m_CreatedFromTenantId = value; + m_CreatedFromTenantIdIsSet = true; } bool User::createdFromTenantIdIsSet() const { - return m_CreatedFromTenantId.has_value(); + return m_CreatedFromTenantIdIsSet; } void User::unsetCreatedFromTenantId() { - m_CreatedFromTenantId.reset(); + m_CreatedFromTenantIdIsSet = false; } utility::string_t User::getCreatedFromIpHashed() const { @@ -2111,23 +2157,24 @@ void User::unsetHideAccountCode() } utility::string_t User::getAvatarSrc() const { - return m_AvatarSrc.get(); + return m_AvatarSrc; } void User::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; + m_AvatarSrcIsSet = true; } bool User::avatarSrcIsSet() const { - return m_AvatarSrc.has_value(); + return m_AvatarSrcIsSet; } void User::unsetAvatarSrc() { - m_AvatarSrc.reset(); + m_AvatarSrcIsSet = false; } bool User::isIsFastCommentsHelpRequestAdmin() const { @@ -2492,6 +2539,27 @@ void User::unsetAdminNotificationFrequency() { m_AdminNotificationFrequencyIsSet = false; } +std::shared_ptr User::getAgentApprovalNotificationFrequency() const +{ + return m_AgentApprovalNotificationFrequency; +} + + +void User::setAgentApprovalNotificationFrequency(const std::shared_ptr& value) +{ + m_AgentApprovalNotificationFrequency = value; + m_AgentApprovalNotificationFrequencyIsSet = true; +} + +bool User::agentApprovalNotificationFrequencyIsSet() const +{ + return m_AgentApprovalNotificationFrequencyIsSet; +} + +void User::unsetAgentApprovalNotificationFrequency() +{ + m_AgentApprovalNotificationFrequencyIsSet = false; +} utility::datetime User::getLastTenantNotificationSentDate() const { return m_LastTenantNotificationSentDate; @@ -2719,22 +2787,23 @@ void User::unsetPasswordHash() } double User::getAverageTicketAckTimeMS() const { - return m_AverageTicketAckTimeMS.get(); + return m_AverageTicketAckTimeMS; } void User::setAverageTicketAckTimeMS(double value) { m_AverageTicketAckTimeMS = value; + m_AverageTicketAckTimeMSIsSet = true; } bool User::averageTicketAckTimeMSIsSet() const { - return m_AverageTicketAckTimeMS.has_value(); + return m_AverageTicketAckTimeMSIsSet; } void User::unsetAverageTicketAckTimeMS() { - m_AverageTicketAckTimeMS.reset(); + m_AverageTicketAckTimeMSIsSet = false; } bool User::isHasBlockedUsers() const { diff --git a/client/src/model/UserBadge.cpp b/client/src/model/UserBadge.cpp index 92142c8..d2efbd9 100644 --- a/client/src/model/UserBadge.cpp +++ b/client/src/model/UserBadge.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,6 +38,16 @@ UserBadge::UserBadge() m_DescriptionIsSet = false; m_DisplayLabel = utility::conversions::to_string_t(""); m_DisplayLabelIsSet = false; + m_DisplaySrc = utility::conversions::to_string_t(""); + m_DisplaySrcIsSet = false; + m_BackgroundColor = utility::conversions::to_string_t(""); + m_BackgroundColorIsSet = false; + m_BorderColor = utility::conversions::to_string_t(""); + m_BorderColorIsSet = false; + m_TextColor = utility::conversions::to_string_t(""); + m_TextColorIsSet = false; + m_CssClass = utility::conversions::to_string_t(""); + m_CssClassIsSet = false; m_VeteranUserThresholdMillis = 0L; m_VeteranUserThresholdMillisIsSet = false; m_DisplayedOnComments = false; @@ -46,6 +56,8 @@ UserBadge::UserBadge() m_ReceivedAtIsSet = false; m_Order = 0; m_OrderIsSet = false; + m_UrlId = utility::conversions::to_string_t(""); + m_UrlIdIsSet = false; } UserBadge::~UserBadge() @@ -61,99 +73,99 @@ web::json::value UserBadge::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_BadgeIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badgeId"))] = ModelBase::toJson(m_BadgeId); } if(m_FromTenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromTenantId"))] = ModelBase::toJson(m_FromTenantId); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_ThresholdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("threshold"))] = ModelBase::toJson(m_Threshold); } if(m_DescriptionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } - if(m_DisplaySrc.has_value()) - { + if(m_DisplaySrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("displaySrc"))] = ModelBase::toJson(m_DisplaySrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("displaySrc"))] = ModelBase::toJson(m_DisplaySrc); } - if(m_BackgroundColor.has_value()) - { + if(m_BackgroundColorIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))] = ModelBase::toJson(m_BackgroundColor.get()); + val[utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))] = ModelBase::toJson(m_BackgroundColor); } - if(m_BorderColor.has_value()) - { + if(m_BorderColorIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("borderColor"))] = ModelBase::toJson(m_BorderColor.get()); + val[utility::conversions::to_string_t(_XPLATSTR("borderColor"))] = ModelBase::toJson(m_BorderColor); } - if(m_TextColor.has_value()) - { + if(m_TextColorIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("textColor"))] = ModelBase::toJson(m_TextColor.get()); + val[utility::conversions::to_string_t(_XPLATSTR("textColor"))] = ModelBase::toJson(m_TextColor); } - if(m_CssClass.has_value()) - { + if(m_CssClassIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("cssClass"))] = ModelBase::toJson(m_CssClass.get()); + val[utility::conversions::to_string_t(_XPLATSTR("cssClass"))] = ModelBase::toJson(m_CssClass); } if(m_VeteranUserThresholdMillisIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("veteranUserThresholdMillis"))] = ModelBase::toJson(m_VeteranUserThresholdMillis); } if(m_DisplayedOnCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayedOnComments"))] = ModelBase::toJson(m_DisplayedOnComments); } if(m_ReceivedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("receivedAt"))] = ModelBase::toJson(m_ReceivedAt); } if(m_OrderIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("order"))] = ModelBase::toJson(m_Order); } - if(m_UrlId.has_value()) - { + if(m_UrlIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } return val; @@ -417,25 +429,25 @@ void UserBadge::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); } - if(m_DisplaySrc.has_value()) + if(m_DisplaySrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displaySrc")), m_DisplaySrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displaySrc")), m_DisplaySrc)); } - if(m_BackgroundColor.has_value()) + if(m_BackgroundColorIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("backgroundColor")), m_BackgroundColor.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("backgroundColor")), m_BackgroundColor)); } - if(m_BorderColor.has_value()) + if(m_BorderColorIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("borderColor")), m_BorderColor.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("borderColor")), m_BorderColor)); } - if(m_TextColor.has_value()) + if(m_TextColorIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textColor")), m_TextColor.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textColor")), m_TextColor)); } - if(m_CssClass.has_value()) + if(m_CssClassIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("cssClass")), m_CssClass.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("cssClass")), m_CssClass)); } if(m_VeteranUserThresholdMillisIsSet) { @@ -453,9 +465,9 @@ void UserBadge::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("order")), m_Order)); } - if(m_UrlId.has_value()) + if(m_UrlIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlId")), m_UrlId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlId")), m_UrlId)); } } @@ -775,103 +787,108 @@ void UserBadge::unsetDisplayLabel() } utility::string_t UserBadge::getDisplaySrc() const { - return m_DisplaySrc.get(); + return m_DisplaySrc; } void UserBadge::setDisplaySrc(const utility::string_t& value) { m_DisplaySrc = value; + m_DisplaySrcIsSet = true; } bool UserBadge::displaySrcIsSet() const { - return m_DisplaySrc.has_value(); + return m_DisplaySrcIsSet; } void UserBadge::unsetDisplaySrc() { - m_DisplaySrc.reset(); + m_DisplaySrcIsSet = false; } utility::string_t UserBadge::getBackgroundColor() const { - return m_BackgroundColor.get(); + return m_BackgroundColor; } void UserBadge::setBackgroundColor(const utility::string_t& value) { m_BackgroundColor = value; + m_BackgroundColorIsSet = true; } bool UserBadge::backgroundColorIsSet() const { - return m_BackgroundColor.has_value(); + return m_BackgroundColorIsSet; } void UserBadge::unsetBackgroundColor() { - m_BackgroundColor.reset(); + m_BackgroundColorIsSet = false; } utility::string_t UserBadge::getBorderColor() const { - return m_BorderColor.get(); + return m_BorderColor; } void UserBadge::setBorderColor(const utility::string_t& value) { m_BorderColor = value; + m_BorderColorIsSet = true; } bool UserBadge::borderColorIsSet() const { - return m_BorderColor.has_value(); + return m_BorderColorIsSet; } void UserBadge::unsetBorderColor() { - m_BorderColor.reset(); + m_BorderColorIsSet = false; } utility::string_t UserBadge::getTextColor() const { - return m_TextColor.get(); + return m_TextColor; } void UserBadge::setTextColor(const utility::string_t& value) { m_TextColor = value; + m_TextColorIsSet = true; } bool UserBadge::textColorIsSet() const { - return m_TextColor.has_value(); + return m_TextColorIsSet; } void UserBadge::unsetTextColor() { - m_TextColor.reset(); + m_TextColorIsSet = false; } utility::string_t UserBadge::getCssClass() const { - return m_CssClass.get(); + return m_CssClass; } void UserBadge::setCssClass(const utility::string_t& value) { m_CssClass = value; + m_CssClassIsSet = true; } bool UserBadge::cssClassIsSet() const { - return m_CssClass.has_value(); + return m_CssClassIsSet; } void UserBadge::unsetCssClass() { - m_CssClass.reset(); + m_CssClassIsSet = false; } int64_t UserBadge::getVeteranUserThresholdMillis() const { @@ -956,23 +973,24 @@ void UserBadge::unsetOrder() } utility::string_t UserBadge::getUrlId() const { - return m_UrlId.get(); + return m_UrlId; } void UserBadge::setUrlId(const utility::string_t& value) { m_UrlId = value; + m_UrlIdIsSet = true; } bool UserBadge::urlIdIsSet() const { - return m_UrlId.has_value(); + return m_UrlIdIsSet; } void UserBadge::unsetUrlId() { - m_UrlId.reset(); + m_UrlIdIsSet = false; } } diff --git a/client/src/model/UserBadgeProgress.cpp b/client/src/model/UserBadgeProgress.cpp index 08b48ae..bab35f3 100644 --- a/client/src/model/UserBadgeProgress.cpp +++ b/client/src/model/UserBadgeProgress.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -52,47 +52,47 @@ web::json::value UserBadgeProgress::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_FirstCommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("firstCommentId"))] = ModelBase::toJson(m_FirstCommentId); } if(m_FirstCommentDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("firstCommentDate"))] = ModelBase::toJson(m_FirstCommentDate); } if(m_AutoTrustFactorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor"))] = ModelBase::toJson(m_AutoTrustFactor); } if(m_ManualTrustFactorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor"))] = ModelBase::toJson(m_ManualTrustFactor); } if(m_ProgressIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("progress"))] = ModelBase::toJson(m_Progress); } if(m_TosAcceptedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tosAcceptedAt"))] = ModelBase::toJson(m_TosAcceptedAt); } diff --git a/client/src/model/UserNotification.cpp b/client/src/model/UserNotification.cpp index b14eb81..1e51324 100644 --- a/client/src/model/UserNotification.cpp +++ b/client/src/model/UserNotification.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,10 +24,16 @@ UserNotification::UserNotification() m__idIsSet = false; m_TenantId = utility::conversions::to_string_t(""); m_TenantIdIsSet = false; + m_UserId = utility::conversions::to_string_t(""); + m_UserIdIsSet = false; + m_AnonUserId = utility::conversions::to_string_t(""); + m_AnonUserIdIsSet = false; m_UrlId = utility::conversions::to_string_t(""); m_UrlIdIsSet = false; m_Url = utility::conversions::to_string_t(""); m_UrlIsSet = false; + m_PageTitle = utility::conversions::to_string_t(""); + m_PageTitleIsSet = false; m_RelatedObjectTypeIsSet = false; m_RelatedObjectId = utility::conversions::to_string_t(""); m_RelatedObjectIdIsSet = false; @@ -40,6 +46,16 @@ UserNotification::UserNotification() m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; m_TypeIsSet = false; + m_FromCommentId = utility::conversions::to_string_t(""); + m_FromCommentIdIsSet = false; + m_FromVoteId = utility::conversions::to_string_t(""); + m_FromVoteIdIsSet = false; + m_FromUserName = utility::conversions::to_string_t(""); + m_FromUserNameIsSet = false; + m_FromUserId = utility::conversions::to_string_t(""); + m_FromUserIdIsSet = false; + m_FromUserAvatarSrc = utility::conversions::to_string_t(""); + m_FromUserAvatarSrcIsSet = false; m_OptedOut = false; m_OptedOutIsSet = false; m_Count = 0L; @@ -62,122 +78,122 @@ web::json::value UserNotification::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } - if(m_UserId.has_value()) - { + if(m_UserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } - if(m_AnonUserId.has_value()) - { + if(m_AnonUserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } - if(m_PageTitle.has_value()) - { + if(m_PageTitleIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } if(m_RelatedObjectTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("relatedObjectType"))] = ModelBase::toJson(m_RelatedObjectType); } if(m_RelatedObjectIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("relatedObjectId"))] = ModelBase::toJson(m_RelatedObjectId); } if(m_ViewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("viewed"))] = ModelBase::toJson(m_Viewed); } if(m_IsUnreadMessageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isUnreadMessage"))] = ModelBase::toJson(m_IsUnreadMessage); } if(m_SentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sent"))] = ModelBase::toJson(m_Sent); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } - if(m_FromCommentId.has_value()) - { + if(m_FromCommentIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromCommentId"))] = ModelBase::toJson(m_FromCommentId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("fromCommentId"))] = ModelBase::toJson(m_FromCommentId); } - if(m_FromVoteId.has_value()) - { + if(m_FromVoteIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromVoteId"))] = ModelBase::toJson(m_FromVoteId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("fromVoteId"))] = ModelBase::toJson(m_FromVoteId); } - if(m_FromUserName.has_value()) - { + if(m_FromUserNameIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserName"))] = ModelBase::toJson(m_FromUserName.get()); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserName"))] = ModelBase::toJson(m_FromUserName); } - if(m_FromUserId.has_value()) - { + if(m_FromUserIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserId"))] = ModelBase::toJson(m_FromUserId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserId"))] = ModelBase::toJson(m_FromUserId); } - if(m_FromUserAvatarSrc.has_value()) - { + if(m_FromUserAvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc"))] = ModelBase::toJson(m_FromUserAvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc"))] = ModelBase::toJson(m_FromUserAvatarSrc); } if(m_OptedOutIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedOut"))] = ModelBase::toJson(m_OptedOut); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } if(m_RelatedIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("relatedIds"))] = ModelBase::toJson(m_RelatedIds); } if(m_FromUserIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserIds"))] = ModelBase::toJson(m_FromUserIds); } if(m_FromUserNamesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserNames"))] = ModelBase::toJson(m_FromUserNames); } @@ -470,13 +486,13 @@ void UserNotification::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); } - if(m_UserId.has_value()) + if(m_UserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); } - if(m_AnonUserId.has_value()) + if(m_AnonUserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); } if(m_UrlIdIsSet) { @@ -486,9 +502,9 @@ void UserNotification::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } - if(m_PageTitle.has_value()) + if(m_PageTitleIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); } if(m_RelatedObjectTypeIsSet) { @@ -518,25 +534,25 @@ void UserNotification::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type)); } - if(m_FromCommentId.has_value()) + if(m_FromCommentIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromCommentId")), m_FromCommentId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromCommentId")), m_FromCommentId)); } - if(m_FromVoteId.has_value()) + if(m_FromVoteIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromVoteId")), m_FromVoteId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromVoteId")), m_FromVoteId)); } - if(m_FromUserName.has_value()) + if(m_FromUserNameIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserName")), m_FromUserName.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserName")), m_FromUserName)); } - if(m_FromUserId.has_value()) + if(m_FromUserIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserId")), m_FromUserId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserId")), m_FromUserId)); } - if(m_FromUserAvatarSrc.has_value()) + if(m_FromUserAvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc")), m_FromUserAvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc")), m_FromUserAvatarSrc)); } if(m_OptedOutIsSet) { @@ -761,43 +777,45 @@ void UserNotification::unsetTenantId() } utility::string_t UserNotification::getUserId() const { - return m_UserId.get(); + return m_UserId; } void UserNotification::setUserId(const utility::string_t& value) { m_UserId = value; + m_UserIdIsSet = true; } bool UserNotification::userIdIsSet() const { - return m_UserId.has_value(); + return m_UserIdIsSet; } void UserNotification::unsetUserId() { - m_UserId.reset(); + m_UserIdIsSet = false; } utility::string_t UserNotification::getAnonUserId() const { - return m_AnonUserId.get(); + return m_AnonUserId; } void UserNotification::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; + m_AnonUserIdIsSet = true; } bool UserNotification::anonUserIdIsSet() const { - return m_AnonUserId.has_value(); + return m_AnonUserIdIsSet; } void UserNotification::unsetAnonUserId() { - m_AnonUserId.reset(); + m_AnonUserIdIsSet = false; } utility::string_t UserNotification::getUrlId() const { @@ -843,23 +861,24 @@ void UserNotification::unsetUrl() } utility::string_t UserNotification::getPageTitle() const { - return m_PageTitle.get(); + return m_PageTitle; } void UserNotification::setPageTitle(const utility::string_t& value) { m_PageTitle = value; + m_PageTitleIsSet = true; } bool UserNotification::pageTitleIsSet() const { - return m_PageTitle.has_value(); + return m_PageTitleIsSet; } void UserNotification::unsetPageTitle() { - m_PageTitle.reset(); + m_PageTitleIsSet = false; } std::shared_ptr UserNotification::getRelatedObjectType() const { @@ -1007,103 +1026,108 @@ void UserNotification::unsetType() } utility::string_t UserNotification::getFromCommentId() const { - return m_FromCommentId.get(); + return m_FromCommentId; } void UserNotification::setFromCommentId(const utility::string_t& value) { m_FromCommentId = value; + m_FromCommentIdIsSet = true; } bool UserNotification::fromCommentIdIsSet() const { - return m_FromCommentId.has_value(); + return m_FromCommentIdIsSet; } void UserNotification::unsetFromCommentId() { - m_FromCommentId.reset(); + m_FromCommentIdIsSet = false; } utility::string_t UserNotification::getFromVoteId() const { - return m_FromVoteId.get(); + return m_FromVoteId; } void UserNotification::setFromVoteId(const utility::string_t& value) { m_FromVoteId = value; + m_FromVoteIdIsSet = true; } bool UserNotification::fromVoteIdIsSet() const { - return m_FromVoteId.has_value(); + return m_FromVoteIdIsSet; } void UserNotification::unsetFromVoteId() { - m_FromVoteId.reset(); + m_FromVoteIdIsSet = false; } utility::string_t UserNotification::getFromUserName() const { - return m_FromUserName.get(); + return m_FromUserName; } void UserNotification::setFromUserName(const utility::string_t& value) { m_FromUserName = value; + m_FromUserNameIsSet = true; } bool UserNotification::fromUserNameIsSet() const { - return m_FromUserName.has_value(); + return m_FromUserNameIsSet; } void UserNotification::unsetFromUserName() { - m_FromUserName.reset(); + m_FromUserNameIsSet = false; } utility::string_t UserNotification::getFromUserId() const { - return m_FromUserId.get(); + return m_FromUserId; } void UserNotification::setFromUserId(const utility::string_t& value) { m_FromUserId = value; + m_FromUserIdIsSet = true; } bool UserNotification::fromUserIdIsSet() const { - return m_FromUserId.has_value(); + return m_FromUserIdIsSet; } void UserNotification::unsetFromUserId() { - m_FromUserId.reset(); + m_FromUserIdIsSet = false; } utility::string_t UserNotification::getFromUserAvatarSrc() const { - return m_FromUserAvatarSrc.get(); + return m_FromUserAvatarSrc; } void UserNotification::setFromUserAvatarSrc(const utility::string_t& value) { m_FromUserAvatarSrc = value; + m_FromUserAvatarSrcIsSet = true; } bool UserNotification::fromUserAvatarSrcIsSet() const { - return m_FromUserAvatarSrc.has_value(); + return m_FromUserAvatarSrcIsSet; } void UserNotification::unsetFromUserAvatarSrc() { - m_FromUserAvatarSrc.reset(); + m_FromUserAvatarSrcIsSet = false; } bool UserNotification::isOptedOut() const { diff --git a/client/src/model/UserNotificationCount.cpp b/client/src/model/UserNotificationCount.cpp index 113100c..977cc58 100644 --- a/client/src/model/UserNotificationCount.cpp +++ b/client/src/model/UserNotificationCount.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,22 +43,22 @@ web::json::value UserNotificationCount::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_ExpireAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); } diff --git a/client/src/model/UserNotificationWriteResponse.cpp b/client/src/model/UserNotificationWriteResponse.cpp index c742177..2029f33 100644 --- a/client/src/model/UserNotificationWriteResponse.cpp +++ b/client/src/model/UserNotificationWriteResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,17 +40,17 @@ web::json::value UserNotificationWriteResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_MatchedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("matchedCount"))] = ModelBase::toJson(m_MatchedCount); } if(m_ModifiedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))] = ModelBase::toJson(m_ModifiedCount); } diff --git a/client/src/model/UserPresenceData.cpp b/client/src/model/UserPresenceData.cpp index b7f841b..61a6269 100644 --- a/client/src/model/UserPresenceData.cpp +++ b/client/src/model/UserPresenceData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value UserPresenceData::toJson() const { web::json::value val = web::json::value::object(); if(m_UrlIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); } if(m_UserIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); } if(m_TenantIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))] = ModelBase::toJson(m_TenantIdWS); } diff --git a/client/src/model/UserReactsResponse.cpp b/client/src/model/UserReactsResponse.cpp index 7ea447f..a9fe80d 100644 --- a/client/src/model/UserReactsResponse.cpp +++ b/client/src/model/UserReactsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value UserReactsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ReactsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reacts"))] = ModelBase::toJson(m_Reacts); } diff --git a/client/src/model/UserSearchResult.cpp b/client/src/model/UserSearchResult.cpp index 5c3eac2..01b10f4 100644 --- a/client/src/model/UserSearchResult.cpp +++ b/client/src/model/UserSearchResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -26,6 +26,8 @@ UserSearchResult::UserSearchResult() m_NameIsSet = false; m_DisplayName = utility::conversions::to_string_t(""); m_DisplayNameIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; m_TypeIsSet = false; } @@ -42,27 +44,27 @@ web::json::value UserSearchResult::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } - if(m_AvatarSrc.has_value()) - { + if(m_AvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_TypeIsSet) - { + { utility::string_t refVal = fromTypeEnum(m_Type); val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(refVal); @@ -153,9 +155,9 @@ void UserSearchResult::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayName")), m_DisplayName)); } - if(m_AvatarSrc.has_value()) + if(m_AvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); } if(m_TypeIsSet) { @@ -298,23 +300,24 @@ void UserSearchResult::unsetDisplayName() } utility::string_t UserSearchResult::getAvatarSrc() const { - return m_AvatarSrc.get(); + return m_AvatarSrc; } void UserSearchResult::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; + m_AvatarSrcIsSet = true; } bool UserSearchResult::avatarSrcIsSet() const { - return m_AvatarSrc.has_value(); + return m_AvatarSrcIsSet; } void UserSearchResult::unsetAvatarSrc() { - m_AvatarSrc.reset(); + m_AvatarSrcIsSet = false; } UserSearchResult::TypeEnum UserSearchResult::getType() const { diff --git a/client/src/model/UserSearchSection.cpp b/client/src/model/UserSearchSection.cpp index 193372c..8a91051 100644 --- a/client/src/model/UserSearchSection.cpp +++ b/client/src/model/UserSearchSection.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UserSearchSectionResult.cpp b/client/src/model/UserSearchSectionResult.cpp index 7c51899..f5c04c5 100644 --- a/client/src/model/UserSearchSectionResult.cpp +++ b/client/src/model/UserSearchSectionResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value UserSearchSectionResult::toJson() const { web::json::value val = web::json::value::object(); if(m_SectionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("section"))] = ModelBase::toJson(m_Section); } if(m_UsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); } diff --git a/client/src/model/UserSessionInfo.cpp b/client/src/model/UserSessionInfo.cpp index 4fb1c3d..6b2e4e9 100644 --- a/client/src/model/UserSessionInfo.cpp +++ b/client/src/model/UserSessionInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,11 +24,15 @@ UserSessionInfo::UserSessionInfo() m_IdIsSet = false; m_Authorized = false; m_AuthorizedIsSet = false; + m_AvatarSrc = utility::conversions::to_string_t(""); + m_AvatarSrcIsSet = false; m_BadgesIsSet = false; m_DisplayLabel = utility::conversions::to_string_t(""); m_DisplayLabelIsSet = false; m_DisplayName = utility::conversions::to_string_t(""); m_DisplayNameIsSet = false; + m_Email = utility::conversions::to_string_t(""); + m_EmailIsSet = false; m_GroupIdsIsSet = false; m_HasBlockedUsers = false; m_HasBlockedUsersIsSet = false; @@ -36,6 +40,8 @@ UserSessionInfo::UserSessionInfo() m_IsAnonSessionIsSet = false; m_NeedsTOS = false; m_NeedsTOSIsSet = false; + m_SessionId = utility::conversions::to_string_t(""); + m_SessionIdIsSet = false; m_Username = utility::conversions::to_string_t(""); m_UsernameIsSet = false; m_WebsiteUrl = utility::conversions::to_string_t(""); @@ -55,72 +61,72 @@ web::json::value UserSessionInfo::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_AuthorizedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("authorized"))] = ModelBase::toJson(m_Authorized); } - if(m_AvatarSrc.has_value()) - { + if(m_AvatarSrcIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_BadgesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } - if(m_Email.has_value()) - { + if(m_EmailIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_GroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); } if(m_HasBlockedUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBlockedUsers"))] = ModelBase::toJson(m_HasBlockedUsers); } if(m_IsAnonSessionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAnonSession"))] = ModelBase::toJson(m_IsAnonSession); } if(m_NeedsTOSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("needsTOS"))] = ModelBase::toJson(m_NeedsTOS); } - if(m_SessionId.has_value()) - { + if(m_SessionIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("sessionId"))] = ModelBase::toJson(m_SessionId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("sessionId"))] = ModelBase::toJson(m_SessionId); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } @@ -303,9 +309,9 @@ void UserSessionInfo::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("authorized")), m_Authorized)); } - if(m_AvatarSrc.has_value()) + if(m_AvatarSrcIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); } if(m_BadgesIsSet) { @@ -319,9 +325,9 @@ void UserSessionInfo::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayName")), m_DisplayName)); } - if(m_Email.has_value()) + if(m_EmailIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); } if(m_GroupIdsIsSet) { @@ -339,9 +345,9 @@ void UserSessionInfo::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("needsTOS")), m_NeedsTOS)); } - if(m_SessionId.has_value()) + if(m_SessionIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sessionId")), m_SessionId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sessionId")), m_SessionId)); } if(m_UsernameIsSet) { @@ -493,23 +499,24 @@ void UserSessionInfo::unsetAuthorized() } utility::string_t UserSessionInfo::getAvatarSrc() const { - return m_AvatarSrc.get(); + return m_AvatarSrc; } void UserSessionInfo::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; + m_AvatarSrcIsSet = true; } bool UserSessionInfo::avatarSrcIsSet() const { - return m_AvatarSrc.has_value(); + return m_AvatarSrcIsSet; } void UserSessionInfo::unsetAvatarSrc() { - m_AvatarSrc.reset(); + m_AvatarSrcIsSet = false; } std::vector> UserSessionInfo::getBadges() const { @@ -576,23 +583,24 @@ void UserSessionInfo::unsetDisplayName() } utility::string_t UserSessionInfo::getEmail() const { - return m_Email.get(); + return m_Email; } void UserSessionInfo::setEmail(const utility::string_t& value) { m_Email = value; + m_EmailIsSet = true; } bool UserSessionInfo::emailIsSet() const { - return m_Email.has_value(); + return m_EmailIsSet; } void UserSessionInfo::unsetEmail() { - m_Email.reset(); + m_EmailIsSet = false; } std::vector UserSessionInfo::getGroupIds() const { @@ -677,23 +685,24 @@ void UserSessionInfo::unsetNeedsTOS() } utility::string_t UserSessionInfo::getSessionId() const { - return m_SessionId.get(); + return m_SessionId; } void UserSessionInfo::setSessionId(const utility::string_t& value) { m_SessionId = value; + m_SessionIdIsSet = true; } bool UserSessionInfo::sessionIdIsSet() const { - return m_SessionId.has_value(); + return m_SessionIdIsSet; } void UserSessionInfo::unsetSessionId() { - m_SessionId.reset(); + m_SessionIdIsSet = false; } utility::string_t UserSessionInfo::getUsername() const { diff --git a/client/src/model/UsersListLocation.cpp b/client/src/model/UsersListLocation.cpp new file mode 100644 index 0000000..fd7d086 --- /dev/null +++ b/client/src/model/UsersListLocation.cpp @@ -0,0 +1,138 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UsersListLocation.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +namespace +{ +using EnumUnderlyingType = int64_t; + +UsersListLocation::eUsersListLocation toEnum(const EnumUnderlyingType& val) +{ + switch (val) + { + case 0: + return UsersListLocation::eUsersListLocation::_0; + case 1: + return UsersListLocation::eUsersListLocation::_1; + case 2: + return UsersListLocation::eUsersListLocation::_2; + case 3: + return UsersListLocation::eUsersListLocation::_3; + default: + break; + } + return {}; +} + +EnumUnderlyingType fromEnum(UsersListLocation::eUsersListLocation e) +{ + switch (e) + { + case UsersListLocation::eUsersListLocation::_0: + return 0; + case UsersListLocation::eUsersListLocation::_1: + return 1; + case UsersListLocation::eUsersListLocation::_2: + return 2; + case UsersListLocation::eUsersListLocation::_3: + return 3; + default: + break; + } + return {}; +} +} + +UsersListLocation::UsersListLocation() +{ +} + +UsersListLocation::~UsersListLocation() +{ +} + +void UsersListLocation::validate() +{ + // TODO: implement validation +} + +web::json::value UsersListLocation::toJson() const +{ + auto val = fromEnum(m_value); + return web::json::value(val); +} + +bool UsersListLocation::fromJson(const web::json::value& val) +{ + m_value = toEnum(val.as_number().to_int64()); + return true; +} + +void UsersListLocation::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) + { + namePrefix.push_back(_XPLATSTR('.')); + } + + auto e = fromEnum(m_value); + multipart->add(ModelBase::toHttpContent(namePrefix, e)); +} + +bool UsersListLocation::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) + { + namePrefix.push_back(_XPLATSTR('.')); + } + { + EnumUnderlyingType e; + ok = ModelBase::fromHttpContent(multipart->getContent(namePrefix), e); + if (ok) + { + auto v = toEnum(e); + setValue(v); + } + } + return ok; +} + +UsersListLocation::eUsersListLocation UsersListLocation::getValue() const +{ + return m_value; +} + +void UsersListLocation::setValue(UsersListLocation::eUsersListLocation const value) +{ + m_value = value; +} + +UsersListLocation::UsersListLocation(utility::string_t str){ + setValue( strToEnumMap[str] ); +} + +} +} +} +} + + diff --git a/client/src/model/VoteBodyParams.cpp b/client/src/model/VoteBodyParams.cpp index 7f13388..23443d8 100644 --- a/client/src/model/VoteBodyParams.cpp +++ b/client/src/model/VoteBodyParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,7 +20,13 @@ namespace model { VoteBodyParams::VoteBodyParams() { + m_CommenterEmail = utility::conversions::to_string_t(""); + m_CommenterEmailIsSet = false; + m_CommenterName = utility::conversions::to_string_t(""); + m_CommenterNameIsSet = false; m_VoteDirIsSet = false; + m_Url = utility::conversions::to_string_t(""); + m_UrlIsSet = false; } VoteBodyParams::~VoteBodyParams() @@ -35,27 +41,27 @@ void VoteBodyParams::validate() web::json::value VoteBodyParams::toJson() const { web::json::value val = web::json::value::object(); - if(m_CommenterEmail.has_value()) - { + if(m_CommenterEmailIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); } - if(m_CommenterName.has_value()) - { + if(m_CommenterNameIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName.get()); + val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } if(m_VoteDirIsSet) - { + { utility::string_t refVal = fromVoteDirEnum(m_VoteDir); val[utility::conversions::to_string_t(_XPLATSTR("voteDir"))] = ModelBase::toJson(refVal); } - if(m_Url.has_value()) - { + if(m_UrlIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url.get()); + val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } return val; @@ -119,21 +125,21 @@ void VoteBodyParams::toMultipart(std::shared_ptr multipart, c { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_CommenterEmail.has_value()) + if(m_CommenterEmailIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); } - if(m_CommenterName.has_value()) + if(m_CommenterNameIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } if(m_VoteDirIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("voteDir")), fromVoteDirEnum(m_VoteDir))); } - if(m_Url.has_value()) + if(m_UrlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } } @@ -203,43 +209,45 @@ const utility::string_t VoteBodyParams::fromVoteDirEnum(const VoteDirEnum value) utility::string_t VoteBodyParams::getCommenterEmail() const { - return m_CommenterEmail.get(); + return m_CommenterEmail; } void VoteBodyParams::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; + m_CommenterEmailIsSet = true; } bool VoteBodyParams::commenterEmailIsSet() const { - return m_CommenterEmail.has_value(); + return m_CommenterEmailIsSet; } void VoteBodyParams::unsetCommenterEmail() { - m_CommenterEmail.reset(); + m_CommenterEmailIsSet = false; } utility::string_t VoteBodyParams::getCommenterName() const { - return m_CommenterName.get(); + return m_CommenterName; } void VoteBodyParams::setCommenterName(const utility::string_t& value) { m_CommenterName = value; + m_CommenterNameIsSet = true; } bool VoteBodyParams::commenterNameIsSet() const { - return m_CommenterName.has_value(); + return m_CommenterNameIsSet; } void VoteBodyParams::unsetCommenterName() { - m_CommenterName.reset(); + m_CommenterNameIsSet = false; } VoteBodyParams::VoteDirEnum VoteBodyParams::getVoteDir() const { @@ -264,23 +272,24 @@ void VoteBodyParams::unsetVoteDir() } utility::string_t VoteBodyParams::getUrl() const { - return m_Url.get(); + return m_Url; } void VoteBodyParams::setUrl(const utility::string_t& value) { m_Url = value; + m_UrlIsSet = true; } bool VoteBodyParams::urlIsSet() const { - return m_Url.has_value(); + return m_UrlIsSet; } void VoteBodyParams::unsetUrl() { - m_Url.reset(); + m_UrlIsSet = false; } } diff --git a/client/src/model/VoteComment_200_response.cpp b/client/src/model/VoteComment_200_response.cpp deleted file mode 100644 index 57e6fa4..0000000 --- a/client/src/model/VoteComment_200_response.cpp +++ /dev/null @@ -1,657 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/VoteComment_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -VoteComment_200_response::VoteComment_200_response() -{ - m_StatusIsSet = false; - m_VoteId = utility::conversions::to_string_t(""); - m_VoteIdIsSet = false; - m_IsVerified = false; - m_IsVerifiedIsSet = false; - m_UserIsSet = false; - m_EditKey = utility::conversions::to_string_t(""); - m_EditKeyIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -VoteComment_200_response::~VoteComment_200_response() -{ -} - -void VoteComment_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value VoteComment_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_VoteIdIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("voteId"))] = ModelBase::toJson(m_VoteId); - } - if(m_IsVerifiedIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isVerified"))] = ModelBase::toJson(m_IsVerified); - } - if(m_UserIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); - } - if(m_EditKeyIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool VoteComment_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("voteId")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("voteId"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setVoteId; - ok &= ModelBase::fromJson(fieldValue, refVal_setVoteId); - setVoteId(refVal_setVoteId); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isVerified"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsVerified; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsVerified); - setIsVerified(refVal_setIsVerified); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setUser); - setUser(refVal_setUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("editKey")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("editKey"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setEditKey; - ok &= ModelBase::fromJson(fieldValue, refVal_setEditKey); - setEditKey(refVal_setEditKey); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void VoteComment_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_VoteIdIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("voteId")), m_VoteId)); - } - if(m_IsVerifiedIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isVerified")), m_IsVerified)); - } - if(m_UserIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); - } - if(m_EditKeyIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("editKey")), m_EditKey)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool VoteComment_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("voteId")))) - { - utility::string_t refVal_setVoteId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("voteId"))), refVal_setVoteId ); - setVoteId(refVal_setVoteId); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) - { - bool refVal_setIsVerified; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isVerified"))), refVal_setIsVerified ); - setIsVerified(refVal_setIsVerified); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); - setUser(refVal_setUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("editKey")))) - { - utility::string_t refVal_setEditKey; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("editKey"))), refVal_setEditKey ); - setEditKey(refVal_setEditKey); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr VoteComment_200_response::getStatus() const -{ - return m_Status; -} - - -void VoteComment_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool VoteComment_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void VoteComment_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t VoteComment_200_response::getVoteId() const -{ - return m_VoteId; -} - - -void VoteComment_200_response::setVoteId(const utility::string_t& value) -{ - m_VoteId = value; - m_VoteIdIsSet = true; -} - -bool VoteComment_200_response::voteIdIsSet() const -{ - return m_VoteIdIsSet; -} - -void VoteComment_200_response::unsetVoteId() -{ - m_VoteIdIsSet = false; -} -bool VoteComment_200_response::isIsVerified() const -{ - return m_IsVerified; -} - -void VoteComment_200_response::setIsVerified(bool value) -{ - m_IsVerified = value; - m_IsVerifiedIsSet = true; -} - -bool VoteComment_200_response::isVerifiedIsSet() const -{ - return m_IsVerifiedIsSet; -} - -void VoteComment_200_response::unsetIsVerified() -{ - m_IsVerifiedIsSet = false; -} -std::shared_ptr VoteComment_200_response::getUser() const -{ - return m_User; -} - - -void VoteComment_200_response::setUser(const std::shared_ptr& value) -{ - m_User = value; - m_UserIsSet = true; -} - -bool VoteComment_200_response::userIsSet() const -{ - return m_UserIsSet; -} - -void VoteComment_200_response::unsetUser() -{ - m_UserIsSet = false; -} -utility::string_t VoteComment_200_response::getEditKey() const -{ - return m_EditKey; -} - - -void VoteComment_200_response::setEditKey(const utility::string_t& value) -{ - m_EditKey = value; - m_EditKeyIsSet = true; -} - -bool VoteComment_200_response::editKeyIsSet() const -{ - return m_EditKeyIsSet; -} - -void VoteComment_200_response::unsetEditKey() -{ - m_EditKeyIsSet = false; -} -utility::string_t VoteComment_200_response::getReason() const -{ - return m_Reason; -} - - -void VoteComment_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool VoteComment_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void VoteComment_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t VoteComment_200_response::getCode() const -{ - return m_Code; -} - - -void VoteComment_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool VoteComment_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void VoteComment_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t VoteComment_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void VoteComment_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool VoteComment_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void VoteComment_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t VoteComment_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void VoteComment_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool VoteComment_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void VoteComment_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t VoteComment_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void VoteComment_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool VoteComment_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void VoteComment_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t VoteComment_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void VoteComment_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool VoteComment_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void VoteComment_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr VoteComment_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void VoteComment_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool VoteComment_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void VoteComment_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/VoteDeleteResponse.cpp b/client/src/model/VoteDeleteResponse.cpp index 6eb2230..ca0d6fe 100644 --- a/client/src/model/VoteDeleteResponse.cpp +++ b/client/src/model/VoteDeleteResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value VoteDeleteResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_WasPendingVoteIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))] = ModelBase::toJson(m_WasPendingVote); } diff --git a/client/src/model/VoteResponse.cpp b/client/src/model/VoteResponse.cpp index 682434c..788b109 100644 --- a/client/src/model/VoteResponse.cpp +++ b/client/src/model/VoteResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,29 +43,27 @@ web::json::value VoteResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { - - utility::string_t refVal = fromStatusEnum(m_Status); - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(refVal); + { + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_VoteIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("voteId"))] = ModelBase::toJson(m_VoteId); } if(m_IsVerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isVerified"))] = ModelBase::toJson(m_IsVerified); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_EditKeyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); } @@ -81,10 +79,9 @@ bool VoteResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); if(!fieldValue.is_null()) { - utility::string_t refVal_setStatus; + std::shared_ptr refVal_setStatus; ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - - setStatus(toStatusEnum(refVal_setStatus)); + setStatus(refVal_setStatus); } } @@ -144,7 +141,7 @@ void VoteResponse::toMultipart(std::shared_ptr multipart, con } if(m_StatusIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), fromStatusEnum(m_Status))); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } if(m_VoteIdIsSet) { @@ -175,9 +172,9 @@ bool VoteResponse::fromMultiPart(std::shared_ptr multipart, c if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) { - utility::string_t refVal_setStatus; + std::shared_ptr refVal_setStatus; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(toStatusEnum(refVal_setStatus)); + setStatus(refVal_setStatus); } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("voteId")))) { @@ -206,47 +203,14 @@ bool VoteResponse::fromMultiPart(std::shared_ptr multipart, c return ok; } -VoteResponse::StatusEnum VoteResponse::toStatusEnum(const utility::string_t& value) const -{ - - if (value == utility::conversions::to_string_t("success")) { - return StatusEnum::SUCCESS; - } - - if (value == utility::conversions::to_string_t("failed")) { - return StatusEnum::FAILED; - } - - if (value == utility::conversions::to_string_t("pending-verification")) { - return StatusEnum::PENDING_VERIFICATION; - } - - throw std::invalid_argument("Invalid value for conversion to StatusEnum"); -} - - -const utility::string_t VoteResponse::fromStatusEnum(const StatusEnum value) const -{ - switch(value) - { - - case StatusEnum::SUCCESS: return utility::conversions::to_string_t("success"); - - case StatusEnum::FAILED: return utility::conversions::to_string_t("failed"); - - case StatusEnum::PENDING_VERIFICATION: return utility::conversions::to_string_t("pending-verification"); - - } -} - -VoteResponse::StatusEnum VoteResponse::getStatus() const +std::shared_ptr VoteResponse::getStatus() const { return m_Status; } -void VoteResponse::setStatus(const StatusEnum value) +void VoteResponse::setStatus(const std::shared_ptr& value) { m_Status = value; m_StatusIsSet = true; diff --git a/client/src/model/VoteResponseUser.cpp b/client/src/model/VoteResponseUser.cpp index a64e2d1..4cd3643 100644 --- a/client/src/model/VoteResponseUser.cpp +++ b/client/src/model/VoteResponseUser.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,6 +20,8 @@ namespace model { VoteResponseUser::VoteResponseUser() { + m_SessionId = utility::conversions::to_string_t(""); + m_SessionIdIsSet = false; } VoteResponseUser::~VoteResponseUser() @@ -34,10 +36,10 @@ void VoteResponseUser::validate() web::json::value VoteResponseUser::toJson() const { web::json::value val = web::json::value::object(); - if(m_SessionId.has_value()) - { + if(m_SessionIdIsSet) + { - val[utility::conversions::to_string_t(_XPLATSTR("sessionId"))] = ModelBase::toJson(m_SessionId.get()); + val[utility::conversions::to_string_t(_XPLATSTR("sessionId"))] = ModelBase::toJson(m_SessionId); } return val; @@ -67,9 +69,9 @@ void VoteResponseUser::toMultipart(std::shared_ptr multipart, { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_SessionId.has_value()) + if(m_SessionIdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sessionId")), m_SessionId.get())); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sessionId")), m_SessionId)); } } @@ -94,23 +96,24 @@ bool VoteResponseUser::fromMultiPart(std::shared_ptr multipar utility::string_t VoteResponseUser::getSessionId() const { - return m_SessionId.get(); + return m_SessionId; } void VoteResponseUser::setSessionId(const utility::string_t& value) { m_SessionId = value; + m_SessionIdIsSet = true; } bool VoteResponseUser::sessionIdIsSet() const { - return m_SessionId.has_value(); + return m_SessionIdIsSet; } void VoteResponseUser::unsetSessionId() { - m_SessionId.reset(); + m_SessionIdIsSet = false; } } diff --git a/client/src/model/VoteResponse_status.cpp b/client/src/model/VoteResponse_status.cpp new file mode 100644 index 0000000..23354b0 --- /dev/null +++ b/client/src/model/VoteResponse_status.cpp @@ -0,0 +1,75 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/VoteResponse_status.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +VoteResponse_status::VoteResponse_status() +{ +} + +VoteResponse_status::~VoteResponse_status() +{ +} + +void VoteResponse_status::validate() +{ + // TODO: implement validation +} + +web::json::value VoteResponse_status::toJson() const +{ + web::json::value val = web::json::value::object(); + + return val; +} + +bool VoteResponse_status::fromJson(const web::json::value& val) +{ + bool ok = true; + return ok; +} + +void VoteResponse_status::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } +} + +bool VoteResponse_status::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + return ok; +} + + + +} +} +} +} + + diff --git a/client/src/model/VoteStyle.cpp b/client/src/model/VoteStyle.cpp index caf22f3..7fb0d2d 100644 --- a/client/src/model/VoteStyle.cpp +++ b/client/src/model/VoteStyle.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.19.0-SNAPSHOT. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/docs/Apis/DefaultApi.md b/docs/Apis/DefaultApi.md index 766e977..899940e 100644 --- a/docs/Apis/DefaultApi.md +++ b/docs/Apis/DefaultApi.md @@ -122,7 +122,7 @@ All URIs are relative to *https://fastcomments.com* # **addDomainConfig** -> AddDomainConfig_200_response addDomainConfig(tenantId, AddDomainConfigParams) +> AddDomainConfigResponse addDomainConfig(tenantId, AddDomainConfigParams) @@ -135,7 +135,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**AddDomainConfig_200_response**](../Models/AddDomainConfig_200_response.md) +[**AddDomainConfigResponse**](../Models/AddDomainConfigResponse.md) ### Authorization @@ -148,7 +148,7 @@ All URIs are relative to *https://fastcomments.com* # **addHashTag** -> AddHashTag_200_response addHashTag(tenantId, CreateHashTagBody) +> CreateHashTagResponse addHashTag(tenantId, CreateHashTagBody) @@ -161,7 +161,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**AddHashTag_200_response**](../Models/AddHashTag_200_response.md) +[**CreateHashTagResponse**](../Models/CreateHashTagResponse.md) ### Authorization @@ -174,7 +174,7 @@ All URIs are relative to *https://fastcomments.com* # **addHashTagsBulk** -> AddHashTagsBulk_200_response addHashTagsBulk(tenantId, BulkCreateHashTagsBody) +> BulkCreateHashTagsResponse addHashTagsBulk(tenantId, BulkCreateHashTagsBody) @@ -187,7 +187,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**AddHashTagsBulk_200_response**](../Models/AddHashTagsBulk_200_response.md) +[**BulkCreateHashTagsResponse**](../Models/BulkCreateHashTagsResponse.md) ### Authorization @@ -252,7 +252,7 @@ All URIs are relative to *https://fastcomments.com* # **aggregate** -> AggregationResponse aggregate(tenantId, AggregationRequest, parentTenantId, includeStats) +> AggregateResponse aggregate(tenantId, AggregationRequest, parentTenantId, includeStats) @@ -269,7 +269,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**AggregationResponse**](../Models/AggregationResponse.md) +[**AggregateResponse**](../Models/AggregateResponse.md) ### Authorization @@ -282,7 +282,7 @@ All URIs are relative to *https://fastcomments.com* # **aggregateQuestionResults** -> AggregateQuestionResults_200_response aggregateQuestionResults(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate) +> AggregateQuestionResultsResponse aggregateQuestionResults(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate) @@ -300,7 +300,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**AggregateQuestionResults_200_response**](../Models/AggregateQuestionResults_200_response.md) +[**AggregateQuestionResultsResponse**](../Models/AggregateQuestionResultsResponse.md) ### Authorization @@ -313,7 +313,7 @@ All URIs are relative to *https://fastcomments.com* # **blockUserFromComment** -> BlockFromCommentPublic_200_response blockUserFromComment(tenantId, id, BlockFromCommentParams, userId, anonUserId) +> BlockSuccess blockUserFromComment(tenantId, id, BlockFromCommentParams, userId, anonUserId) @@ -329,7 +329,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**BlockFromCommentPublic_200_response**](../Models/BlockFromCommentPublic_200_response.md) +[**BlockSuccess**](../Models/BlockSuccess.md) ### Authorization @@ -342,7 +342,7 @@ All URIs are relative to *https://fastcomments.com* # **bulkAggregateQuestionResults** -> BulkAggregateQuestionResults_200_response bulkAggregateQuestionResults(tenantId, BulkAggregateQuestionResultsRequest, forceRecalculate) +> BulkAggregateQuestionResultsResponse bulkAggregateQuestionResults(tenantId, BulkAggregateQuestionResultsRequest, forceRecalculate) @@ -356,7 +356,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**BulkAggregateQuestionResults_200_response**](../Models/BulkAggregateQuestionResults_200_response.md) +[**BulkAggregateQuestionResultsResponse**](../Models/BulkAggregateQuestionResultsResponse.md) ### Authorization @@ -369,7 +369,7 @@ All URIs are relative to *https://fastcomments.com* # **changeTicketState** -> ChangeTicketState_200_response changeTicketState(tenantId, userId, id, ChangeTicketStateBody) +> ChangeTicketStateResponse changeTicketState(tenantId, userId, id, ChangeTicketStateBody) @@ -384,7 +384,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**ChangeTicketState_200_response**](../Models/ChangeTicketState_200_response.md) +[**ChangeTicketStateResponse**](../Models/ChangeTicketStateResponse.md) ### Authorization @@ -397,7 +397,7 @@ All URIs are relative to *https://fastcomments.com* # **combineCommentsWithQuestionResults** -> CombineCommentsWithQuestionResults_200_response combineCommentsWithQuestionResults(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit) +> CombineQuestionResultsWithCommentsResponse combineCommentsWithQuestionResults(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit) @@ -417,7 +417,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CombineCommentsWithQuestionResults_200_response**](../Models/CombineCommentsWithQuestionResults_200_response.md) +[**CombineQuestionResultsWithCommentsResponse**](../Models/CombineQuestionResultsWithCommentsResponse.md) ### Authorization @@ -430,7 +430,7 @@ All URIs are relative to *https://fastcomments.com* # **createEmailTemplate** -> CreateEmailTemplate_200_response createEmailTemplate(tenantId, CreateEmailTemplateBody) +> CreateEmailTemplateResponse createEmailTemplate(tenantId, CreateEmailTemplateBody) @@ -443,7 +443,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateEmailTemplate_200_response**](../Models/CreateEmailTemplate_200_response.md) +[**CreateEmailTemplateResponse**](../Models/CreateEmailTemplateResponse.md) ### Authorization @@ -456,7 +456,7 @@ All URIs are relative to *https://fastcomments.com* # **createFeedPost** -> CreateFeedPost_200_response createFeedPost(tenantId, CreateFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck) +> CreateFeedPostsResponse createFeedPost(tenantId, CreateFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck) @@ -473,7 +473,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateFeedPost_200_response**](../Models/CreateFeedPost_200_response.md) +[**CreateFeedPostsResponse**](../Models/CreateFeedPostsResponse.md) ### Authorization @@ -486,7 +486,7 @@ All URIs are relative to *https://fastcomments.com* # **createModerator** -> CreateModerator_200_response createModerator(tenantId, CreateModeratorBody) +> CreateModeratorResponse createModerator(tenantId, CreateModeratorBody) @@ -499,7 +499,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateModerator_200_response**](../Models/CreateModerator_200_response.md) +[**CreateModeratorResponse**](../Models/CreateModeratorResponse.md) ### Authorization @@ -512,7 +512,7 @@ All URIs are relative to *https://fastcomments.com* # **createQuestionConfig** -> CreateQuestionConfig_200_response createQuestionConfig(tenantId, CreateQuestionConfigBody) +> CreateQuestionConfigResponse createQuestionConfig(tenantId, CreateQuestionConfigBody) @@ -525,7 +525,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateQuestionConfig_200_response**](../Models/CreateQuestionConfig_200_response.md) +[**CreateQuestionConfigResponse**](../Models/CreateQuestionConfigResponse.md) ### Authorization @@ -538,7 +538,7 @@ All URIs are relative to *https://fastcomments.com* # **createQuestionResult** -> CreateQuestionResult_200_response createQuestionResult(tenantId, CreateQuestionResultBody) +> CreateQuestionResultResponse createQuestionResult(tenantId, CreateQuestionResultBody) @@ -551,7 +551,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateQuestionResult_200_response**](../Models/CreateQuestionResult_200_response.md) +[**CreateQuestionResultResponse**](../Models/CreateQuestionResultResponse.md) ### Authorization @@ -590,7 +590,7 @@ All URIs are relative to *https://fastcomments.com* # **createTenant** -> CreateTenant_200_response createTenant(tenantId, CreateTenantBody) +> CreateTenantResponse createTenant(tenantId, CreateTenantBody) @@ -603,7 +603,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateTenant_200_response**](../Models/CreateTenant_200_response.md) +[**CreateTenantResponse**](../Models/CreateTenantResponse.md) ### Authorization @@ -616,7 +616,7 @@ All URIs are relative to *https://fastcomments.com* # **createTenantPackage** -> CreateTenantPackage_200_response createTenantPackage(tenantId, CreateTenantPackageBody) +> CreateTenantPackageResponse createTenantPackage(tenantId, CreateTenantPackageBody) @@ -629,7 +629,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateTenantPackage_200_response**](../Models/CreateTenantPackage_200_response.md) +[**CreateTenantPackageResponse**](../Models/CreateTenantPackageResponse.md) ### Authorization @@ -642,7 +642,7 @@ All URIs are relative to *https://fastcomments.com* # **createTenantUser** -> CreateTenantUser_200_response createTenantUser(tenantId, CreateTenantUserBody) +> CreateTenantUserResponse createTenantUser(tenantId, CreateTenantUserBody) @@ -655,7 +655,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateTenantUser_200_response**](../Models/CreateTenantUser_200_response.md) +[**CreateTenantUserResponse**](../Models/CreateTenantUserResponse.md) ### Authorization @@ -668,7 +668,7 @@ All URIs are relative to *https://fastcomments.com* # **createTicket** -> CreateTicket_200_response createTicket(tenantId, userId, CreateTicketBody) +> CreateTicketResponse createTicket(tenantId, userId, CreateTicketBody) @@ -682,7 +682,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateTicket_200_response**](../Models/CreateTicket_200_response.md) +[**CreateTicketResponse**](../Models/CreateTicketResponse.md) ### Authorization @@ -695,7 +695,7 @@ All URIs are relative to *https://fastcomments.com* # **createUserBadge** -> CreateUserBadge_200_response createUserBadge(tenantId, CreateUserBadgeParams) +> APICreateUserBadgeResponse createUserBadge(tenantId, CreateUserBadgeParams) @@ -708,7 +708,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateUserBadge_200_response**](../Models/CreateUserBadge_200_response.md) +[**APICreateUserBadgeResponse**](../Models/APICreateUserBadgeResponse.md) ### Authorization @@ -721,7 +721,7 @@ All URIs are relative to *https://fastcomments.com* # **createVote** -> VoteComment_200_response createVote(tenantId, commentId, direction, userId, anonUserId) +> VoteResponse createVote(tenantId, commentId, direction, userId, anonUserId) @@ -737,7 +737,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**VoteComment_200_response**](../Models/VoteComment_200_response.md) +[**VoteResponse**](../Models/VoteResponse.md) ### Authorization @@ -750,7 +750,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteComment** -> DeleteComment_200_response deleteComment(tenantId, id, contextUserId, isLive) +> DeleteCommentResult deleteComment(tenantId, id, contextUserId, isLive) @@ -765,7 +765,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteComment_200_response**](../Models/DeleteComment_200_response.md) +[**DeleteCommentResult**](../Models/DeleteCommentResult.md) ### Authorization @@ -778,7 +778,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteDomainConfig** -> DeleteDomainConfig_200_response deleteDomainConfig(tenantId, domain) +> DeleteDomainConfigResponse deleteDomainConfig(tenantId, domain) @@ -791,7 +791,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteDomainConfig_200_response**](../Models/DeleteDomainConfig_200_response.md) +[**DeleteDomainConfigResponse**](../Models/DeleteDomainConfigResponse.md) ### Authorization @@ -804,7 +804,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteEmailTemplate** -> FlagCommentPublic_200_response deleteEmailTemplate(tenantId, id) +> APIEmptyResponse deleteEmailTemplate(tenantId, id) @@ -817,7 +817,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -830,7 +830,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteEmailTemplateRenderError** -> FlagCommentPublic_200_response deleteEmailTemplateRenderError(tenantId, id, errorId) +> APIEmptyResponse deleteEmailTemplateRenderError(tenantId, id, errorId) @@ -844,7 +844,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -857,7 +857,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteHashTag** -> FlagCommentPublic_200_response deleteHashTag(tag, tenantId, DeleteHashTag\_request) +> APIEmptyResponse deleteHashTag(tag, tenantId, DeleteHashTagRequestBody) @@ -867,11 +867,11 @@ All URIs are relative to *https://fastcomments.com* |------------- | ------------- | ------------- | -------------| | **tag** | **String**| | [default to null] | | **tenantId** | **String**| | [optional] [default to null] | -| **DeleteHashTag\_request** | [**DeleteHashTag_request**](../Models/DeleteHashTag_request.md)| | [optional] | +| **DeleteHashTagRequestBody** | [**DeleteHashTagRequestBody**](../Models/DeleteHashTagRequestBody.md)| | [optional] | ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -884,7 +884,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteModerator** -> FlagCommentPublic_200_response deleteModerator(tenantId, id, sendEmail) +> APIEmptyResponse deleteModerator(tenantId, id, sendEmail) @@ -898,7 +898,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -911,7 +911,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteNotificationCount** -> FlagCommentPublic_200_response deleteNotificationCount(tenantId, id) +> APIEmptyResponse deleteNotificationCount(tenantId, id) @@ -924,7 +924,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -963,7 +963,7 @@ All URIs are relative to *https://fastcomments.com* # **deletePendingWebhookEvent** -> FlagCommentPublic_200_response deletePendingWebhookEvent(tenantId, id) +> APIEmptyResponse deletePendingWebhookEvent(tenantId, id) @@ -976,7 +976,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -989,7 +989,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteQuestionConfig** -> FlagCommentPublic_200_response deleteQuestionConfig(tenantId, id) +> APIEmptyResponse deleteQuestionConfig(tenantId, id) @@ -1002,7 +1002,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1015,7 +1015,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteQuestionResult** -> FlagCommentPublic_200_response deleteQuestionResult(tenantId, id) +> APIEmptyResponse deleteQuestionResult(tenantId, id) @@ -1028,7 +1028,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1096,7 +1096,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteTenant** -> FlagCommentPublic_200_response deleteTenant(tenantId, id, sure) +> APIEmptyResponse deleteTenant(tenantId, id, sure) @@ -1110,7 +1110,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1123,7 +1123,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteTenantPackage** -> FlagCommentPublic_200_response deleteTenantPackage(tenantId, id) +> APIEmptyResponse deleteTenantPackage(tenantId, id) @@ -1136,7 +1136,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1149,7 +1149,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteTenantUser** -> FlagCommentPublic_200_response deleteTenantUser(tenantId, id, deleteComments, commentDeleteMode) +> APIEmptyResponse deleteTenantUser(tenantId, id, deleteComments, commentDeleteMode) @@ -1164,7 +1164,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1177,7 +1177,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteUserBadge** -> UpdateUserBadge_200_response deleteUserBadge(tenantId, id) +> APIEmptySuccessResponse deleteUserBadge(tenantId, id) @@ -1190,7 +1190,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateUserBadge_200_response**](../Models/UpdateUserBadge_200_response.md) +[**APIEmptySuccessResponse**](../Models/APIEmptySuccessResponse.md) ### Authorization @@ -1203,7 +1203,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteVote** -> DeleteCommentVote_200_response deleteVote(tenantId, id, editKey) +> VoteDeleteResponse deleteVote(tenantId, id, editKey) @@ -1217,7 +1217,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteCommentVote_200_response**](../Models/DeleteCommentVote_200_response.md) +[**VoteDeleteResponse**](../Models/VoteDeleteResponse.md) ### Authorization @@ -1230,7 +1230,7 @@ All URIs are relative to *https://fastcomments.com* # **flagComment** -> FlagComment_200_response flagComment(tenantId, id, userId, anonUserId) +> FlagCommentResponse flagComment(tenantId, id, userId, anonUserId) @@ -1245,7 +1245,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagComment_200_response**](../Models/FlagComment_200_response.md) +[**FlagCommentResponse**](../Models/FlagCommentResponse.md) ### Authorization @@ -1258,7 +1258,7 @@ All URIs are relative to *https://fastcomments.com* # **getAuditLogs** -> GetAuditLogs_200_response getAuditLogs(tenantId, limit, skip, order, after, before) +> GetAuditLogsResponse getAuditLogs(tenantId, limit, skip, order, after, before) @@ -1275,7 +1275,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetAuditLogs_200_response**](../Models/GetAuditLogs_200_response.md) +[**GetAuditLogsResponse**](../Models/GetAuditLogsResponse.md) ### Authorization @@ -1288,7 +1288,7 @@ All URIs are relative to *https://fastcomments.com* # **getCachedNotificationCount** -> GetCachedNotificationCount_200_response getCachedNotificationCount(tenantId, id) +> GetCachedNotificationCountResponse getCachedNotificationCount(tenantId, id) @@ -1301,7 +1301,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetCachedNotificationCount_200_response**](../Models/GetCachedNotificationCount_200_response.md) +[**GetCachedNotificationCountResponse**](../Models/GetCachedNotificationCountResponse.md) ### Authorization @@ -1314,7 +1314,7 @@ All URIs are relative to *https://fastcomments.com* # **getComment** -> GetComment_200_response getComment(tenantId, id) +> APIGetCommentResponse getComment(tenantId, id) @@ -1327,7 +1327,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetComment_200_response**](../Models/GetComment_200_response.md) +[**APIGetCommentResponse**](../Models/APIGetCommentResponse.md) ### Authorization @@ -1340,7 +1340,7 @@ All URIs are relative to *https://fastcomments.com* # **getComments** -> GetComments_200_response getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction) +> APIGetCommentsResponse getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate) @@ -1363,10 +1363,12 @@ All URIs are relative to *https://fastcomments.com* | **hashTag** | **String**| | [optional] [default to null] | | **parentId** | **String**| | [optional] [default to null] | | **direction** | [**SortDirections**](../Models/.md)| | [optional] [default to null] [enum: OF, NF, MR] | +| **fromDate** | **Long**| | [optional] [default to null] | +| **toDate** | **Long**| | [optional] [default to null] | ### Return type -[**GetComments_200_response**](../Models/GetComments_200_response.md) +[**APIGetCommentsResponse**](../Models/APIGetCommentsResponse.md) ### Authorization @@ -1379,7 +1381,7 @@ All URIs are relative to *https://fastcomments.com* # **getDomainConfig** -> GetDomainConfig_200_response getDomainConfig(tenantId, domain) +> GetDomainConfigResponse getDomainConfig(tenantId, domain) @@ -1392,7 +1394,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetDomainConfig_200_response**](../Models/GetDomainConfig_200_response.md) +[**GetDomainConfigResponse**](../Models/GetDomainConfigResponse.md) ### Authorization @@ -1405,7 +1407,7 @@ All URIs are relative to *https://fastcomments.com* # **getDomainConfigs** -> GetDomainConfigs_200_response getDomainConfigs(tenantId) +> GetDomainConfigsResponse getDomainConfigs(tenantId) @@ -1417,7 +1419,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetDomainConfigs_200_response**](../Models/GetDomainConfigs_200_response.md) +[**GetDomainConfigsResponse**](../Models/GetDomainConfigsResponse.md) ### Authorization @@ -1430,7 +1432,7 @@ All URIs are relative to *https://fastcomments.com* # **getEmailTemplate** -> GetEmailTemplate_200_response getEmailTemplate(tenantId, id) +> GetEmailTemplateResponse getEmailTemplate(tenantId, id) @@ -1443,7 +1445,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetEmailTemplate_200_response**](../Models/GetEmailTemplate_200_response.md) +[**GetEmailTemplateResponse**](../Models/GetEmailTemplateResponse.md) ### Authorization @@ -1456,7 +1458,7 @@ All URIs are relative to *https://fastcomments.com* # **getEmailTemplateDefinitions** -> GetEmailTemplateDefinitions_200_response getEmailTemplateDefinitions(tenantId) +> GetEmailTemplateDefinitionsResponse getEmailTemplateDefinitions(tenantId) @@ -1468,7 +1470,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetEmailTemplateDefinitions_200_response**](../Models/GetEmailTemplateDefinitions_200_response.md) +[**GetEmailTemplateDefinitionsResponse**](../Models/GetEmailTemplateDefinitionsResponse.md) ### Authorization @@ -1481,7 +1483,7 @@ All URIs are relative to *https://fastcomments.com* # **getEmailTemplateRenderErrors** -> GetEmailTemplateRenderErrors_200_response getEmailTemplateRenderErrors(tenantId, id, skip) +> GetEmailTemplateRenderErrorsResponse getEmailTemplateRenderErrors(tenantId, id, skip) @@ -1495,7 +1497,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetEmailTemplateRenderErrors_200_response**](../Models/GetEmailTemplateRenderErrors_200_response.md) +[**GetEmailTemplateRenderErrorsResponse**](../Models/GetEmailTemplateRenderErrorsResponse.md) ### Authorization @@ -1508,7 +1510,7 @@ All URIs are relative to *https://fastcomments.com* # **getEmailTemplates** -> GetEmailTemplates_200_response getEmailTemplates(tenantId, skip) +> GetEmailTemplatesResponse getEmailTemplates(tenantId, skip) @@ -1521,7 +1523,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetEmailTemplates_200_response**](../Models/GetEmailTemplates_200_response.md) +[**GetEmailTemplatesResponse**](../Models/GetEmailTemplatesResponse.md) ### Authorization @@ -1534,7 +1536,7 @@ All URIs are relative to *https://fastcomments.com* # **getFeedPosts** -> GetFeedPosts_200_response getFeedPosts(tenantId, afterId, limit, tags) +> GetFeedPostsResponse getFeedPosts(tenantId, afterId, limit, tags) @@ -1551,7 +1553,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetFeedPosts_200_response**](../Models/GetFeedPosts_200_response.md) +[**GetFeedPostsResponse**](../Models/GetFeedPostsResponse.md) ### Authorization @@ -1564,7 +1566,7 @@ All URIs are relative to *https://fastcomments.com* # **getHashTags** -> GetHashTags_200_response getHashTags(tenantId, page) +> GetHashTagsResponse getHashTags(tenantId, page) @@ -1577,7 +1579,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetHashTags_200_response**](../Models/GetHashTags_200_response.md) +[**GetHashTagsResponse**](../Models/GetHashTagsResponse.md) ### Authorization @@ -1590,7 +1592,7 @@ All URIs are relative to *https://fastcomments.com* # **getModerator** -> GetModerator_200_response getModerator(tenantId, id) +> GetModeratorResponse getModerator(tenantId, id) @@ -1603,7 +1605,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetModerator_200_response**](../Models/GetModerator_200_response.md) +[**GetModeratorResponse**](../Models/GetModeratorResponse.md) ### Authorization @@ -1616,7 +1618,7 @@ All URIs are relative to *https://fastcomments.com* # **getModerators** -> GetModerators_200_response getModerators(tenantId, skip) +> GetModeratorsResponse getModerators(tenantId, skip) @@ -1629,7 +1631,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetModerators_200_response**](../Models/GetModerators_200_response.md) +[**GetModeratorsResponse**](../Models/GetModeratorsResponse.md) ### Authorization @@ -1642,7 +1644,7 @@ All URIs are relative to *https://fastcomments.com* # **getNotificationCount** -> GetNotificationCount_200_response getNotificationCount(tenantId, userId, urlId, fromCommentId, viewed, type) +> GetNotificationCountResponse getNotificationCount(tenantId, userId, urlId, fromCommentId, viewed, type) @@ -1659,7 +1661,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetNotificationCount_200_response**](../Models/GetNotificationCount_200_response.md) +[**GetNotificationCountResponse**](../Models/GetNotificationCountResponse.md) ### Authorization @@ -1672,7 +1674,7 @@ All URIs are relative to *https://fastcomments.com* # **getNotifications** -> GetNotifications_200_response getNotifications(tenantId, userId, urlId, fromCommentId, viewed, type, skip) +> GetNotificationsResponse getNotifications(tenantId, userId, urlId, fromCommentId, viewed, type, skip) @@ -1690,7 +1692,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetNotifications_200_response**](../Models/GetNotifications_200_response.md) +[**GetNotificationsResponse**](../Models/GetNotificationsResponse.md) ### Authorization @@ -1754,7 +1756,7 @@ All URIs are relative to *https://fastcomments.com* # **getPendingWebhookEventCount** -> GetPendingWebhookEventCount_200_response getPendingWebhookEventCount(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT) +> GetPendingWebhookEventCountResponse getPendingWebhookEventCount(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT) @@ -1772,7 +1774,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetPendingWebhookEventCount_200_response**](../Models/GetPendingWebhookEventCount_200_response.md) +[**GetPendingWebhookEventCountResponse**](../Models/GetPendingWebhookEventCountResponse.md) ### Authorization @@ -1785,7 +1787,7 @@ All URIs are relative to *https://fastcomments.com* # **getPendingWebhookEvents** -> GetPendingWebhookEvents_200_response getPendingWebhookEvents(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip) +> GetPendingWebhookEventsResponse getPendingWebhookEvents(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip) @@ -1804,7 +1806,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetPendingWebhookEvents_200_response**](../Models/GetPendingWebhookEvents_200_response.md) +[**GetPendingWebhookEventsResponse**](../Models/GetPendingWebhookEventsResponse.md) ### Authorization @@ -1817,7 +1819,7 @@ All URIs are relative to *https://fastcomments.com* # **getQuestionConfig** -> GetQuestionConfig_200_response getQuestionConfig(tenantId, id) +> GetQuestionConfigResponse getQuestionConfig(tenantId, id) @@ -1830,7 +1832,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetQuestionConfig_200_response**](../Models/GetQuestionConfig_200_response.md) +[**GetQuestionConfigResponse**](../Models/GetQuestionConfigResponse.md) ### Authorization @@ -1843,7 +1845,7 @@ All URIs are relative to *https://fastcomments.com* # **getQuestionConfigs** -> GetQuestionConfigs_200_response getQuestionConfigs(tenantId, skip) +> GetQuestionConfigsResponse getQuestionConfigs(tenantId, skip) @@ -1856,7 +1858,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetQuestionConfigs_200_response**](../Models/GetQuestionConfigs_200_response.md) +[**GetQuestionConfigsResponse**](../Models/GetQuestionConfigsResponse.md) ### Authorization @@ -1869,7 +1871,7 @@ All URIs are relative to *https://fastcomments.com* # **getQuestionResult** -> GetQuestionResult_200_response getQuestionResult(tenantId, id) +> GetQuestionResultResponse getQuestionResult(tenantId, id) @@ -1882,7 +1884,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetQuestionResult_200_response**](../Models/GetQuestionResult_200_response.md) +[**GetQuestionResultResponse**](../Models/GetQuestionResultResponse.md) ### Authorization @@ -1895,7 +1897,7 @@ All URIs are relative to *https://fastcomments.com* # **getQuestionResults** -> GetQuestionResults_200_response getQuestionResults(tenantId, urlId, userId, startDate, questionId, questionIds, skip) +> GetQuestionResultsResponse getQuestionResults(tenantId, urlId, userId, startDate, questionId, questionIds, skip) @@ -1913,7 +1915,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetQuestionResults_200_response**](../Models/GetQuestionResults_200_response.md) +[**GetQuestionResultsResponse**](../Models/GetQuestionResultsResponse.md) ### Authorization @@ -1978,7 +1980,7 @@ All URIs are relative to *https://fastcomments.com* # **getSSOUsers** -> GetSSOUsers_200_response getSSOUsers(tenantId, skip) +> GetSSOUsersResponse getSSOUsers(tenantId, skip) @@ -1991,7 +1993,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetSSOUsers_200_response**](../Models/GetSSOUsers_200_response.md) +[**GetSSOUsersResponse**](../Models/GetSSOUsersResponse.md) ### Authorization @@ -2030,7 +2032,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenant** -> GetTenant_200_response getTenant(tenantId, id) +> GetTenantResponse getTenant(tenantId, id) @@ -2043,7 +2045,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenant_200_response**](../Models/GetTenant_200_response.md) +[**GetTenantResponse**](../Models/GetTenantResponse.md) ### Authorization @@ -2056,7 +2058,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantDailyUsages** -> GetTenantDailyUsages_200_response getTenantDailyUsages(tenantId, yearNumber, monthNumber, dayNumber, skip) +> GetTenantDailyUsagesResponse getTenantDailyUsages(tenantId, yearNumber, monthNumber, dayNumber, skip) @@ -2072,7 +2074,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantDailyUsages_200_response**](../Models/GetTenantDailyUsages_200_response.md) +[**GetTenantDailyUsagesResponse**](../Models/GetTenantDailyUsagesResponse.md) ### Authorization @@ -2085,7 +2087,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantPackage** -> GetTenantPackage_200_response getTenantPackage(tenantId, id) +> GetTenantPackageResponse getTenantPackage(tenantId, id) @@ -2098,7 +2100,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantPackage_200_response**](../Models/GetTenantPackage_200_response.md) +[**GetTenantPackageResponse**](../Models/GetTenantPackageResponse.md) ### Authorization @@ -2111,7 +2113,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantPackages** -> GetTenantPackages_200_response getTenantPackages(tenantId, skip) +> GetTenantPackagesResponse getTenantPackages(tenantId, skip) @@ -2124,7 +2126,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantPackages_200_response**](../Models/GetTenantPackages_200_response.md) +[**GetTenantPackagesResponse**](../Models/GetTenantPackagesResponse.md) ### Authorization @@ -2137,7 +2139,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantUser** -> GetTenantUser_200_response getTenantUser(tenantId, id) +> GetTenantUserResponse getTenantUser(tenantId, id) @@ -2150,7 +2152,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantUser_200_response**](../Models/GetTenantUser_200_response.md) +[**GetTenantUserResponse**](../Models/GetTenantUserResponse.md) ### Authorization @@ -2163,7 +2165,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantUsers** -> GetTenantUsers_200_response getTenantUsers(tenantId, skip) +> GetTenantUsersResponse getTenantUsers(tenantId, skip) @@ -2176,7 +2178,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantUsers_200_response**](../Models/GetTenantUsers_200_response.md) +[**GetTenantUsersResponse**](../Models/GetTenantUsersResponse.md) ### Authorization @@ -2189,7 +2191,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenants** -> GetTenants_200_response getTenants(tenantId, meta, skip) +> GetTenantsResponse getTenants(tenantId, meta, skip) @@ -2203,7 +2205,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenants_200_response**](../Models/GetTenants_200_response.md) +[**GetTenantsResponse**](../Models/GetTenantsResponse.md) ### Authorization @@ -2216,7 +2218,7 @@ All URIs are relative to *https://fastcomments.com* # **getTicket** -> GetTicket_200_response getTicket(tenantId, id, userId) +> GetTicketResponse getTicket(tenantId, id, userId) @@ -2230,7 +2232,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTicket_200_response**](../Models/GetTicket_200_response.md) +[**GetTicketResponse**](../Models/GetTicketResponse.md) ### Authorization @@ -2243,7 +2245,7 @@ All URIs are relative to *https://fastcomments.com* # **getTickets** -> GetTickets_200_response getTickets(tenantId, userId, state, skip, limit) +> GetTicketsResponse getTickets(tenantId, userId, state, skip, limit) @@ -2259,7 +2261,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTickets_200_response**](../Models/GetTickets_200_response.md) +[**GetTicketsResponse**](../Models/GetTicketsResponse.md) ### Authorization @@ -2272,7 +2274,7 @@ All URIs are relative to *https://fastcomments.com* # **getUser** -> GetUser_200_response getUser(tenantId, id) +> GetUserResponse getUser(tenantId, id) @@ -2285,7 +2287,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetUser_200_response**](../Models/GetUser_200_response.md) +[**GetUserResponse**](../Models/GetUserResponse.md) ### Authorization @@ -2298,7 +2300,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadge** -> GetUserBadge_200_response getUserBadge(tenantId, id) +> APIGetUserBadgeResponse getUserBadge(tenantId, id) @@ -2311,7 +2313,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetUserBadge_200_response**](../Models/GetUserBadge_200_response.md) +[**APIGetUserBadgeResponse**](../Models/APIGetUserBadgeResponse.md) ### Authorization @@ -2324,7 +2326,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadgeProgressById** -> GetUserBadgeProgressById_200_response getUserBadgeProgressById(tenantId, id) +> APIGetUserBadgeProgressResponse getUserBadgeProgressById(tenantId, id) @@ -2337,7 +2339,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetUserBadgeProgressById_200_response**](../Models/GetUserBadgeProgressById_200_response.md) +[**APIGetUserBadgeProgressResponse**](../Models/APIGetUserBadgeProgressResponse.md) ### Authorization @@ -2350,7 +2352,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadgeProgressByUserId** -> GetUserBadgeProgressById_200_response getUserBadgeProgressByUserId(tenantId, userId) +> APIGetUserBadgeProgressResponse getUserBadgeProgressByUserId(tenantId, userId) @@ -2363,7 +2365,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetUserBadgeProgressById_200_response**](../Models/GetUserBadgeProgressById_200_response.md) +[**APIGetUserBadgeProgressResponse**](../Models/APIGetUserBadgeProgressResponse.md) ### Authorization @@ -2376,7 +2378,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadgeProgressList** -> GetUserBadgeProgressList_200_response getUserBadgeProgressList(tenantId, userId, limit, skip) +> APIGetUserBadgeProgressListResponse getUserBadgeProgressList(tenantId, userId, limit, skip) @@ -2391,7 +2393,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetUserBadgeProgressList_200_response**](../Models/GetUserBadgeProgressList_200_response.md) +[**APIGetUserBadgeProgressListResponse**](../Models/APIGetUserBadgeProgressListResponse.md) ### Authorization @@ -2404,7 +2406,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadges** -> GetUserBadges_200_response getUserBadges(tenantId, userId, badgeId, type, displayedOnComments, limit, skip) +> APIGetUserBadgesResponse getUserBadges(tenantId, userId, badgeId, type, displayedOnComments, limit, skip) @@ -2422,7 +2424,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetUserBadges_200_response**](../Models/GetUserBadges_200_response.md) +[**APIGetUserBadgesResponse**](../Models/APIGetUserBadgesResponse.md) ### Authorization @@ -2435,7 +2437,7 @@ All URIs are relative to *https://fastcomments.com* # **getVotes** -> GetVotes_200_response getVotes(tenantId, urlId) +> GetVotesResponse getVotes(tenantId, urlId) @@ -2448,7 +2450,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetVotes_200_response**](../Models/GetVotes_200_response.md) +[**GetVotesResponse**](../Models/GetVotesResponse.md) ### Authorization @@ -2461,7 +2463,7 @@ All URIs are relative to *https://fastcomments.com* # **getVotesForUser** -> GetVotesForUser_200_response getVotesForUser(tenantId, urlId, userId, anonUserId) +> GetVotesForUserResponse getVotesForUser(tenantId, urlId, userId, anonUserId) @@ -2476,7 +2478,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetVotesForUser_200_response**](../Models/GetVotesForUser_200_response.md) +[**GetVotesForUserResponse**](../Models/GetVotesForUserResponse.md) ### Authorization @@ -2489,7 +2491,7 @@ All URIs are relative to *https://fastcomments.com* # **patchDomainConfig** -> GetDomainConfig_200_response patchDomainConfig(tenantId, domainToUpdate, PatchDomainConfigParams) +> PatchDomainConfigResponse patchDomainConfig(tenantId, domainToUpdate, PatchDomainConfigParams) @@ -2503,7 +2505,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetDomainConfig_200_response**](../Models/GetDomainConfig_200_response.md) +[**PatchDomainConfigResponse**](../Models/PatchDomainConfigResponse.md) ### Authorization @@ -2516,7 +2518,7 @@ All URIs are relative to *https://fastcomments.com* # **patchHashTag** -> PatchHashTag_200_response patchHashTag(tag, tenantId, UpdateHashTagBody) +> UpdateHashTagResponse patchHashTag(tag, tenantId, UpdateHashTagBody) @@ -2530,7 +2532,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**PatchHashTag_200_response**](../Models/PatchHashTag_200_response.md) +[**UpdateHashTagResponse**](../Models/UpdateHashTagResponse.md) ### Authorization @@ -2598,7 +2600,7 @@ All URIs are relative to *https://fastcomments.com* # **putDomainConfig** -> GetDomainConfig_200_response putDomainConfig(tenantId, domainToUpdate, UpdateDomainConfigParams) +> PutDomainConfigResponse putDomainConfig(tenantId, domainToUpdate, UpdateDomainConfigParams) @@ -2612,7 +2614,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetDomainConfig_200_response**](../Models/GetDomainConfig_200_response.md) +[**PutDomainConfigResponse**](../Models/PutDomainConfigResponse.md) ### Authorization @@ -2653,7 +2655,7 @@ All URIs are relative to *https://fastcomments.com* # **renderEmailTemplate** -> RenderEmailTemplate_200_response renderEmailTemplate(tenantId, RenderEmailTemplateBody, locale) +> RenderEmailTemplateResponse renderEmailTemplate(tenantId, RenderEmailTemplateBody, locale) @@ -2667,7 +2669,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**RenderEmailTemplate_200_response**](../Models/RenderEmailTemplate_200_response.md) +[**RenderEmailTemplateResponse**](../Models/RenderEmailTemplateResponse.md) ### Authorization @@ -2680,7 +2682,7 @@ All URIs are relative to *https://fastcomments.com* # **replaceTenantPackage** -> FlagCommentPublic_200_response replaceTenantPackage(tenantId, id, ReplaceTenantPackageBody) +> APIEmptyResponse replaceTenantPackage(tenantId, id, ReplaceTenantPackageBody) @@ -2694,7 +2696,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2707,7 +2709,7 @@ All URIs are relative to *https://fastcomments.com* # **replaceTenantUser** -> FlagCommentPublic_200_response replaceTenantUser(tenantId, id, ReplaceTenantUserBody, updateComments) +> APIEmptyResponse replaceTenantUser(tenantId, id, ReplaceTenantUserBody, updateComments) @@ -2722,7 +2724,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2735,7 +2737,7 @@ All URIs are relative to *https://fastcomments.com* # **saveComment** -> SaveComment_200_response saveComment(tenantId, CreateCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications) +> APISaveCommentResponse saveComment(tenantId, CreateCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications) @@ -2752,7 +2754,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**SaveComment_200_response**](../Models/SaveComment_200_response.md) +[**APISaveCommentResponse**](../Models/APISaveCommentResponse.md) ### Authorization @@ -2782,7 +2784,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**List**](../Models/SaveComment_200_response.md) +[**List**](../Models/SaveCommentsBulkResponse.md) ### Authorization @@ -2795,7 +2797,7 @@ All URIs are relative to *https://fastcomments.com* # **sendInvite** -> FlagCommentPublic_200_response sendInvite(tenantId, id, fromName) +> APIEmptyResponse sendInvite(tenantId, id, fromName) @@ -2809,7 +2811,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2822,7 +2824,7 @@ All URIs are relative to *https://fastcomments.com* # **sendLoginLink** -> FlagCommentPublic_200_response sendLoginLink(tenantId, id, redirectURL) +> APIEmptyResponse sendLoginLink(tenantId, id, redirectURL) @@ -2836,7 +2838,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2849,7 +2851,7 @@ All URIs are relative to *https://fastcomments.com* # **unBlockUserFromComment** -> UnBlockCommentPublic_200_response unBlockUserFromComment(tenantId, id, UnBlockFromCommentParams, userId, anonUserId) +> UnblockSuccess unBlockUserFromComment(tenantId, id, UnBlockFromCommentParams, userId, anonUserId) @@ -2865,7 +2867,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UnBlockCommentPublic_200_response**](../Models/UnBlockCommentPublic_200_response.md) +[**UnblockSuccess**](../Models/UnblockSuccess.md) ### Authorization @@ -2878,7 +2880,7 @@ All URIs are relative to *https://fastcomments.com* # **unFlagComment** -> FlagComment_200_response unFlagComment(tenantId, id, userId, anonUserId) +> FlagCommentResponse unFlagComment(tenantId, id, userId, anonUserId) @@ -2893,7 +2895,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagComment_200_response**](../Models/FlagComment_200_response.md) +[**FlagCommentResponse**](../Models/FlagCommentResponse.md) ### Authorization @@ -2906,7 +2908,7 @@ All URIs are relative to *https://fastcomments.com* # **updateComment** -> FlagCommentPublic_200_response updateComment(tenantId, id, UpdatableCommentParams, contextUserId, doSpamCheck, isLive) +> APIEmptyResponse updateComment(tenantId, id, UpdatableCommentParams, contextUserId, doSpamCheck, isLive) @@ -2923,7 +2925,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2936,7 +2938,7 @@ All URIs are relative to *https://fastcomments.com* # **updateEmailTemplate** -> FlagCommentPublic_200_response updateEmailTemplate(tenantId, id, UpdateEmailTemplateBody) +> APIEmptyResponse updateEmailTemplate(tenantId, id, UpdateEmailTemplateBody) @@ -2950,7 +2952,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2963,7 +2965,7 @@ All URIs are relative to *https://fastcomments.com* # **updateFeedPost** -> FlagCommentPublic_200_response updateFeedPost(tenantId, id, FeedPost) +> APIEmptyResponse updateFeedPost(tenantId, id, FeedPost) @@ -2977,7 +2979,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2990,7 +2992,7 @@ All URIs are relative to *https://fastcomments.com* # **updateModerator** -> FlagCommentPublic_200_response updateModerator(tenantId, id, UpdateModeratorBody) +> APIEmptyResponse updateModerator(tenantId, id, UpdateModeratorBody) @@ -3004,7 +3006,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3017,7 +3019,7 @@ All URIs are relative to *https://fastcomments.com* # **updateNotification** -> FlagCommentPublic_200_response updateNotification(tenantId, id, UpdateNotificationBody, userId) +> APIEmptyResponse updateNotification(tenantId, id, UpdateNotificationBody, userId) @@ -3032,7 +3034,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3045,7 +3047,7 @@ All URIs are relative to *https://fastcomments.com* # **updateQuestionConfig** -> FlagCommentPublic_200_response updateQuestionConfig(tenantId, id, UpdateQuestionConfigBody) +> APIEmptyResponse updateQuestionConfig(tenantId, id, UpdateQuestionConfigBody) @@ -3059,7 +3061,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3072,7 +3074,7 @@ All URIs are relative to *https://fastcomments.com* # **updateQuestionResult** -> FlagCommentPublic_200_response updateQuestionResult(tenantId, id, UpdateQuestionResultBody) +> APIEmptyResponse updateQuestionResult(tenantId, id, UpdateQuestionResultBody) @@ -3086,7 +3088,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3127,7 +3129,7 @@ All URIs are relative to *https://fastcomments.com* # **updateTenant** -> FlagCommentPublic_200_response updateTenant(tenantId, id, UpdateTenantBody) +> APIEmptyResponse updateTenant(tenantId, id, UpdateTenantBody) @@ -3141,7 +3143,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3154,7 +3156,7 @@ All URIs are relative to *https://fastcomments.com* # **updateTenantPackage** -> FlagCommentPublic_200_response updateTenantPackage(tenantId, id, UpdateTenantPackageBody) +> APIEmptyResponse updateTenantPackage(tenantId, id, UpdateTenantPackageBody) @@ -3168,7 +3170,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3181,7 +3183,7 @@ All URIs are relative to *https://fastcomments.com* # **updateTenantUser** -> FlagCommentPublic_200_response updateTenantUser(tenantId, id, UpdateTenantUserBody, updateComments) +> APIEmptyResponse updateTenantUser(tenantId, id, UpdateTenantUserBody, updateComments) @@ -3196,7 +3198,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3209,7 +3211,7 @@ All URIs are relative to *https://fastcomments.com* # **updateUserBadge** -> UpdateUserBadge_200_response updateUserBadge(tenantId, id, UpdateUserBadgeParams) +> APIEmptySuccessResponse updateUserBadge(tenantId, id, UpdateUserBadgeParams) @@ -3223,7 +3225,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateUserBadge_200_response**](../Models/UpdateUserBadge_200_response.md) +[**APIEmptySuccessResponse**](../Models/APIEmptySuccessResponse.md) ### Authorization diff --git a/docs/Apis/ModerationApi.md b/docs/Apis/ModerationApi.md new file mode 100644 index 0000000..8ecaec1 --- /dev/null +++ b/docs/Apis/ModerationApi.md @@ -0,0 +1,1220 @@ +# ModerationApi + +All URIs are relative to *https://fastcomments.com* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**deleteModerationVote**](ModerationApi.md#deleteModerationVote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | | +| [**getApiComments**](ModerationApi.md#getApiComments) | **GET** /auth/my-account/moderate-comments/api/comments | | +| [**getApiExportStatus**](ModerationApi.md#getApiExportStatus) | **GET** /auth/my-account/moderate-comments/api/export/status | | +| [**getApiIds**](ModerationApi.md#getApiIds) | **GET** /auth/my-account/moderate-comments/api/ids | | +| [**getBanUsersFromComment**](ModerationApi.md#getBanUsersFromComment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | | +| [**getCommentBanStatus**](ModerationApi.md#getCommentBanStatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | | +| [**getCommentChildren**](ModerationApi.md#getCommentChildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | | +| [**getCount**](ModerationApi.md#getCount) | **GET** /auth/my-account/moderate-comments/count | | +| [**getCounts**](ModerationApi.md#getCounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | | +| [**getLogs**](ModerationApi.md#getLogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | | +| [**getManualBadges**](ModerationApi.md#getManualBadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | | +| [**getManualBadgesForUser**](ModerationApi.md#getManualBadgesForUser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | | +| [**getModerationComment**](ModerationApi.md#getModerationComment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | | +| [**getModerationCommentText**](ModerationApi.md#getModerationCommentText) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | | +| [**getPreBanSummary**](ModerationApi.md#getPreBanSummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | | +| [**getSearchCommentsSummary**](ModerationApi.md#getSearchCommentsSummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | | +| [**getSearchPages**](ModerationApi.md#getSearchPages) | **GET** /auth/my-account/moderate-comments/search/pages | | +| [**getSearchSites**](ModerationApi.md#getSearchSites) | **GET** /auth/my-account/moderate-comments/search/sites | | +| [**getSearchSuggest**](ModerationApi.md#getSearchSuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | | +| [**getSearchUsers**](ModerationApi.md#getSearchUsers) | **GET** /auth/my-account/moderate-comments/search/users | | +| [**getTrustFactor**](ModerationApi.md#getTrustFactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | | +| [**getUserBanPreference**](ModerationApi.md#getUserBanPreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | | +| [**getUserInternalProfile**](ModerationApi.md#getUserInternalProfile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | | +| [**postAdjustCommentVotes**](ModerationApi.md#postAdjustCommentVotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | | +| [**postApiExport**](ModerationApi.md#postApiExport) | **POST** /auth/my-account/moderate-comments/api/export | | +| [**postBanUserFromComment**](ModerationApi.md#postBanUserFromComment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | | +| [**postBanUserUndo**](ModerationApi.md#postBanUserUndo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | | +| [**postBulkPreBanSummary**](ModerationApi.md#postBulkPreBanSummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | | +| [**postCommentsByIds**](ModerationApi.md#postCommentsByIds) | **POST** /auth/my-account/moderate-comments/comments-by-ids | | +| [**postFlagComment**](ModerationApi.md#postFlagComment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | | +| [**postRemoveComment**](ModerationApi.md#postRemoveComment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | | +| [**postRestoreDeletedComment**](ModerationApi.md#postRestoreDeletedComment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | | +| [**postSetCommentApprovalStatus**](ModerationApi.md#postSetCommentApprovalStatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | | +| [**postSetCommentReviewStatus**](ModerationApi.md#postSetCommentReviewStatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | | +| [**postSetCommentSpamStatus**](ModerationApi.md#postSetCommentSpamStatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | | +| [**postSetCommentText**](ModerationApi.md#postSetCommentText) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | | +| [**postUnFlagComment**](ModerationApi.md#postUnFlagComment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | | +| [**postVote**](ModerationApi.md#postVote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | | +| [**putAwardBadge**](ModerationApi.md#putAwardBadge) | **PUT** /auth/my-account/moderate-comments/award-badge | | +| [**putCloseThread**](ModerationApi.md#putCloseThread) | **PUT** /auth/my-account/moderate-comments/close-thread | | +| [**putRemoveBadge**](ModerationApi.md#putRemoveBadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | | +| [**putReopenThread**](ModerationApi.md#putReopenThread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | | +| [**setTrustFactor**](ModerationApi.md#setTrustFactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | | + + + +# **deleteModerationVote** +> VoteDeleteResponse deleteModerationVote(commentId, voteId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **voteId** | **String**| | [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**VoteDeleteResponse**](../Models/VoteDeleteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getApiComments** +> ModerationAPIGetCommentsResponse getApiComments(page, count, text-search, byIPFromComment, filters, searchFilters, sorts, demo, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Double**| | [optional] [default to null] | +| **count** | **Double**| | [optional] [default to null] | +| **text-search** | **String**| | [optional] [default to null] | +| **byIPFromComment** | **String**| | [optional] [default to null] | +| **filters** | **String**| | [optional] [default to null] | +| **searchFilters** | **String**| | [optional] [default to null] | +| **sorts** | **String**| | [optional] [default to null] | +| **demo** | **Boolean**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationAPIGetCommentsResponse**](../Models/ModerationAPIGetCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getApiExportStatus** +> ModerationExportStatusResponse getApiExportStatus(batchJobId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **batchJobId** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationExportStatusResponse**](../Models/ModerationExportStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getApiIds** +> ModerationAPIGetCommentIdsResponse getApiIds(text-search, byIPFromComment, filters, searchFilters, afterId, demo, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **text-search** | **String**| | [optional] [default to null] | +| **byIPFromComment** | **String**| | [optional] [default to null] | +| **filters** | **String**| | [optional] [default to null] | +| **searchFilters** | **String**| | [optional] [default to null] | +| **afterId** | **String**| | [optional] [default to null] | +| **demo** | **Boolean**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationAPIGetCommentIdsResponse**](../Models/ModerationAPIGetCommentIdsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getBanUsersFromComment** +> GetBannedUsersFromCommentResponse getBanUsersFromComment(commentId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**GetBannedUsersFromCommentResponse**](../Models/GetBannedUsersFromCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getCommentBanStatus** +> GetCommentBanStatusResponse getCommentBanStatus(commentId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**GetCommentBanStatusResponse**](../Models/GetCommentBanStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getCommentChildren** +> ModerationAPIChildCommentsResponse getCommentChildren(commentId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationAPIChildCommentsResponse**](../Models/ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getCount** +> ModerationAPICountCommentsResponse getCount(text-search, byIPFromComment, filter, searchFilters, demo, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **text-search** | **String**| | [optional] [default to null] | +| **byIPFromComment** | **String**| | [optional] [default to null] | +| **filter** | **String**| | [optional] [default to null] | +| **searchFilters** | **String**| | [optional] [default to null] | +| **demo** | **Boolean**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationAPICountCommentsResponse**](../Models/ModerationAPICountCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getCounts** +> GetBannedUsersCountResponse getCounts(sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**GetBannedUsersCountResponse**](../Models/GetBannedUsersCountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getLogs** +> ModerationAPIGetLogsResponse getLogs(commentId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationAPIGetLogsResponse**](../Models/ModerationAPIGetLogsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getManualBadges** +> GetTenantManualBadgesResponse getManualBadges(sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**GetTenantManualBadgesResponse**](../Models/GetTenantManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getManualBadgesForUser** +> GetUserManualBadgesResponse getManualBadgesForUser(badgesUserId, commentId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **badgesUserId** | **String**| | [optional] [default to null] | +| **commentId** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**GetUserManualBadgesResponse**](../Models/GetUserManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getModerationComment** +> ModerationAPICommentResponse getModerationComment(commentId, includeEmail, includeIP, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **includeEmail** | **Boolean**| | [optional] [default to null] | +| **includeIP** | **Boolean**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationAPICommentResponse**](../Models/ModerationAPICommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getModerationCommentText** +> GetCommentTextResponse getModerationCommentText(commentId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**GetCommentTextResponse**](../Models/GetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getPreBanSummary** +> PreBanSummary getPreBanSummary(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **includeByUserIdAndEmail** | **Boolean**| | [optional] [default to null] | +| **includeByIP** | **Boolean**| | [optional] [default to null] | +| **includeByEmailDomain** | **Boolean**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**PreBanSummary**](../Models/PreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getSearchCommentsSummary** +> ModerationCommentSearchResponse getSearchCommentsSummary(value, filters, searchFilters, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **value** | **String**| | [optional] [default to null] | +| **filters** | **String**| | [optional] [default to null] | +| **searchFilters** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationCommentSearchResponse**](../Models/ModerationCommentSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getSearchPages** +> ModerationPageSearchResponse getSearchPages(value, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **value** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationPageSearchResponse**](../Models/ModerationPageSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getSearchSites** +> ModerationSiteSearchResponse getSearchSites(value, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **value** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationSiteSearchResponse**](../Models/ModerationSiteSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getSearchSuggest** +> ModerationSuggestResponse getSearchSuggest(text-search, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **text-search** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationSuggestResponse**](../Models/ModerationSuggestResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getSearchUsers** +> ModerationUserSearchResponse getSearchUsers(value, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **value** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationUserSearchResponse**](../Models/ModerationUserSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getTrustFactor** +> GetUserTrustFactorResponse getTrustFactor(userId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userId** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**GetUserTrustFactorResponse**](../Models/GetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getUserBanPreference** +> APIModerateGetUserBanPreferencesResponse getUserBanPreference(sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**APIModerateGetUserBanPreferencesResponse**](../Models/APIModerateGetUserBanPreferencesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getUserInternalProfile** +> GetUserInternalProfileResponse getUserInternalProfile(commentId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**GetUserInternalProfileResponse**](../Models/GetUserInternalProfileResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **postAdjustCommentVotes** +> AdjustVotesResponse postAdjustCommentVotes(commentId, AdjustCommentVotesParams, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **AdjustCommentVotesParams** | [**AdjustCommentVotesParams**](../Models/AdjustCommentVotesParams.md)| | | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**AdjustVotesResponse**](../Models/AdjustVotesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +# **postApiExport** +> ModerationExportResponse postApiExport(text-search, byIPFromComment, filters, searchFilters, sorts, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **text-search** | **String**| | [optional] [default to null] | +| **byIPFromComment** | **String**| | [optional] [default to null] | +| **filters** | **String**| | [optional] [default to null] | +| **searchFilters** | **String**| | [optional] [default to null] | +| **sorts** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationExportResponse**](../Models/ModerationExportResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **postBanUserFromComment** +> BanUserFromCommentResult postBanUserFromComment(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **banEmail** | **Boolean**| | [optional] [default to null] | +| **banEmailDomain** | **Boolean**| | [optional] [default to null] | +| **banIP** | **Boolean**| | [optional] [default to null] | +| **deleteAllUsersComments** | **Boolean**| | [optional] [default to null] | +| **bannedUntil** | **String**| | [optional] [default to null] | +| **isShadowBan** | **Boolean**| | [optional] [default to null] | +| **updateId** | **String**| | [optional] [default to null] | +| **banReason** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**BanUserFromCommentResult**](../Models/BanUserFromCommentResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **postBanUserUndo** +> APIEmptyResponse postBanUserUndo(BanUserUndoParams, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **BanUserUndoParams** | [**BanUserUndoParams**](../Models/BanUserUndoParams.md)| | | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +# **postBulkPreBanSummary** +> BulkPreBanSummary postBulkPreBanSummary(BulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **BulkPreBanParams** | [**BulkPreBanParams**](../Models/BulkPreBanParams.md)| | | +| **includeByUserIdAndEmail** | **Boolean**| | [optional] [default to null] | +| **includeByIP** | **Boolean**| | [optional] [default to null] | +| **includeByEmailDomain** | **Boolean**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**BulkPreBanSummary**](../Models/BulkPreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +# **postCommentsByIds** +> ModerationAPIChildCommentsResponse postCommentsByIds(CommentsByIdsParams, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **CommentsByIdsParams** | [**CommentsByIdsParams**](../Models/CommentsByIdsParams.md)| | | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**ModerationAPIChildCommentsResponse**](../Models/ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +# **postFlagComment** +> APIEmptyResponse postFlagComment(commentId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **postRemoveComment** +> PostRemoveCommentResponse postRemoveComment(commentId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**PostRemoveCommentResponse**](../Models/PostRemoveCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **postRestoreDeletedComment** +> APIEmptyResponse postRestoreDeletedComment(commentId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **postSetCommentApprovalStatus** +> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId, approved, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **approved** | **Boolean**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**SetCommentApprovedResponse**](../Models/SetCommentApprovedResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **postSetCommentReviewStatus** +> APIEmptyResponse postSetCommentReviewStatus(commentId, reviewed, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **reviewed** | **Boolean**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **postSetCommentSpamStatus** +> APIEmptyResponse postSetCommentSpamStatus(commentId, spam, permNotSpam, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **spam** | **Boolean**| | [optional] [default to null] | +| **permNotSpam** | **Boolean**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **postSetCommentText** +> SetCommentTextResponse postSetCommentText(commentId, SetCommentTextParams, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **SetCommentTextParams** | [**SetCommentTextParams**](../Models/SetCommentTextParams.md)| | | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**SetCommentTextResponse**](../Models/SetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +# **postUnFlagComment** +> APIEmptyResponse postUnFlagComment(commentId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **postVote** +> VoteResponse postVote(commentId, direction, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **commentId** | **String**| | [default to null] | +| **direction** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**VoteResponse**](../Models/VoteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **putAwardBadge** +> AwardUserBadgeResponse putAwardBadge(badgeId, userId, commentId, broadcastId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **badgeId** | **String**| | [default to null] | +| **userId** | **String**| | [optional] [default to null] | +| **commentId** | **String**| | [optional] [default to null] | +| **broadcastId** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**AwardUserBadgeResponse**](../Models/AwardUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **putCloseThread** +> APIEmptyResponse putCloseThread(urlId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **urlId** | **String**| | [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **putRemoveBadge** +> RemoveUserBadgeResponse putRemoveBadge(badgeId, userId, commentId, broadcastId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **badgeId** | **String**| | [default to null] | +| **userId** | **String**| | [optional] [default to null] | +| **commentId** | **String**| | [optional] [default to null] | +| **broadcastId** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**RemoveUserBadgeResponse**](../Models/RemoveUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **putReopenThread** +> APIEmptyResponse putReopenThread(urlId, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **urlId** | **String**| | [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **setTrustFactor** +> SetUserTrustFactorResponse setTrustFactor(userId, trustFactor, sso) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userId** | **String**| | [optional] [default to null] | +| **trustFactor** | **String**| | [optional] [default to null] | +| **sso** | **String**| | [optional] [default to null] | + +### Return type + +[**SetUserTrustFactorResponse**](../Models/SetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/docs/Apis/PublicApi.md b/docs/Apis/PublicApi.md index bec1de4..9b2dc5e 100644 --- a/docs/Apis/PublicApi.md +++ b/docs/Apis/PublicApi.md @@ -8,22 +8,39 @@ All URIs are relative to *https://fastcomments.com* | [**checkedCommentsForBlocked**](PublicApi.md#checkedCommentsForBlocked) | **GET** /check-blocked-comments | | | [**createCommentPublic**](PublicApi.md#createCommentPublic) | **POST** /comments/{tenantId} | | | [**createFeedPostPublic**](PublicApi.md#createFeedPostPublic) | **POST** /feed-posts/{tenantId} | | +| [**createV1PageReact**](PublicApi.md#createV1PageReact) | **POST** /page-reacts/v1/likes/{tenantId} | | +| [**createV2PageReact**](PublicApi.md#createV2PageReact) | **POST** /page-reacts/v2/{tenantId} | | | [**deleteCommentPublic**](PublicApi.md#deleteCommentPublic) | **DELETE** /comments/{tenantId}/{commentId} | | | [**deleteCommentVote**](PublicApi.md#deleteCommentVote) | **DELETE** /comments/{tenantId}/{commentId}/vote/{voteId} | | | [**deleteFeedPostPublic**](PublicApi.md#deleteFeedPostPublic) | **DELETE** /feed-posts/{tenantId}/{postId} | | +| [**deleteV1PageReact**](PublicApi.md#deleteV1PageReact) | **DELETE** /page-reacts/v1/likes/{tenantId} | | +| [**deleteV2PageReact**](PublicApi.md#deleteV2PageReact) | **DELETE** /page-reacts/v2/{tenantId} | | | [**flagCommentPublic**](PublicApi.md#flagCommentPublic) | **POST** /flag-comment/{commentId} | | | [**getCommentText**](PublicApi.md#getCommentText) | **GET** /comments/{tenantId}/{commentId}/text | | | [**getCommentVoteUserNames**](PublicApi.md#getCommentVoteUserNames) | **GET** /comments/{tenantId}/{commentId}/votes | | +| [**getCommentsForUser**](PublicApi.md#getCommentsForUser) | **GET** /comments-for-user | | | [**getCommentsPublic**](PublicApi.md#getCommentsPublic) | **GET** /comments/{tenantId} | | | [**getEventLog**](PublicApi.md#getEventLog) | **GET** /event-log/{tenantId} | | | [**getFeedPostsPublic**](PublicApi.md#getFeedPostsPublic) | **GET** /feed-posts/{tenantId} | | | [**getFeedPostsStats**](PublicApi.md#getFeedPostsStats) | **GET** /feed-posts/{tenantId}/stats | | +| [**getGifLarge**](PublicApi.md#getGifLarge) | **GET** /gifs/get-large/{tenantId} | | +| [**getGifsSearch**](PublicApi.md#getGifsSearch) | **GET** /gifs/search/{tenantId} | | +| [**getGifsTrending**](PublicApi.md#getGifsTrending) | **GET** /gifs/trending/{tenantId} | | | [**getGlobalEventLog**](PublicApi.md#getGlobalEventLog) | **GET** /event-log/global/{tenantId} | | +| [**getOfflineUsers**](PublicApi.md#getOfflineUsers) | **GET** /pages/{tenantId}/users/offline | | +| [**getOnlineUsers**](PublicApi.md#getOnlineUsers) | **GET** /pages/{tenantId}/users/online | | +| [**getPagesPublic**](PublicApi.md#getPagesPublic) | **GET** /pages/{tenantId} | | +| [**getTranslations**](PublicApi.md#getTranslations) | **GET** /translations/{namespace}/{component} | | | [**getUserNotificationCount**](PublicApi.md#getUserNotificationCount) | **GET** /user-notifications/get-count | | | [**getUserNotifications**](PublicApi.md#getUserNotifications) | **GET** /user-notifications | | | [**getUserPresenceStatuses**](PublicApi.md#getUserPresenceStatuses) | **GET** /user-presence-status | | | [**getUserReactsPublic**](PublicApi.md#getUserReactsPublic) | **GET** /feed-posts/{tenantId}/user-reacts | | +| [**getUsersInfo**](PublicApi.md#getUsersInfo) | **GET** /pages/{tenantId}/users/info | | +| [**getV1PageLikes**](PublicApi.md#getV1PageLikes) | **GET** /page-reacts/v1/likes/{tenantId} | | +| [**getV2PageReactUsers**](PublicApi.md#getV2PageReactUsers) | **GET** /page-reacts/v2/{tenantId}/list | | +| [**getV2PageReacts**](PublicApi.md#getV2PageReacts) | **GET** /page-reacts/v2/{tenantId} | | | [**lockComment**](PublicApi.md#lockComment) | **POST** /comments/{tenantId}/{commentId}/lock | | +| [**logoutPublic**](PublicApi.md#logoutPublic) | **PUT** /auth/logout | | | [**pinComment**](PublicApi.md#pinComment) | **POST** /comments/{tenantId}/{commentId}/pin | | | [**reactFeedPostPublic**](PublicApi.md#reactFeedPostPublic) | **POST** /feed-posts/{tenantId}/react/{postId} | | | [**resetUserNotificationCount**](PublicApi.md#resetUserNotificationCount) | **POST** /user-notifications/reset-count | | @@ -43,7 +60,7 @@ All URIs are relative to *https://fastcomments.com* # **blockFromCommentPublic** -> BlockFromCommentPublic_200_response blockFromCommentPublic(tenantId, commentId, PublicBlockFromCommentParams, sso) +> BlockSuccess blockFromCommentPublic(tenantId, commentId, PublicBlockFromCommentParams, sso) @@ -58,7 +75,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**BlockFromCommentPublic_200_response**](../Models/BlockFromCommentPublic_200_response.md) +[**BlockSuccess**](../Models/BlockSuccess.md) ### Authorization @@ -71,7 +88,7 @@ No authorization required # **checkedCommentsForBlocked** -> CheckedCommentsForBlocked_200_response checkedCommentsForBlocked(tenantId, commentIds, sso) +> CheckBlockedCommentsResponse checkedCommentsForBlocked(tenantId, commentIds, sso) @@ -85,7 +102,7 @@ No authorization required ### Return type -[**CheckedCommentsForBlocked_200_response**](../Models/CheckedCommentsForBlocked_200_response.md) +[**CheckBlockedCommentsResponse**](../Models/CheckBlockedCommentsResponse.md) ### Authorization @@ -98,7 +115,7 @@ No authorization required # **createCommentPublic** -> CreateCommentPublic_200_response createCommentPublic(tenantId, urlId, broadcastId, CommentData, sessionId, sso) +> SaveCommentsResponseWithPresence createCommentPublic(tenantId, urlId, broadcastId, CommentData, sessionId, sso) @@ -115,7 +132,7 @@ No authorization required ### Return type -[**CreateCommentPublic_200_response**](../Models/CreateCommentPublic_200_response.md) +[**SaveCommentsResponseWithPresence**](../Models/SaveCommentsResponseWithPresence.md) ### Authorization @@ -128,7 +145,7 @@ No authorization required # **createFeedPostPublic** -> CreateFeedPostPublic_200_response createFeedPostPublic(tenantId, CreateFeedPostParams, broadcastId, sso) +> CreateFeedPostResponse createFeedPostPublic(tenantId, CreateFeedPostParams, broadcastId, sso) @@ -143,7 +160,7 @@ No authorization required ### Return type -[**CreateFeedPostPublic_200_response**](../Models/CreateFeedPostPublic_200_response.md) +[**CreateFeedPostResponse**](../Models/CreateFeedPostResponse.md) ### Authorization @@ -154,9 +171,64 @@ No authorization required - **Content-Type**: application/json - **Accept**: application/json + +# **createV1PageReact** +> CreateV1PageReact createV1PageReact(tenantId, urlId, title) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **urlId** | **String**| | [default to null] | +| **title** | **String**| | [optional] [default to null] | + +### Return type + +[**CreateV1PageReact**](../Models/CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **createV2PageReact** +> CreateV1PageReact createV2PageReact(tenantId, urlId, id, title) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **urlId** | **String**| | [default to null] | +| **id** | **String**| | [default to null] | +| **title** | **String**| | [optional] [default to null] | + +### Return type + +[**CreateV1PageReact**](../Models/CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + # **deleteCommentPublic** -> DeleteCommentPublic_200_response deleteCommentPublic(tenantId, commentId, broadcastId, editKey, sso) +> PublicAPIDeleteCommentResponse deleteCommentPublic(tenantId, commentId, broadcastId, editKey, sso) @@ -172,7 +244,7 @@ No authorization required ### Return type -[**DeleteCommentPublic_200_response**](../Models/DeleteCommentPublic_200_response.md) +[**PublicAPIDeleteCommentResponse**](../Models/PublicAPIDeleteCommentResponse.md) ### Authorization @@ -185,7 +257,7 @@ No authorization required # **deleteCommentVote** -> DeleteCommentVote_200_response deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso) +> VoteDeleteResponse deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso) @@ -203,7 +275,7 @@ No authorization required ### Return type -[**DeleteCommentVote_200_response**](../Models/DeleteCommentVote_200_response.md) +[**VoteDeleteResponse**](../Models/VoteDeleteResponse.md) ### Authorization @@ -216,7 +288,7 @@ No authorization required # **deleteFeedPostPublic** -> DeleteFeedPostPublic_200_response deleteFeedPostPublic(tenantId, postId, broadcastId, sso) +> DeleteFeedPostPublicResponse deleteFeedPostPublic(tenantId, postId, broadcastId, sso) @@ -231,7 +303,60 @@ No authorization required ### Return type -[**DeleteFeedPostPublic_200_response**](../Models/DeleteFeedPostPublic_200_response.md) +[**DeleteFeedPostPublicResponse**](../Models/DeleteFeedPostPublicResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **deleteV1PageReact** +> CreateV1PageReact deleteV1PageReact(tenantId, urlId) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **urlId** | **String**| | [default to null] | + +### Return type + +[**CreateV1PageReact**](../Models/CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **deleteV2PageReact** +> CreateV1PageReact deleteV2PageReact(tenantId, urlId, id) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **urlId** | **String**| | [default to null] | +| **id** | **String**| | [default to null] | + +### Return type + +[**CreateV1PageReact**](../Models/CreateV1PageReact.md) ### Authorization @@ -244,7 +369,7 @@ No authorization required # **flagCommentPublic** -> FlagCommentPublic_200_response flagCommentPublic(tenantId, commentId, isFlagged, sso) +> APIEmptyResponse flagCommentPublic(tenantId, commentId, isFlagged, sso) @@ -259,7 +384,7 @@ No authorization required ### Return type -[**FlagCommentPublic_200_response**](../Models/FlagCommentPublic_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -272,7 +397,7 @@ No authorization required # **getCommentText** -> GetCommentText_200_response getCommentText(tenantId, commentId, editKey, sso) +> PublicAPIGetCommentTextResponse getCommentText(tenantId, commentId, editKey, sso) @@ -287,7 +412,7 @@ No authorization required ### Return type -[**GetCommentText_200_response**](../Models/GetCommentText_200_response.md) +[**PublicAPIGetCommentTextResponse**](../Models/PublicAPIGetCommentTextResponse.md) ### Authorization @@ -300,7 +425,7 @@ No authorization required # **getCommentVoteUserNames** -> GetCommentVoteUserNames_200_response getCommentVoteUserNames(tenantId, commentId, dir, sso) +> GetCommentVoteUserNamesSuccessResponse getCommentVoteUserNames(tenantId, commentId, dir, sso) @@ -315,7 +440,38 @@ No authorization required ### Return type -[**GetCommentVoteUserNames_200_response**](../Models/GetCommentVoteUserNames_200_response.md) +[**GetCommentVoteUserNamesSuccessResponse**](../Models/GetCommentVoteUserNamesSuccessResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getCommentsForUser** +> GetCommentsForUserResponse getCommentsForUser(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userId** | **String**| | [optional] [default to null] | +| **direction** | [**SortDirections**](../Models/.md)| | [optional] [default to null] [enum: OF, NF, MR] | +| **repliesToUserId** | **String**| | [optional] [default to null] | +| **page** | **Double**| | [optional] [default to null] | +| **includei10n** | **Boolean**| | [optional] [default to null] | +| **locale** | **String**| | [optional] [default to null] | +| **isCrawler** | **Boolean**| | [optional] [default to null] | + +### Return type + +[**GetCommentsForUserResponse**](../Models/GetCommentsForUserResponse.md) ### Authorization @@ -328,7 +484,7 @@ No authorization required # **getCommentsPublic** -> GetCommentsPublic_200_response getCommentsPublic(tenantId, urlId, page, direction, sso, skip, skipChildren, limit, limitChildren, countChildren, fetchPageForCommentId, includeConfig, countAll, includei10n, locale, modules, isCrawler, includeNotificationCount, asTree, maxTreeDepth, useFullTranslationIds, parentId, searchText, hashTags, userId, customConfigStr, afterCommentId, beforeCommentId) +> GetCommentsResponseWithPresence_PublicComment_ getCommentsPublic(tenantId, urlId, page, direction, sso, skip, skipChildren, limit, limitChildren, countChildren, fetchPageForCommentId, includeConfig, countAll, includei10n, locale, modules, isCrawler, includeNotificationCount, asTree, maxTreeDepth, useFullTranslationIds, parentId, searchText, hashTags, userId, customConfigStr, afterCommentId, beforeCommentId) @@ -369,7 +525,7 @@ No authorization required ### Return type -[**GetCommentsPublic_200_response**](../Models/GetCommentsPublic_200_response.md) +[**GetCommentsResponseWithPresence_PublicComment_**](../Models/GetCommentsResponseWithPresence_PublicComment_.md) ### Authorization @@ -382,7 +538,7 @@ No authorization required # **getEventLog** -> GetEventLog_200_response getEventLog(tenantId, urlId, userIdWS, startTime, endTime) +> GetEventLogResponse getEventLog(tenantId, urlId, userIdWS, startTime, endTime) @@ -396,11 +552,11 @@ No authorization required | **urlId** | **String**| | [default to null] | | **userIdWS** | **String**| | [default to null] | | **startTime** | **Long**| | [default to null] | -| **endTime** | **Long**| | [default to null] | +| **endTime** | **Long**| | [optional] [default to null] | ### Return type -[**GetEventLog_200_response**](../Models/GetEventLog_200_response.md) +[**GetEventLogResponse**](../Models/GetEventLogResponse.md) ### Authorization @@ -413,7 +569,7 @@ No authorization required # **getFeedPostsPublic** -> GetFeedPostsPublic_200_response getFeedPostsPublic(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo) +> PublicFeedPostsResponse getFeedPostsPublic(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo) @@ -433,7 +589,7 @@ No authorization required ### Return type -[**GetFeedPostsPublic_200_response**](../Models/GetFeedPostsPublic_200_response.md) +[**PublicFeedPostsResponse**](../Models/PublicFeedPostsResponse.md) ### Authorization @@ -446,7 +602,7 @@ No authorization required # **getFeedPostsStats** -> GetFeedPostsStats_200_response getFeedPostsStats(tenantId, postIds, sso) +> FeedPostsStatsResponse getFeedPostsStats(tenantId, postIds, sso) @@ -460,7 +616,90 @@ No authorization required ### Return type -[**GetFeedPostsStats_200_response**](../Models/GetFeedPostsStats_200_response.md) +[**FeedPostsStatsResponse**](../Models/FeedPostsStatsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getGifLarge** +> GifGetLargeResponse getGifLarge(tenantId, largeInternalURLSanitized) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **largeInternalURLSanitized** | **String**| | [default to null] | + +### Return type + +[**GifGetLargeResponse**](../Models/GifGetLargeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getGifsSearch** +> GetGifsSearchResponse getGifsSearch(tenantId, search, locale, rating, page) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **search** | **String**| | [default to null] | +| **locale** | **String**| | [optional] [default to null] | +| **rating** | **String**| | [optional] [default to null] | +| **page** | **Double**| | [optional] [default to null] | + +### Return type + +[**GetGifsSearchResponse**](../Models/GetGifsSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getGifsTrending** +> GetGifsTrendingResponse getGifsTrending(tenantId, locale, rating, page) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **locale** | **String**| | [optional] [default to null] | +| **rating** | **String**| | [optional] [default to null] | +| **page** | **Double**| | [optional] [default to null] | + +### Return type + +[**GetGifsTrendingResponse**](../Models/GetGifsTrendingResponse.md) ### Authorization @@ -473,7 +712,7 @@ No authorization required # **getGlobalEventLog** -> GetEventLog_200_response getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime) +> GetEventLogResponse getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime) @@ -487,11 +726,131 @@ No authorization required | **urlId** | **String**| | [default to null] | | **userIdWS** | **String**| | [default to null] | | **startTime** | **Long**| | [default to null] | -| **endTime** | **Long**| | [default to null] | +| **endTime** | **Long**| | [optional] [default to null] | ### Return type -[**GetEventLog_200_response**](../Models/GetEventLog_200_response.md) +[**GetEventLogResponse**](../Models/GetEventLogResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getOfflineUsers** +> PageUsersOfflineResponse getOfflineUsers(tenantId, urlId, afterName, afterUserId) + + + + Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **urlId** | **String**| Page URL identifier (cleaned server-side). | [default to null] | +| **afterName** | **String**| Cursor: pass nextAfterName from the previous response. | [optional] [default to null] | +| **afterUserId** | **String**| Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. | [optional] [default to null] | + +### Return type + +[**PageUsersOfflineResponse**](../Models/PageUsersOfflineResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getOnlineUsers** +> PageUsersOnlineResponse getOnlineUsers(tenantId, urlId, afterName, afterUserId) + + + + Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **urlId** | **String**| Page URL identifier (cleaned server-side). | [default to null] | +| **afterName** | **String**| Cursor: pass nextAfterName from the previous response. | [optional] [default to null] | +| **afterUserId** | **String**| Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. | [optional] [default to null] | + +### Return type + +[**PageUsersOnlineResponse**](../Models/PageUsersOnlineResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getPagesPublic** +> GetPublicPagesResponse getPagesPublic(tenantId, cursor, limit, q, sortBy, hasComments) + + + + List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **cursor** | **String**| Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. | [optional] [default to null] | +| **limit** | **Integer**| 1..200, default 50 | [optional] [default to null] | +| **q** | **String**| Optional case-insensitive title prefix filter. | [optional] [default to null] | +| **sortBy** | [**PagesSortBy**](../Models/.md)| Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). | [optional] [default to null] [enum: updatedAt, commentCount, title] | +| **hasComments** | **Boolean**| If true, only return pages with at least one comment. | [optional] [default to null] | + +### Return type + +[**GetPublicPagesResponse**](../Models/GetPublicPagesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getTranslations** +> GetTranslationsResponse getTranslations(namespace, component, locale, useFullTranslationIds) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| | [default to null] | +| **component** | **String**| | [default to null] | +| **locale** | **String**| | [optional] [default to null] | +| **useFullTranslationIds** | **Boolean**| | [optional] [default to null] | + +### Return type + +[**GetTranslationsResponse**](../Models/GetTranslationsResponse.md) ### Authorization @@ -504,7 +863,7 @@ No authorization required # **getUserNotificationCount** -> GetUserNotificationCount_200_response getUserNotificationCount(tenantId, sso) +> GetUserNotificationCountResponse getUserNotificationCount(tenantId, sso) @@ -517,7 +876,7 @@ No authorization required ### Return type -[**GetUserNotificationCount_200_response**](../Models/GetUserNotificationCount_200_response.md) +[**GetUserNotificationCountResponse**](../Models/GetUserNotificationCountResponse.md) ### Authorization @@ -530,7 +889,7 @@ No authorization required # **getUserNotifications** -> GetUserNotifications_200_response getUserNotifications(tenantId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, sso) +> GetMyNotificationsResponse getUserNotifications(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso) @@ -539,6 +898,7 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tenantId** | **String**| | [default to null] | +| **urlId** | **String**| Used to determine whether the current page is subscribed. | [optional] [default to null] | | **pageSize** | **Integer**| | [optional] [default to null] | | **afterId** | **String**| | [optional] [default to null] | | **includeContext** | **Boolean**| | [optional] [default to null] | @@ -547,11 +907,12 @@ No authorization required | **dmOnly** | **Boolean**| | [optional] [default to null] | | **noDm** | **Boolean**| | [optional] [default to null] | | **includeTranslations** | **Boolean**| | [optional] [default to null] | +| **includeTenantNotifications** | **Boolean**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**GetUserNotifications_200_response**](../Models/GetUserNotifications_200_response.md) +[**GetMyNotificationsResponse**](../Models/GetMyNotificationsResponse.md) ### Authorization @@ -564,7 +925,7 @@ No authorization required # **getUserPresenceStatuses** -> GetUserPresenceStatuses_200_response getUserPresenceStatuses(tenantId, urlIdWS, userIds) +> GetUserPresenceStatusesResponse getUserPresenceStatuses(tenantId, urlIdWS, userIds) @@ -578,7 +939,7 @@ No authorization required ### Return type -[**GetUserPresenceStatuses_200_response**](../Models/GetUserPresenceStatuses_200_response.md) +[**GetUserPresenceStatusesResponse**](../Models/GetUserPresenceStatusesResponse.md) ### Authorization @@ -591,7 +952,7 @@ No authorization required # **getUserReactsPublic** -> GetUserReactsPublic_200_response getUserReactsPublic(tenantId, postIds, sso) +> UserReactsResponse getUserReactsPublic(tenantId, postIds, sso) @@ -605,7 +966,114 @@ No authorization required ### Return type -[**GetUserReactsPublic_200_response**](../Models/GetUserReactsPublic_200_response.md) +[**UserReactsResponse**](../Models/UserReactsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getUsersInfo** +> PageUsersInfoResponse getUsersInfo(tenantId, ids) + + + + Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **ids** | **String**| Comma-delimited userIds. | [default to null] | + +### Return type + +[**PageUsersInfoResponse**](../Models/PageUsersInfoResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getV1PageLikes** +> GetV1PageLikes getV1PageLikes(tenantId, urlId) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **urlId** | **String**| | [default to null] | + +### Return type + +[**GetV1PageLikes**](../Models/GetV1PageLikes.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getV2PageReactUsers** +> GetV2PageReactUsersResponse getV2PageReactUsers(tenantId, urlId, id) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **urlId** | **String**| | [default to null] | +| **id** | **String**| | [default to null] | + +### Return type + +[**GetV2PageReactUsersResponse**](../Models/GetV2PageReactUsersResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **getV2PageReacts** +> GetV2PageReacts getV2PageReacts(tenantId, urlId) + + + +### Parameters + +|Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [default to null] | +| **urlId** | **String**| | [default to null] | + +### Return type + +[**GetV2PageReacts**](../Models/GetV2PageReacts.md) ### Authorization @@ -618,7 +1086,7 @@ No authorization required # **lockComment** -> LockComment_200_response lockComment(tenantId, commentId, broadcastId, sso) +> APIEmptyResponse lockComment(tenantId, commentId, broadcastId, sso) @@ -633,7 +1101,29 @@ No authorization required ### Return type -[**LockComment_200_response**](../Models/LockComment_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +# **logoutPublic** +> APIEmptyResponse logoutPublic() + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -646,7 +1136,7 @@ No authorization required # **pinComment** -> PinComment_200_response pinComment(tenantId, commentId, broadcastId, sso) +> ChangeCommentPinStatusResponse pinComment(tenantId, commentId, broadcastId, sso) @@ -661,7 +1151,7 @@ No authorization required ### Return type -[**PinComment_200_response**](../Models/PinComment_200_response.md) +[**ChangeCommentPinStatusResponse**](../Models/ChangeCommentPinStatusResponse.md) ### Authorization @@ -674,7 +1164,7 @@ No authorization required # **reactFeedPostPublic** -> ReactFeedPostPublic_200_response reactFeedPostPublic(tenantId, postId, ReactBodyParams, isUndo, broadcastId, sso) +> ReactFeedPostResponse reactFeedPostPublic(tenantId, postId, ReactBodyParams, isUndo, broadcastId, sso) @@ -691,7 +1181,7 @@ No authorization required ### Return type -[**ReactFeedPostPublic_200_response**](../Models/ReactFeedPostPublic_200_response.md) +[**ReactFeedPostResponse**](../Models/ReactFeedPostResponse.md) ### Authorization @@ -704,7 +1194,7 @@ No authorization required # **resetUserNotificationCount** -> ResetUserNotifications_200_response resetUserNotificationCount(tenantId, sso) +> ResetUserNotificationsResponse resetUserNotificationCount(tenantId, sso) @@ -717,7 +1207,7 @@ No authorization required ### Return type -[**ResetUserNotifications_200_response**](../Models/ResetUserNotifications_200_response.md) +[**ResetUserNotificationsResponse**](../Models/ResetUserNotificationsResponse.md) ### Authorization @@ -730,7 +1220,7 @@ No authorization required # **resetUserNotifications** -> ResetUserNotifications_200_response resetUserNotifications(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso) +> ResetUserNotificationsResponse resetUserNotifications(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso) @@ -748,7 +1238,7 @@ No authorization required ### Return type -[**ResetUserNotifications_200_response**](../Models/ResetUserNotifications_200_response.md) +[**ResetUserNotificationsResponse**](../Models/ResetUserNotificationsResponse.md) ### Authorization @@ -761,7 +1251,7 @@ No authorization required # **searchUsers** -> SearchUsers_200_response searchUsers(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection) +> SearchUsersResult searchUsers(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection) @@ -778,7 +1268,7 @@ No authorization required ### Return type -[**SearchUsers_200_response**](../Models/SearchUsers_200_response.md) +[**SearchUsersResult**](../Models/SearchUsersResult.md) ### Authorization @@ -791,7 +1281,7 @@ No authorization required # **setCommentText** -> SetCommentText_200_response setCommentText(tenantId, commentId, broadcastId, CommentTextUpdateRequest, editKey, sso) +> PublicAPISetCommentTextResponse setCommentText(tenantId, commentId, broadcastId, CommentTextUpdateRequest, editKey, sso) @@ -808,7 +1298,7 @@ No authorization required ### Return type -[**SetCommentText_200_response**](../Models/SetCommentText_200_response.md) +[**PublicAPISetCommentTextResponse**](../Models/PublicAPISetCommentTextResponse.md) ### Authorization @@ -821,7 +1311,7 @@ No authorization required # **unBlockCommentPublic** -> UnBlockCommentPublic_200_response unBlockCommentPublic(tenantId, commentId, PublicBlockFromCommentParams, sso) +> UnblockSuccess unBlockCommentPublic(tenantId, commentId, PublicBlockFromCommentParams, sso) @@ -836,7 +1326,7 @@ No authorization required ### Return type -[**UnBlockCommentPublic_200_response**](../Models/UnBlockCommentPublic_200_response.md) +[**UnblockSuccess**](../Models/UnblockSuccess.md) ### Authorization @@ -849,7 +1339,7 @@ No authorization required # **unLockComment** -> LockComment_200_response unLockComment(tenantId, commentId, broadcastId, sso) +> APIEmptyResponse unLockComment(tenantId, commentId, broadcastId, sso) @@ -864,7 +1354,7 @@ No authorization required ### Return type -[**LockComment_200_response**](../Models/LockComment_200_response.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -877,7 +1367,7 @@ No authorization required # **unPinComment** -> PinComment_200_response unPinComment(tenantId, commentId, broadcastId, sso) +> ChangeCommentPinStatusResponse unPinComment(tenantId, commentId, broadcastId, sso) @@ -892,7 +1382,7 @@ No authorization required ### Return type -[**PinComment_200_response**](../Models/PinComment_200_response.md) +[**ChangeCommentPinStatusResponse**](../Models/ChangeCommentPinStatusResponse.md) ### Authorization @@ -905,7 +1395,7 @@ No authorization required # **updateFeedPostPublic** -> CreateFeedPostPublic_200_response updateFeedPostPublic(tenantId, postId, UpdateFeedPostParams, broadcastId, sso) +> CreateFeedPostResponse updateFeedPostPublic(tenantId, postId, UpdateFeedPostParams, broadcastId, sso) @@ -921,7 +1411,7 @@ No authorization required ### Return type -[**CreateFeedPostPublic_200_response**](../Models/CreateFeedPostPublic_200_response.md) +[**CreateFeedPostResponse**](../Models/CreateFeedPostResponse.md) ### Authorization @@ -934,7 +1424,7 @@ No authorization required # **updateUserNotificationCommentSubscriptionStatus** -> UpdateUserNotificationStatus_200_response updateUserNotificationCommentSubscriptionStatus(tenantId, notificationId, optedInOrOut, commentId, sso) +> UpdateUserNotificationCommentSubscriptionStatusResponse updateUserNotificationCommentSubscriptionStatus(tenantId, notificationId, optedInOrOut, commentId, sso) @@ -952,7 +1442,7 @@ No authorization required ### Return type -[**UpdateUserNotificationStatus_200_response**](../Models/UpdateUserNotificationStatus_200_response.md) +[**UpdateUserNotificationCommentSubscriptionStatusResponse**](../Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md) ### Authorization @@ -965,7 +1455,7 @@ No authorization required # **updateUserNotificationPageSubscriptionStatus** -> UpdateUserNotificationStatus_200_response updateUserNotificationPageSubscriptionStatus(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso) +> UpdateUserNotificationPageSubscriptionStatusResponse updateUserNotificationPageSubscriptionStatus(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso) @@ -984,7 +1474,7 @@ No authorization required ### Return type -[**UpdateUserNotificationStatus_200_response**](../Models/UpdateUserNotificationStatus_200_response.md) +[**UpdateUserNotificationPageSubscriptionStatusResponse**](../Models/UpdateUserNotificationPageSubscriptionStatusResponse.md) ### Authorization @@ -997,7 +1487,7 @@ No authorization required # **updateUserNotificationStatus** -> UpdateUserNotificationStatus_200_response updateUserNotificationStatus(tenantId, notificationId, newStatus, sso) +> UpdateUserNotificationStatusResponse updateUserNotificationStatus(tenantId, notificationId, newStatus, sso) @@ -1012,7 +1502,7 @@ No authorization required ### Return type -[**UpdateUserNotificationStatus_200_response**](../Models/UpdateUserNotificationStatus_200_response.md) +[**UpdateUserNotificationStatusResponse**](../Models/UpdateUserNotificationStatusResponse.md) ### Authorization @@ -1055,7 +1545,7 @@ No authorization required # **voteComment** -> VoteComment_200_response voteComment(tenantId, commentId, urlId, broadcastId, VoteBodyParams, sessionId, sso) +> VoteResponse voteComment(tenantId, commentId, urlId, broadcastId, VoteBodyParams, sessionId, sso) @@ -1073,7 +1563,7 @@ No authorization required ### Return type -[**VoteComment_200_response**](../Models/VoteComment_200_response.md) +[**VoteResponse**](../Models/VoteResponse.md) ### Authorization diff --git a/docs/Models/APIBanUserChangeLog.md b/docs/Models/APIBanUserChangeLog.md new file mode 100644 index 0000000..1afea5a --- /dev/null +++ b/docs/Models/APIBanUserChangeLog.md @@ -0,0 +1,12 @@ +# APIBanUserChangeLog +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **createdBannedUserId** | **String** | | [optional] [default to null] | +| **updatedBannedUserId** | **String** | | [optional] [default to null] | +| **deletedBannedUsers** | [**List**](APIBannedUser.md) | | [optional] [default to null] | +| **changedValuesBefore** | [**APIBanUserChangedValues**](APIBanUserChangedValues.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/APIBanUserChangedValues.md b/docs/Models/APIBanUserChangedValues.md new file mode 100644 index 0000000..3c63b39 --- /dev/null +++ b/docs/Models/APIBanUserChangedValues.md @@ -0,0 +1,21 @@ +# APIBanUserChangedValues +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **\_id** | **String** | | [optional] [default to null] | +| **tenantId** | **String** | | [optional] [default to null] | +| **userId** | **String** | | [optional] [default to null] | +| **email** | **String** | | [optional] [default to null] | +| **username** | **String** | | [optional] [default to null] | +| **ipHash** | **String** | | [optional] [default to null] | +| **createdAt** | **Date** | | [optional] [default to null] | +| **bannedByUserId** | **String** | | [optional] [default to null] | +| **bannedCommentText** | **String** | | [optional] [default to null] | +| **banType** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Date** | | [optional] [default to null] | +| **hasEmailWildcard** | **Boolean** | | [optional] [default to null] | +| **banReason** | **String** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/APIBannedUser.md b/docs/Models/APIBannedUser.md new file mode 100644 index 0000000..79e2400 --- /dev/null +++ b/docs/Models/APIBannedUser.md @@ -0,0 +1,21 @@ +# APIBannedUser +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **\_id** | **String** | | [default to null] | +| **tenantId** | **String** | | [default to null] | +| **userId** | **String** | | [optional] [default to null] | +| **email** | **String** | | [optional] [default to null] | +| **username** | **String** | | [optional] [default to null] | +| **ipHash** | **String** | | [optional] [default to null] | +| **createdAt** | **Date** | | [default to null] | +| **bannedByUserId** | **String** | | [default to null] | +| **bannedCommentText** | **String** | | [default to null] | +| **banType** | **String** | | [default to null] | +| **bannedUntil** | **Date** | | [default to null] | +| **hasEmailWildcard** | **Boolean** | | [default to null] | +| **banReason** | **String** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/APIBannedUserWithMultiMatchInfo.md b/docs/Models/APIBannedUserWithMultiMatchInfo.md new file mode 100644 index 0000000..b1ee282 --- /dev/null +++ b/docs/Models/APIBannedUserWithMultiMatchInfo.md @@ -0,0 +1,17 @@ +# APIBannedUserWithMultiMatchInfo +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **\_id** | **String** | | [default to null] | +| **userId** | **String** | | [optional] [default to null] | +| **banType** | **String** | | [default to null] | +| **email** | **String** | | [optional] [default to null] | +| **ipHash** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Date** | | [default to null] | +| **hasEmailWildcard** | **Boolean** | | [default to null] | +| **banReason** | **String** | | [optional] [default to null] | +| **matches** | [**List**](BannedUserMatch.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/APIComment.md b/docs/Models/APIComment.md index 4116840..96de931 100644 --- a/docs/Models/APIComment.md +++ b/docs/Models/APIComment.md @@ -3,7 +3,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **\_id** | **String** | | [default to null] | +| **id** | **String** | | [default to null] | | **aiDeterminedSpam** | **Boolean** | | [optional] [default to null] | | **anonUserId** | **String** | | [optional] [default to null] | | **approved** | **Boolean** | | [default to null] | diff --git a/docs/Models/APICommentBase.md b/docs/Models/APICommentBase.md index 2f08e86..ac0bdcd 100644 --- a/docs/Models/APICommentBase.md +++ b/docs/Models/APICommentBase.md @@ -3,7 +3,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **\_id** | **String** | | [default to null] | +| **id** | **String** | | [default to null] | | **aiDeterminedSpam** | **Boolean** | | [optional] [default to null] | | **anonUserId** | **String** | | [optional] [default to null] | | **approved** | **Boolean** | | [default to null] | diff --git a/docs/Models/APICommentCommonBannedUser.md b/docs/Models/APICommentCommonBannedUser.md new file mode 100644 index 0000000..2a62f02 --- /dev/null +++ b/docs/Models/APICommentCommonBannedUser.md @@ -0,0 +1,16 @@ +# APICommentCommonBannedUser +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **\_id** | **String** | | [default to null] | +| **userId** | **String** | | [optional] [default to null] | +| **banType** | **String** | | [default to null] | +| **email** | **String** | | [optional] [default to null] | +| **ipHash** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Date** | | [default to null] | +| **hasEmailWildcard** | **Boolean** | | [default to null] | +| **banReason** | **String** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/APIModerateGetUserBanPreferencesResponse.md b/docs/Models/APIModerateGetUserBanPreferencesResponse.md new file mode 100644 index 0000000..562efc0 --- /dev/null +++ b/docs/Models/APIModerateGetUserBanPreferencesResponse.md @@ -0,0 +1,10 @@ +# APIModerateGetUserBanPreferencesResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **preferences** | [**APIModerateUserBanPreferences**](APIModerateUserBanPreferences.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/APIModerateUserBanPreferences.md b/docs/Models/APIModerateUserBanPreferences.md new file mode 100644 index 0000000..31004fc --- /dev/null +++ b/docs/Models/APIModerateUserBanPreferences.md @@ -0,0 +1,12 @@ +# APIModerateUserBanPreferences +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **shouldBanEmail** | **Boolean** | | [default to null] | +| **shouldBanByIP** | **Boolean** | | [default to null] | +| **lastBanType** | **String** | | [default to null] | +| **lastBanDuration** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/SaveCommentResponse.md b/docs/Models/APISaveCommentResponse.md similarity index 85% rename from docs/Models/SaveCommentResponse.md rename to docs/Models/APISaveCommentResponse.md index 6b5cd87..0352024 100644 --- a/docs/Models/SaveCommentResponse.md +++ b/docs/Models/APISaveCommentResponse.md @@ -1,10 +1,10 @@ -# SaveCommentResponse +# APISaveCommentResponse ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **comment** | [**FComment**](FComment.md) | | [default to null] | +| **comment** | [**APIComment**](APIComment.md) | | [default to null] | | **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [default to null] | | **moduleData** | [**Map**](AnyType.md) | Construct a type with a set of properties K of type T | [optional] [default to null] | diff --git a/docs/Models/AddDomainConfig_200_response.md b/docs/Models/AddDomainConfigResponse.md similarity index 94% rename from docs/Models/AddDomainConfig_200_response.md rename to docs/Models/AddDomainConfigResponse.md index 7a7758f..97695db 100644 --- a/docs/Models/AddDomainConfig_200_response.md +++ b/docs/Models/AddDomainConfigResponse.md @@ -1,4 +1,4 @@ -# AddDomainConfig_200_response +# AddDomainConfigResponse ## Properties | Name | Type | Description | Notes | diff --git a/docs/Models/AddDomainConfig_200_response_anyOf.md b/docs/Models/AddDomainConfigResponse_anyOf.md similarity index 92% rename from docs/Models/AddDomainConfig_200_response_anyOf.md rename to docs/Models/AddDomainConfigResponse_anyOf.md index ee61031..569d092 100644 --- a/docs/Models/AddDomainConfig_200_response_anyOf.md +++ b/docs/Models/AddDomainConfigResponse_anyOf.md @@ -1,4 +1,4 @@ -# AddDomainConfig_200_response_anyOf +# AddDomainConfigResponse_anyOf ## Properties | Name | Type | Description | Notes | diff --git a/docs/Models/AddHashTagsBulk_200_response.md b/docs/Models/AddHashTagsBulk_200_response.md deleted file mode 100644 index d68c3c4..0000000 --- a/docs/Models/AddHashTagsBulk_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# AddHashTagsBulk_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **results** | [**List**](AddHashTag_200_response.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/AdjustCommentVotesParams.md b/docs/Models/AdjustCommentVotesParams.md new file mode 100644 index 0000000..793109e --- /dev/null +++ b/docs/Models/AdjustCommentVotesParams.md @@ -0,0 +1,9 @@ +# AdjustCommentVotesParams +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **adjustVoteAmount** | **Double** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/AdjustVotesResponse.md b/docs/Models/AdjustVotesResponse.md new file mode 100644 index 0000000..5b76430 --- /dev/null +++ b/docs/Models/AdjustVotesResponse.md @@ -0,0 +1,10 @@ +# AdjustVotesResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | **String** | | [default to null] | +| **newCommentVotes** | **Integer** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/AggregateQuestionResults_200_response.md b/docs/Models/AggregateQuestionResults_200_response.md deleted file mode 100644 index 4290ef0..0000000 --- a/docs/Models/AggregateQuestionResults_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# AggregateQuestionResults_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **data** | [**QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/AggregateResponse.md b/docs/Models/AggregateResponse.md new file mode 100644 index 0000000..b86525d --- /dev/null +++ b/docs/Models/AggregateResponse.md @@ -0,0 +1,14 @@ +# AggregateResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **data** | [**List**](AggregationItem.md) | | [default to null] | +| **stats** | [**AggregationResponse_stats**](AggregationResponse_stats.md) | | [optional] [default to null] | +| **reason** | **String** | | [default to null] | +| **code** | **String** | | [default to null] | +| **validResourceNames** | **List** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/AggregationAPIError.md b/docs/Models/AggregationAPIError.md new file mode 100644 index 0000000..8449de5 --- /dev/null +++ b/docs/Models/AggregationAPIError.md @@ -0,0 +1,12 @@ +# AggregationAPIError +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [default to null] | +| **code** | **String** | | [default to null] | +| **validResourceNames** | **List** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/AwardUserBadgeResponse.md b/docs/Models/AwardUserBadgeResponse.md new file mode 100644 index 0000000..ef9a97a --- /dev/null +++ b/docs/Models/AwardUserBadgeResponse.md @@ -0,0 +1,11 @@ +# AwardUserBadgeResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **notes** | **List** | | [optional] [default to null] | +| **badges** | [**List**](CommentUserBadgeInfo.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/BanUserFromCommentResult.md b/docs/Models/BanUserFromCommentResult.md new file mode 100644 index 0000000..fa18dfd --- /dev/null +++ b/docs/Models/BanUserFromCommentResult.md @@ -0,0 +1,12 @@ +# BanUserFromCommentResult +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | **String** | | [default to null] | +| **changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/BanUserUndoParams.md b/docs/Models/BanUserUndoParams.md new file mode 100644 index 0000000..1f9253f --- /dev/null +++ b/docs/Models/BanUserUndoParams.md @@ -0,0 +1,9 @@ +# BanUserUndoParams +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/BannedUserMatch.md b/docs/Models/BannedUserMatch.md new file mode 100644 index 0000000..ce658a1 --- /dev/null +++ b/docs/Models/BannedUserMatch.md @@ -0,0 +1,10 @@ +# BannedUserMatch +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **matchedOn** | [**BannedUserMatchType**](BannedUserMatchType.md) | | [default to null] | +| **matchedOnValue** | [**BannedUserMatch_matchedOnValue**](BannedUserMatch_matchedOnValue.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/Record_string_string_or_number__value.md b/docs/Models/BannedUserMatchType.md similarity index 87% rename from docs/Models/Record_string_string_or_number__value.md rename to docs/Models/BannedUserMatchType.md index 0bd2a7d..f48e336 100644 --- a/docs/Models/Record_string_string_or_number__value.md +++ b/docs/Models/BannedUserMatchType.md @@ -1,4 +1,4 @@ -# Record_string_string_or_number__value +# BannedUserMatchType ## Properties | Name | Type | Description | Notes | diff --git a/docs/Models/BannedUserMatch_matchedOnValue.md b/docs/Models/BannedUserMatch_matchedOnValue.md new file mode 100644 index 0000000..9f0a408 --- /dev/null +++ b/docs/Models/BannedUserMatch_matchedOnValue.md @@ -0,0 +1,8 @@ +# BannedUserMatch_matchedOnValue +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/BlockFromCommentPublic_200_response.md b/docs/Models/BlockFromCommentPublic_200_response.md deleted file mode 100644 index 0c9bf73..0000000 --- a/docs/Models/BlockFromCommentPublic_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# BlockFromCommentPublic_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/BuildModerationFilterParams.md b/docs/Models/BuildModerationFilterParams.md new file mode 100644 index 0000000..2b7cce3 --- /dev/null +++ b/docs/Models/BuildModerationFilterParams.md @@ -0,0 +1,13 @@ +# BuildModerationFilterParams +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **userId** | **String** | | [default to null] | +| **tenantId** | **String** | | [default to null] | +| **filters** | **String** | | [optional] [default to null] | +| **searchFilters** | **String** | | [optional] [default to null] | +| **textSearch** | **String** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/BuildModerationFilterResponse.md b/docs/Models/BuildModerationFilterResponse.md new file mode 100644 index 0000000..3d64aae --- /dev/null +++ b/docs/Models/BuildModerationFilterResponse.md @@ -0,0 +1,10 @@ +# BuildModerationFilterResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | **String** | | [default to null] | +| **moderationFilter** | [**ModerationFilter**](ModerationFilter.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/BulkAggregateQuestionResults_200_response.md b/docs/Models/BulkAggregateQuestionResults_200_response.md deleted file mode 100644 index 05ac24c..0000000 --- a/docs/Models/BulkAggregateQuestionResults_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# BulkAggregateQuestionResults_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **data** | [**Map**](QuestionResultAggregationOverall.md) | Construct a type with a set of properties K of type T | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/BulkCreateHashTagsResponse.md b/docs/Models/BulkCreateHashTagsResponse.md index 96e98f0..562cf19 100644 --- a/docs/Models/BulkCreateHashTagsResponse.md +++ b/docs/Models/BulkCreateHashTagsResponse.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **results** | [**List**](AddHashTag_200_response.md) | | [default to null] | +| **results** | [**List**](BulkCreateHashTagsResponse_results_inner.md) | | [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/AddHashTag_200_response.md b/docs/Models/BulkCreateHashTagsResponse_results_inner.md similarity index 95% rename from docs/Models/AddHashTag_200_response.md rename to docs/Models/BulkCreateHashTagsResponse_results_inner.md index f4580c6..ebc3e61 100644 --- a/docs/Models/AddHashTag_200_response.md +++ b/docs/Models/BulkCreateHashTagsResponse_results_inner.md @@ -1,4 +1,4 @@ -# AddHashTag_200_response +# BulkCreateHashTagsResponse_results_inner ## Properties | Name | Type | Description | Notes | diff --git a/docs/Models/BulkPreBanParams.md b/docs/Models/BulkPreBanParams.md new file mode 100644 index 0000000..2b26e5f --- /dev/null +++ b/docs/Models/BulkPreBanParams.md @@ -0,0 +1,9 @@ +# BulkPreBanParams +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **commentIds** | **List** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/BulkPreBanSummary.md b/docs/Models/BulkPreBanSummary.md new file mode 100644 index 0000000..bb80f12 --- /dev/null +++ b/docs/Models/BulkPreBanSummary.md @@ -0,0 +1,14 @@ +# BulkPreBanSummary +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | **String** | | [default to null] | +| **totalRelatedCommentCount** | **Integer** | | [default to null] | +| **emailDomains** | **List** | | [default to null] | +| **emails** | **List** | | [default to null] | +| **userIds** | **List** | | [default to null] | +| **ipHashes** | **List** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ChangeTicketState_200_response.md b/docs/Models/ChangeTicketState_200_response.md deleted file mode 100644 index ad3b4d5..0000000 --- a/docs/Models/ChangeTicketState_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# ChangeTicketState_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **ticket** | [**APITicket**](APITicket.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CheckedCommentsForBlocked_200_response.md b/docs/Models/CheckedCommentsForBlocked_200_response.md deleted file mode 100644 index d2eccbe..0000000 --- a/docs/Models/CheckedCommentsForBlocked_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CheckedCommentsForBlocked_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CombineCommentsWithQuestionResults_200_response.md b/docs/Models/CombineCommentsWithQuestionResults_200_response.md deleted file mode 100644 index ebd6a71..0000000 --- a/docs/Models/CombineCommentsWithQuestionResults_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CombineCommentsWithQuestionResults_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **data** | [**FindCommentsByRangeResponse**](FindCommentsByRangeResponse.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CommentData.md b/docs/Models/CommentData.md index 56c7c78..c46d550 100644 --- a/docs/Models/CommentData.md +++ b/docs/Models/CommentData.md @@ -26,8 +26,9 @@ | **fromOfflineRestore** | **Boolean** | | [optional] [default to null] | | **autoplayDelayMS** | **Long** | | [optional] [default to null] | | **feedbackIds** | **List** | | [optional] [default to null] | -| **questionValues** | [**Map**](Record_string_string_or_number__value.md) | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **questionValues** | [**Map**](GifSearchResponse_images_inner_inner.md) | Construct a type with a set of properties K of type T | [optional] [default to null] | | **tos** | **Boolean** | | [optional] [default to null] | +| **botId** | **String** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/CommentLogData.md b/docs/Models/CommentLogData.md index 417a376..36040c2 100644 --- a/docs/Models/CommentLogData.md +++ b/docs/Models/CommentLogData.md @@ -18,6 +18,7 @@ | **engineResponse** | **String** | | [optional] [default to null] | | **engineTokens** | **Double** | | [optional] [default to null] | | **trustFactor** | **Double** | | [optional] [default to null] | +| **source** | **String** | | [optional] [default to null] | | **rule** | [**SpamRule**](SpamRule.md) | | [optional] [default to null] | | **userId** | **String** | | [optional] [default to null] | | **subscribers** | **Double** | | [optional] [default to null] | diff --git a/docs/Models/CommentsByIdsParams.md b/docs/Models/CommentsByIdsParams.md new file mode 100644 index 0000000..1ca91e1 --- /dev/null +++ b/docs/Models/CommentsByIdsParams.md @@ -0,0 +1,9 @@ +# CommentsByIdsParams +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **ids** | **List** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateCommentParams.md b/docs/Models/CreateCommentParams.md index 8ad144c..69cb807 100644 --- a/docs/Models/CreateCommentParams.md +++ b/docs/Models/CreateCommentParams.md @@ -26,8 +26,9 @@ | **fromOfflineRestore** | **Boolean** | | [optional] [default to null] | | **autoplayDelayMS** | **Long** | | [optional] [default to null] | | **feedbackIds** | **List** | | [optional] [default to null] | -| **questionValues** | [**Map**](Record_string_string_or_number__value.md) | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **questionValues** | [**Map**](GifSearchResponse_images_inner_inner.md) | Construct a type with a set of properties K of type T | [optional] [default to null] | | **tos** | **Boolean** | | [optional] [default to null] | +| **botId** | **String** | | [optional] [default to null] | | **approved** | **Boolean** | | [optional] [default to null] | | **domain** | **String** | | [optional] [default to null] | | **ip** | **String** | | [optional] [default to null] | diff --git a/docs/Models/CreateCommentPublic_200_response.md b/docs/Models/CreateCommentPublic_200_response.md deleted file mode 100644 index 7214b40..0000000 --- a/docs/Models/CreateCommentPublic_200_response.md +++ /dev/null @@ -1,20 +0,0 @@ -# CreateCommentPublic_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **comment** | [**PublicComment**](PublicComment.md) | | [default to null] | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [default to null] | -| **moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **userIdWS** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateEmailTemplate_200_response.md b/docs/Models/CreateEmailTemplate_200_response.md deleted file mode 100644 index 15f9ef6..0000000 --- a/docs/Models/CreateEmailTemplate_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateEmailTemplate_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **emailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateFeedPostPublic_200_response.md b/docs/Models/CreateFeedPostPublic_200_response.md deleted file mode 100644 index 97f7caf..0000000 --- a/docs/Models/CreateFeedPostPublic_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateFeedPostPublic_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **feedPost** | [**FeedPost**](FeedPost.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateFeedPost_200_response.md b/docs/Models/CreateFeedPost_200_response.md deleted file mode 100644 index d413374..0000000 --- a/docs/Models/CreateFeedPost_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateFeedPost_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **feedPost** | [**FeedPost**](FeedPost.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateModerator_200_response.md b/docs/Models/CreateModerator_200_response.md deleted file mode 100644 index 33457ca..0000000 --- a/docs/Models/CreateModerator_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateModerator_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **moderator** | [**Moderator**](Moderator.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateQuestionConfig_200_response.md b/docs/Models/CreateQuestionConfig_200_response.md deleted file mode 100644 index 565af8d..0000000 --- a/docs/Models/CreateQuestionConfig_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateQuestionConfig_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **questionConfig** | [**QuestionConfig**](QuestionConfig.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateQuestionResult_200_response.md b/docs/Models/CreateQuestionResult_200_response.md deleted file mode 100644 index c82e7d5..0000000 --- a/docs/Models/CreateQuestionResult_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateQuestionResult_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **questionResult** | [**QuestionResult**](QuestionResult.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateTenantPackageBody.md b/docs/Models/CreateTenantPackageBody.md index 055984d..fd6c867 100644 --- a/docs/Models/CreateTenantPackageBody.md +++ b/docs/Models/CreateTenantPackageBody.md @@ -44,8 +44,8 @@ | **flexAdminUnit** | **Double** | | [optional] [default to null] | | **flexDomainCostCents** | **Double** | | [optional] [default to null] | | **flexDomainUnit** | **Double** | | [optional] [default to null] | -| **flexChatGPTCostCents** | **Double** | | [optional] [default to null] | -| **flexChatGPTUnit** | **Double** | | [optional] [default to null] | +| **flexLLMCostCents** | **Double** | | [optional] [default to null] | +| **flexLLMUnit** | **Double** | | [optional] [default to null] | | **flexMinimumCostCents** | **Double** | | [optional] [default to null] | | **flexManagedTenantCostCents** | **Double** | | [optional] [default to null] | | **flexSSOAdminCostCents** | **Double** | | [optional] [default to null] | diff --git a/docs/Models/CreateTenantPackage_200_response.md b/docs/Models/CreateTenantPackage_200_response.md deleted file mode 100644 index 8e2802a..0000000 --- a/docs/Models/CreateTenantPackage_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateTenantPackage_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantPackage** | [**TenantPackage**](TenantPackage.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateTenantUser_200_response.md b/docs/Models/CreateTenantUser_200_response.md deleted file mode 100644 index 377a67d..0000000 --- a/docs/Models/CreateTenantUser_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateTenantUser_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantUser** | [**User**](User.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateTenant_200_response.md b/docs/Models/CreateTenant_200_response.md deleted file mode 100644 index 1967a69..0000000 --- a/docs/Models/CreateTenant_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateTenant_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenant** | [**APITenant**](APITenant.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateTicket_200_response.md b/docs/Models/CreateTicket_200_response.md deleted file mode 100644 index c612212..0000000 --- a/docs/Models/CreateTicket_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateTicket_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **ticket** | [**APITicket**](APITicket.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateUserBadge_200_response.md b/docs/Models/CreateUserBadge_200_response.md deleted file mode 100644 index 598ecc6..0000000 --- a/docs/Models/CreateUserBadge_200_response.md +++ /dev/null @@ -1,18 +0,0 @@ -# CreateUserBadge_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **userBadge** | [**UserBadge**](UserBadge.md) | | [default to null] | -| **notes** | **List** | | [optional] [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateV1PageReact.md b/docs/Models/CreateV1PageReact.md new file mode 100644 index 0000000..8a98ad8 --- /dev/null +++ b/docs/Models/CreateV1PageReact.md @@ -0,0 +1,10 @@ +# CreateV1PageReact +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **code** | **String** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CustomConfigParameters.md b/docs/Models/CustomConfigParameters.md index bb3f013..3046c43 100644 --- a/docs/Models/CustomConfigParameters.md +++ b/docs/Models/CustomConfigParameters.md @@ -55,11 +55,14 @@ | **noCustomConfig** | **Boolean** | | [optional] [default to null] | | **mentionAutoCompleteMode** | [**MentionAutoCompleteMode**](MentionAutoCompleteMode.md) | | [optional] [default to null] | | **noImageUploads** | **Boolean** | | [optional] [default to null] | +| **allowEmbeds** | **Boolean** | | [optional] [default to null] | +| **allowedEmbedDomains** | **List** | | [optional] [default to null] | | **noStyles** | **Boolean** | | [optional] [default to null] | | **pageSize** | **Integer** | | [optional] [default to null] | | **readonly** | **Boolean** | | [optional] [default to null] | | **noNewRootComments** | **Boolean** | | [optional] [default to null] | | **requireSSO** | **Boolean** | | [optional] [default to null] | +| **enableFChat** | **Boolean** | | [optional] [default to null] | | **enableResizeHandle** | **Boolean** | | [optional] [default to null] | | **restrictedLinkDomains** | **List** | | [optional] [default to null] | | **showBadgesInTopBar** | **Boolean** | | [optional] [default to null] | @@ -80,6 +83,8 @@ | **widgetQuestionsRequired** | [**CommentQuestionsRequired**](CommentQuestionsRequired.md) | | [optional] [default to null] | | **widgetSubQuestionVisibility** | [**QuestionSubQuestionVisibility**](QuestionSubQuestionVisibility.md) | | [optional] [default to null] | | **wrap** | **Boolean** | | [optional] [default to null] | +| **usersListLocation** | [**UsersListLocation**](UsersListLocation.md) | | [optional] [default to null] | +| **usersListIncludeOffline** | **Boolean** | | [optional] [default to null] | | **ticketBaseUrl** | **String** | | [optional] [default to null] | | **ticketKBSearchEndpoint** | **String** | | [optional] [default to null] | | **ticketFileUploadsEnabled** | **Boolean** | | [optional] [default to null] | diff --git a/docs/Models/DeleteCommentPublic_200_response.md b/docs/Models/DeleteCommentPublic_200_response.md deleted file mode 100644 index 7cfa50b..0000000 --- a/docs/Models/DeleteCommentPublic_200_response.md +++ /dev/null @@ -1,18 +0,0 @@ -# DeleteCommentPublic_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **comment** | [**DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] [default to null] | -| **hardRemoved** | **Boolean** | | [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteCommentVote_200_response.md b/docs/Models/DeleteCommentVote_200_response.md deleted file mode 100644 index cdc2266..0000000 --- a/docs/Models/DeleteCommentVote_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# DeleteCommentVote_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **wasPendingVote** | **Boolean** | | [optional] [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteComment_200_response.md b/docs/Models/DeleteComment_200_response.md deleted file mode 100644 index d3c9a4a..0000000 --- a/docs/Models/DeleteComment_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# DeleteComment_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **action** | [**DeleteCommentAction**](DeleteCommentAction.md) | | [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteDomainConfig_200_response.md b/docs/Models/DeleteDomainConfigResponse.md similarity index 91% rename from docs/Models/DeleteDomainConfig_200_response.md rename to docs/Models/DeleteDomainConfigResponse.md index 3723ad2..9574f81 100644 --- a/docs/Models/DeleteDomainConfig_200_response.md +++ b/docs/Models/DeleteDomainConfigResponse.md @@ -1,4 +1,4 @@ -# DeleteDomainConfig_200_response +# DeleteDomainConfigResponse ## Properties | Name | Type | Description | Notes | diff --git a/docs/Models/DeleteFeedPostPublic_200_response_anyOf.md b/docs/Models/DeleteFeedPostPublicResponse.md similarity index 89% rename from docs/Models/DeleteFeedPostPublic_200_response_anyOf.md rename to docs/Models/DeleteFeedPostPublicResponse.md index c7b4663..1d9a593 100644 --- a/docs/Models/DeleteFeedPostPublic_200_response_anyOf.md +++ b/docs/Models/DeleteFeedPostPublicResponse.md @@ -1,4 +1,4 @@ -# DeleteFeedPostPublic_200_response_anyOf +# DeleteFeedPostPublicResponse ## Properties | Name | Type | Description | Notes | diff --git a/docs/Models/DeleteFeedPostPublic_200_response.md b/docs/Models/DeleteFeedPostPublic_200_response.md deleted file mode 100644 index 3a6723f..0000000 --- a/docs/Models/DeleteFeedPostPublic_200_response.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteFeedPostPublic_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteHashTag_request.md b/docs/Models/DeleteHashTagRequestBody.md similarity index 92% rename from docs/Models/DeleteHashTag_request.md rename to docs/Models/DeleteHashTagRequestBody.md index a59cb66..838d5ca 100644 --- a/docs/Models/DeleteHashTag_request.md +++ b/docs/Models/DeleteHashTagRequestBody.md @@ -1,4 +1,4 @@ -# DeleteHashTag_request +# DeleteHashTagRequestBody ## Properties | Name | Type | Description | Notes | diff --git a/docs/Models/FComment.md b/docs/Models/FComment.md index 76ce8cd..d2d003c 100644 --- a/docs/Models/FComment.md +++ b/docs/Models/FComment.md @@ -75,6 +75,7 @@ | **requiresVerification** | **Boolean** | | [optional] [default to null] | | **editKey** | **String** | | [optional] [default to null] | | **tosAcceptedAt** | **Date** | | [optional] [default to null] | +| **botId** | **String** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/FlagCommentPublic_200_response.md b/docs/Models/FlagCommentPublic_200_response.md deleted file mode 100644 index a64f079..0000000 --- a/docs/Models/FlagCommentPublic_200_response.md +++ /dev/null @@ -1,16 +0,0 @@ -# FlagCommentPublic_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/FlagComment_200_response.md b/docs/Models/FlagComment_200_response.md deleted file mode 100644 index dc94c33..0000000 --- a/docs/Models/FlagComment_200_response.md +++ /dev/null @@ -1,18 +0,0 @@ -# FlagComment_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **statusCode** | **Integer** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **code** | **String** | | [default to null] | -| **reason** | **String** | | [default to null] | -| **wasUnapproved** | **Boolean** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetAuditLogs_200_response.md b/docs/Models/GetAuditLogs_200_response.md deleted file mode 100644 index b4c04d4..0000000 --- a/docs/Models/GetAuditLogs_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetAuditLogs_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **auditLogs** | [**List**](APIAuditLog.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetBannedUsersCountResponse.md b/docs/Models/GetBannedUsersCountResponse.md new file mode 100644 index 0000000..1dc6f2f --- /dev/null +++ b/docs/Models/GetBannedUsersCountResponse.md @@ -0,0 +1,10 @@ +# GetBannedUsersCountResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **totalCount** | **Double** | | [default to null] | +| **status** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetBannedUsersFromCommentResponse.md b/docs/Models/GetBannedUsersFromCommentResponse.md new file mode 100644 index 0000000..1ff3682 --- /dev/null +++ b/docs/Models/GetBannedUsersFromCommentResponse.md @@ -0,0 +1,11 @@ +# GetBannedUsersFromCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **bannedUsers** | [**List**](APIBannedUserWithMultiMatchInfo.md) | | [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCachedNotificationCount_200_response.md b/docs/Models/GetCachedNotificationCount_200_response.md deleted file mode 100644 index 0e84ad0..0000000 --- a/docs/Models/GetCachedNotificationCount_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetCachedNotificationCount_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **data** | [**UserNotificationCount**](UserNotificationCount.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCommentBanStatusResponse.md b/docs/Models/GetCommentBanStatusResponse.md new file mode 100644 index 0000000..ad3a593 --- /dev/null +++ b/docs/Models/GetCommentBanStatusResponse.md @@ -0,0 +1,11 @@ +# GetCommentBanStatusResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | **String** | | [default to null] | +| **emailDomain** | **String** | | [default to null] | +| **canIPBan** | **Boolean** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCommentTextResponse.md b/docs/Models/GetCommentTextResponse.md new file mode 100644 index 0000000..4358914 --- /dev/null +++ b/docs/Models/GetCommentTextResponse.md @@ -0,0 +1,10 @@ +# GetCommentTextResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **comment** | **String** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCommentText_200_response.md b/docs/Models/GetCommentText_200_response.md deleted file mode 100644 index b8eda1d..0000000 --- a/docs/Models/GetCommentText_200_response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetCommentText_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **commentText** | **String** | | [default to null] | -| **sanitizedCommentText** | **String** | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCommentVoteUserNames_200_response.md b/docs/Models/GetCommentVoteUserNames_200_response.md deleted file mode 100644 index b05e4d8..0000000 --- a/docs/Models/GetCommentVoteUserNames_200_response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetCommentVoteUserNames_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **voteUserNames** | **List** | | [default to null] | -| **hasMore** | **Boolean** | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetComment_200_response.md b/docs/Models/GetComment_200_response.md deleted file mode 100644 index a78db1a..0000000 --- a/docs/Models/GetComment_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetComment_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **comment** | [**APIComment**](APIComment.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCommentsForUserResponse.md b/docs/Models/GetCommentsForUserResponse.md new file mode 100644 index 0000000..e882389 --- /dev/null +++ b/docs/Models/GetCommentsForUserResponse.md @@ -0,0 +1,9 @@ +# GetCommentsForUserResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **moderatingTenantIds** | **List** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCommentsPublic_200_response.md b/docs/Models/GetCommentsPublic_200_response.md deleted file mode 100644 index 5fed27f..0000000 --- a/docs/Models/GetCommentsPublic_200_response.md +++ /dev/null @@ -1,39 +0,0 @@ -# GetCommentsPublic_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **statusCode** | **Integer** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **code** | **String** | | [default to null] | -| **reason** | **String** | | [default to null] | -| **translatedWarning** | **String** | | [optional] [default to null] | -| **comments** | [**List**](PublicComment.md) | | [default to null] | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [default to null] | -| **urlIdClean** | **String** | | [optional] [default to null] | -| **lastGenDate** | **Long** | | [optional] [default to null] | -| **includesPastPages** | **Boolean** | | [optional] [default to null] | -| **isDemo** | **Boolean** | | [optional] [default to null] | -| **commentCount** | **Integer** | | [optional] [default to null] | -| **isSiteAdmin** | **Boolean** | | [optional] [default to null] | -| **hasBillingIssue** | **Boolean** | | [optional] [default to null] | -| **moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **pageNumber** | **Integer** | | [default to null] | -| **isWhiteLabeled** | **Boolean** | | [optional] [default to null] | -| **isProd** | **Boolean** | | [optional] [default to null] | -| **isCrawler** | **Boolean** | | [optional] [default to null] | -| **notificationCount** | **Integer** | | [optional] [default to null] | -| **hasMore** | **Boolean** | | [optional] [default to null] | -| **isClosed** | **Boolean** | | [optional] [default to null] | -| **presencePollState** | **Integer** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | -| **urlIdWS** | **String** | | [optional] [default to null] | -| **userIdWS** | **String** | | [optional] [default to null] | -| **tenantIdWS** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetComments_200_response.md b/docs/Models/GetComments_200_response.md deleted file mode 100644 index 8909751..0000000 --- a/docs/Models/GetComments_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetComments_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **comments** | [**List**](APIComment.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetDomainConfig_200_response.md b/docs/Models/GetDomainConfigResponse.md similarity index 94% rename from docs/Models/GetDomainConfig_200_response.md rename to docs/Models/GetDomainConfigResponse.md index 85a9596..a630399 100644 --- a/docs/Models/GetDomainConfig_200_response.md +++ b/docs/Models/GetDomainConfigResponse.md @@ -1,4 +1,4 @@ -# GetDomainConfig_200_response +# GetDomainConfigResponse ## Properties | Name | Type | Description | Notes | diff --git a/docs/Models/GetDomainConfigs_200_response.md b/docs/Models/GetDomainConfigsResponse.md similarity index 94% rename from docs/Models/GetDomainConfigs_200_response.md rename to docs/Models/GetDomainConfigsResponse.md index 7f600e5..7efaaa9 100644 --- a/docs/Models/GetDomainConfigs_200_response.md +++ b/docs/Models/GetDomainConfigsResponse.md @@ -1,4 +1,4 @@ -# GetDomainConfigs_200_response +# GetDomainConfigsResponse ## Properties | Name | Type | Description | Notes | diff --git a/docs/Models/GetDomainConfigs_200_response_anyOf.md b/docs/Models/GetDomainConfigsResponse_anyOf.md similarity index 92% rename from docs/Models/GetDomainConfigs_200_response_anyOf.md rename to docs/Models/GetDomainConfigsResponse_anyOf.md index 06af00a..b1101ae 100644 --- a/docs/Models/GetDomainConfigs_200_response_anyOf.md +++ b/docs/Models/GetDomainConfigsResponse_anyOf.md @@ -1,4 +1,4 @@ -# GetDomainConfigs_200_response_anyOf +# GetDomainConfigsResponse_anyOf ## Properties | Name | Type | Description | Notes | diff --git a/docs/Models/GetDomainConfigs_200_response_anyOf_1.md b/docs/Models/GetDomainConfigsResponse_anyOf_1.md similarity index 91% rename from docs/Models/GetDomainConfigs_200_response_anyOf_1.md rename to docs/Models/GetDomainConfigsResponse_anyOf_1.md index 1e5e3c7..8e9c9eb 100644 --- a/docs/Models/GetDomainConfigs_200_response_anyOf_1.md +++ b/docs/Models/GetDomainConfigsResponse_anyOf_1.md @@ -1,4 +1,4 @@ -# GetDomainConfigs_200_response_anyOf_1 +# GetDomainConfigsResponse_anyOf_1 ## Properties | Name | Type | Description | Notes | diff --git a/docs/Models/GetEmailTemplateDefinitions_200_response.md b/docs/Models/GetEmailTemplateDefinitions_200_response.md deleted file mode 100644 index 851a686..0000000 --- a/docs/Models/GetEmailTemplateDefinitions_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetEmailTemplateDefinitions_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **definitions** | [**List**](EmailTemplateDefinition.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetEmailTemplateRenderErrors_200_response.md b/docs/Models/GetEmailTemplateRenderErrors_200_response.md deleted file mode 100644 index c0c9b52..0000000 --- a/docs/Models/GetEmailTemplateRenderErrors_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetEmailTemplateRenderErrors_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **renderErrors** | [**List**](EmailTemplateRenderErrorResponse.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetEmailTemplate_200_response.md b/docs/Models/GetEmailTemplate_200_response.md deleted file mode 100644 index 78cb107..0000000 --- a/docs/Models/GetEmailTemplate_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetEmailTemplate_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **emailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetEmailTemplates_200_response.md b/docs/Models/GetEmailTemplates_200_response.md deleted file mode 100644 index c27cf71..0000000 --- a/docs/Models/GetEmailTemplates_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetEmailTemplates_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **emailTemplates** | [**List**](CustomEmailTemplate.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetEventLog_200_response.md b/docs/Models/GetEventLog_200_response.md deleted file mode 100644 index 4a4bf3b..0000000 --- a/docs/Models/GetEventLog_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetEventLog_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **events** | [**List**](EventLogEntry.md) | | [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetFeedPostsPublic_200_response.md b/docs/Models/GetFeedPostsPublic_200_response.md deleted file mode 100644 index 0dc6989..0000000 --- a/docs/Models/GetFeedPostsPublic_200_response.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetFeedPostsPublic_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **myReacts** | [**Map**](map.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **feedPosts** | [**List**](FeedPost.md) | | [default to null] | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] [default to null] | -| **urlIdWS** | **String** | | [optional] [default to null] | -| **userIdWS** | **String** | | [optional] [default to null] | -| **tenantIdWS** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetFeedPostsStats_200_response.md b/docs/Models/GetFeedPostsStats_200_response.md deleted file mode 100644 index 86083fc..0000000 --- a/docs/Models/GetFeedPostsStats_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetFeedPostsStats_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **stats** | [**Map**](FeedPostStats.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetFeedPosts_200_response.md b/docs/Models/GetFeedPosts_200_response.md deleted file mode 100644 index 7449fdf..0000000 --- a/docs/Models/GetFeedPosts_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetFeedPosts_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **feedPosts** | [**List**](FeedPost.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetGifsSearchResponse.md b/docs/Models/GetGifsSearchResponse.md new file mode 100644 index 0000000..58479a7 --- /dev/null +++ b/docs/Models/GetGifsSearchResponse.md @@ -0,0 +1,11 @@ +# GetGifsSearchResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **images** | [**List**](array.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **code** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetGifsTrendingResponse.md b/docs/Models/GetGifsTrendingResponse.md new file mode 100644 index 0000000..7de48e7 --- /dev/null +++ b/docs/Models/GetGifsTrendingResponse.md @@ -0,0 +1,11 @@ +# GetGifsTrendingResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **images** | [**List**](array.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **code** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetHashTags_200_response.md b/docs/Models/GetHashTags_200_response.md deleted file mode 100644 index 8ce5114..0000000 --- a/docs/Models/GetHashTags_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetHashTags_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **hashTags** | [**List**](TenantHashTag.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetModerator_200_response.md b/docs/Models/GetModerator_200_response.md deleted file mode 100644 index b4872bc..0000000 --- a/docs/Models/GetModerator_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetModerator_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **moderator** | [**Moderator**](Moderator.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetModerators_200_response.md b/docs/Models/GetModerators_200_response.md deleted file mode 100644 index 65ae043..0000000 --- a/docs/Models/GetModerators_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetModerators_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **moderators** | [**List**](Moderator.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetNotificationCount_200_response.md b/docs/Models/GetNotificationCount_200_response.md deleted file mode 100644 index 337a486..0000000 --- a/docs/Models/GetNotificationCount_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetNotificationCount_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **count** | **Double** | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetNotifications_200_response.md b/docs/Models/GetNotifications_200_response.md deleted file mode 100644 index 00c0db2..0000000 --- a/docs/Models/GetNotifications_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetNotifications_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **notifications** | [**List**](UserNotification.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetPendingWebhookEventCount_200_response.md b/docs/Models/GetPendingWebhookEventCount_200_response.md deleted file mode 100644 index 697ab9a..0000000 --- a/docs/Models/GetPendingWebhookEventCount_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetPendingWebhookEventCount_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **count** | **Double** | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetPendingWebhookEvents_200_response.md b/docs/Models/GetPendingWebhookEvents_200_response.md deleted file mode 100644 index 77825f0..0000000 --- a/docs/Models/GetPendingWebhookEvents_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetPendingWebhookEvents_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **pendingWebhookEvents** | [**List**](PendingCommentToSyncOutbound.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetPublicPagesResponse.md b/docs/Models/GetPublicPagesResponse.md new file mode 100644 index 0000000..70d75ea --- /dev/null +++ b/docs/Models/GetPublicPagesResponse.md @@ -0,0 +1,11 @@ +# GetPublicPagesResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **nextCursor** | **String** | | [default to null] | +| **pages** | [**List**](PublicPage.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetQuestionConfig_200_response.md b/docs/Models/GetQuestionConfig_200_response.md deleted file mode 100644 index 942e930..0000000 --- a/docs/Models/GetQuestionConfig_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetQuestionConfig_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **questionConfig** | [**QuestionConfig**](QuestionConfig.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetQuestionConfigs_200_response.md b/docs/Models/GetQuestionConfigs_200_response.md deleted file mode 100644 index 3aea9c8..0000000 --- a/docs/Models/GetQuestionConfigs_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetQuestionConfigs_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **questionConfigs** | [**List**](QuestionConfig.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetQuestionResult_200_response.md b/docs/Models/GetQuestionResult_200_response.md deleted file mode 100644 index e15206c..0000000 --- a/docs/Models/GetQuestionResult_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetQuestionResult_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **questionResult** | [**QuestionResult**](QuestionResult.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetQuestionResults_200_response.md b/docs/Models/GetQuestionResults_200_response.md deleted file mode 100644 index 611fbaf..0000000 --- a/docs/Models/GetQuestionResults_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetQuestionResults_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **questionResults** | [**List**](QuestionResult.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetSSOUsers_200_response.md b/docs/Models/GetSSOUsersResponse.md similarity index 93% rename from docs/Models/GetSSOUsers_200_response.md rename to docs/Models/GetSSOUsersResponse.md index 1bc84d4..39c6a90 100644 --- a/docs/Models/GetSSOUsers_200_response.md +++ b/docs/Models/GetSSOUsersResponse.md @@ -1,4 +1,4 @@ -# GetSSOUsers_200_response +# GetSSOUsersResponse ## Properties | Name | Type | Description | Notes | diff --git a/docs/Models/GetTenantDailyUsages_200_response.md b/docs/Models/GetTenantDailyUsages_200_response.md deleted file mode 100644 index 2e03a1b..0000000 --- a/docs/Models/GetTenantDailyUsages_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenantDailyUsages_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantDailyUsages** | [**List**](APITenantDailyUsage.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTenantManualBadgesResponse.md b/docs/Models/GetTenantManualBadgesResponse.md new file mode 100644 index 0000000..38b9cd0 --- /dev/null +++ b/docs/Models/GetTenantManualBadgesResponse.md @@ -0,0 +1,10 @@ +# GetTenantManualBadgesResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **badges** | [**List**](TenantBadge.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetTenantPackage_200_response.md b/docs/Models/GetTenantPackage_200_response.md deleted file mode 100644 index 7e088da..0000000 --- a/docs/Models/GetTenantPackage_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenantPackage_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantPackage** | [**TenantPackage**](TenantPackage.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTenantPackages_200_response.md b/docs/Models/GetTenantPackages_200_response.md deleted file mode 100644 index 768933c..0000000 --- a/docs/Models/GetTenantPackages_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenantPackages_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantPackages** | [**List**](TenantPackage.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTenantUser_200_response.md b/docs/Models/GetTenantUser_200_response.md deleted file mode 100644 index 94776c5..0000000 --- a/docs/Models/GetTenantUser_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenantUser_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantUser** | [**User**](User.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTenantUsers_200_response.md b/docs/Models/GetTenantUsers_200_response.md deleted file mode 100644 index 0ff4053..0000000 --- a/docs/Models/GetTenantUsers_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenantUsers_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantUsers** | [**List**](User.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTenant_200_response.md b/docs/Models/GetTenant_200_response.md deleted file mode 100644 index 8ba4cf4..0000000 --- a/docs/Models/GetTenant_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenant_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenant** | [**APITenant**](APITenant.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTenants_200_response.md b/docs/Models/GetTenants_200_response.md deleted file mode 100644 index 5b4f174..0000000 --- a/docs/Models/GetTenants_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenants_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenants** | [**List**](APITenant.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTicket_200_response.md b/docs/Models/GetTicket_200_response.md deleted file mode 100644 index e9b2fc1..0000000 --- a/docs/Models/GetTicket_200_response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTicket_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **ticket** | [**APITicketDetail**](APITicketDetail.md) | | [default to null] | -| **availableStates** | **List** | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTickets_200_response.md b/docs/Models/GetTickets_200_response.md deleted file mode 100644 index 632c444..0000000 --- a/docs/Models/GetTickets_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTickets_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tickets** | [**List**](APITicket.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTranslationsResponse.md b/docs/Models/GetTranslationsResponse.md new file mode 100644 index 0000000..5c52056 --- /dev/null +++ b/docs/Models/GetTranslationsResponse.md @@ -0,0 +1,10 @@ +# GetTranslationsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **translations** | **Map** | Construct a type with a set of properties K of type T | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserBadgeProgressById_200_response.md b/docs/Models/GetUserBadgeProgressById_200_response.md deleted file mode 100644 index 3d4b390..0000000 --- a/docs/Models/GetUserBadgeProgressById_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserBadgeProgressById_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **userBadgeProgress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserBadgeProgressList_200_response.md b/docs/Models/GetUserBadgeProgressList_200_response.md deleted file mode 100644 index e8badda..0000000 --- a/docs/Models/GetUserBadgeProgressList_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserBadgeProgressList_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **userBadgeProgresses** | [**List**](UserBadgeProgress.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserBadge_200_response.md b/docs/Models/GetUserBadge_200_response.md deleted file mode 100644 index b8941c6..0000000 --- a/docs/Models/GetUserBadge_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserBadge_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **userBadge** | [**UserBadge**](UserBadge.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserBadges_200_response.md b/docs/Models/GetUserBadges_200_response.md deleted file mode 100644 index 792a734..0000000 --- a/docs/Models/GetUserBadges_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserBadges_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **userBadges** | [**List**](UserBadge.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserInternalProfileResponse.md b/docs/Models/GetUserInternalProfileResponse.md new file mode 100644 index 0000000..a06009f --- /dev/null +++ b/docs/Models/GetUserInternalProfileResponse.md @@ -0,0 +1,10 @@ +# GetUserInternalProfileResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **profile** | [**GetUserInternalProfileResponse_profile**](GetUserInternalProfileResponse_profile.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserInternalProfileResponse_profile.md b/docs/Models/GetUserInternalProfileResponse_profile.md new file mode 100644 index 0000000..7a3e134 --- /dev/null +++ b/docs/Models/GetUserInternalProfileResponse_profile.md @@ -0,0 +1,25 @@ +# GetUserInternalProfileResponse_profile +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **commenterName** | **String** | | [optional] [default to null] | +| **firstCommentDate** | **Date** | | [optional] [default to null] | +| **ipHash** | **String** | | [optional] [default to null] | +| **countryFlag** | **String** | | [optional] [default to null] | +| **countryCode** | **String** | | [optional] [default to null] | +| **websiteUrl** | **String** | | [optional] [default to null] | +| **bio** | **String** | | [optional] [default to null] | +| **karma** | **Double** | | [optional] [default to null] | +| **locale** | **String** | | [optional] [default to null] | +| **verified** | **Boolean** | | [optional] [default to null] | +| **avatarSrc** | **String** | | [optional] [default to null] | +| **displayName** | **String** | | [optional] [default to null] | +| **username** | **String** | | [optional] [default to null] | +| **commenterEmail** | **String** | | [optional] [default to null] | +| **email** | **String** | | [optional] [default to null] | +| **anonUserId** | **String** | | [optional] [default to null] | +| **userId** | **String** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserManualBadgesResponse.md b/docs/Models/GetUserManualBadgesResponse.md new file mode 100644 index 0000000..a0e84c0 --- /dev/null +++ b/docs/Models/GetUserManualBadgesResponse.md @@ -0,0 +1,10 @@ +# GetUserManualBadgesResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **badges** | [**List**](UserBadge.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserNotificationCount_200_response.md b/docs/Models/GetUserNotificationCount_200_response.md deleted file mode 100644 index 702e1ba..0000000 --- a/docs/Models/GetUserNotificationCount_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserNotificationCount_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **count** | **Long** | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserNotifications_200_response.md b/docs/Models/GetUserNotifications_200_response.md deleted file mode 100644 index 2ca8796..0000000 --- a/docs/Models/GetUserNotifications_200_response.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetUserNotifications_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **translations** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **isSubscribed** | **Boolean** | | [default to null] | -| **hasMore** | **Boolean** | | [default to null] | -| **notifications** | [**List**](RenderableUserNotification.md) | | [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserPresenceStatuses_200_response.md b/docs/Models/GetUserPresenceStatuses_200_response.md deleted file mode 100644 index 35f0da5..0000000 --- a/docs/Models/GetUserPresenceStatuses_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserPresenceStatuses_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **userIdsOnline** | **Map** | Construct a type with a set of properties K of type T | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserReactsPublic_200_response.md b/docs/Models/GetUserReactsPublic_200_response.md deleted file mode 100644 index f0270b5..0000000 --- a/docs/Models/GetUserReactsPublic_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserReactsPublic_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reacts** | [**Map**](map.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserTrustFactorResponse.md b/docs/Models/GetUserTrustFactorResponse.md new file mode 100644 index 0000000..6afa359 --- /dev/null +++ b/docs/Models/GetUserTrustFactorResponse.md @@ -0,0 +1,11 @@ +# GetUserTrustFactorResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **manualTrustFactor** | **Double** | | [optional] [default to null] | +| **autoTrustFactor** | **Double** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUser_200_response.md b/docs/Models/GetUser_200_response.md deleted file mode 100644 index 31f6437..0000000 --- a/docs/Models/GetUser_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUser_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **user** | [**User**](User.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetV1PageLikes.md b/docs/Models/GetV1PageLikes.md new file mode 100644 index 0000000..6129339 --- /dev/null +++ b/docs/Models/GetV1PageLikes.md @@ -0,0 +1,13 @@ +# GetV1PageLikes +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **urlIdWS** | **String** | | [default to null] | +| **didLike** | **Boolean** | | [default to null] | +| **commentCount** | **Integer** | | [default to null] | +| **likeCount** | **Integer** | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetV2PageReactUsersResponse.md b/docs/Models/GetV2PageReactUsersResponse.md new file mode 100644 index 0000000..5e98aa6 --- /dev/null +++ b/docs/Models/GetV2PageReactUsersResponse.md @@ -0,0 +1,10 @@ +# GetV2PageReactUsersResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **userNames** | **List** | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetV2PageReacts.md b/docs/Models/GetV2PageReacts.md new file mode 100644 index 0000000..e46eb08 --- /dev/null +++ b/docs/Models/GetV2PageReacts.md @@ -0,0 +1,11 @@ +# GetV2PageReacts +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **reactedIds** | **List** | | [optional] [default to null] | +| **counts** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetVotesForUser_200_response.md b/docs/Models/GetVotesForUser_200_response.md deleted file mode 100644 index 00ce5e0..0000000 --- a/docs/Models/GetVotesForUser_200_response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetVotesForUser_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **appliedAuthorizedVotes** | [**List**](PublicVote.md) | | [default to null] | -| **appliedAnonymousVotes** | [**List**](PublicVote.md) | | [default to null] | -| **pendingVotes** | [**List**](PublicVote.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetVotes_200_response.md b/docs/Models/GetVotes_200_response.md deleted file mode 100644 index fd6883a..0000000 --- a/docs/Models/GetVotes_200_response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetVotes_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **appliedAuthorizedVotes** | [**List**](PublicVote.md) | | [default to null] | -| **appliedAnonymousVotes** | [**List**](PublicVote.md) | | [default to null] | -| **pendingVotes** | [**List**](PublicVote.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GifGetLargeResponse.md b/docs/Models/GifGetLargeResponse.md new file mode 100644 index 0000000..04062cc --- /dev/null +++ b/docs/Models/GifGetLargeResponse.md @@ -0,0 +1,10 @@ +# GifGetLargeResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **src** | **String** | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GifSearchInternalError.md b/docs/Models/GifSearchInternalError.md new file mode 100644 index 0000000..a55fa82 --- /dev/null +++ b/docs/Models/GifSearchInternalError.md @@ -0,0 +1,10 @@ +# GifSearchInternalError +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **code** | **String** | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GifSearchResponse.md b/docs/Models/GifSearchResponse.md new file mode 100644 index 0000000..fadf0c5 --- /dev/null +++ b/docs/Models/GifSearchResponse.md @@ -0,0 +1,10 @@ +# GifSearchResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **images** | [**List**](array.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GifSearchResponse_images_inner_inner.md b/docs/Models/GifSearchResponse_images_inner_inner.md new file mode 100644 index 0000000..99f5c03 --- /dev/null +++ b/docs/Models/GifSearchResponse_images_inner_inner.md @@ -0,0 +1,8 @@ +# GifSearchResponse_images_inner_inner +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/HeaderAccountNotification.md b/docs/Models/HeaderAccountNotification.md index 2ca7573..eb2c156 100644 --- a/docs/Models/HeaderAccountNotification.md +++ b/docs/Models/HeaderAccountNotification.md @@ -12,6 +12,7 @@ | **linkUrl** | **String** | | [default to null] | | **linkText** | **String** | | [default to null] | | **createdAt** | **Date** | | [default to null] | +| **type** | **String** | Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/ImportedAgentApprovalNotificationFrequency.md b/docs/Models/ImportedAgentApprovalNotificationFrequency.md new file mode 100644 index 0000000..11d3408 --- /dev/null +++ b/docs/Models/ImportedAgentApprovalNotificationFrequency.md @@ -0,0 +1,8 @@ +# ImportedAgentApprovalNotificationFrequency +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/LiveEvent.md b/docs/Models/LiveEvent.md index 6c7cf91..5281f13 100644 --- a/docs/Models/LiveEvent.md +++ b/docs/Models/LiveEvent.md @@ -18,6 +18,7 @@ | **isClosed** | **Boolean** | | [optional] [default to null] | | **uj** | **List** | | [optional] [default to null] | | **ul** | **List** | | [optional] [default to null] | +| **sc** | **Integer** | | [optional] [default to null] | | **changes** | **Map** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/LockComment_200_response.md b/docs/Models/LockComment_200_response.md deleted file mode 100644 index bde2173..0000000 --- a/docs/Models/LockComment_200_response.md +++ /dev/null @@ -1,16 +0,0 @@ -# LockComment_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/ModerationAPIChildCommentsResponse.md b/docs/Models/ModerationAPIChildCommentsResponse.md new file mode 100644 index 0000000..a51f076 --- /dev/null +++ b/docs/Models/ModerationAPIChildCommentsResponse.md @@ -0,0 +1,10 @@ +# ModerationAPIChildCommentsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **comments** | [**List**](ModerationAPIComment.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationAPIComment.md b/docs/Models/ModerationAPIComment.md new file mode 100644 index 0000000..73e3efc --- /dev/null +++ b/docs/Models/ModerationAPIComment.md @@ -0,0 +1,50 @@ +# ModerationAPIComment +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **isLocalDeleted** | **Boolean** | | [optional] [default to null] | +| **replyCount** | **Double** | | [optional] [default to null] | +| **feedbackResults** | **List** | | [optional] [default to null] | +| **isVotedUp** | **Boolean** | | [optional] [default to null] | +| **isVotedDown** | **Boolean** | | [optional] [default to null] | +| **myVoteId** | **String** | | [optional] [default to null] | +| **\_id** | **String** | | [default to null] | +| **tenantId** | **String** | | [default to null] | +| **urlId** | **String** | | [default to null] | +| **url** | **String** | | [default to null] | +| **pageTitle** | **String** | | [optional] [default to null] | +| **userId** | **String** | | [optional] [default to null] | +| **anonUserId** | **String** | | [optional] [default to null] | +| **commenterName** | **String** | | [default to null] | +| **commenterLink** | **String** | | [optional] [default to null] | +| **commentHTML** | **String** | | [default to null] | +| **parentId** | **String** | | [optional] [default to null] | +| **date** | **Date** | | [default to null] | +| **localDateString** | **String** | | [optional] [default to null] | +| **votes** | **Double** | | [optional] [default to null] | +| **votesUp** | **Double** | | [optional] [default to null] | +| **votesDown** | **Double** | | [optional] [default to null] | +| **expireAt** | **Date** | | [optional] [default to null] | +| **reviewed** | **Boolean** | | [optional] [default to null] | +| **avatarSrc** | **String** | | [optional] [default to null] | +| **isSpam** | **Boolean** | | [optional] [default to null] | +| **permNotSpam** | **Boolean** | | [optional] [default to null] | +| **hasLinks** | **Boolean** | | [optional] [default to null] | +| **hasCode** | **Boolean** | | [optional] [default to null] | +| **approved** | **Boolean** | | [default to null] | +| **locale** | **String** | | [default to null] | +| **isBannedUser** | **Boolean** | | [optional] [default to null] | +| **isByAdmin** | **Boolean** | | [optional] [default to null] | +| **isByModerator** | **Boolean** | | [optional] [default to null] | +| **isPinned** | **Boolean** | | [optional] [default to null] | +| **isLocked** | **Boolean** | | [optional] [default to null] | +| **flagCount** | **Double** | | [optional] [default to null] | +| **displayLabel** | **String** | | [optional] [default to null] | +| **badges** | [**List**](CommentUserBadgeInfo.md) | | [optional] [default to null] | +| **verified** | **Boolean** | | [default to null] | +| **feedbackIds** | **List** | | [optional] [default to null] | +| **isDeleted** | **Boolean** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationAPICommentLog.md b/docs/Models/ModerationAPICommentLog.md new file mode 100644 index 0000000..05d30b9 --- /dev/null +++ b/docs/Models/ModerationAPICommentLog.md @@ -0,0 +1,12 @@ +# ModerationAPICommentLog +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **date** | **Date** | | [default to null] | +| **username** | **String** | | [optional] [default to null] | +| **actionName** | **String** | | [default to null] | +| **messageHTML** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationAPICommentResponse.md b/docs/Models/ModerationAPICommentResponse.md new file mode 100644 index 0000000..f3e1400 --- /dev/null +++ b/docs/Models/ModerationAPICommentResponse.md @@ -0,0 +1,10 @@ +# ModerationAPICommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **comment** | [**ModerationAPIComment**](ModerationAPIComment.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationAPICountCommentsResponse.md b/docs/Models/ModerationAPICountCommentsResponse.md new file mode 100644 index 0000000..5dba69a --- /dev/null +++ b/docs/Models/ModerationAPICountCommentsResponse.md @@ -0,0 +1,10 @@ +# ModerationAPICountCommentsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **count** | **Double** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationAPIGetCommentIdsResponse.md b/docs/Models/ModerationAPIGetCommentIdsResponse.md new file mode 100644 index 0000000..1695c12 --- /dev/null +++ b/docs/Models/ModerationAPIGetCommentIdsResponse.md @@ -0,0 +1,11 @@ +# ModerationAPIGetCommentIdsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **ids** | **List** | | [default to null] | +| **hasMore** | **Boolean** | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationAPIGetCommentsResponse.md b/docs/Models/ModerationAPIGetCommentsResponse.md new file mode 100644 index 0000000..dc3cba0 --- /dev/null +++ b/docs/Models/ModerationAPIGetCommentsResponse.md @@ -0,0 +1,12 @@ +# ModerationAPIGetCommentsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **translations** | [**Object**](.md) | | [default to null] | +| **comments** | [**List**](ModerationAPIComment.md) | | [default to null] | +| **moderationFilter** | [**ModerationFilter**](ModerationFilter.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationAPIGetLogsResponse.md b/docs/Models/ModerationAPIGetLogsResponse.md new file mode 100644 index 0000000..40e3fdc --- /dev/null +++ b/docs/Models/ModerationAPIGetLogsResponse.md @@ -0,0 +1,10 @@ +# ModerationAPIGetLogsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **logs** | [**List**](ModerationAPICommentLog.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationCommentSearchResponse.md b/docs/Models/ModerationCommentSearchResponse.md new file mode 100644 index 0000000..5a0406b --- /dev/null +++ b/docs/Models/ModerationCommentSearchResponse.md @@ -0,0 +1,10 @@ +# ModerationCommentSearchResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **commentCount** | **Integer** | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationExportResponse.md b/docs/Models/ModerationExportResponse.md new file mode 100644 index 0000000..b540ee1 --- /dev/null +++ b/docs/Models/ModerationExportResponse.md @@ -0,0 +1,10 @@ +# ModerationExportResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | **String** | | [default to null] | +| **batchJobId** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationExportStatusResponse.md b/docs/Models/ModerationExportStatusResponse.md new file mode 100644 index 0000000..69a5827 --- /dev/null +++ b/docs/Models/ModerationExportStatusResponse.md @@ -0,0 +1,12 @@ +# ModerationExportStatusResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | **String** | | [default to null] | +| **jobStatus** | **String** | | [default to null] | +| **recordCount** | **Integer** | | [default to null] | +| **downloadUrl** | **String** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationFilter.md b/docs/Models/ModerationFilter.md new file mode 100644 index 0000000..80deeff --- /dev/null +++ b/docs/Models/ModerationFilter.md @@ -0,0 +1,20 @@ +# ModerationFilter +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **reviewed** | **Boolean** | | [optional] [default to null] | +| **approved** | **Boolean** | | [optional] [default to null] | +| **isSpam** | **Boolean** | | [optional] [default to null] | +| **isBannedUser** | **Boolean** | | [optional] [default to null] | +| **isLocked** | **Boolean** | | [optional] [default to null] | +| **flagCountGt** | **Double** | | [optional] [default to null] | +| **userId** | **String** | | [optional] [default to null] | +| **urlId** | **String** | | [optional] [default to null] | +| **domain** | **String** | | [optional] [default to null] | +| **moderationGroupIds** | **List** | | [optional] [default to null] | +| **commentTextSearch** | **List** | Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match. | [optional] [default to null] | +| **exactCommentText** | **String** | Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly (case-sensitive, full-string), as opposed to the substring matching of commentTextSearch. | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationPageSearchProjected.md b/docs/Models/ModerationPageSearchProjected.md new file mode 100644 index 0000000..ee3862b --- /dev/null +++ b/docs/Models/ModerationPageSearchProjected.md @@ -0,0 +1,12 @@ +# ModerationPageSearchProjected +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **urlId** | **String** | | [default to null] | +| **url** | **String** | | [default to null] | +| **title** | **String** | | [default to null] | +| **commentCount** | **Double** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationPageSearchResponse.md b/docs/Models/ModerationPageSearchResponse.md new file mode 100644 index 0000000..796ceed --- /dev/null +++ b/docs/Models/ModerationPageSearchResponse.md @@ -0,0 +1,10 @@ +# ModerationPageSearchResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **pages** | [**List**](ModerationPageSearchProjected.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationSiteSearchProjected.md b/docs/Models/ModerationSiteSearchProjected.md new file mode 100644 index 0000000..696c64d --- /dev/null +++ b/docs/Models/ModerationSiteSearchProjected.md @@ -0,0 +1,10 @@ +# ModerationSiteSearchProjected +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **domain** | **String** | | [default to null] | +| **logoSrc100px** | **String** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationSiteSearchResponse.md b/docs/Models/ModerationSiteSearchResponse.md new file mode 100644 index 0000000..a1f7d8f --- /dev/null +++ b/docs/Models/ModerationSiteSearchResponse.md @@ -0,0 +1,10 @@ +# ModerationSiteSearchResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **sites** | [**List**](ModerationSiteSearchProjected.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationSuggestResponse.md b/docs/Models/ModerationSuggestResponse.md new file mode 100644 index 0000000..3a439d1 --- /dev/null +++ b/docs/Models/ModerationSuggestResponse.md @@ -0,0 +1,12 @@ +# ModerationSuggestResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | **String** | | [default to null] | +| **pages** | [**List**](ModerationPageSearchProjected.md) | | [optional] [default to null] | +| **users** | [**List**](ModerationUserSearchProjected.md) | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationUserSearchProjected.md b/docs/Models/ModerationUserSearchProjected.md new file mode 100644 index 0000000..73b0133 --- /dev/null +++ b/docs/Models/ModerationUserSearchProjected.md @@ -0,0 +1,12 @@ +# ModerationUserSearchProjected +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **\_id** | **String** | | [default to null] | +| **username** | **String** | | [default to null] | +| **displayName** | **String** | | [optional] [default to null] | +| **avatarSrc** | **String** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ModerationUserSearchResponse.md b/docs/Models/ModerationUserSearchResponse.md new file mode 100644 index 0000000..f313987 --- /dev/null +++ b/docs/Models/ModerationUserSearchResponse.md @@ -0,0 +1,10 @@ +# ModerationUserSearchResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **users** | [**List**](ModerationUserSearchProjected.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PageUserEntry.md b/docs/Models/PageUserEntry.md new file mode 100644 index 0000000..2476b93 --- /dev/null +++ b/docs/Models/PageUserEntry.md @@ -0,0 +1,12 @@ +# PageUserEntry +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **isPrivate** | **Boolean** | | [optional] [default to null] | +| **avatarSrc** | **String** | | [optional] [default to null] | +| **displayName** | **String** | | [default to null] | +| **id** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PageUsersInfoResponse.md b/docs/Models/PageUsersInfoResponse.md new file mode 100644 index 0000000..2b588c8 --- /dev/null +++ b/docs/Models/PageUsersInfoResponse.md @@ -0,0 +1,10 @@ +# PageUsersInfoResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **users** | [**List**](PageUserEntry.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PageUsersOfflineResponse.md b/docs/Models/PageUsersOfflineResponse.md new file mode 100644 index 0000000..6e39a20 --- /dev/null +++ b/docs/Models/PageUsersOfflineResponse.md @@ -0,0 +1,12 @@ +# PageUsersOfflineResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **nextAfterUserId** | **String** | | [default to null] | +| **nextAfterName** | **String** | | [default to null] | +| **users** | [**List**](PageUserEntry.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PageUsersOnlineResponse.md b/docs/Models/PageUsersOnlineResponse.md new file mode 100644 index 0000000..5eab6e1 --- /dev/null +++ b/docs/Models/PageUsersOnlineResponse.md @@ -0,0 +1,14 @@ +# PageUsersOnlineResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **nextAfterUserId** | **String** | | [default to null] | +| **nextAfterName** | **String** | | [default to null] | +| **totalCount** | **Double** | | [default to null] | +| **anonCount** | **Double** | | [default to null] | +| **users** | [**List**](PageUserEntry.md) | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PagesSortBy.md b/docs/Models/PagesSortBy.md new file mode 100644 index 0000000..28edca4 --- /dev/null +++ b/docs/Models/PagesSortBy.md @@ -0,0 +1,8 @@ +# PagesSortBy +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PatchDomainConfigResponse.md b/docs/Models/PatchDomainConfigResponse.md new file mode 100644 index 0000000..e3e80cf --- /dev/null +++ b/docs/Models/PatchDomainConfigResponse.md @@ -0,0 +1,12 @@ +# PatchDomainConfigResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **configuration** | [**oas_any_type_not_mapped**](.md) | | [default to null] | +| **status** | [**oas_any_type_not_mapped**](.md) | | [default to null] | +| **reason** | **String** | | [default to null] | +| **code** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PatchHashTag_200_response.md b/docs/Models/PatchHashTag_200_response.md deleted file mode 100644 index 6f1b168..0000000 --- a/docs/Models/PatchHashTag_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# PatchHashTag_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **hashTag** | [**TenantHashTag**](TenantHashTag.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PinComment_200_response.md b/docs/Models/PinComment_200_response.md deleted file mode 100644 index 45672c6..0000000 --- a/docs/Models/PinComment_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# PinComment_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **commentPositions** | [**Map**](Record_string__before_string_or_null__after_string_or_null___value.md) | Construct a type with a set of properties K of type T | [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostRemoveCommentResponse.md b/docs/Models/PostRemoveCommentResponse.md new file mode 100644 index 0000000..057e54b --- /dev/null +++ b/docs/Models/PostRemoveCommentResponse.md @@ -0,0 +1,10 @@ +# PostRemoveCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **action** | **String** | | [default to null] | +| **status** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PreBanSummary.md b/docs/Models/PreBanSummary.md new file mode 100644 index 0000000..bd4be69 --- /dev/null +++ b/docs/Models/PreBanSummary.md @@ -0,0 +1,11 @@ +# PreBanSummary +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **usernames** | **List** | | [default to null] | +| **count** | **Double** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PublicPage.md b/docs/Models/PublicPage.md new file mode 100644 index 0000000..6967b32 --- /dev/null +++ b/docs/Models/PublicPage.md @@ -0,0 +1,13 @@ +# PublicPage +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **updatedAt** | **Long** | | [default to null] | +| **commentCount** | **Integer** | | [default to null] | +| **title** | **String** | | [default to null] | +| **url** | **String** | | [default to null] | +| **urlId** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PutDomainConfigResponse.md b/docs/Models/PutDomainConfigResponse.md new file mode 100644 index 0000000..5334437 --- /dev/null +++ b/docs/Models/PutDomainConfigResponse.md @@ -0,0 +1,12 @@ +# PutDomainConfigResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **configuration** | [**oas_any_type_not_mapped**](.md) | | [default to null] | +| **status** | [**oas_any_type_not_mapped**](.md) | | [default to null] | +| **reason** | **String** | | [default to null] | +| **code** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ReactFeedPostPublic_200_response.md b/docs/Models/ReactFeedPostPublic_200_response.md deleted file mode 100644 index 5ae18ce..0000000 --- a/docs/Models/ReactFeedPostPublic_200_response.md +++ /dev/null @@ -1,18 +0,0 @@ -# ReactFeedPostPublic_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reactType** | **String** | | [default to null] | -| **isUndo** | **Boolean** | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/RemoveCommentActionResponse.md b/docs/Models/RemoveCommentActionResponse.md new file mode 100644 index 0000000..78e6970 --- /dev/null +++ b/docs/Models/RemoveCommentActionResponse.md @@ -0,0 +1,10 @@ +# RemoveCommentActionResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | **String** | | [default to null] | +| **action** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/RemoveUserBadgeResponse.md b/docs/Models/RemoveUserBadgeResponse.md new file mode 100644 index 0000000..e40a8d2 --- /dev/null +++ b/docs/Models/RemoveUserBadgeResponse.md @@ -0,0 +1,10 @@ +# RemoveUserBadgeResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **badges** | [**List**](CommentUserBadgeInfo.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/RenderEmailTemplate_200_response.md b/docs/Models/RenderEmailTemplate_200_response.md deleted file mode 100644 index 9e90901..0000000 --- a/docs/Models/RenderEmailTemplate_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# RenderEmailTemplate_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **html** | **String** | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/ResetUserNotifications_200_response.md b/docs/Models/ResetUserNotifications_200_response.md deleted file mode 100644 index 003d65f..0000000 --- a/docs/Models/ResetUserNotifications_200_response.md +++ /dev/null @@ -1,16 +0,0 @@ -# ResetUserNotifications_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **code** | **String** | | [default to null] | -| **reason** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/SaveComment_200_response.md b/docs/Models/SaveCommentsBulkResponse.md similarity index 91% rename from docs/Models/SaveComment_200_response.md rename to docs/Models/SaveCommentsBulkResponse.md index ecb65cf..5ae5bd1 100644 --- a/docs/Models/SaveComment_200_response.md +++ b/docs/Models/SaveCommentsBulkResponse.md @@ -1,10 +1,10 @@ -# SaveComment_200_response +# SaveCommentsBulkResponse ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **comment** | [**FComment**](FComment.md) | | [default to null] | +| **comment** | [**APIComment**](APIComment.md) | | [default to null] | | **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [default to null] | | **moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | | **reason** | **String** | | [default to null] | diff --git a/docs/Models/SearchUsersResult.md b/docs/Models/SearchUsersResult.md new file mode 100644 index 0000000..002076d --- /dev/null +++ b/docs/Models/SearchUsersResult.md @@ -0,0 +1,11 @@ +# SearchUsersResult +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **sections** | [**List**](UserSearchSectionResult.md) | | [default to null] | +| **users** | [**List**](UserSearchResult.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/SearchUsers_200_response.md b/docs/Models/SearchUsers_200_response.md deleted file mode 100644 index bea4dab..0000000 --- a/docs/Models/SearchUsers_200_response.md +++ /dev/null @@ -1,18 +0,0 @@ -# SearchUsers_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **sections** | [**List**](UserSearchSectionResult.md) | | [default to null] | -| **users** | [**List**](UserSearchResult.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/SetCommentApprovedResponse.md b/docs/Models/SetCommentApprovedResponse.md new file mode 100644 index 0000000..15fc3f1 --- /dev/null +++ b/docs/Models/SetCommentApprovedResponse.md @@ -0,0 +1,10 @@ +# SetCommentApprovedResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **didResetFlaggedCount** | **Boolean** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/SetCommentTextParams.md b/docs/Models/SetCommentTextParams.md new file mode 100644 index 0000000..920a77b --- /dev/null +++ b/docs/Models/SetCommentTextParams.md @@ -0,0 +1,9 @@ +# SetCommentTextParams +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **comment** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/SetCommentTextResponse.md b/docs/Models/SetCommentTextResponse.md new file mode 100644 index 0000000..9f2e28f --- /dev/null +++ b/docs/Models/SetCommentTextResponse.md @@ -0,0 +1,10 @@ +# SetCommentTextResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **newCommentTextHTML** | **String** | | [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/SetCommentText_200_response.md b/docs/Models/SetCommentText_200_response.md deleted file mode 100644 index 77a44b3..0000000 --- a/docs/Models/SetCommentText_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# SetCommentText_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **comment** | [**SetCommentTextResult**](SetCommentTextResult.md) | | [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/SetUserTrustFactorResponse.md b/docs/Models/SetUserTrustFactorResponse.md new file mode 100644 index 0000000..90a1f09 --- /dev/null +++ b/docs/Models/SetUserTrustFactorResponse.md @@ -0,0 +1,10 @@ +# SetUserTrustFactorResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **previousManualTrustFactor** | **Double** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/TenantBadge.md b/docs/Models/TenantBadge.md new file mode 100644 index 0000000..8ba678d --- /dev/null +++ b/docs/Models/TenantBadge.md @@ -0,0 +1,29 @@ +# TenantBadge +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **\_id** | **String** | | [default to null] | +| **tenantId** | **String** | | [default to null] | +| **createdByUserId** | **String** | | [default to null] | +| **createdAt** | **Date** | | [default to null] | +| **enabled** | **Boolean** | | [default to null] | +| **urlId** | **String** | | [optional] [default to null] | +| **type** | **Double** | | [default to null] | +| **threshold** | **Double** | | [default to null] | +| **uses** | **Double** | | [default to null] | +| **name** | **String** | | [default to null] | +| **description** | **String** | | [default to null] | +| **displayLabel** | **String** | | [default to null] | +| **displaySrc** | **String** | | [default to null] | +| **backgroundColor** | **String** | | [default to null] | +| **borderColor** | **String** | | [default to null] | +| **textColor** | **String** | | [default to null] | +| **cssClass** | **String** | | [optional] [default to null] | +| **veteranUserThresholdMillis** | **Double** | | [optional] [default to null] | +| **isAwaitingReprocess** | **Boolean** | | [default to null] | +| **isAwaitingDeletion** | **Boolean** | | [default to null] | +| **replacesBadgeId** | **String** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/TenantPackage.md b/docs/Models/TenantPackage.md index 1ba8e86..896e43c 100644 --- a/docs/Models/TenantPackage.md +++ b/docs/Models/TenantPackage.md @@ -7,6 +7,7 @@ | **name** | **String** | | [default to null] | | **tenantId** | **String** | | [default to null] | | **createdAt** | **Date** | | [default to null] | +| **templateId** | **String** | | [optional] [default to null] | | **monthlyCostUSD** | **Double** | | [default to null] | | **yearlyCostUSD** | **Double** | | [default to null] | | **monthlyStripePlanId** | **String** | | [default to null] | @@ -50,6 +51,8 @@ | **flexDomainUnit** | **Double** | | [optional] [default to null] | | **flexChatGPTCostCents** | **Double** | | [optional] [default to null] | | **flexChatGPTUnit** | **Double** | | [optional] [default to null] | +| **flexLLMCostCents** | **Double** | | [optional] [default to null] | +| **flexLLMUnit** | **Double** | | [optional] [default to null] | | **flexMinimumCostCents** | **Double** | | [optional] [default to null] | | **flexManagedTenantCostCents** | **Double** | | [optional] [default to null] | | **flexSSOAdminCostCents** | **Double** | | [optional] [default to null] | @@ -57,6 +60,10 @@ | **flexSSOModeratorCostCents** | **Double** | | [optional] [default to null] | | **flexSSOModeratorUnit** | **Double** | | [optional] [default to null] | | **isSSOBillingMonthlyActiveUsers** | **Boolean** | | [optional] [default to null] | +| **hasAIAgents** | **Boolean** | | [optional] [default to null] | +| **maxAIAgents** | **Double** | | [optional] [default to null] | +| **aiAgentDailyBudgetCents** | **Double** | | [optional] [default to null] | +| **aiAgentMonthlyBudgetCents** | **Double** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/UnBlockCommentPublic_200_response.md b/docs/Models/UnBlockCommentPublic_200_response.md deleted file mode 100644 index 03d5d65..0000000 --- a/docs/Models/UnBlockCommentPublic_200_response.md +++ /dev/null @@ -1,17 +0,0 @@ -# UnBlockCommentPublic_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateUserBadge_200_response.md b/docs/Models/UpdateUserBadge_200_response.md deleted file mode 100644 index da5ddc0..0000000 --- a/docs/Models/UpdateUserBadge_200_response.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateUserBadge_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md new file mode 100644 index 0000000..0789dae --- /dev/null +++ b/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -0,0 +1,12 @@ +# UpdateUserNotificationCommentSubscriptionStatusResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **matchedCount** | **Long** | | [default to null] | +| **modifiedCount** | **Long** | | [default to null] | +| **note** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md b/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md new file mode 100644 index 0000000..ec28c6c --- /dev/null +++ b/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -0,0 +1,12 @@ +# UpdateUserNotificationPageSubscriptionStatusResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **matchedCount** | **Long** | | [default to null] | +| **modifiedCount** | **Long** | | [default to null] | +| **note** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateUserNotificationStatusResponse.md b/docs/Models/UpdateUserNotificationStatusResponse.md new file mode 100644 index 0000000..7d2baea --- /dev/null +++ b/docs/Models/UpdateUserNotificationStatusResponse.md @@ -0,0 +1,12 @@ +# UpdateUserNotificationStatusResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **matchedCount** | **Long** | | [default to null] | +| **modifiedCount** | **Long** | | [default to null] | +| **note** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateUserNotificationStatus_200_response.md b/docs/Models/UpdateUserNotificationStatus_200_response.md deleted file mode 100644 index 7e3df7b..0000000 --- a/docs/Models/UpdateUserNotificationStatus_200_response.md +++ /dev/null @@ -1,19 +0,0 @@ -# UpdateUserNotificationStatus_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **matchedCount** | **Long** | | [default to null] | -| **modifiedCount** | **Long** | | [default to null] | -| **note** | **String** | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/User.md b/docs/Models/User.md index 5549c4a..3d782b0 100644 --- a/docs/Models/User.md +++ b/docs/Models/User.md @@ -42,6 +42,7 @@ | **digestEmailFrequency** | [**DigestEmailFrequency**](DigestEmailFrequency.md) | | [optional] [default to null] | | **notificationFrequency** | **Double** | | [optional] [default to null] | | **adminNotificationFrequency** | **Double** | | [optional] [default to null] | +| **agentApprovalNotificationFrequency** | [**ImportedAgentApprovalNotificationFrequency**](ImportedAgentApprovalNotificationFrequency.md) | | [optional] [default to null] | | **lastTenantNotificationSentDate** | **Date** | | [optional] [default to null] | | **lastReplyNotificationSentDate** | **Date** | | [optional] [default to null] | | **ignoredAddToMySiteMessages** | **Boolean** | | [optional] [default to null] | diff --git a/docs/Models/UsersListLocation.md b/docs/Models/UsersListLocation.md new file mode 100644 index 0000000..17b8470 --- /dev/null +++ b/docs/Models/UsersListLocation.md @@ -0,0 +1,8 @@ +# UsersListLocation +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/VoteComment_200_response.md b/docs/Models/VoteComment_200_response.md deleted file mode 100644 index 61c57e5..0000000 --- a/docs/Models/VoteComment_200_response.md +++ /dev/null @@ -1,20 +0,0 @@ -# VoteComment_200_response -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **voteId** | **String** | | [optional] [default to null] | -| **isVerified** | **Boolean** | | [optional] [default to null] | -| **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] [default to null] | -| **editKey** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/VoteResponse.md b/docs/Models/VoteResponse.md index b43ccf7..9dce417 100644 --- a/docs/Models/VoteResponse.md +++ b/docs/Models/VoteResponse.md @@ -3,7 +3,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **status** | **String** | | [default to null] | +| **status** | [**VoteResponse_status**](VoteResponse_status.md) | | [default to null] | | **voteId** | **String** | | [optional] [default to null] | | **isVerified** | **Boolean** | | [optional] [default to null] | | **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] [default to null] | diff --git a/docs/Models/VoteResponse_status.md b/docs/Models/VoteResponse_status.md new file mode 100644 index 0000000..4bad67f --- /dev/null +++ b/docs/Models/VoteResponse_status.md @@ -0,0 +1,8 @@ +# VoteResponse_status +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/README.md b/docs/README.md index e9072eb..54c8695 100644 --- a/docs/README.md +++ b/docs/README.md @@ -7,164 +7,229 @@ All URIs are relative to *https://fastcomments.com* | Class | Method | HTTP request | Description | |------------ | ------------- | ------------- | -------------| -| *DefaultApi* | [**addDomainConfig**](Apis/DefaultApi.md#addDomainConfig) | **POST** /api/v1/domain-configs | | -*DefaultApi* | [**addHashTag**](Apis/DefaultApi.md#addHashTag) | **POST** /api/v1/hash-tags | | -*DefaultApi* | [**addHashTagsBulk**](Apis/DefaultApi.md#addHashTagsBulk) | **POST** /api/v1/hash-tags/bulk | | -*DefaultApi* | [**addPage**](Apis/DefaultApi.md#addPage) | **POST** /api/v1/pages | | -*DefaultApi* | [**addSSOUser**](Apis/DefaultApi.md#addSSOUser) | **POST** /api/v1/sso-users | | +| *DefaultApi* | [**addDomainConfig**](Apis/DefaultApi.md#adddomainconfig) | **POST** /api/v1/domain-configs | | +*DefaultApi* | [**addHashTag**](Apis/DefaultApi.md#addhashtag) | **POST** /api/v1/hash-tags | | +*DefaultApi* | [**addHashTagsBulk**](Apis/DefaultApi.md#addhashtagsbulk) | **POST** /api/v1/hash-tags/bulk | | +*DefaultApi* | [**addPage**](Apis/DefaultApi.md#addpage) | **POST** /api/v1/pages | | +*DefaultApi* | [**addSSOUser**](Apis/DefaultApi.md#addssouser) | **POST** /api/v1/sso-users | | *DefaultApi* | [**aggregate**](Apis/DefaultApi.md#aggregate) | **POST** /api/v1/aggregate | Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported. | -*DefaultApi* | [**aggregateQuestionResults**](Apis/DefaultApi.md#aggregateQuestionResults) | **GET** /api/v1/question-results-aggregation | | -*DefaultApi* | [**blockUserFromComment**](Apis/DefaultApi.md#blockUserFromComment) | **POST** /api/v1/comments/{id}/block | | -*DefaultApi* | [**bulkAggregateQuestionResults**](Apis/DefaultApi.md#bulkAggregateQuestionResults) | **POST** /api/v1/question-results-aggregation/bulk | | -*DefaultApi* | [**changeTicketState**](Apis/DefaultApi.md#changeTicketState) | **PATCH** /api/v1/tickets/{id}/state | | -*DefaultApi* | [**combineCommentsWithQuestionResults**](Apis/DefaultApi.md#combineCommentsWithQuestionResults) | **GET** /api/v1/question-results-aggregation/combine/comments | | -*DefaultApi* | [**createEmailTemplate**](Apis/DefaultApi.md#createEmailTemplate) | **POST** /api/v1/email-templates | | -*DefaultApi* | [**createFeedPost**](Apis/DefaultApi.md#createFeedPost) | **POST** /api/v1/feed-posts | | -*DefaultApi* | [**createModerator**](Apis/DefaultApi.md#createModerator) | **POST** /api/v1/moderators | | -*DefaultApi* | [**createQuestionConfig**](Apis/DefaultApi.md#createQuestionConfig) | **POST** /api/v1/question-configs | | -*DefaultApi* | [**createQuestionResult**](Apis/DefaultApi.md#createQuestionResult) | **POST** /api/v1/question-results | | -*DefaultApi* | [**createSubscription**](Apis/DefaultApi.md#createSubscription) | **POST** /api/v1/subscriptions | | -*DefaultApi* | [**createTenant**](Apis/DefaultApi.md#createTenant) | **POST** /api/v1/tenants | | -*DefaultApi* | [**createTenantPackage**](Apis/DefaultApi.md#createTenantPackage) | **POST** /api/v1/tenant-packages | | -*DefaultApi* | [**createTenantUser**](Apis/DefaultApi.md#createTenantUser) | **POST** /api/v1/tenant-users | | -*DefaultApi* | [**createTicket**](Apis/DefaultApi.md#createTicket) | **POST** /api/v1/tickets | | -*DefaultApi* | [**createUserBadge**](Apis/DefaultApi.md#createUserBadge) | **POST** /api/v1/user-badges | | -*DefaultApi* | [**createVote**](Apis/DefaultApi.md#createVote) | **POST** /api/v1/votes | | -*DefaultApi* | [**deleteComment**](Apis/DefaultApi.md#deleteComment) | **DELETE** /api/v1/comments/{id} | | -*DefaultApi* | [**deleteDomainConfig**](Apis/DefaultApi.md#deleteDomainConfig) | **DELETE** /api/v1/domain-configs/{domain} | | -*DefaultApi* | [**deleteEmailTemplate**](Apis/DefaultApi.md#deleteEmailTemplate) | **DELETE** /api/v1/email-templates/{id} | | -*DefaultApi* | [**deleteEmailTemplateRenderError**](Apis/DefaultApi.md#deleteEmailTemplateRenderError) | **DELETE** /api/v1/email-templates/{id}/render-errors/{errorId} | | -*DefaultApi* | [**deleteHashTag**](Apis/DefaultApi.md#deleteHashTag) | **DELETE** /api/v1/hash-tags/{tag} | | -*DefaultApi* | [**deleteModerator**](Apis/DefaultApi.md#deleteModerator) | **DELETE** /api/v1/moderators/{id} | | -*DefaultApi* | [**deleteNotificationCount**](Apis/DefaultApi.md#deleteNotificationCount) | **DELETE** /api/v1/notification-count/{id} | | -*DefaultApi* | [**deletePage**](Apis/DefaultApi.md#deletePage) | **DELETE** /api/v1/pages/{id} | | -*DefaultApi* | [**deletePendingWebhookEvent**](Apis/DefaultApi.md#deletePendingWebhookEvent) | **DELETE** /api/v1/pending-webhook-events/{id} | | -*DefaultApi* | [**deleteQuestionConfig**](Apis/DefaultApi.md#deleteQuestionConfig) | **DELETE** /api/v1/question-configs/{id} | | -*DefaultApi* | [**deleteQuestionResult**](Apis/DefaultApi.md#deleteQuestionResult) | **DELETE** /api/v1/question-results/{id} | | -*DefaultApi* | [**deleteSSOUser**](Apis/DefaultApi.md#deleteSSOUser) | **DELETE** /api/v1/sso-users/{id} | | -*DefaultApi* | [**deleteSubscription**](Apis/DefaultApi.md#deleteSubscription) | **DELETE** /api/v1/subscriptions/{id} | | -*DefaultApi* | [**deleteTenant**](Apis/DefaultApi.md#deleteTenant) | **DELETE** /api/v1/tenants/{id} | | -*DefaultApi* | [**deleteTenantPackage**](Apis/DefaultApi.md#deleteTenantPackage) | **DELETE** /api/v1/tenant-packages/{id} | | -*DefaultApi* | [**deleteTenantUser**](Apis/DefaultApi.md#deleteTenantUser) | **DELETE** /api/v1/tenant-users/{id} | | -*DefaultApi* | [**deleteUserBadge**](Apis/DefaultApi.md#deleteUserBadge) | **DELETE** /api/v1/user-badges/{id} | | -*DefaultApi* | [**deleteVote**](Apis/DefaultApi.md#deleteVote) | **DELETE** /api/v1/votes/{id} | | -*DefaultApi* | [**flagComment**](Apis/DefaultApi.md#flagComment) | **POST** /api/v1/comments/{id}/flag | | -*DefaultApi* | [**getAuditLogs**](Apis/DefaultApi.md#getAuditLogs) | **GET** /api/v1/audit-logs | | -*DefaultApi* | [**getCachedNotificationCount**](Apis/DefaultApi.md#getCachedNotificationCount) | **GET** /api/v1/notification-count/{id} | | -*DefaultApi* | [**getComment**](Apis/DefaultApi.md#getComment) | **GET** /api/v1/comments/{id} | | -*DefaultApi* | [**getComments**](Apis/DefaultApi.md#getComments) | **GET** /api/v1/comments | | -*DefaultApi* | [**getDomainConfig**](Apis/DefaultApi.md#getDomainConfig) | **GET** /api/v1/domain-configs/{domain} | | -*DefaultApi* | [**getDomainConfigs**](Apis/DefaultApi.md#getDomainConfigs) | **GET** /api/v1/domain-configs | | -*DefaultApi* | [**getEmailTemplate**](Apis/DefaultApi.md#getEmailTemplate) | **GET** /api/v1/email-templates/{id} | | -*DefaultApi* | [**getEmailTemplateDefinitions**](Apis/DefaultApi.md#getEmailTemplateDefinitions) | **GET** /api/v1/email-templates/definitions | | -*DefaultApi* | [**getEmailTemplateRenderErrors**](Apis/DefaultApi.md#getEmailTemplateRenderErrors) | **GET** /api/v1/email-templates/{id}/render-errors | | -*DefaultApi* | [**getEmailTemplates**](Apis/DefaultApi.md#getEmailTemplates) | **GET** /api/v1/email-templates | | -*DefaultApi* | [**getFeedPosts**](Apis/DefaultApi.md#getFeedPosts) | **GET** /api/v1/feed-posts | req tenantId afterId | -*DefaultApi* | [**getHashTags**](Apis/DefaultApi.md#getHashTags) | **GET** /api/v1/hash-tags | | -*DefaultApi* | [**getModerator**](Apis/DefaultApi.md#getModerator) | **GET** /api/v1/moderators/{id} | | -*DefaultApi* | [**getModerators**](Apis/DefaultApi.md#getModerators) | **GET** /api/v1/moderators | | -*DefaultApi* | [**getNotificationCount**](Apis/DefaultApi.md#getNotificationCount) | **GET** /api/v1/notifications/count | | -*DefaultApi* | [**getNotifications**](Apis/DefaultApi.md#getNotifications) | **GET** /api/v1/notifications | | -*DefaultApi* | [**getPageByURLId**](Apis/DefaultApi.md#getPageByURLId) | **GET** /api/v1/pages/by-url-id | | -*DefaultApi* | [**getPages**](Apis/DefaultApi.md#getPages) | **GET** /api/v1/pages | | -*DefaultApi* | [**getPendingWebhookEventCount**](Apis/DefaultApi.md#getPendingWebhookEventCount) | **GET** /api/v1/pending-webhook-events/count | | -*DefaultApi* | [**getPendingWebhookEvents**](Apis/DefaultApi.md#getPendingWebhookEvents) | **GET** /api/v1/pending-webhook-events | | -*DefaultApi* | [**getQuestionConfig**](Apis/DefaultApi.md#getQuestionConfig) | **GET** /api/v1/question-configs/{id} | | -*DefaultApi* | [**getQuestionConfigs**](Apis/DefaultApi.md#getQuestionConfigs) | **GET** /api/v1/question-configs | | -*DefaultApi* | [**getQuestionResult**](Apis/DefaultApi.md#getQuestionResult) | **GET** /api/v1/question-results/{id} | | -*DefaultApi* | [**getQuestionResults**](Apis/DefaultApi.md#getQuestionResults) | **GET** /api/v1/question-results | | -*DefaultApi* | [**getSSOUserByEmail**](Apis/DefaultApi.md#getSSOUserByEmail) | **GET** /api/v1/sso-users/by-email/{email} | | -*DefaultApi* | [**getSSOUserById**](Apis/DefaultApi.md#getSSOUserById) | **GET** /api/v1/sso-users/by-id/{id} | | -*DefaultApi* | [**getSSOUsers**](Apis/DefaultApi.md#getSSOUsers) | **GET** /api/v1/sso-users | | -*DefaultApi* | [**getSubscriptions**](Apis/DefaultApi.md#getSubscriptions) | **GET** /api/v1/subscriptions | | -*DefaultApi* | [**getTenant**](Apis/DefaultApi.md#getTenant) | **GET** /api/v1/tenants/{id} | | -*DefaultApi* | [**getTenantDailyUsages**](Apis/DefaultApi.md#getTenantDailyUsages) | **GET** /api/v1/tenant-daily-usage | | -*DefaultApi* | [**getTenantPackage**](Apis/DefaultApi.md#getTenantPackage) | **GET** /api/v1/tenant-packages/{id} | | -*DefaultApi* | [**getTenantPackages**](Apis/DefaultApi.md#getTenantPackages) | **GET** /api/v1/tenant-packages | | -*DefaultApi* | [**getTenantUser**](Apis/DefaultApi.md#getTenantUser) | **GET** /api/v1/tenant-users/{id} | | -*DefaultApi* | [**getTenantUsers**](Apis/DefaultApi.md#getTenantUsers) | **GET** /api/v1/tenant-users | | -*DefaultApi* | [**getTenants**](Apis/DefaultApi.md#getTenants) | **GET** /api/v1/tenants | | -*DefaultApi* | [**getTicket**](Apis/DefaultApi.md#getTicket) | **GET** /api/v1/tickets/{id} | | -*DefaultApi* | [**getTickets**](Apis/DefaultApi.md#getTickets) | **GET** /api/v1/tickets | | -*DefaultApi* | [**getUser**](Apis/DefaultApi.md#getUser) | **GET** /api/v1/users/{id} | | -*DefaultApi* | [**getUserBadge**](Apis/DefaultApi.md#getUserBadge) | **GET** /api/v1/user-badges/{id} | | -*DefaultApi* | [**getUserBadgeProgressById**](Apis/DefaultApi.md#getUserBadgeProgressById) | **GET** /api/v1/user-badge-progress/{id} | | -*DefaultApi* | [**getUserBadgeProgressByUserId**](Apis/DefaultApi.md#getUserBadgeProgressByUserId) | **GET** /api/v1/user-badge-progress/user/{userId} | | -*DefaultApi* | [**getUserBadgeProgressList**](Apis/DefaultApi.md#getUserBadgeProgressList) | **GET** /api/v1/user-badge-progress | | -*DefaultApi* | [**getUserBadges**](Apis/DefaultApi.md#getUserBadges) | **GET** /api/v1/user-badges | | -*DefaultApi* | [**getVotes**](Apis/DefaultApi.md#getVotes) | **GET** /api/v1/votes | | -*DefaultApi* | [**getVotesForUser**](Apis/DefaultApi.md#getVotesForUser) | **GET** /api/v1/votes/for-user | | -*DefaultApi* | [**patchDomainConfig**](Apis/DefaultApi.md#patchDomainConfig) | **PATCH** /api/v1/domain-configs/{domainToUpdate} | | -*DefaultApi* | [**patchHashTag**](Apis/DefaultApi.md#patchHashTag) | **PATCH** /api/v1/hash-tags/{tag} | | -*DefaultApi* | [**patchPage**](Apis/DefaultApi.md#patchPage) | **PATCH** /api/v1/pages/{id} | | -*DefaultApi* | [**patchSSOUser**](Apis/DefaultApi.md#patchSSOUser) | **PATCH** /api/v1/sso-users/{id} | | -*DefaultApi* | [**putDomainConfig**](Apis/DefaultApi.md#putDomainConfig) | **PUT** /api/v1/domain-configs/{domainToUpdate} | | -*DefaultApi* | [**putSSOUser**](Apis/DefaultApi.md#putSSOUser) | **PUT** /api/v1/sso-users/{id} | | -*DefaultApi* | [**renderEmailTemplate**](Apis/DefaultApi.md#renderEmailTemplate) | **POST** /api/v1/email-templates/render | | -*DefaultApi* | [**replaceTenantPackage**](Apis/DefaultApi.md#replaceTenantPackage) | **PUT** /api/v1/tenant-packages/{id} | | -*DefaultApi* | [**replaceTenantUser**](Apis/DefaultApi.md#replaceTenantUser) | **PUT** /api/v1/tenant-users/{id} | | -*DefaultApi* | [**saveComment**](Apis/DefaultApi.md#saveComment) | **POST** /api/v1/comments | | -*DefaultApi* | [**saveCommentsBulk**](Apis/DefaultApi.md#saveCommentsBulk) | **POST** /api/v1/comments/bulk | | -*DefaultApi* | [**sendInvite**](Apis/DefaultApi.md#sendInvite) | **POST** /api/v1/moderators/{id}/send-invite | | -*DefaultApi* | [**sendLoginLink**](Apis/DefaultApi.md#sendLoginLink) | **POST** /api/v1/tenant-users/{id}/send-login-link | | -*DefaultApi* | [**unBlockUserFromComment**](Apis/DefaultApi.md#unBlockUserFromComment) | **POST** /api/v1/comments/{id}/un-block | | -*DefaultApi* | [**unFlagComment**](Apis/DefaultApi.md#unFlagComment) | **POST** /api/v1/comments/{id}/un-flag | | -*DefaultApi* | [**updateComment**](Apis/DefaultApi.md#updateComment) | **PATCH** /api/v1/comments/{id} | | -*DefaultApi* | [**updateEmailTemplate**](Apis/DefaultApi.md#updateEmailTemplate) | **PATCH** /api/v1/email-templates/{id} | | -*DefaultApi* | [**updateFeedPost**](Apis/DefaultApi.md#updateFeedPost) | **PATCH** /api/v1/feed-posts/{id} | | -*DefaultApi* | [**updateModerator**](Apis/DefaultApi.md#updateModerator) | **PATCH** /api/v1/moderators/{id} | | -*DefaultApi* | [**updateNotification**](Apis/DefaultApi.md#updateNotification) | **PATCH** /api/v1/notifications/{id} | | -*DefaultApi* | [**updateQuestionConfig**](Apis/DefaultApi.md#updateQuestionConfig) | **PATCH** /api/v1/question-configs/{id} | | -*DefaultApi* | [**updateQuestionResult**](Apis/DefaultApi.md#updateQuestionResult) | **PATCH** /api/v1/question-results/{id} | | -*DefaultApi* | [**updateSubscription**](Apis/DefaultApi.md#updateSubscription) | **PATCH** /api/v1/subscriptions/{id} | | -*DefaultApi* | [**updateTenant**](Apis/DefaultApi.md#updateTenant) | **PATCH** /api/v1/tenants/{id} | | -*DefaultApi* | [**updateTenantPackage**](Apis/DefaultApi.md#updateTenantPackage) | **PATCH** /api/v1/tenant-packages/{id} | | -*DefaultApi* | [**updateTenantUser**](Apis/DefaultApi.md#updateTenantUser) | **PATCH** /api/v1/tenant-users/{id} | | -*DefaultApi* | [**updateUserBadge**](Apis/DefaultApi.md#updateUserBadge) | **PUT** /api/v1/user-badges/{id} | | -| *PublicApi* | [**blockFromCommentPublic**](Apis/PublicApi.md#blockFromCommentPublic) | **POST** /block-from-comment/{commentId} | | -*PublicApi* | [**checkedCommentsForBlocked**](Apis/PublicApi.md#checkedCommentsForBlocked) | **GET** /check-blocked-comments | | -*PublicApi* | [**createCommentPublic**](Apis/PublicApi.md#createCommentPublic) | **POST** /comments/{tenantId} | | -*PublicApi* | [**createFeedPostPublic**](Apis/PublicApi.md#createFeedPostPublic) | **POST** /feed-posts/{tenantId} | | -*PublicApi* | [**deleteCommentPublic**](Apis/PublicApi.md#deleteCommentPublic) | **DELETE** /comments/{tenantId}/{commentId} | | -*PublicApi* | [**deleteCommentVote**](Apis/PublicApi.md#deleteCommentVote) | **DELETE** /comments/{tenantId}/{commentId}/vote/{voteId} | | -*PublicApi* | [**deleteFeedPostPublic**](Apis/PublicApi.md#deleteFeedPostPublic) | **DELETE** /feed-posts/{tenantId}/{postId} | | -*PublicApi* | [**flagCommentPublic**](Apis/PublicApi.md#flagCommentPublic) | **POST** /flag-comment/{commentId} | | -*PublicApi* | [**getCommentText**](Apis/PublicApi.md#getCommentText) | **GET** /comments/{tenantId}/{commentId}/text | | -*PublicApi* | [**getCommentVoteUserNames**](Apis/PublicApi.md#getCommentVoteUserNames) | **GET** /comments/{tenantId}/{commentId}/votes | | -*PublicApi* | [**getCommentsPublic**](Apis/PublicApi.md#getCommentsPublic) | **GET** /comments/{tenantId} | req tenantId urlId | -*PublicApi* | [**getEventLog**](Apis/PublicApi.md#getEventLog) | **GET** /event-log/{tenantId} | req tenantId urlId userIdWS | -*PublicApi* | [**getFeedPostsPublic**](Apis/PublicApi.md#getFeedPostsPublic) | **GET** /feed-posts/{tenantId} | req tenantId afterId | -*PublicApi* | [**getFeedPostsStats**](Apis/PublicApi.md#getFeedPostsStats) | **GET** /feed-posts/{tenantId}/stats | | -*PublicApi* | [**getGlobalEventLog**](Apis/PublicApi.md#getGlobalEventLog) | **GET** /event-log/global/{tenantId} | req tenantId urlId userIdWS | -*PublicApi* | [**getUserNotificationCount**](Apis/PublicApi.md#getUserNotificationCount) | **GET** /user-notifications/get-count | | -*PublicApi* | [**getUserNotifications**](Apis/PublicApi.md#getUserNotifications) | **GET** /user-notifications | | -*PublicApi* | [**getUserPresenceStatuses**](Apis/PublicApi.md#getUserPresenceStatuses) | **GET** /user-presence-status | | -*PublicApi* | [**getUserReactsPublic**](Apis/PublicApi.md#getUserReactsPublic) | **GET** /feed-posts/{tenantId}/user-reacts | | -*PublicApi* | [**lockComment**](Apis/PublicApi.md#lockComment) | **POST** /comments/{tenantId}/{commentId}/lock | | -*PublicApi* | [**pinComment**](Apis/PublicApi.md#pinComment) | **POST** /comments/{tenantId}/{commentId}/pin | | -*PublicApi* | [**reactFeedPostPublic**](Apis/PublicApi.md#reactFeedPostPublic) | **POST** /feed-posts/{tenantId}/react/{postId} | | -*PublicApi* | [**resetUserNotificationCount**](Apis/PublicApi.md#resetUserNotificationCount) | **POST** /user-notifications/reset-count | | -*PublicApi* | [**resetUserNotifications**](Apis/PublicApi.md#resetUserNotifications) | **POST** /user-notifications/reset | | -*PublicApi* | [**searchUsers**](Apis/PublicApi.md#searchUsers) | **GET** /user-search/{tenantId} | | -*PublicApi* | [**setCommentText**](Apis/PublicApi.md#setCommentText) | **POST** /comments/{tenantId}/{commentId}/update-text | | -*PublicApi* | [**unBlockCommentPublic**](Apis/PublicApi.md#unBlockCommentPublic) | **DELETE** /block-from-comment/{commentId} | | -*PublicApi* | [**unLockComment**](Apis/PublicApi.md#unLockComment) | **POST** /comments/{tenantId}/{commentId}/unlock | | -*PublicApi* | [**unPinComment**](Apis/PublicApi.md#unPinComment) | **POST** /comments/{tenantId}/{commentId}/unpin | | -*PublicApi* | [**updateFeedPostPublic**](Apis/PublicApi.md#updateFeedPostPublic) | **PUT** /feed-posts/{tenantId}/{postId} | | -*PublicApi* | [**updateUserNotificationCommentSubscriptionStatus**](Apis/PublicApi.md#updateUserNotificationCommentSubscriptionStatus) | **POST** /user-notifications/{notificationId}/mark-opted/{optedInOrOut} | Enable or disable notifications for a specific comment. | -*PublicApi* | [**updateUserNotificationPageSubscriptionStatus**](Apis/PublicApi.md#updateUserNotificationPageSubscriptionStatus) | **POST** /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also | -*PublicApi* | [**updateUserNotificationStatus**](Apis/PublicApi.md#updateUserNotificationStatus) | **POST** /user-notifications/{notificationId}/mark/{newStatus} | | -*PublicApi* | [**uploadImage**](Apis/PublicApi.md#uploadImage) | **POST** /upload-image/{tenantId} | Upload and resize an image | -*PublicApi* | [**voteComment**](Apis/PublicApi.md#voteComment) | **POST** /comments/{tenantId}/{commentId}/vote | | +*DefaultApi* | [**aggregateQuestionResults**](Apis/DefaultApi.md#aggregatequestionresults) | **GET** /api/v1/question-results-aggregation | | +*DefaultApi* | [**blockUserFromComment**](Apis/DefaultApi.md#blockuserfromcomment) | **POST** /api/v1/comments/{id}/block | | +*DefaultApi* | [**bulkAggregateQuestionResults**](Apis/DefaultApi.md#bulkaggregatequestionresults) | **POST** /api/v1/question-results-aggregation/bulk | | +*DefaultApi* | [**changeTicketState**](Apis/DefaultApi.md#changeticketstate) | **PATCH** /api/v1/tickets/{id}/state | | +*DefaultApi* | [**combineCommentsWithQuestionResults**](Apis/DefaultApi.md#combinecommentswithquestionresults) | **GET** /api/v1/question-results-aggregation/combine/comments | | +*DefaultApi* | [**createEmailTemplate**](Apis/DefaultApi.md#createemailtemplate) | **POST** /api/v1/email-templates | | +*DefaultApi* | [**createFeedPost**](Apis/DefaultApi.md#createfeedpost) | **POST** /api/v1/feed-posts | | +*DefaultApi* | [**createModerator**](Apis/DefaultApi.md#createmoderator) | **POST** /api/v1/moderators | | +*DefaultApi* | [**createQuestionConfig**](Apis/DefaultApi.md#createquestionconfig) | **POST** /api/v1/question-configs | | +*DefaultApi* | [**createQuestionResult**](Apis/DefaultApi.md#createquestionresult) | **POST** /api/v1/question-results | | +*DefaultApi* | [**createSubscription**](Apis/DefaultApi.md#createsubscription) | **POST** /api/v1/subscriptions | | +*DefaultApi* | [**createTenant**](Apis/DefaultApi.md#createtenant) | **POST** /api/v1/tenants | | +*DefaultApi* | [**createTenantPackage**](Apis/DefaultApi.md#createtenantpackage) | **POST** /api/v1/tenant-packages | | +*DefaultApi* | [**createTenantUser**](Apis/DefaultApi.md#createtenantuser) | **POST** /api/v1/tenant-users | | +*DefaultApi* | [**createTicket**](Apis/DefaultApi.md#createticket) | **POST** /api/v1/tickets | | +*DefaultApi* | [**createUserBadge**](Apis/DefaultApi.md#createuserbadge) | **POST** /api/v1/user-badges | | +*DefaultApi* | [**createVote**](Apis/DefaultApi.md#createvote) | **POST** /api/v1/votes | | +*DefaultApi* | [**deleteComment**](Apis/DefaultApi.md#deletecomment) | **DELETE** /api/v1/comments/{id} | | +*DefaultApi* | [**deleteDomainConfig**](Apis/DefaultApi.md#deletedomainconfig) | **DELETE** /api/v1/domain-configs/{domain} | | +*DefaultApi* | [**deleteEmailTemplate**](Apis/DefaultApi.md#deleteemailtemplate) | **DELETE** /api/v1/email-templates/{id} | | +*DefaultApi* | [**deleteEmailTemplateRenderError**](Apis/DefaultApi.md#deleteemailtemplaterendererror) | **DELETE** /api/v1/email-templates/{id}/render-errors/{errorId} | | +*DefaultApi* | [**deleteHashTag**](Apis/DefaultApi.md#deletehashtag) | **DELETE** /api/v1/hash-tags/{tag} | | +*DefaultApi* | [**deleteModerator**](Apis/DefaultApi.md#deletemoderator) | **DELETE** /api/v1/moderators/{id} | | +*DefaultApi* | [**deleteNotificationCount**](Apis/DefaultApi.md#deletenotificationcount) | **DELETE** /api/v1/notification-count/{id} | | +*DefaultApi* | [**deletePage**](Apis/DefaultApi.md#deletepage) | **DELETE** /api/v1/pages/{id} | | +*DefaultApi* | [**deletePendingWebhookEvent**](Apis/DefaultApi.md#deletependingwebhookevent) | **DELETE** /api/v1/pending-webhook-events/{id} | | +*DefaultApi* | [**deleteQuestionConfig**](Apis/DefaultApi.md#deletequestionconfig) | **DELETE** /api/v1/question-configs/{id} | | +*DefaultApi* | [**deleteQuestionResult**](Apis/DefaultApi.md#deletequestionresult) | **DELETE** /api/v1/question-results/{id} | | +*DefaultApi* | [**deleteSSOUser**](Apis/DefaultApi.md#deletessouser) | **DELETE** /api/v1/sso-users/{id} | | +*DefaultApi* | [**deleteSubscription**](Apis/DefaultApi.md#deletesubscription) | **DELETE** /api/v1/subscriptions/{id} | | +*DefaultApi* | [**deleteTenant**](Apis/DefaultApi.md#deletetenant) | **DELETE** /api/v1/tenants/{id} | | +*DefaultApi* | [**deleteTenantPackage**](Apis/DefaultApi.md#deletetenantpackage) | **DELETE** /api/v1/tenant-packages/{id} | | +*DefaultApi* | [**deleteTenantUser**](Apis/DefaultApi.md#deletetenantuser) | **DELETE** /api/v1/tenant-users/{id} | | +*DefaultApi* | [**deleteUserBadge**](Apis/DefaultApi.md#deleteuserbadge) | **DELETE** /api/v1/user-badges/{id} | | +*DefaultApi* | [**deleteVote**](Apis/DefaultApi.md#deletevote) | **DELETE** /api/v1/votes/{id} | | +*DefaultApi* | [**flagComment**](Apis/DefaultApi.md#flagcomment) | **POST** /api/v1/comments/{id}/flag | | +*DefaultApi* | [**getAuditLogs**](Apis/DefaultApi.md#getauditlogs) | **GET** /api/v1/audit-logs | | +*DefaultApi* | [**getCachedNotificationCount**](Apis/DefaultApi.md#getcachednotificationcount) | **GET** /api/v1/notification-count/{id} | | +*DefaultApi* | [**getComment**](Apis/DefaultApi.md#getcomment) | **GET** /api/v1/comments/{id} | | +*DefaultApi* | [**getComments**](Apis/DefaultApi.md#getcomments) | **GET** /api/v1/comments | | +*DefaultApi* | [**getDomainConfig**](Apis/DefaultApi.md#getdomainconfig) | **GET** /api/v1/domain-configs/{domain} | | +*DefaultApi* | [**getDomainConfigs**](Apis/DefaultApi.md#getdomainconfigs) | **GET** /api/v1/domain-configs | | +*DefaultApi* | [**getEmailTemplate**](Apis/DefaultApi.md#getemailtemplate) | **GET** /api/v1/email-templates/{id} | | +*DefaultApi* | [**getEmailTemplateDefinitions**](Apis/DefaultApi.md#getemailtemplatedefinitions) | **GET** /api/v1/email-templates/definitions | | +*DefaultApi* | [**getEmailTemplateRenderErrors**](Apis/DefaultApi.md#getemailtemplaterendererrors) | **GET** /api/v1/email-templates/{id}/render-errors | | +*DefaultApi* | [**getEmailTemplates**](Apis/DefaultApi.md#getemailtemplates) | **GET** /api/v1/email-templates | | +*DefaultApi* | [**getFeedPosts**](Apis/DefaultApi.md#getfeedposts) | **GET** /api/v1/feed-posts | req tenantId afterId | +*DefaultApi* | [**getHashTags**](Apis/DefaultApi.md#gethashtags) | **GET** /api/v1/hash-tags | | +*DefaultApi* | [**getModerator**](Apis/DefaultApi.md#getmoderator) | **GET** /api/v1/moderators/{id} | | +*DefaultApi* | [**getModerators**](Apis/DefaultApi.md#getmoderators) | **GET** /api/v1/moderators | | +*DefaultApi* | [**getNotificationCount**](Apis/DefaultApi.md#getnotificationcount) | **GET** /api/v1/notifications/count | | +*DefaultApi* | [**getNotifications**](Apis/DefaultApi.md#getnotifications) | **GET** /api/v1/notifications | | +*DefaultApi* | [**getPageByURLId**](Apis/DefaultApi.md#getpagebyurlid) | **GET** /api/v1/pages/by-url-id | | +*DefaultApi* | [**getPages**](Apis/DefaultApi.md#getpages) | **GET** /api/v1/pages | | +*DefaultApi* | [**getPendingWebhookEventCount**](Apis/DefaultApi.md#getpendingwebhookeventcount) | **GET** /api/v1/pending-webhook-events/count | | +*DefaultApi* | [**getPendingWebhookEvents**](Apis/DefaultApi.md#getpendingwebhookevents) | **GET** /api/v1/pending-webhook-events | | +*DefaultApi* | [**getQuestionConfig**](Apis/DefaultApi.md#getquestionconfig) | **GET** /api/v1/question-configs/{id} | | +*DefaultApi* | [**getQuestionConfigs**](Apis/DefaultApi.md#getquestionconfigs) | **GET** /api/v1/question-configs | | +*DefaultApi* | [**getQuestionResult**](Apis/DefaultApi.md#getquestionresult) | **GET** /api/v1/question-results/{id} | | +*DefaultApi* | [**getQuestionResults**](Apis/DefaultApi.md#getquestionresults) | **GET** /api/v1/question-results | | +*DefaultApi* | [**getSSOUserByEmail**](Apis/DefaultApi.md#getssouserbyemail) | **GET** /api/v1/sso-users/by-email/{email} | | +*DefaultApi* | [**getSSOUserById**](Apis/DefaultApi.md#getssouserbyid) | **GET** /api/v1/sso-users/by-id/{id} | | +*DefaultApi* | [**getSSOUsers**](Apis/DefaultApi.md#getssousers) | **GET** /api/v1/sso-users | | +*DefaultApi* | [**getSubscriptions**](Apis/DefaultApi.md#getsubscriptions) | **GET** /api/v1/subscriptions | | +*DefaultApi* | [**getTenant**](Apis/DefaultApi.md#gettenant) | **GET** /api/v1/tenants/{id} | | +*DefaultApi* | [**getTenantDailyUsages**](Apis/DefaultApi.md#gettenantdailyusages) | **GET** /api/v1/tenant-daily-usage | | +*DefaultApi* | [**getTenantPackage**](Apis/DefaultApi.md#gettenantpackage) | **GET** /api/v1/tenant-packages/{id} | | +*DefaultApi* | [**getTenantPackages**](Apis/DefaultApi.md#gettenantpackages) | **GET** /api/v1/tenant-packages | | +*DefaultApi* | [**getTenantUser**](Apis/DefaultApi.md#gettenantuser) | **GET** /api/v1/tenant-users/{id} | | +*DefaultApi* | [**getTenantUsers**](Apis/DefaultApi.md#gettenantusers) | **GET** /api/v1/tenant-users | | +*DefaultApi* | [**getTenants**](Apis/DefaultApi.md#gettenants) | **GET** /api/v1/tenants | | +*DefaultApi* | [**getTicket**](Apis/DefaultApi.md#getticket) | **GET** /api/v1/tickets/{id} | | +*DefaultApi* | [**getTickets**](Apis/DefaultApi.md#gettickets) | **GET** /api/v1/tickets | | +*DefaultApi* | [**getUser**](Apis/DefaultApi.md#getuser) | **GET** /api/v1/users/{id} | | +*DefaultApi* | [**getUserBadge**](Apis/DefaultApi.md#getuserbadge) | **GET** /api/v1/user-badges/{id} | | +*DefaultApi* | [**getUserBadgeProgressById**](Apis/DefaultApi.md#getuserbadgeprogressbyid) | **GET** /api/v1/user-badge-progress/{id} | | +*DefaultApi* | [**getUserBadgeProgressByUserId**](Apis/DefaultApi.md#getuserbadgeprogressbyuserid) | **GET** /api/v1/user-badge-progress/user/{userId} | | +*DefaultApi* | [**getUserBadgeProgressList**](Apis/DefaultApi.md#getuserbadgeprogresslist) | **GET** /api/v1/user-badge-progress | | +*DefaultApi* | [**getUserBadges**](Apis/DefaultApi.md#getuserbadges) | **GET** /api/v1/user-badges | | +*DefaultApi* | [**getVotes**](Apis/DefaultApi.md#getvotes) | **GET** /api/v1/votes | | +*DefaultApi* | [**getVotesForUser**](Apis/DefaultApi.md#getvotesforuser) | **GET** /api/v1/votes/for-user | | +*DefaultApi* | [**patchDomainConfig**](Apis/DefaultApi.md#patchdomainconfig) | **PATCH** /api/v1/domain-configs/{domainToUpdate} | | +*DefaultApi* | [**patchHashTag**](Apis/DefaultApi.md#patchhashtag) | **PATCH** /api/v1/hash-tags/{tag} | | +*DefaultApi* | [**patchPage**](Apis/DefaultApi.md#patchpage) | **PATCH** /api/v1/pages/{id} | | +*DefaultApi* | [**patchSSOUser**](Apis/DefaultApi.md#patchssouser) | **PATCH** /api/v1/sso-users/{id} | | +*DefaultApi* | [**putDomainConfig**](Apis/DefaultApi.md#putdomainconfig) | **PUT** /api/v1/domain-configs/{domainToUpdate} | | +*DefaultApi* | [**putSSOUser**](Apis/DefaultApi.md#putssouser) | **PUT** /api/v1/sso-users/{id} | | +*DefaultApi* | [**renderEmailTemplate**](Apis/DefaultApi.md#renderemailtemplate) | **POST** /api/v1/email-templates/render | | +*DefaultApi* | [**replaceTenantPackage**](Apis/DefaultApi.md#replacetenantpackage) | **PUT** /api/v1/tenant-packages/{id} | | +*DefaultApi* | [**replaceTenantUser**](Apis/DefaultApi.md#replacetenantuser) | **PUT** /api/v1/tenant-users/{id} | | +*DefaultApi* | [**saveComment**](Apis/DefaultApi.md#savecomment) | **POST** /api/v1/comments | | +*DefaultApi* | [**saveCommentsBulk**](Apis/DefaultApi.md#savecommentsbulk) | **POST** /api/v1/comments/bulk | | +*DefaultApi* | [**sendInvite**](Apis/DefaultApi.md#sendinvite) | **POST** /api/v1/moderators/{id}/send-invite | | +*DefaultApi* | [**sendLoginLink**](Apis/DefaultApi.md#sendloginlink) | **POST** /api/v1/tenant-users/{id}/send-login-link | | +*DefaultApi* | [**unBlockUserFromComment**](Apis/DefaultApi.md#unblockuserfromcomment) | **POST** /api/v1/comments/{id}/un-block | | +*DefaultApi* | [**unFlagComment**](Apis/DefaultApi.md#unflagcomment) | **POST** /api/v1/comments/{id}/un-flag | | +*DefaultApi* | [**updateComment**](Apis/DefaultApi.md#updatecomment) | **PATCH** /api/v1/comments/{id} | | +*DefaultApi* | [**updateEmailTemplate**](Apis/DefaultApi.md#updateemailtemplate) | **PATCH** /api/v1/email-templates/{id} | | +*DefaultApi* | [**updateFeedPost**](Apis/DefaultApi.md#updatefeedpost) | **PATCH** /api/v1/feed-posts/{id} | | +*DefaultApi* | [**updateModerator**](Apis/DefaultApi.md#updatemoderator) | **PATCH** /api/v1/moderators/{id} | | +*DefaultApi* | [**updateNotification**](Apis/DefaultApi.md#updatenotification) | **PATCH** /api/v1/notifications/{id} | | +*DefaultApi* | [**updateQuestionConfig**](Apis/DefaultApi.md#updatequestionconfig) | **PATCH** /api/v1/question-configs/{id} | | +*DefaultApi* | [**updateQuestionResult**](Apis/DefaultApi.md#updatequestionresult) | **PATCH** /api/v1/question-results/{id} | | +*DefaultApi* | [**updateSubscription**](Apis/DefaultApi.md#updatesubscription) | **PATCH** /api/v1/subscriptions/{id} | | +*DefaultApi* | [**updateTenant**](Apis/DefaultApi.md#updatetenant) | **PATCH** /api/v1/tenants/{id} | | +*DefaultApi* | [**updateTenantPackage**](Apis/DefaultApi.md#updatetenantpackage) | **PATCH** /api/v1/tenant-packages/{id} | | +*DefaultApi* | [**updateTenantUser**](Apis/DefaultApi.md#updatetenantuser) | **PATCH** /api/v1/tenant-users/{id} | | +*DefaultApi* | [**updateUserBadge**](Apis/DefaultApi.md#updateuserbadge) | **PUT** /api/v1/user-badges/{id} | | +| *ModerationApi* | [**deleteModerationVote**](Apis/ModerationApi.md#deletemoderationvote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | | +*ModerationApi* | [**getApiComments**](Apis/ModerationApi.md#getapicomments) | **GET** /auth/my-account/moderate-comments/api/comments | | +*ModerationApi* | [**getApiExportStatus**](Apis/ModerationApi.md#getapiexportstatus) | **GET** /auth/my-account/moderate-comments/api/export/status | | +*ModerationApi* | [**getApiIds**](Apis/ModerationApi.md#getapiids) | **GET** /auth/my-account/moderate-comments/api/ids | | +*ModerationApi* | [**getBanUsersFromComment**](Apis/ModerationApi.md#getbanusersfromcomment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | | +*ModerationApi* | [**getCommentBanStatus**](Apis/ModerationApi.md#getcommentbanstatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | | +*ModerationApi* | [**getCommentChildren**](Apis/ModerationApi.md#getcommentchildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | | +*ModerationApi* | [**getCount**](Apis/ModerationApi.md#getcount) | **GET** /auth/my-account/moderate-comments/count | | +*ModerationApi* | [**getCounts**](Apis/ModerationApi.md#getcounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | | +*ModerationApi* | [**getLogs**](Apis/ModerationApi.md#getlogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | | +*ModerationApi* | [**getManualBadges**](Apis/ModerationApi.md#getmanualbadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | | +*ModerationApi* | [**getManualBadgesForUser**](Apis/ModerationApi.md#getmanualbadgesforuser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | | +*ModerationApi* | [**getModerationComment**](Apis/ModerationApi.md#getmoderationcomment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | | +*ModerationApi* | [**getModerationCommentText**](Apis/ModerationApi.md#getmoderationcommenttext) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | | +*ModerationApi* | [**getPreBanSummary**](Apis/ModerationApi.md#getprebansummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | | +*ModerationApi* | [**getSearchCommentsSummary**](Apis/ModerationApi.md#getsearchcommentssummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | | +*ModerationApi* | [**getSearchPages**](Apis/ModerationApi.md#getsearchpages) | **GET** /auth/my-account/moderate-comments/search/pages | | +*ModerationApi* | [**getSearchSites**](Apis/ModerationApi.md#getsearchsites) | **GET** /auth/my-account/moderate-comments/search/sites | | +*ModerationApi* | [**getSearchSuggest**](Apis/ModerationApi.md#getsearchsuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | | +*ModerationApi* | [**getSearchUsers**](Apis/ModerationApi.md#getsearchusers) | **GET** /auth/my-account/moderate-comments/search/users | | +*ModerationApi* | [**getTrustFactor**](Apis/ModerationApi.md#gettrustfactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | | +*ModerationApi* | [**getUserBanPreference**](Apis/ModerationApi.md#getuserbanpreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | | +*ModerationApi* | [**getUserInternalProfile**](Apis/ModerationApi.md#getuserinternalprofile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | | +*ModerationApi* | [**postAdjustCommentVotes**](Apis/ModerationApi.md#postadjustcommentvotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | | +*ModerationApi* | [**postApiExport**](Apis/ModerationApi.md#postapiexport) | **POST** /auth/my-account/moderate-comments/api/export | | +*ModerationApi* | [**postBanUserFromComment**](Apis/ModerationApi.md#postbanuserfromcomment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | | +*ModerationApi* | [**postBanUserUndo**](Apis/ModerationApi.md#postbanuserundo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | | +*ModerationApi* | [**postBulkPreBanSummary**](Apis/ModerationApi.md#postbulkprebansummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | | +*ModerationApi* | [**postCommentsByIds**](Apis/ModerationApi.md#postcommentsbyids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | | +*ModerationApi* | [**postFlagComment**](Apis/ModerationApi.md#postflagcomment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | | +*ModerationApi* | [**postRemoveComment**](Apis/ModerationApi.md#postremovecomment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | | +*ModerationApi* | [**postRestoreDeletedComment**](Apis/ModerationApi.md#postrestoredeletedcomment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | | +*ModerationApi* | [**postSetCommentApprovalStatus**](Apis/ModerationApi.md#postsetcommentapprovalstatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | | +*ModerationApi* | [**postSetCommentReviewStatus**](Apis/ModerationApi.md#postsetcommentreviewstatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | | +*ModerationApi* | [**postSetCommentSpamStatus**](Apis/ModerationApi.md#postsetcommentspamstatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | | +*ModerationApi* | [**postSetCommentText**](Apis/ModerationApi.md#postsetcommenttext) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | | +*ModerationApi* | [**postUnFlagComment**](Apis/ModerationApi.md#postunflagcomment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | | +*ModerationApi* | [**postVote**](Apis/ModerationApi.md#postvote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | | +*ModerationApi* | [**putAwardBadge**](Apis/ModerationApi.md#putawardbadge) | **PUT** /auth/my-account/moderate-comments/award-badge | | +*ModerationApi* | [**putCloseThread**](Apis/ModerationApi.md#putclosethread) | **PUT** /auth/my-account/moderate-comments/close-thread | | +*ModerationApi* | [**putRemoveBadge**](Apis/ModerationApi.md#putremovebadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | | +*ModerationApi* | [**putReopenThread**](Apis/ModerationApi.md#putreopenthread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | | +*ModerationApi* | [**setTrustFactor**](Apis/ModerationApi.md#settrustfactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | | +| *PublicApi* | [**blockFromCommentPublic**](Apis/PublicApi.md#blockfromcommentpublic) | **POST** /block-from-comment/{commentId} | | +*PublicApi* | [**checkedCommentsForBlocked**](Apis/PublicApi.md#checkedcommentsforblocked) | **GET** /check-blocked-comments | | +*PublicApi* | [**createCommentPublic**](Apis/PublicApi.md#createcommentpublic) | **POST** /comments/{tenantId} | | +*PublicApi* | [**createFeedPostPublic**](Apis/PublicApi.md#createfeedpostpublic) | **POST** /feed-posts/{tenantId} | | +*PublicApi* | [**createV1PageReact**](Apis/PublicApi.md#createv1pagereact) | **POST** /page-reacts/v1/likes/{tenantId} | | +*PublicApi* | [**createV2PageReact**](Apis/PublicApi.md#createv2pagereact) | **POST** /page-reacts/v2/{tenantId} | | +*PublicApi* | [**deleteCommentPublic**](Apis/PublicApi.md#deletecommentpublic) | **DELETE** /comments/{tenantId}/{commentId} | | +*PublicApi* | [**deleteCommentVote**](Apis/PublicApi.md#deletecommentvote) | **DELETE** /comments/{tenantId}/{commentId}/vote/{voteId} | | +*PublicApi* | [**deleteFeedPostPublic**](Apis/PublicApi.md#deletefeedpostpublic) | **DELETE** /feed-posts/{tenantId}/{postId} | | +*PublicApi* | [**deleteV1PageReact**](Apis/PublicApi.md#deletev1pagereact) | **DELETE** /page-reacts/v1/likes/{tenantId} | | +*PublicApi* | [**deleteV2PageReact**](Apis/PublicApi.md#deletev2pagereact) | **DELETE** /page-reacts/v2/{tenantId} | | +*PublicApi* | [**flagCommentPublic**](Apis/PublicApi.md#flagcommentpublic) | **POST** /flag-comment/{commentId} | | +*PublicApi* | [**getCommentText**](Apis/PublicApi.md#getcommenttext) | **GET** /comments/{tenantId}/{commentId}/text | | +*PublicApi* | [**getCommentVoteUserNames**](Apis/PublicApi.md#getcommentvoteusernames) | **GET** /comments/{tenantId}/{commentId}/votes | | +*PublicApi* | [**getCommentsForUser**](Apis/PublicApi.md#getcommentsforuser) | **GET** /comments-for-user | | +*PublicApi* | [**getCommentsPublic**](Apis/PublicApi.md#getcommentspublic) | **GET** /comments/{tenantId} | req tenantId urlId | +*PublicApi* | [**getEventLog**](Apis/PublicApi.md#geteventlog) | **GET** /event-log/{tenantId} | req tenantId urlId userIdWS | +*PublicApi* | [**getFeedPostsPublic**](Apis/PublicApi.md#getfeedpostspublic) | **GET** /feed-posts/{tenantId} | req tenantId afterId | +*PublicApi* | [**getFeedPostsStats**](Apis/PublicApi.md#getfeedpostsstats) | **GET** /feed-posts/{tenantId}/stats | | +*PublicApi* | [**getGifLarge**](Apis/PublicApi.md#getgiflarge) | **GET** /gifs/get-large/{tenantId} | | +*PublicApi* | [**getGifsSearch**](Apis/PublicApi.md#getgifssearch) | **GET** /gifs/search/{tenantId} | | +*PublicApi* | [**getGifsTrending**](Apis/PublicApi.md#getgifstrending) | **GET** /gifs/trending/{tenantId} | | +*PublicApi* | [**getGlobalEventLog**](Apis/PublicApi.md#getglobaleventlog) | **GET** /event-log/global/{tenantId} | req tenantId urlId userIdWS | +*PublicApi* | [**getOfflineUsers**](Apis/PublicApi.md#getofflineusers) | **GET** /pages/{tenantId}/users/offline | Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. | +*PublicApi* | [**getOnlineUsers**](Apis/PublicApi.md#getonlineusers) | **GET** /pages/{tenantId}/users/online | Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). | +*PublicApi* | [**getPagesPublic**](Apis/PublicApi.md#getpagespublic) | **GET** /pages/{tenantId} | List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. | +*PublicApi* | [**getTranslations**](Apis/PublicApi.md#gettranslations) | **GET** /translations/{namespace}/{component} | | +*PublicApi* | [**getUserNotificationCount**](Apis/PublicApi.md#getusernotificationcount) | **GET** /user-notifications/get-count | | +*PublicApi* | [**getUserNotifications**](Apis/PublicApi.md#getusernotifications) | **GET** /user-notifications | | +*PublicApi* | [**getUserPresenceStatuses**](Apis/PublicApi.md#getuserpresencestatuses) | **GET** /user-presence-status | | +*PublicApi* | [**getUserReactsPublic**](Apis/PublicApi.md#getuserreactspublic) | **GET** /feed-posts/{tenantId}/user-reacts | | +*PublicApi* | [**getUsersInfo**](Apis/PublicApi.md#getusersinfo) | **GET** /pages/{tenantId}/users/info | Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). | +*PublicApi* | [**getV1PageLikes**](Apis/PublicApi.md#getv1pagelikes) | **GET** /page-reacts/v1/likes/{tenantId} | | +*PublicApi* | [**getV2PageReactUsers**](Apis/PublicApi.md#getv2pagereactusers) | **GET** /page-reacts/v2/{tenantId}/list | | +*PublicApi* | [**getV2PageReacts**](Apis/PublicApi.md#getv2pagereacts) | **GET** /page-reacts/v2/{tenantId} | | +*PublicApi* | [**lockComment**](Apis/PublicApi.md#lockcomment) | **POST** /comments/{tenantId}/{commentId}/lock | | +*PublicApi* | [**logoutPublic**](Apis/PublicApi.md#logoutpublic) | **PUT** /auth/logout | | +*PublicApi* | [**pinComment**](Apis/PublicApi.md#pincomment) | **POST** /comments/{tenantId}/{commentId}/pin | | +*PublicApi* | [**reactFeedPostPublic**](Apis/PublicApi.md#reactfeedpostpublic) | **POST** /feed-posts/{tenantId}/react/{postId} | | +*PublicApi* | [**resetUserNotificationCount**](Apis/PublicApi.md#resetusernotificationcount) | **POST** /user-notifications/reset-count | | +*PublicApi* | [**resetUserNotifications**](Apis/PublicApi.md#resetusernotifications) | **POST** /user-notifications/reset | | +*PublicApi* | [**searchUsers**](Apis/PublicApi.md#searchusers) | **GET** /user-search/{tenantId} | | +*PublicApi* | [**setCommentText**](Apis/PublicApi.md#setcommenttext) | **POST** /comments/{tenantId}/{commentId}/update-text | | +*PublicApi* | [**unBlockCommentPublic**](Apis/PublicApi.md#unblockcommentpublic) | **DELETE** /block-from-comment/{commentId} | | +*PublicApi* | [**unLockComment**](Apis/PublicApi.md#unlockcomment) | **POST** /comments/{tenantId}/{commentId}/unlock | | +*PublicApi* | [**unPinComment**](Apis/PublicApi.md#unpincomment) | **POST** /comments/{tenantId}/{commentId}/unpin | | +*PublicApi* | [**updateFeedPostPublic**](Apis/PublicApi.md#updatefeedpostpublic) | **PUT** /feed-posts/{tenantId}/{postId} | | +*PublicApi* | [**updateUserNotificationCommentSubscriptionStatus**](Apis/PublicApi.md#updateusernotificationcommentsubscriptionstatus) | **POST** /user-notifications/{notificationId}/mark-opted/{optedInOrOut} | Enable or disable notifications for a specific comment. | +*PublicApi* | [**updateUserNotificationPageSubscriptionStatus**](Apis/PublicApi.md#updateusernotificationpagesubscriptionstatus) | **POST** /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also | +*PublicApi* | [**updateUserNotificationStatus**](Apis/PublicApi.md#updateusernotificationstatus) | **POST** /user-notifications/{notificationId}/mark/{newStatus} | | +*PublicApi* | [**uploadImage**](Apis/PublicApi.md#uploadimage) | **POST** /upload-image/{tenantId} | Upload and resize an image | +*PublicApi* | [**voteComment**](Apis/PublicApi.md#votecomment) | **POST** /comments/{tenantId}/{commentId}/vote | | ## Documentation for Models - [APIAuditLog](./Models/APIAuditLog.md) + - [APIBanUserChangeLog](./Models/APIBanUserChangeLog.md) + - [APIBanUserChangedValues](./Models/APIBanUserChangedValues.md) + - [APIBannedUser](./Models/APIBannedUser.md) + - [APIBannedUserWithMultiMatchInfo](./Models/APIBannedUserWithMultiMatchInfo.md) - [APIComment](./Models/APIComment.md) - [APICommentBase](./Models/APICommentBase.md) - [APICommentBase_meta](./Models/APICommentBase_meta.md) + - [APICommentCommonBannedUser](./Models/APICommentCommonBannedUser.md) - [APICreateUserBadgeResponse](./Models/APICreateUserBadgeResponse.md) - [APIDomainConfiguration](./Models/APIDomainConfiguration.md) - [APIEmptyResponse](./Models/APIEmptyResponse.md) @@ -176,8 +241,11 @@ All URIs are relative to *https://fastcomments.com* - [APIGetUserBadgeProgressResponse](./Models/APIGetUserBadgeProgressResponse.md) - [APIGetUserBadgeResponse](./Models/APIGetUserBadgeResponse.md) - [APIGetUserBadgesResponse](./Models/APIGetUserBadgesResponse.md) + - [APIModerateGetUserBanPreferencesResponse](./Models/APIModerateGetUserBanPreferencesResponse.md) + - [APIModerateUserBanPreferences](./Models/APIModerateUserBanPreferences.md) - [APIPage](./Models/APIPage.md) - [APISSOUser](./Models/APISSOUser.md) + - [APISaveCommentResponse](./Models/APISaveCommentResponse.md) - [APIStatus](./Models/APIStatus.md) - [APITenant](./Models/APITenant.md) - [APITenantDailyUsage](./Models/APITenantDailyUsage.md) @@ -186,15 +254,16 @@ All URIs are relative to *https://fastcomments.com* - [APITicketFile](./Models/APITicketFile.md) - [APIUserSubscription](./Models/APIUserSubscription.md) - [AddDomainConfigParams](./Models/AddDomainConfigParams.md) - - [AddDomainConfig_200_response](./Models/AddDomainConfig_200_response.md) - - [AddDomainConfig_200_response_anyOf](./Models/AddDomainConfig_200_response_anyOf.md) - - [AddHashTag_200_response](./Models/AddHashTag_200_response.md) - - [AddHashTagsBulk_200_response](./Models/AddHashTagsBulk_200_response.md) + - [AddDomainConfigResponse](./Models/AddDomainConfigResponse.md) + - [AddDomainConfigResponse_anyOf](./Models/AddDomainConfigResponse_anyOf.md) - [AddPageAPIResponse](./Models/AddPageAPIResponse.md) - [AddSSOUserAPIResponse](./Models/AddSSOUserAPIResponse.md) + - [AdjustCommentVotesParams](./Models/AdjustCommentVotesParams.md) + - [AdjustVotesResponse](./Models/AdjustVotesResponse.md) - [AggregateQuestionResultsResponse](./Models/AggregateQuestionResultsResponse.md) - - [AggregateQuestionResults_200_response](./Models/AggregateQuestionResults_200_response.md) + - [AggregateResponse](./Models/AggregateResponse.md) - [AggregateTimeBucket](./Models/AggregateTimeBucket.md) + - [AggregationAPIError](./Models/AggregationAPIError.md) - [AggregationItem](./Models/AggregationItem.md) - [AggregationOpType](./Models/AggregationOpType.md) - [AggregationOperation](./Models/AggregationOperation.md) @@ -203,24 +272,30 @@ All URIs are relative to *https://fastcomments.com* - [AggregationResponse](./Models/AggregationResponse.md) - [AggregationResponse_stats](./Models/AggregationResponse_stats.md) - [AggregationValue](./Models/AggregationValue.md) + - [AwardUserBadgeResponse](./Models/AwardUserBadgeResponse.md) + - [BanUserFromCommentResult](./Models/BanUserFromCommentResult.md) + - [BanUserUndoParams](./Models/BanUserUndoParams.md) + - [BannedUserMatch](./Models/BannedUserMatch.md) + - [BannedUserMatchType](./Models/BannedUserMatchType.md) + - [BannedUserMatch_matchedOnValue](./Models/BannedUserMatch_matchedOnValue.md) - [BillingInfo](./Models/BillingInfo.md) - [BlockFromCommentParams](./Models/BlockFromCommentParams.md) - - [BlockFromCommentPublic_200_response](./Models/BlockFromCommentPublic_200_response.md) - [BlockSuccess](./Models/BlockSuccess.md) + - [BuildModerationFilterParams](./Models/BuildModerationFilterParams.md) + - [BuildModerationFilterResponse](./Models/BuildModerationFilterResponse.md) - [BulkAggregateQuestionItem](./Models/BulkAggregateQuestionItem.md) - [BulkAggregateQuestionResultsRequest](./Models/BulkAggregateQuestionResultsRequest.md) - [BulkAggregateQuestionResultsResponse](./Models/BulkAggregateQuestionResultsResponse.md) - - [BulkAggregateQuestionResults_200_response](./Models/BulkAggregateQuestionResults_200_response.md) - [BulkCreateHashTagsBody](./Models/BulkCreateHashTagsBody.md) - [BulkCreateHashTagsBody_tags_inner](./Models/BulkCreateHashTagsBody_tags_inner.md) - [BulkCreateHashTagsResponse](./Models/BulkCreateHashTagsResponse.md) + - [BulkCreateHashTagsResponse_results_inner](./Models/BulkCreateHashTagsResponse_results_inner.md) + - [BulkPreBanParams](./Models/BulkPreBanParams.md) + - [BulkPreBanSummary](./Models/BulkPreBanSummary.md) - [ChangeCommentPinStatusResponse](./Models/ChangeCommentPinStatusResponse.md) - [ChangeTicketStateBody](./Models/ChangeTicketStateBody.md) - [ChangeTicketStateResponse](./Models/ChangeTicketStateResponse.md) - - [ChangeTicketState_200_response](./Models/ChangeTicketState_200_response.md) - [CheckBlockedCommentsResponse](./Models/CheckBlockedCommentsResponse.md) - - [CheckedCommentsForBlocked_200_response](./Models/CheckedCommentsForBlocked_200_response.md) - - [CombineCommentsWithQuestionResults_200_response](./Models/CombineCommentsWithQuestionResults_200_response.md) - [CombineQuestionResultsWithCommentsResponse](./Models/CombineQuestionResultsWithCommentsResponse.md) - [CommentData](./Models/CommentData.md) - [CommentHTMLRenderingMode](./Models/CommentHTMLRenderingMode.md) @@ -235,56 +310,42 @@ All URIs are relative to *https://fastcomments.com* - [CommentUserHashTagInfo](./Models/CommentUserHashTagInfo.md) - [CommentUserMentionInfo](./Models/CommentUserMentionInfo.md) - [CommenterNameFormats](./Models/CommenterNameFormats.md) + - [CommentsByIdsParams](./Models/CommentsByIdsParams.md) - [CreateAPIPageData](./Models/CreateAPIPageData.md) - [CreateAPISSOUserData](./Models/CreateAPISSOUserData.md) - [CreateAPIUserSubscriptionData](./Models/CreateAPIUserSubscriptionData.md) - [CreateCommentParams](./Models/CreateCommentParams.md) - - [CreateCommentPublic_200_response](./Models/CreateCommentPublic_200_response.md) - [CreateEmailTemplateBody](./Models/CreateEmailTemplateBody.md) - [CreateEmailTemplateResponse](./Models/CreateEmailTemplateResponse.md) - - [CreateEmailTemplate_200_response](./Models/CreateEmailTemplate_200_response.md) - [CreateFeedPostParams](./Models/CreateFeedPostParams.md) - - [CreateFeedPostPublic_200_response](./Models/CreateFeedPostPublic_200_response.md) - [CreateFeedPostResponse](./Models/CreateFeedPostResponse.md) - - [CreateFeedPost_200_response](./Models/CreateFeedPost_200_response.md) - [CreateFeedPostsResponse](./Models/CreateFeedPostsResponse.md) - [CreateHashTagBody](./Models/CreateHashTagBody.md) - [CreateHashTagResponse](./Models/CreateHashTagResponse.md) - [CreateModeratorBody](./Models/CreateModeratorBody.md) - [CreateModeratorResponse](./Models/CreateModeratorResponse.md) - - [CreateModerator_200_response](./Models/CreateModerator_200_response.md) - [CreateQuestionConfigBody](./Models/CreateQuestionConfigBody.md) - [CreateQuestionConfigResponse](./Models/CreateQuestionConfigResponse.md) - - [CreateQuestionConfig_200_response](./Models/CreateQuestionConfig_200_response.md) - [CreateQuestionResultBody](./Models/CreateQuestionResultBody.md) - [CreateQuestionResultResponse](./Models/CreateQuestionResultResponse.md) - - [CreateQuestionResult_200_response](./Models/CreateQuestionResult_200_response.md) - [CreateSubscriptionAPIResponse](./Models/CreateSubscriptionAPIResponse.md) - [CreateTenantBody](./Models/CreateTenantBody.md) - [CreateTenantPackageBody](./Models/CreateTenantPackageBody.md) - [CreateTenantPackageResponse](./Models/CreateTenantPackageResponse.md) - - [CreateTenantPackage_200_response](./Models/CreateTenantPackage_200_response.md) - [CreateTenantResponse](./Models/CreateTenantResponse.md) - [CreateTenantUserBody](./Models/CreateTenantUserBody.md) - [CreateTenantUserResponse](./Models/CreateTenantUserResponse.md) - - [CreateTenantUser_200_response](./Models/CreateTenantUser_200_response.md) - - [CreateTenant_200_response](./Models/CreateTenant_200_response.md) - [CreateTicketBody](./Models/CreateTicketBody.md) - [CreateTicketResponse](./Models/CreateTicketResponse.md) - - [CreateTicket_200_response](./Models/CreateTicket_200_response.md) - [CreateUserBadgeParams](./Models/CreateUserBadgeParams.md) - - [CreateUserBadge_200_response](./Models/CreateUserBadge_200_response.md) + - [CreateV1PageReact](./Models/CreateV1PageReact.md) - [CustomConfigParameters](./Models/CustomConfigParameters.md) - [CustomEmailTemplate](./Models/CustomEmailTemplate.md) - [DeleteCommentAction](./Models/DeleteCommentAction.md) - - [DeleteCommentPublic_200_response](./Models/DeleteCommentPublic_200_response.md) - [DeleteCommentResult](./Models/DeleteCommentResult.md) - - [DeleteCommentVote_200_response](./Models/DeleteCommentVote_200_response.md) - - [DeleteComment_200_response](./Models/DeleteComment_200_response.md) - - [DeleteDomainConfig_200_response](./Models/DeleteDomainConfig_200_response.md) - - [DeleteFeedPostPublic_200_response](./Models/DeleteFeedPostPublic_200_response.md) - - [DeleteFeedPostPublic_200_response_anyOf](./Models/DeleteFeedPostPublic_200_response_anyOf.md) - - [DeleteHashTag_request](./Models/DeleteHashTag_request.md) + - [DeleteDomainConfigResponse](./Models/DeleteDomainConfigResponse.md) + - [DeleteFeedPostPublicResponse](./Models/DeleteFeedPostPublicResponse.md) + - [DeleteHashTagRequestBody](./Models/DeleteHashTagRequestBody.md) - [DeletePageAPIResponse](./Models/DeletePageAPIResponse.md) - [DeleteSSOUserAPIResponse](./Models/DeleteSSOUserAPIResponse.md) - [DeleteSubscriptionAPIResponse](./Models/DeleteSubscriptionAPIResponse.md) @@ -303,126 +364,124 @@ All URIs are relative to *https://fastcomments.com* - [FeedPostsStatsResponse](./Models/FeedPostsStatsResponse.md) - [FindCommentsByRangeItem](./Models/FindCommentsByRangeItem.md) - [FindCommentsByRangeResponse](./Models/FindCommentsByRangeResponse.md) - - [FlagCommentPublic_200_response](./Models/FlagCommentPublic_200_response.md) - [FlagCommentResponse](./Models/FlagCommentResponse.md) - - [FlagComment_200_response](./Models/FlagComment_200_response.md) - [GetAuditLogsResponse](./Models/GetAuditLogsResponse.md) - - [GetAuditLogs_200_response](./Models/GetAuditLogs_200_response.md) + - [GetBannedUsersCountResponse](./Models/GetBannedUsersCountResponse.md) + - [GetBannedUsersFromCommentResponse](./Models/GetBannedUsersFromCommentResponse.md) - [GetCachedNotificationCountResponse](./Models/GetCachedNotificationCountResponse.md) - - [GetCachedNotificationCount_200_response](./Models/GetCachedNotificationCount_200_response.md) - - [GetCommentText_200_response](./Models/GetCommentText_200_response.md) + - [GetCommentBanStatusResponse](./Models/GetCommentBanStatusResponse.md) + - [GetCommentTextResponse](./Models/GetCommentTextResponse.md) - [GetCommentVoteUserNamesSuccessResponse](./Models/GetCommentVoteUserNamesSuccessResponse.md) - - [GetCommentVoteUserNames_200_response](./Models/GetCommentVoteUserNames_200_response.md) - - [GetComment_200_response](./Models/GetComment_200_response.md) - - [GetCommentsPublic_200_response](./Models/GetCommentsPublic_200_response.md) + - [GetCommentsForUserResponse](./Models/GetCommentsForUserResponse.md) - [GetCommentsResponseWithPresence_PublicComment_](./Models/GetCommentsResponseWithPresence_PublicComment_.md) - [GetCommentsResponse_PublicComment_](./Models/GetCommentsResponse_PublicComment_.md) - - [GetComments_200_response](./Models/GetComments_200_response.md) - - [GetDomainConfig_200_response](./Models/GetDomainConfig_200_response.md) - - [GetDomainConfigs_200_response](./Models/GetDomainConfigs_200_response.md) - - [GetDomainConfigs_200_response_anyOf](./Models/GetDomainConfigs_200_response_anyOf.md) - - [GetDomainConfigs_200_response_anyOf_1](./Models/GetDomainConfigs_200_response_anyOf_1.md) + - [GetDomainConfigResponse](./Models/GetDomainConfigResponse.md) + - [GetDomainConfigsResponse](./Models/GetDomainConfigsResponse.md) + - [GetDomainConfigsResponse_anyOf](./Models/GetDomainConfigsResponse_anyOf.md) + - [GetDomainConfigsResponse_anyOf_1](./Models/GetDomainConfigsResponse_anyOf_1.md) - [GetEmailTemplateDefinitionsResponse](./Models/GetEmailTemplateDefinitionsResponse.md) - - [GetEmailTemplateDefinitions_200_response](./Models/GetEmailTemplateDefinitions_200_response.md) - [GetEmailTemplateRenderErrorsResponse](./Models/GetEmailTemplateRenderErrorsResponse.md) - - [GetEmailTemplateRenderErrors_200_response](./Models/GetEmailTemplateRenderErrors_200_response.md) - [GetEmailTemplateResponse](./Models/GetEmailTemplateResponse.md) - - [GetEmailTemplate_200_response](./Models/GetEmailTemplate_200_response.md) - [GetEmailTemplatesResponse](./Models/GetEmailTemplatesResponse.md) - - [GetEmailTemplates_200_response](./Models/GetEmailTemplates_200_response.md) - [GetEventLogResponse](./Models/GetEventLogResponse.md) - - [GetEventLog_200_response](./Models/GetEventLog_200_response.md) - - [GetFeedPostsPublic_200_response](./Models/GetFeedPostsPublic_200_response.md) - [GetFeedPostsResponse](./Models/GetFeedPostsResponse.md) - - [GetFeedPostsStats_200_response](./Models/GetFeedPostsStats_200_response.md) - - [GetFeedPosts_200_response](./Models/GetFeedPosts_200_response.md) + - [GetGifsSearchResponse](./Models/GetGifsSearchResponse.md) + - [GetGifsTrendingResponse](./Models/GetGifsTrendingResponse.md) - [GetHashTagsResponse](./Models/GetHashTagsResponse.md) - - [GetHashTags_200_response](./Models/GetHashTags_200_response.md) - [GetModeratorResponse](./Models/GetModeratorResponse.md) - - [GetModerator_200_response](./Models/GetModerator_200_response.md) - [GetModeratorsResponse](./Models/GetModeratorsResponse.md) - - [GetModerators_200_response](./Models/GetModerators_200_response.md) - [GetMyNotificationsResponse](./Models/GetMyNotificationsResponse.md) - [GetNotificationCountResponse](./Models/GetNotificationCountResponse.md) - - [GetNotificationCount_200_response](./Models/GetNotificationCount_200_response.md) - [GetNotificationsResponse](./Models/GetNotificationsResponse.md) - - [GetNotifications_200_response](./Models/GetNotifications_200_response.md) - [GetPageByURLIdAPIResponse](./Models/GetPageByURLIdAPIResponse.md) - [GetPagesAPIResponse](./Models/GetPagesAPIResponse.md) - [GetPendingWebhookEventCountResponse](./Models/GetPendingWebhookEventCountResponse.md) - - [GetPendingWebhookEventCount_200_response](./Models/GetPendingWebhookEventCount_200_response.md) - [GetPendingWebhookEventsResponse](./Models/GetPendingWebhookEventsResponse.md) - - [GetPendingWebhookEvents_200_response](./Models/GetPendingWebhookEvents_200_response.md) - [GetPublicFeedPostsResponse](./Models/GetPublicFeedPostsResponse.md) + - [GetPublicPagesResponse](./Models/GetPublicPagesResponse.md) - [GetQuestionConfigResponse](./Models/GetQuestionConfigResponse.md) - - [GetQuestionConfig_200_response](./Models/GetQuestionConfig_200_response.md) - [GetQuestionConfigsResponse](./Models/GetQuestionConfigsResponse.md) - - [GetQuestionConfigs_200_response](./Models/GetQuestionConfigs_200_response.md) - [GetQuestionResultResponse](./Models/GetQuestionResultResponse.md) - - [GetQuestionResult_200_response](./Models/GetQuestionResult_200_response.md) - [GetQuestionResultsResponse](./Models/GetQuestionResultsResponse.md) - - [GetQuestionResults_200_response](./Models/GetQuestionResults_200_response.md) - [GetSSOUserByEmailAPIResponse](./Models/GetSSOUserByEmailAPIResponse.md) - [GetSSOUserByIdAPIResponse](./Models/GetSSOUserByIdAPIResponse.md) - - [GetSSOUsers_200_response](./Models/GetSSOUsers_200_response.md) + - [GetSSOUsersResponse](./Models/GetSSOUsersResponse.md) - [GetSubscriptionsAPIResponse](./Models/GetSubscriptionsAPIResponse.md) - [GetTenantDailyUsagesResponse](./Models/GetTenantDailyUsagesResponse.md) - - [GetTenantDailyUsages_200_response](./Models/GetTenantDailyUsages_200_response.md) + - [GetTenantManualBadgesResponse](./Models/GetTenantManualBadgesResponse.md) - [GetTenantPackageResponse](./Models/GetTenantPackageResponse.md) - - [GetTenantPackage_200_response](./Models/GetTenantPackage_200_response.md) - [GetTenantPackagesResponse](./Models/GetTenantPackagesResponse.md) - - [GetTenantPackages_200_response](./Models/GetTenantPackages_200_response.md) - [GetTenantResponse](./Models/GetTenantResponse.md) - [GetTenantUserResponse](./Models/GetTenantUserResponse.md) - - [GetTenantUser_200_response](./Models/GetTenantUser_200_response.md) - [GetTenantUsersResponse](./Models/GetTenantUsersResponse.md) - - [GetTenantUsers_200_response](./Models/GetTenantUsers_200_response.md) - - [GetTenant_200_response](./Models/GetTenant_200_response.md) - [GetTenantsResponse](./Models/GetTenantsResponse.md) - - [GetTenants_200_response](./Models/GetTenants_200_response.md) - [GetTicketResponse](./Models/GetTicketResponse.md) - - [GetTicket_200_response](./Models/GetTicket_200_response.md) - [GetTicketsResponse](./Models/GetTicketsResponse.md) - - [GetTickets_200_response](./Models/GetTickets_200_response.md) - - [GetUserBadgeProgressById_200_response](./Models/GetUserBadgeProgressById_200_response.md) - - [GetUserBadgeProgressList_200_response](./Models/GetUserBadgeProgressList_200_response.md) - - [GetUserBadge_200_response](./Models/GetUserBadge_200_response.md) - - [GetUserBadges_200_response](./Models/GetUserBadges_200_response.md) + - [GetTranslationsResponse](./Models/GetTranslationsResponse.md) + - [GetUserInternalProfileResponse](./Models/GetUserInternalProfileResponse.md) + - [GetUserInternalProfileResponse_profile](./Models/GetUserInternalProfileResponse_profile.md) + - [GetUserManualBadgesResponse](./Models/GetUserManualBadgesResponse.md) - [GetUserNotificationCountResponse](./Models/GetUserNotificationCountResponse.md) - - [GetUserNotificationCount_200_response](./Models/GetUserNotificationCount_200_response.md) - - [GetUserNotifications_200_response](./Models/GetUserNotifications_200_response.md) - [GetUserPresenceStatusesResponse](./Models/GetUserPresenceStatusesResponse.md) - - [GetUserPresenceStatuses_200_response](./Models/GetUserPresenceStatuses_200_response.md) - - [GetUserReactsPublic_200_response](./Models/GetUserReactsPublic_200_response.md) - [GetUserResponse](./Models/GetUserResponse.md) - - [GetUser_200_response](./Models/GetUser_200_response.md) + - [GetUserTrustFactorResponse](./Models/GetUserTrustFactorResponse.md) + - [GetV1PageLikes](./Models/GetV1PageLikes.md) + - [GetV2PageReactUsersResponse](./Models/GetV2PageReactUsersResponse.md) + - [GetV2PageReacts](./Models/GetV2PageReacts.md) - [GetVotesForUserResponse](./Models/GetVotesForUserResponse.md) - - [GetVotesForUser_200_response](./Models/GetVotesForUser_200_response.md) - [GetVotesResponse](./Models/GetVotesResponse.md) - - [GetVotes_200_response](./Models/GetVotes_200_response.md) + - [GifGetLargeResponse](./Models/GifGetLargeResponse.md) - [GifRating](./Models/GifRating.md) + - [GifSearchInternalError](./Models/GifSearchInternalError.md) + - [GifSearchResponse](./Models/GifSearchResponse.md) + - [GifSearchResponse_images_inner_inner](./Models/GifSearchResponse_images_inner_inner.md) - [HeaderAccountNotification](./Models/HeaderAccountNotification.md) - [HeaderState](./Models/HeaderState.md) - [IgnoredResponse](./Models/IgnoredResponse.md) - [ImageContentProfanityLevel](./Models/ImageContentProfanityLevel.md) + - [ImportedAgentApprovalNotificationFrequency](./Models/ImportedAgentApprovalNotificationFrequency.md) - [ImportedSiteType](./Models/ImportedSiteType.md) - [LiveEvent](./Models/LiveEvent.md) - [LiveEventType](./Models/LiveEventType.md) - [LiveEvent_extraInfo](./Models/LiveEvent_extraInfo.md) - - [LockComment_200_response](./Models/LockComment_200_response.md) - [MediaAsset](./Models/MediaAsset.md) - [MentionAutoCompleteMode](./Models/MentionAutoCompleteMode.md) - [MetaItem](./Models/MetaItem.md) + - [ModerationAPIChildCommentsResponse](./Models/ModerationAPIChildCommentsResponse.md) + - [ModerationAPIComment](./Models/ModerationAPIComment.md) + - [ModerationAPICommentLog](./Models/ModerationAPICommentLog.md) + - [ModerationAPICommentResponse](./Models/ModerationAPICommentResponse.md) + - [ModerationAPICountCommentsResponse](./Models/ModerationAPICountCommentsResponse.md) + - [ModerationAPIGetCommentIdsResponse](./Models/ModerationAPIGetCommentIdsResponse.md) + - [ModerationAPIGetCommentsResponse](./Models/ModerationAPIGetCommentsResponse.md) + - [ModerationAPIGetLogsResponse](./Models/ModerationAPIGetLogsResponse.md) + - [ModerationCommentSearchResponse](./Models/ModerationCommentSearchResponse.md) + - [ModerationExportResponse](./Models/ModerationExportResponse.md) + - [ModerationExportStatusResponse](./Models/ModerationExportStatusResponse.md) + - [ModerationFilter](./Models/ModerationFilter.md) + - [ModerationPageSearchProjected](./Models/ModerationPageSearchProjected.md) + - [ModerationPageSearchResponse](./Models/ModerationPageSearchResponse.md) + - [ModerationSiteSearchProjected](./Models/ModerationSiteSearchProjected.md) + - [ModerationSiteSearchResponse](./Models/ModerationSiteSearchResponse.md) + - [ModerationSuggestResponse](./Models/ModerationSuggestResponse.md) + - [ModerationUserSearchProjected](./Models/ModerationUserSearchProjected.md) + - [ModerationUserSearchResponse](./Models/ModerationUserSearchResponse.md) - [Moderator](./Models/Moderator.md) - [NotificationAndCount](./Models/NotificationAndCount.md) - [NotificationObjectType](./Models/NotificationObjectType.md) - [NotificationType](./Models/NotificationType.md) + - [PageUserEntry](./Models/PageUserEntry.md) + - [PageUsersInfoResponse](./Models/PageUsersInfoResponse.md) + - [PageUsersOfflineResponse](./Models/PageUsersOfflineResponse.md) + - [PageUsersOnlineResponse](./Models/PageUsersOnlineResponse.md) + - [PagesSortBy](./Models/PagesSortBy.md) - [PatchDomainConfigParams](./Models/PatchDomainConfigParams.md) - - [PatchHashTag_200_response](./Models/PatchHashTag_200_response.md) + - [PatchDomainConfigResponse](./Models/PatchDomainConfigResponse.md) - [PatchPageAPIResponse](./Models/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](./Models/PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](./Models/PendingCommentToSyncOutbound.md) - - [PinComment_200_response](./Models/PinComment_200_response.md) + - [PostRemoveCommentResponse](./Models/PostRemoveCommentResponse.md) + - [PreBanSummary](./Models/PreBanSummary.md) - [PubSubComment](./Models/PubSubComment.md) - [PubSubCommentBase](./Models/PubSubCommentBase.md) - [PubSubVote](./Models/PubSubVote.md) @@ -433,7 +492,9 @@ All URIs are relative to *https://fastcomments.com* - [PublicComment](./Models/PublicComment.md) - [PublicCommentBase](./Models/PublicCommentBase.md) - [PublicFeedPostsResponse](./Models/PublicFeedPostsResponse.md) + - [PublicPage](./Models/PublicPage.md) - [PublicVote](./Models/PublicVote.md) + - [PutDomainConfigResponse](./Models/PutDomainConfigResponse.md) - [PutSSOUserAPIResponse](./Models/PutSSOUserAPIResponse.md) - [QueryPredicate](./Models/QueryPredicate.md) - [QueryPredicate_value](./Models/QueryPredicate_value.md) @@ -446,38 +507,38 @@ All URIs are relative to *https://fastcomments.com* - [QuestionSubQuestionVisibility](./Models/QuestionSubQuestionVisibility.md) - [QuestionWhenSave](./Models/QuestionWhenSave.md) - [ReactBodyParams](./Models/ReactBodyParams.md) - - [ReactFeedPostPublic_200_response](./Models/ReactFeedPostPublic_200_response.md) - [ReactFeedPostResponse](./Models/ReactFeedPostResponse.md) - [Record_string__before_string_or_null__after_string_or_null___value](./Models/Record_string__before_string_or_null__after_string_or_null___value.md) - - [Record_string_string_or_number__value](./Models/Record_string_string_or_number__value.md) + - [RemoveCommentActionResponse](./Models/RemoveCommentActionResponse.md) + - [RemoveUserBadgeResponse](./Models/RemoveUserBadgeResponse.md) - [RenderEmailTemplateBody](./Models/RenderEmailTemplateBody.md) - [RenderEmailTemplateResponse](./Models/RenderEmailTemplateResponse.md) - - [RenderEmailTemplate_200_response](./Models/RenderEmailTemplate_200_response.md) - [RenderableUserNotification](./Models/RenderableUserNotification.md) - [RepeatCommentCheckIgnoredReason](./Models/RepeatCommentCheckIgnoredReason.md) - [RepeatCommentHandlingAction](./Models/RepeatCommentHandlingAction.md) - [ReplaceTenantPackageBody](./Models/ReplaceTenantPackageBody.md) - [ReplaceTenantUserBody](./Models/ReplaceTenantUserBody.md) - [ResetUserNotificationsResponse](./Models/ResetUserNotificationsResponse.md) - - [ResetUserNotifications_200_response](./Models/ResetUserNotifications_200_response.md) - [SORT_DIR](./Models/SORT_DIR.md) - [SSOSecurityLevel](./Models/SSOSecurityLevel.md) - - [SaveCommentResponse](./Models/SaveCommentResponse.md) - [SaveCommentResponseOptimized](./Models/SaveCommentResponseOptimized.md) - - [SaveComment_200_response](./Models/SaveComment_200_response.md) + - [SaveCommentsBulkResponse](./Models/SaveCommentsBulkResponse.md) - [SaveCommentsResponseWithPresence](./Models/SaveCommentsResponseWithPresence.md) - [SearchUsersResponse](./Models/SearchUsersResponse.md) + - [SearchUsersResult](./Models/SearchUsersResult.md) - [SearchUsersSectionedResponse](./Models/SearchUsersSectionedResponse.md) - - [SearchUsers_200_response](./Models/SearchUsers_200_response.md) + - [SetCommentApprovedResponse](./Models/SetCommentApprovedResponse.md) + - [SetCommentTextParams](./Models/SetCommentTextParams.md) + - [SetCommentTextResponse](./Models/SetCommentTextResponse.md) - [SetCommentTextResult](./Models/SetCommentTextResult.md) - - [SetCommentText_200_response](./Models/SetCommentText_200_response.md) + - [SetUserTrustFactorResponse](./Models/SetUserTrustFactorResponse.md) - [SizePreset](./Models/SizePreset.md) - [SortDirections](./Models/SortDirections.md) - [SpamRule](./Models/SpamRule.md) - [TOSConfig](./Models/TOSConfig.md) + - [TenantBadge](./Models/TenantBadge.md) - [TenantHashTag](./Models/TenantHashTag.md) - [TenantPackage](./Models/TenantPackage.md) - - [UnBlockCommentPublic_200_response](./Models/UnBlockCommentPublic_200_response.md) - [UnBlockFromCommentParams](./Models/UnBlockFromCommentParams.md) - [UnblockSuccess](./Models/UnblockSuccess.md) - [UpdatableCommentParams](./Models/UpdatableCommentParams.md) @@ -498,8 +559,9 @@ All URIs are relative to *https://fastcomments.com* - [UpdateTenantPackageBody](./Models/UpdateTenantPackageBody.md) - [UpdateTenantUserBody](./Models/UpdateTenantUserBody.md) - [UpdateUserBadgeParams](./Models/UpdateUserBadgeParams.md) - - [UpdateUserBadge_200_response](./Models/UpdateUserBadge_200_response.md) - - [UpdateUserNotificationStatus_200_response](./Models/UpdateUserNotificationStatus_200_response.md) + - [UpdateUserNotificationCommentSubscriptionStatusResponse](./Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md) + - [UpdateUserNotificationPageSubscriptionStatusResponse](./Models/UpdateUserNotificationPageSubscriptionStatusResponse.md) + - [UpdateUserNotificationStatusResponse](./Models/UpdateUserNotificationStatusResponse.md) - [UploadImageResponse](./Models/UploadImageResponse.md) - [User](./Models/User.md) - [UserBadge](./Models/UserBadge.md) @@ -513,11 +575,12 @@ All URIs are relative to *https://fastcomments.com* - [UserSearchSection](./Models/UserSearchSection.md) - [UserSearchSectionResult](./Models/UserSearchSectionResult.md) - [UserSessionInfo](./Models/UserSessionInfo.md) + - [UsersListLocation](./Models/UsersListLocation.md) - [VoteBodyParams](./Models/VoteBodyParams.md) - - [VoteComment_200_response](./Models/VoteComment_200_response.md) - [VoteDeleteResponse](./Models/VoteDeleteResponse.md) - [VoteResponse](./Models/VoteResponse.md) - [VoteResponseUser](./Models/VoteResponseUser.md) + - [VoteResponse_status](./Models/VoteResponse_status.md) - [VoteStyle](./Models/VoteStyle.md) diff --git a/openapi.json b/openapi.json index 7157da6..ca0225c 100644 --- a/openapi.json +++ b/openapi.json @@ -108,6 +108,16 @@ ], "type": "object" }, + "SearchUsersResult": { + "anyOf": [ + { + "$ref": "#/components/schemas/SearchUsersSectionedResponse" + }, + { + "$ref": "#/components/schemas/SearchUsersResponse" + } + ] + }, "CommentHTMLRenderingMode": { "enum": [ 0, @@ -249,6 +259,15 @@ ], "type": "integer" }, + "UsersListLocation": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "integer" + }, "TOSConfig": { "properties": { "enabled": { @@ -459,6 +478,16 @@ "noImageUploads": { "type": "boolean" }, + "allowEmbeds": { + "type": "boolean" + }, + "allowedEmbedDomains": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, "noStyles": { "type": "boolean" }, @@ -476,6 +505,9 @@ "requireSSO": { "type": "boolean" }, + "enableFChat": { + "type": "boolean" + }, "enableResizeHandle": { "type": "boolean" }, @@ -548,6 +580,12 @@ "wrap": { "type": "boolean" }, + "usersListLocation": { + "$ref": "#/components/schemas/UsersListLocation" + }, + "usersListIncludeOffline": { + "type": "boolean" + }, "ticketBaseUrl": { "type": "string" }, @@ -882,6 +920,11 @@ "createdAt": { "type": "string", "format": "date-time" + }, + "type": { + "type": "string", + "nullable": true, + "description": "Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\")." } }, "required": [ @@ -1034,550 +1077,742 @@ "CrossPlatform" ] }, - "APIEmptyResponse": { + "GetTranslationsResponse": { "properties": { + "translations": { + "$ref": "#/components/schemas/Record_string.string_" + }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "translations", "status" ], "type": "object" }, - "FeedPostMediaItemAsset": { + "PublicPage": { "properties": { - "w": { + "updatedAt": { "type": "integer", - "format": "int32" + "format": "int64" }, - "h": { + "commentCount": { "type": "integer", "format": "int32" }, - "src": { + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "urlId": { "type": "string" } }, "required": [ - "w", - "h", - "src" + "updatedAt", + "commentCount", + "title", + "url", + "urlId" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "FeedPostMediaItem": { + "GetPublicPagesResponse": { "properties": { - "title": { - "type": "string" - }, - "linkUrl": { - "type": "string" + "nextCursor": { + "type": "string", + "nullable": true }, - "sizes": { + "pages": { "items": { - "$ref": "#/components/schemas/FeedPostMediaItemAsset" + "$ref": "#/components/schemas/PublicPage" }, "type": "array" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "sizes" + "nextCursor", + "pages", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "FeedPostLink": { + "PagesSortBy": { + "type": "string", + "enum": [ + "updatedAt", + "commentCount", + "title" + ] + }, + "PageUserEntry": { "properties": { - "text": { - "type": "string" + "isPrivate": { + "type": "boolean" }, - "title": { + "avatarSrc": { "type": "string" }, - "description": { + "displayName": { "type": "string" }, - "url": { + "id": { "type": "string" } }, - "type": "object", - "additionalProperties": false - }, - "Int32Map": { - "properties": {}, - "additionalProperties": { - "type": "integer", - "format": "int32" - }, + "required": [ + "displayName", + "id" + ], "type": "object" }, - "FeedPost": { + "PageUsersOnlineResponse": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "type": "string" - }, - "title": { - "type": "string" - }, - "fromUserId": { - "type": "string" - }, - "fromUserDisplayName": { + "nextAfterUserId": { "type": "string", "nullable": true }, - "fromUserAvatar": { + "nextAfterName": { "type": "string", "nullable": true }, - "fromIpHash": { - "type": "string" - }, - "tags": { - "items": { - "type": "string" - }, - "type": "array" - }, - "weight": { + "totalCount": { "type": "number", "format": "double" }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" - }, - "contentHTML": { - "type": "string" - }, - "media": { - "items": { - "$ref": "#/components/schemas/FeedPostMediaItem" - }, - "type": "array" + "anonCount": { + "type": "number", + "format": "double" }, - "links": { + "users": { "items": { - "$ref": "#/components/schemas/FeedPostLink" + "$ref": "#/components/schemas/PageUserEntry" }, "type": "array" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "reacts": { - "$ref": "#/components/schemas/Int32Map" - }, - "commentCount": { - "type": "integer", - "format": "int32", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "_id", - "tenantId", - "createdAt" + "nextAfterUserId", + "nextAfterName", + "totalCount", + "anonCount", + "users", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CommentUserBadgeInfo": { + "PageUsersOfflineResponse": { "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "integer", - "format": "int32" - }, - "description": { - "type": "string" - }, - "displayLabel": { - "type": "string", - "nullable": true - }, - "displaySrc": { + "nextAfterUserId": { "type": "string", "nullable": true }, - "backgroundColor": { + "nextAfterName": { "type": "string", "nullable": true }, - "borderColor": { - "type": "string", - "nullable": true + "users": { + "items": { + "$ref": "#/components/schemas/PageUserEntry" + }, + "type": "array" }, - "textColor": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "nextAfterUserId", + "nextAfterName", + "users", + "status" + ], + "type": "object" + }, + "PageUsersInfoResponse": { + "properties": { + "users": { + "items": { + "$ref": "#/components/schemas/PageUserEntry" + }, + "type": "array" }, - "cssClass": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "id", - "type", - "description" + "users", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "UserSessionInfo": { + "GetV1PageLikes": { "properties": { - "id": { + "urlIdWS": { "type": "string" }, - "authorized": { + "didLike": { "type": "boolean" }, - "avatarSrc": { - "type": "string", - "nullable": true + "commentCount": { + "type": "integer", + "format": "int32" }, - "badges": { + "likeCount": { + "type": "integer", + "format": "int32" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "urlIdWS", + "didLike", + "commentCount", + "likeCount", + "status" + ], + "type": "object" + }, + "GetV2PageReactUsersResponse": { + "properties": { + "userNames": { "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" + "type": "string" }, "type": "array" }, - "displayLabel": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "email": { - "type": "string", - "nullable": true - }, - "groupIds": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "userNames", + "status" + ], + "type": "object" + }, + "Record_string.number_": { + "properties": {}, + "additionalProperties": { + "type": "number", + "format": "double" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "GetV2PageReacts": { + "properties": { + "reactedIds": { "items": { "type": "string" }, "type": "array" }, - "hasBlockedUsers": { - "type": "boolean" - }, - "isAnonSession": { - "type": "boolean" - }, - "needsTOS": { - "type": "boolean" - }, - "sessionId": { - "type": "string", - "nullable": true - }, - "username": { - "type": "string" + "counts": { + "$ref": "#/components/schemas/Record_string.number_" }, - "websiteUrl": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, - "type": "object", - "additionalProperties": false + "required": [ + "status" + ], + "type": "object" }, - "GetPublicFeedPostsResponse": { + "CreateV1PageReact": { "properties": { + "code": { + "type": "string" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "feedPosts": { - "items": { - "$ref": "#/components/schemas/FeedPost" - }, - "type": "array" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/UserSessionInfo" - } - ], - "nullable": true } }, "required": [ - "status", - "feedPosts" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "TenantIdWS": { - "type": "string" + "CreateV2PageReact": { + "$ref": "#/components/schemas/CreateV1PageReact" }, - "UserIdWS": { - "type": "string" + "DeleteV1PageReact": { + "$ref": "#/components/schemas/CreateV1PageReact" }, - "UrlIdWS": { - "type": "string" + "DeleteV2PageReact": { + "$ref": "#/components/schemas/CreateV1PageReact" }, - "UserPresenceData": { + "ModerationFilter": { "properties": { - "urlIdWS": { - "$ref": "#/components/schemas/UrlIdWS" + "reviewed": { + "type": "boolean" }, - "userIdWS": { - "$ref": "#/components/schemas/UserIdWS" + "approved": { + "type": "boolean" }, - "tenantIdWS": { - "$ref": "#/components/schemas/TenantIdWS" - } - }, - "type": "object" - }, - "PublicFeedPostsResponse": { - "allOf": [ - { - "properties": { - "myReacts": { - "properties": {}, - "additionalProperties": { - "properties": {}, - "additionalProperties": { - "type": "boolean" - }, - "type": "object" - }, - "type": "object" - } + "isSpam": { + "type": "boolean" + }, + "isBannedUser": { + "type": "boolean" + }, + "isLocked": { + "type": "boolean" + }, + "flagCountGt": { + "type": "number", + "format": "double" + }, + "userId": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "moderationGroupIds": { + "items": { + "type": "string" }, - "type": "object" + "type": "array" }, - { - "$ref": "#/components/schemas/GetPublicFeedPostsResponse" + "commentTextSearch": { + "items": { + "type": "string" + }, + "type": "array", + "description": "Text search terms. Each term is matched case-insensitively against the comment text.\nA term wrapped in quotes means exact phrase match." }, - { - "$ref": "#/components/schemas/UserPresenceData" + "exactCommentText": { + "type": "string", + "description": "Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly\n(case-sensitive, full-string), as opposed to the substring matching of commentTextSearch." } - ] + }, + "type": "object", + "additionalProperties": false }, - "ReactFeedPostResponse": { + "BuildModerationFilterResponse": { "properties": { "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "reactType": { "type": "string" }, - "isUndo": { - "type": "boolean" + "moderationFilter": { + "$ref": "#/components/schemas/ModerationFilter" } }, "required": [ "status", - "reactType", - "isUndo" + "moderationFilter" ], "type": "object", "additionalProperties": false }, - "ReactBodyParams": { + "BuildModerationFilterParams": { "properties": { - "reactType": { + "userId": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "filters": { + "type": "string" + }, + "searchFilters": { + "type": "string" + }, + "textSearch": { "type": "string" } }, + "required": [ + "userId", + "tenantId" + ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "UserReactsResponse": { + "ModerationAPICountCommentsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "reacts": { - "properties": {}, - "additionalProperties": { - "properties": {}, - "additionalProperties": { - "type": "boolean" - }, - "type": "object" - }, - "type": "object" + "count": { + "type": "number", + "format": "double" } }, "required": [ "status", - "reacts" + "count" ], "type": "object", "additionalProperties": false }, - "CreateFeedPostResponse": { + "ModerationAPIGetCommentIdsResponse": { "properties": { + "ids": { + "items": { + "type": "string" + }, + "type": "array" + }, + "hasMore": { + "type": "boolean" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "feedPost": { - "$ref": "#/components/schemas/FeedPost" } }, "required": [ - "status", - "feedPost" + "ids", + "hasMore", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateFeedPostParams": { + "UserId": { + "type": "string" + }, + "CommentUserBadgeInfo": { "properties": { - "title": { + "id": { "type": "string" }, - "contentHTML": { + "type": { + "type": "integer", + "format": "int32" + }, + "description": { "type": "string" }, - "media": { - "items": { - "$ref": "#/components/schemas/FeedPostMediaItem" - }, - "type": "array" + "displayLabel": { + "type": "string", + "nullable": true }, - "links": { - "items": { - "$ref": "#/components/schemas/FeedPostLink" - }, - "type": "array" + "displaySrc": { + "type": "string", + "nullable": true }, - "fromUserId": { - "type": "string" + "backgroundColor": { + "type": "string", + "nullable": true }, - "fromUserDisplayName": { - "type": "string" + "borderColor": { + "type": "string", + "nullable": true }, - "tags": { - "items": { - "type": "string" - }, - "type": "array" + "textColor": { + "type": "string", + "nullable": true }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "cssClass": { + "type": "string", + "nullable": true } }, + "required": [ + "id", + "type", + "description" + ], "type": "object", "additionalProperties": false }, - "UpdateFeedPostParams": { + "ModerationAPIComment": { "properties": { - "title": { - "type": "string" + "isLocalDeleted": { + "type": "boolean" }, - "contentHTML": { - "type": "string" + "replyCount": { + "type": "number", + "format": "double" }, - "media": { + "feedbackResults": { "items": { - "$ref": "#/components/schemas/FeedPostMediaItem" + "type": "string" }, "type": "array" }, - "links": { + "isVotedUp": { + "type": "boolean" + }, + "isVotedDown": { + "type": "boolean" + }, + "myVoteId": { + "type": "string" + }, + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "url": { + "type": "string" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "commenterName": { + "type": "string" + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "commentHTML": { + "type": "string" + }, + "parentId": { + "type": "string", + "nullable": true + }, + "date": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "localDateString": { + "type": "string", + "nullable": true + }, + "votes": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUp": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDown": { + "type": "number", + "format": "double", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "reviewed": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "permNotSpam": { + "type": "boolean" + }, + "hasLinks": { + "type": "boolean" + }, + "hasCode": { + "type": "boolean" + }, + "approved": { + "type": "boolean" + }, + "locale": { + "type": "string", + "nullable": true + }, + "isBannedUser": { + "type": "boolean" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, + "isPinned": { + "type": "boolean", + "nullable": true + }, + "isLocked": { + "type": "boolean", + "nullable": true + }, + "flagCount": { + "type": "number", + "format": "double", + "nullable": true + }, + "displayLabel": { + "type": "string", + "nullable": true + }, + "badges": { "items": { - "$ref": "#/components/schemas/FeedPostLink" + "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - "type": "array" + "type": "array", + "nullable": true }, - "tags": { + "verified": { + "type": "boolean" + }, + "feedbackIds": { "items": { "type": "string" }, "type": "array" }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "isDeleted": { + "type": "boolean" } }, + "required": [ + "_id", + "tenantId", + "urlId", + "url", + "commenterName", + "commentHTML", + "date", + "approved", + "locale", + "verified" + ], "type": "object", "additionalProperties": false }, - "FeedPostStats": { + "ModerationAPIGetCommentsResponse": { "properties": { - "reacts": { - "$ref": "#/components/schemas/Int32Map" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "commentCount": { - "type": "integer", - "format": "int32" + "translations": { + "additionalProperties": false, + "type": "object" + }, + "comments": { + "items": { + "$ref": "#/components/schemas/ModerationAPIComment" + }, + "type": "array" + }, + "moderationFilter": { + "$ref": "#/components/schemas/ModerationFilter" } }, + "required": [ + "status", + "translations", + "comments" + ], "type": "object", "additionalProperties": false }, - "FeedPostsStatsResponse": { + "ModerationExportResponse": { "properties": { "status": { - "$ref": "#/components/schemas/APIStatus" + "type": "string" }, - "stats": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/FeedPostStats" - }, - "type": "object" + "batchJobId": { + "type": "string" } }, "required": [ "status", - "stats" + "batchJobId" ], "type": "object", "additionalProperties": false }, - "EventLogEntry": { + "ModerationExportStatusResponse": { "properties": { - "_id": { + "status": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "tenantId": { + "jobStatus": { "type": "string" }, - "urlId": { - "type": "string" + "recordCount": { + "type": "integer", + "format": "int32" }, - "broadcastId": { + "downloadUrl": { + "type": "string" + } + }, + "required": [ + "status", + "jobStatus", + "recordCount" + ], + "type": "object", + "additionalProperties": false + }, + "ModerationUserSearchProjected": { + "properties": { + "_id": { "type": "string" }, - "data": { + "username": { "type": "string" + }, + "displayName": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true } }, "required": [ "_id", - "createdAt", - "tenantId", - "urlId", - "broadcastId", - "data" + "username" ], "type": "object", "additionalProperties": false }, - "GetEventLogResponse": { + "ModerationUserSearchResponse": { "properties": { - "events": { + "users": { "items": { - "$ref": "#/components/schemas/EventLogEntry" + "$ref": "#/components/schemas/ModerationUserSearchProjected" }, "type": "array" }, @@ -1586,124 +1821,183 @@ } }, "required": [ - "events", + "users", "status" ], "type": "object" }, - "LiveEventType": { - "enum": [ - "update-badges", - "notification", - "notification-update", - "p-u", - "new-vote", - "deleted-vote", - "new-comment", - "updated-comment", - "deleted-comment", - "cvc", - "new-config", - "thread-state-change", - "fr", - "dfr", - "new-feed-post", - "updated-feed-post", - "deleted-feed-post" - ], - "type": "string" - }, - "TenantId": { - "type": "string" - }, - "UserNotification": { + "ModerationPageSearchProjected": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "$ref": "#/components/schemas/TenantId" - }, - "userId": { - "type": "string", - "nullable": true - }, - "anonUserId": { - "type": "string", - "nullable": true - }, "urlId": { "type": "string" }, "url": { "type": "string" }, - "pageTitle": { - "type": "string", - "nullable": true - }, - "relatedObjectType": { - "$ref": "#/components/schemas/NotificationObjectType" - }, - "relatedObjectId": { + "title": { "type": "string" }, - "viewed": { - "type": "boolean" - }, - "isUnreadMessage": { - "type": "boolean" - }, - "sent": { - "type": "boolean" - }, - "createdAt": { - "type": "string", - "format": "date-time" + "commentCount": { + "type": "number", + "format": "double" + } + }, + "required": [ + "urlId", + "url", + "title", + "commentCount" + ], + "type": "object", + "additionalProperties": false + }, + "ModerationPageSearchResponse": { + "properties": { + "pages": { + "items": { + "$ref": "#/components/schemas/ModerationPageSearchProjected" + }, + "type": "array" }, - "type": { - "$ref": "#/components/schemas/NotificationType" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "pages", + "status" + ], + "type": "object" + }, + "ModerationSiteSearchProjected": { + "properties": { + "domain": { + "type": "string" }, - "fromCommentId": { + "logoSrc100px": { "type": "string", "nullable": true + } + }, + "required": [ + "domain" + ], + "type": "object", + "additionalProperties": false + }, + "ModerationSiteSearchResponse": { + "properties": { + "sites": { + "items": { + "$ref": "#/components/schemas/ModerationSiteSearchProjected" + }, + "type": "array" }, - "fromVoteId": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "sites", + "status" + ], + "type": "object" + }, + "ModerationCommentSearchResponse": { + "properties": { + "commentCount": { + "type": "integer", + "format": "int32" }, - "fromUserName": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "commentCount", + "status" + ], + "type": "object" + }, + "ModerationSuggestResponse": { + "properties": { + "status": { + "type": "string" }, - "fromUserId": { - "type": "string", - "nullable": true + "pages": { + "items": { + "$ref": "#/components/schemas/ModerationPageSearchProjected" + }, + "type": "array" }, - "fromUserAvatarSrc": { - "type": "string", - "nullable": true + "users": { + "items": { + "$ref": "#/components/schemas/ModerationUserSearchProjected" + }, + "type": "array" }, - "optedOut": { - "type": "boolean" + "code": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "PreBanSummary": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "usernames": { + "items": { + "type": "string" + }, + "type": "array" }, "count": { + "type": "number", + "format": "double" + } + }, + "required": [ + "status", + "usernames", + "count" + ], + "type": "object", + "additionalProperties": false + }, + "BulkPreBanSummary": { + "properties": { + "status": { + "type": "string" + }, + "totalRelatedCommentCount": { "type": "integer", - "format": "int64" + "format": "int32" }, - "relatedIds": { + "emailDomains": { "items": { "type": "string" }, "type": "array" }, - "fromUserIds": { + "emails": { "items": { "type": "string" }, "type": "array" }, - "fromUserNames": { + "userIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ipHashes": { "items": { "type": "string" }, @@ -1711,23 +2005,32 @@ } }, "required": [ - "_id", - "tenantId", - "urlId", - "url", - "relatedObjectType", - "relatedObjectId", - "viewed", - "isUnreadMessage", - "sent", - "createdAt", - "type", - "optedOut" + "status", + "totalRelatedCommentCount", + "emailDomains", + "emails", + "userIds", + "ipHashes" ], "type": "object", "additionalProperties": false }, - "PubSubVote": { + "BulkPreBanParams": { + "properties": { + "commentIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "commentIds" + ], + "type": "object", + "additionalProperties": false + }, + "APIBannedUser": { "properties": { "_id": { "type": "string" @@ -1735,52 +2038,61 @@ "tenantId": { "type": "string" }, - "urlId": { + "userId": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "nullable": true + }, + "username": { + "type": "string", + "nullable": true + }, + "ipHash": { + "type": "string", + "nullable": true + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "bannedByUserId": { "type": "string" }, - "urlIdRaw": { + "bannedCommentText": { "type": "string" }, - "commentId": { + "banType": { "type": "string" }, - "userId": { + "bannedUntil": { "type": "string", + "format": "date-time", "nullable": true }, - "direction": { - "type": "integer", - "format": "int32" + "hasEmailWildcard": { + "type": "boolean" }, - "createdAt": { - "type": "integer", - "format": "int64" - }, - "verificationId": { - "type": "string", - "nullable": true + "banReason": { + "type": "string" } }, "required": [ "_id", "tenantId", - "urlId", - "urlIdRaw", - "commentId", - "direction", "createdAt", - "verificationId" + "bannedByUserId", + "bannedCommentText", + "banType", + "bannedUntil", + "hasEmailWildcard" ], "type": "object", "additionalProperties": false }, - "UserId": { - "type": "string" - }, - "FDomain": { - "type": "string" - }, - "PubSubCommentBase": { + "APIBanUserChangedValues": { "properties": { "_id": { "type": "string" @@ -1789,1355 +2101,1647 @@ "type": "string" }, "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], - "nullable": true - }, - "urlId": { - "type": "string" - }, - "commenterName": { - "type": "string" - }, - "commenterLink": { "type": "string", "nullable": true }, - "commentHTML": { - "type": "string" - }, - "comment": { - "type": "string" - }, - "parentId": { + "email": { "type": "string", "nullable": true }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votesDown": { - "type": "integer", - "format": "int32", + "username": { + "type": "string", "nullable": true }, - "verified": { - "type": "boolean" - }, - "avatarSrc": { + "ipHash": { "type": "string", "nullable": true }, - "hasImages": { - "type": "boolean" - }, - "hasLinks": { - "type": "boolean" - }, - "isByAdmin": { - "type": "boolean" + "createdAt": { + "type": "string", + "format": "date-time" }, - "isByModerator": { - "type": "boolean" + "bannedByUserId": { + "type": "string" }, - "isPinned": { - "type": "boolean", - "nullable": true + "bannedCommentText": { + "type": "string" }, - "isLocked": { - "type": "boolean", - "nullable": true + "banType": { + "type": "string" }, - "displayLabel": { + "bannedUntil": { "type": "string", + "format": "date-time", "nullable": true }, - "rating": { - "type": "number", - "format": "double", - "nullable": true - }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", - "nullable": true - }, - "viewCount": { - "type": "integer", - "format": "int64", - "nullable": true - }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { + "hasEmailWildcard": { "type": "boolean" }, - "isSpam": { - "type": "boolean" + "banReason": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "APIBanUserChangeLog": { + "properties": { + "createdBannedUserId": { + "type": "string" }, - "anonUserId": { - "type": "string", - "nullable": true + "updatedBannedUserId": { + "type": "string" }, - "feedbackIds": { + "deletedBannedUsers": { "items": { - "type": "string" + "$ref": "#/components/schemas/APIBannedUser" }, "type": "array" }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true + "changedValuesBefore": { + "$ref": "#/components/schemas/APIBanUserChangedValues" + } + }, + "type": "object", + "additionalProperties": false + }, + "BanUserFromCommentResult": { + "properties": { + "status": { + "type": "string" }, - "domain": { - "allOf": [ + "changelog": { + "$ref": "#/components/schemas/APIBanUserChangeLog" + }, + "code": { + "type": "string" + }, + "reason": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "BannedUserMatchType": { + "type": "string", + "enum": [ + "userId", + "email", + "email-wildcard", + "IP" + ] + }, + "BannedUserMatch": { + "properties": { + "matchedOn": { + "$ref": "#/components/schemas/BannedUserMatchType" + }, + "matchedOnValue": { + "anyOf": [ { - "$ref": "#/components/schemas/FDomain" + "type": "string" + }, + { + "type": "number", + "format": "double" } ], "nullable": true - }, - "url": { + } + }, + "required": [ + "matchedOn", + "matchedOnValue" + ], + "type": "object", + "additionalProperties": false + }, + "APICommentCommonBannedUser": { + "properties": { + "_id": { "type": "string" }, - "pageTitle": { + "userId": { "type": "string", "nullable": true }, - "expireAt": { + "banType": { + "type": "string" + }, + "email": { "type": "string", - "format": "date-time", "nullable": true }, - "reviewed": { - "type": "boolean" - }, - "hasCode": { - "type": "boolean" - }, - "approved": { - "type": "boolean" + "ipHash": { + "type": "string", + "nullable": true }, - "locale": { + "bannedUntil": { "type": "string", + "format": "date-time", "nullable": true }, - "isBannedUser": { + "hasEmailWildcard": { "type": "boolean" }, - "groupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true + "banReason": { + "type": "string" } }, "required": [ "_id", - "tenantId", - "urlId", - "commenterName", - "commentHTML", - "comment", - "verified", - "url", - "approved", - "locale" + "banType", + "bannedUntil", + "hasEmailWildcard" ], "type": "object", "additionalProperties": false }, - "PubSubComment": { + "APIBannedUserWithMultiMatchInfo": { "allOf": [ - { - "$ref": "#/components/schemas/PubSubCommentBase" - }, { "properties": { - "isLive": { - "type": "boolean" - }, - "hidden": { - "type": "boolean" - }, - "date": { - "type": "string" + "matches": { + "items": { + "$ref": "#/components/schemas/BannedUserMatch" + }, + "type": "array" } }, "required": [ - "date" + "matches" ], "type": "object" + }, + { + "$ref": "#/components/schemas/APICommentCommonBannedUser" } ] }, - "Record_string._before-string-or-null--after-string-or-null__": { - "properties": {}, - "additionalProperties": { - "properties": { - "after": { - "type": "string" + "GetBannedUsersFromCommentResponse": { + "properties": { + "bannedUsers": { + "items": { + "$ref": "#/components/schemas/APIBannedUserWithMultiMatchInfo" }, - "before": { - "type": "string" - } + "type": "array" }, - "required": [ - "after", - "before" - ], - "type": "object" + "code": { + "type": "string", + "enum": [ + "not-found", + "not-logged-in" + ] + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } }, + "required": [ + "bannedUsers", + "status" + ], + "type": "object" + }, + "APIEmptyResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "BanUserUndoParams": { + "properties": { + "changelog": { + "$ref": "#/components/schemas/APIBanUserChangeLog" + } + }, + "required": [ + "changelog" + ], "type": "object", - "description": "Construct a type with a set of properties K of type T" + "additionalProperties": false }, - "CommentPositions": { - "$ref": "#/components/schemas/Record_string._before-string-or-null--after-string-or-null__" + "DeleteCommentAction": { + "type": "string", + "enum": [ + "already-deleted", + "hard-removed", + "anonymized" + ] }, - "LiveEvent": { + "DeleteCommentResult": { "properties": { - "type": { - "$ref": "#/components/schemas/LiveEventType" - }, - "timestamp": { - "type": "integer", - "format": "int64" - }, - "ts": { - "type": "integer", - "format": "int64" + "action": { + "$ref": "#/components/schemas/DeleteCommentAction" }, - "broadcastId": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "action", + "status" + ], + "type": "object" + }, + "RemoveCommentActionResponse": { + "properties": { + "status": { "type": "string" }, - "userId": { + "action": { "type": "string" + } + }, + "required": [ + "status", + "action" + ], + "type": "object", + "additionalProperties": false + }, + "SetCommentApprovedResponse": { + "properties": { + "didResetFlaggedCount": { + "type": "boolean" }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array" - }, - "notification": { - "$ref": "#/components/schemas/UserNotification" - }, - "vote": { - "$ref": "#/components/schemas/PubSubVote" - }, - "comment": { - "$ref": "#/components/schemas/PubSubComment" - }, - "feedPost": { - "$ref": "#/components/schemas/FeedPost" - }, - "extraInfo": { - "properties": { - "commentPositions": { - "$ref": "#/components/schemas/CommentPositions" - } - }, - "type": "object" - }, - "config": { - "additionalProperties": false, - "type": "object" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "ModerationAPICommentLog": { + "properties": { + "date": { + "type": "string", + "format": "date-time" }, - "isClosed": { - "type": "boolean" + "username": { + "type": "string" }, - "uj": { - "items": { - "type": "string" - }, - "type": "array" + "actionName": { + "type": "string" }, - "ul": { + "messageHTML": { + "type": "string" + } + }, + "required": [ + "date", + "actionName", + "messageHTML" + ], + "type": "object", + "additionalProperties": false + }, + "ModerationAPIGetLogsResponse": { + "properties": { + "logs": { "items": { - "type": "string" + "$ref": "#/components/schemas/ModerationAPICommentLog" }, "type": "array" }, - "changes": { - "$ref": "#/components/schemas/Int32Map" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "type" + "logs", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "PublicAPIGetCommentTextResponse": { + "ModerationAPICommentResponse": { "properties": { + "comment": { + "$ref": "#/components/schemas/ModerationAPIComment" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "commentText": { - "type": "string" - }, - "sanitizedCommentText": { - "type": "string" } }, "required": [ - "status", - "commentText", - "sanitizedCommentText" + "comment", + "status" ], "type": "object" }, - "SetCommentTextResult": { + "ModerationAPIChildCommentsResponse": { "properties": { - "approved": { - "type": "boolean" + "comments": { + "items": { + "$ref": "#/components/schemas/ModerationAPIComment" + }, + "type": "array" }, - "commentHTML": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "approved", - "commentHTML" + "comments", + "status" + ], + "type": "object" + }, + "CommentsByIdsParams": { + "properties": { + "ids": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "ids" ], "type": "object", "additionalProperties": false }, - "PublicAPISetCommentTextResponse": { + "GetCommentTextResponse": { "properties": { "comment": { - "$ref": "#/components/schemas/SetCommentTextResult" + "type": "string", + "nullable": true }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "comment", "status" ], "type": "object" }, - "CommentUserMentionInfo": { + "SetCommentTextResponse": { "properties": { - "id": { + "newCommentTextHTML": { "type": "string" }, - "tag": { - "type": "string" - }, - "rawTag": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "newCommentTextHTML", + "status" + ], + "type": "object" + }, + "SetCommentTextParams": { + "properties": { + "comment": { "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "user", - "sso" - ] - }, - "sent": { - "type": "boolean" } }, "required": [ - "id", - "tag" + "comment" ], "type": "object", "additionalProperties": false }, - "CommentUserHashTagInfo": { + "AdjustVotesResponse": { "properties": { - "id": { - "type": "string" - }, - "tag": { + "status": { "type": "string" }, - "url": { - "type": "string", - "nullable": true - }, - "retain": { - "type": "boolean" + "newCommentVotes": { + "type": "integer", + "format": "int32" } }, "required": [ - "id", - "tag", - "url" + "status", + "newCommentVotes" ], "type": "object", "additionalProperties": false }, - "CommentTextUpdateRequest": { + "AdjustCommentVotesParams": { "properties": { - "comment": { - "type": "string" - }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" - }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" + "adjustVoteAmount": { + "type": "number", + "format": "double" } }, "required": [ - "comment" + "adjustVoteAmount" ], "type": "object", "additionalProperties": false }, - "PublicComment": { - "allOf": [ - { - "properties": { - "isUnread": { - "type": "boolean" - }, - "myVoteId": { - "type": "string" - }, - "isVotedDown": { - "type": "boolean" - }, - "isVotedUp": { - "type": "boolean" - }, - "hasChildren": { - "type": "boolean", - "description": "This is always set when asTree=true" - }, - "nestedChildrenCount": { - "type": "integer", - "format": "int32", - "description": "The total nested child count included in this response (may be more available w/ pagination) Only set with asTree=true, otherwise this will be null." - }, - "childCount": { - "type": "integer", - "format": "int32", - "description": "You must ask the API to count children (with asTree=true&countChildren=true), otherwise this will be null. This will be the complete direct child count, whereas children may only contain a subset based on pagination." - }, - "children": { - "items": { - "$ref": "#/components/schemas/PublicComment" - }, - "type": "array" - }, - "isFlagged": { - "type": "boolean" + "VoteResponseUser": { + "properties": { + "sessionId": { + "type": "string", + "nullable": true + } + }, + "type": "object", + "additionalProperties": false + }, + "VoteResponse": { + "properties": { + "status": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIStatus" }, - "isBlocked": { - "type": "boolean" + { + "type": "string", + "enum": [ + "pending-verification" + ] } - }, - "type": "object" + ] }, - { - "$ref": "#/components/schemas/PublicCommentBase" + "voteId": { + "type": "string" + }, + "isVerified": { + "type": "boolean" + }, + "user": { + "$ref": "#/components/schemas/VoteResponseUser" + }, + "editKey": { + "type": "string" } - ] + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false }, - "PublicCommentBase": { + "VoteDeleteResponse": { "properties": { - "_id": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "wasPendingVote": { + "type": "boolean" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "GetCommentBanStatusResponse": { + "properties": { + "status": { "type": "string" }, - "userId": { + "emailDomain": { + "type": "string", + "nullable": true + }, + "canIPBan": { + "type": "boolean", + "nullable": true + } + }, + "required": [ + "status", + "emailDomain", + "canIPBan" + ], + "type": "object", + "additionalProperties": false + }, + "APIModerateUserBanPreferences": { + "properties": { + "shouldBanEmail": { + "type": "boolean" + }, + "shouldBanByIP": { + "type": "boolean" + }, + "lastBanType": { + "type": "string" + }, + "lastBanDuration": { + "type": "string" + } + }, + "required": [ + "shouldBanEmail", + "shouldBanByIP", + "lastBanType", + "lastBanDuration" + ], + "type": "object", + "additionalProperties": false + }, + "APIModerateGetUserBanPreferencesResponse": { + "properties": { + "preferences": { "allOf": [ { - "$ref": "#/components/schemas/UserId" + "$ref": "#/components/schemas/APIModerateUserBanPreferences" } ], "nullable": true }, - "commenterName": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "preferences", + "status" + ], + "type": "object" + }, + "TenantBadge": { + "properties": { + "_id": { "type": "string" }, - "commenterLink": { - "type": "string", - "nullable": true - }, - "commentHTML": { + "tenantId": { "type": "string" }, - "parentId": { - "type": "string", - "nullable": true + "createdByUserId": { + "type": "string" }, - "date": { + "createdAt": { "type": "string", - "format": "date-time", - "nullable": true + "format": "date-time" }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true + "enabled": { + "type": "boolean" }, - "votesUp": { - "type": "integer", - "format": "int32", + "urlId": { + "type": "string", "nullable": true }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "type": { + "type": "number", + "format": "double" }, - "verified": { - "type": "boolean" + "threshold": { + "type": "number", + "format": "double" }, - "avatarSrc": { - "type": "string", - "nullable": true + "uses": { + "type": "number", + "format": "double" }, - "hasImages": { - "type": "boolean" + "name": { + "type": "string" }, - "isByAdmin": { - "type": "boolean" + "description": { + "type": "string" }, - "isByModerator": { - "type": "boolean" + "displayLabel": { + "type": "string" }, - "isPinned": { - "type": "boolean", + "displaySrc": { + "type": "string", "nullable": true }, - "isLocked": { - "type": "boolean", + "backgroundColor": { + "type": "string", "nullable": true }, - "displayLabel": { + "borderColor": { "type": "string", "nullable": true }, - "rating": { - "type": "number", - "format": "double", + "textColor": { + "type": "string", "nullable": true }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", + "cssClass": { + "type": "string", "nullable": true }, - "viewCount": { - "type": "integer", - "format": "int64", + "veteranUserThresholdMillis": { + "type": "number", + "format": "double", "nullable": true }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { + "isAwaitingReprocess": { "type": "boolean" }, - "isSpam": { + "isAwaitingDeletion": { "type": "boolean" }, - "anonUserId": { + "replacesBadgeId": { "type": "string", "nullable": true - }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "requiresVerification": { - "type": "boolean" - }, - "editKey": { - "type": "string" - }, - "approved": { - "type": "boolean" } }, "required": [ "_id", - "commenterName", - "commentHTML", - "date", - "verified" - ], - "type": "object", - "additionalProperties": false - }, - "Record_string.any_": { - "properties": {}, - "additionalProperties": {}, + "tenantId", + "createdByUserId", + "createdAt", + "enabled", + "type", + "threshold", + "uses", + "name", + "description", + "displayLabel", + "displaySrc", + "backgroundColor", + "borderColor", + "textColor", + "isAwaitingReprocess", + "isAwaitingDeletion" + ], "type": "object", - "description": "Construct a type with a set of properties K of type T" + "additionalProperties": false }, - "GetCommentsResponse_PublicComment_": { + "GetTenantManualBadgesResponse": { "properties": { - "statusCode": { - "type": "integer", - "format": "int32" + "badges": { + "items": { + "$ref": "#/components/schemas/TenantBadge" + }, + "type": "array" }, "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "badges", + "status" + ], + "type": "object" + }, + "UserBadge": { + "properties": { + "_id": { "type": "string" }, - "code": { + "userId": { "type": "string" }, - "reason": { + "badgeId": { "type": "string" }, - "translatedWarning": { + "fromTenantId": { "type": "string" }, - "comments": { - "items": { - "$ref": "#/components/schemas/PublicComment" - }, - "type": "array" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/UserSessionInfo" - } - ], - "nullable": true - }, - "urlIdClean": { - "type": "string" + "createdAt": { + "type": "string", + "format": "date-time" }, - "lastGenDate": { + "type": { "type": "integer", - "format": "int64", - "nullable": true - }, - "includesPastPages": { - "type": "boolean" - }, - "isDemo": { - "type": "boolean", - "enum": [ - true - ], - "nullable": false + "format": "int32" }, - "commentCount": { + "threshold": { "type": "integer", - "format": "int32" + "format": "int64" }, - "isSiteAdmin": { - "type": "boolean" + "description": { + "type": "string" }, - "hasBillingIssue": { - "type": "boolean", - "enum": [ - true - ], - "nullable": false + "displayLabel": { + "type": "string" }, - "moduleData": { - "$ref": "#/components/schemas/Record_string.any_" + "displaySrc": { + "type": "string", + "nullable": true }, - "pageNumber": { - "type": "integer", - "format": "int32" + "backgroundColor": { + "type": "string", + "nullable": true }, - "isWhiteLabeled": { - "type": "boolean" + "borderColor": { + "type": "string", + "nullable": true }, - "isProd": { - "type": "boolean", - "enum": [ - false - ], - "nullable": false + "textColor": { + "type": "string", + "nullable": true }, - "isCrawler": { - "type": "boolean", - "enum": [ - true - ], - "nullable": false + "cssClass": { + "type": "string", + "nullable": true }, - "notificationCount": { + "veteranUserThresholdMillis": { "type": "integer", - "format": "int32" + "format": "int64" }, - "hasMore": { + "displayedOnComments": { "type": "boolean" }, - "isClosed": { - "type": "boolean" + "receivedAt": { + "type": "string", + "format": "date-time" }, - "presencePollState": { + "order": { "type": "integer", "format": "int32" }, - "customConfig": { - "$ref": "#/components/schemas/CustomConfigParameters" + "urlId": { + "type": "string", + "nullable": true } }, "required": [ - "status", - "comments", - "user", - "pageNumber" + "_id", + "userId", + "badgeId", + "fromTenantId", + "createdAt", + "type", + "threshold", + "description", + "displayLabel", + "veteranUserThresholdMillis", + "displayedOnComments", + "receivedAt" ], "type": "object", "additionalProperties": false }, - "GetCommentsResponseWithPresence_PublicComment_": { - "allOf": [ - { - "$ref": "#/components/schemas/GetCommentsResponse_PublicComment_" - }, - { - "$ref": "#/components/schemas/UserPresenceData" - } - ] - }, - "SaveCommentResponseOptimized": { + "GetUserManualBadgesResponse": { "properties": { + "badges": { + "items": { + "$ref": "#/components/schemas/UserBadge" + }, + "type": "array" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "comment": { - "$ref": "#/components/schemas/PublicComment" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/UserSessionInfo" - } - ], - "nullable": true - }, - "moduleData": { - "$ref": "#/components/schemas/Record_string.any_" } }, "required": [ - "status", - "comment", - "user" + "badges", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "SaveCommentsResponseWithPresence": { - "allOf": [ - { - "$ref": "#/components/schemas/SaveCommentResponseOptimized" + "AwardUserBadgeResponse": { + "properties": { + "notes": { + "items": { + "type": "string" + }, + "type": "array" }, - { - "properties": { - "userIdWS": { - "$ref": "#/components/schemas/UserIdWS" - } + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - "type": "object" + "type": "array" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" } - ] + }, + "required": [ + "status" + ], + "type": "object" }, - "Record_string.string-or-number_": { - "properties": {}, - "additionalProperties": { - "anyOf": [ - { - "type": "string" + "RemoveUserBadgeResponse": { + "properties": { + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - { - "type": "number", - "format": "double" - } - ] + "type": "array" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" + "required": [ + "status" + ], + "type": "object" }, - "CommentData": { + "GetUserTrustFactorResponse": { "properties": { - "date": { - "type": "integer", - "format": "int64" - }, - "localDateString": { - "type": "string" - }, - "localDateHours": { - "type": "integer", - "format": "int32" - }, - "commenterName": { - "type": "string" - }, - "commenterEmail": { - "type": "string", - "nullable": true - }, - "commenterLink": { - "type": "string", - "nullable": true - }, - "comment": { - "type": "string" - }, - "productId": { - "type": "integer", - "format": "int32" - }, - "userId": { - "type": "string", - "nullable": true - }, - "avatarSrc": { - "type": "string", - "nullable": true - }, - "parentId": { - "type": "string", - "nullable": true - }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" - }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" - }, - "pageTitle": { - "type": "string" - }, - "isFromMyAccountPage": { - "type": "boolean" - }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" - }, - "meta": { - "additionalProperties": false, - "type": "object" - }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "rating": { + "manualTrustFactor": { "type": "number", "format": "double" }, - "fromOfflineRestore": { - "type": "boolean" + "autoTrustFactor": { + "type": "number", + "format": "double" }, - "autoplayDelayMS": { - "type": "integer", - "format": "int64" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "SetUserTrustFactorResponse": { + "properties": { + "previousManualTrustFactor": { + "type": "number", + "format": "double" }, - "feedbackIds": { - "items": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "GetUserInternalProfileResponse": { + "properties": { + "profile": { + "properties": { + "commenterName": { + "type": "string" + }, + "firstCommentDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "ipHash": { + "type": "string" + }, + "countryFlag": { + "type": "string" + }, + "countryCode": { + "type": "string" + }, + "websiteUrl": { + "type": "string", + "nullable": true + }, + "bio": { + "type": "string" + }, + "karma": { + "type": "number", + "format": "double" + }, + "locale": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "displayName": { + "type": "string" + }, + "username": { + "type": "string" + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "nullable": true + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "userId": { + "type": "string", + "nullable": true + } }, - "type": "array" - }, - "questionValues": { - "$ref": "#/components/schemas/Record_string.string-or-number_" + "type": "object" }, - "tos": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commenterName", - "comment", - "url", - "urlId" + "profile", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "DeletedCommentResultComment": { + "GetBannedUsersCountResponse": { "properties": { - "isDeleted": { - "type": "boolean" - }, - "commentHTML": { - "type": "string" + "totalCount": { + "type": "number", + "format": "double" }, - "commenterName": { + "status": { "type": "string" - }, - "userId": { - "type": "string", - "nullable": true } }, "required": [ - "commentHTML", - "commenterName" + "totalCount", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "PublicAPIDeleteCommentResponse": { + "GifSearchResponse": { "properties": { - "comment": { - "$ref": "#/components/schemas/DeletedCommentResultComment" - }, - "hardRemoved": { - "type": "boolean" + "images": { + "items": { + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + } + ] + }, + "type": "array" + }, + "type": "array" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "hardRemoved", + "images", "status" ], "type": "object" }, - "CheckBlockedCommentsResponse": { + "GifSearchInternalError": { "properties": { - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "code": { + "type": "string" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commentStatuses", + "code", "status" ], "type": "object" }, - "VoteResponseUser": { + "GifGetLargeResponse": { "properties": { - "sessionId": { - "type": "string", - "nullable": true + "src": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" } }, - "type": "object", - "additionalProperties": false + "required": [ + "src", + "status" + ], + "type": "object" }, - "VoteResponse": { + "FeedPostMediaItemAsset": { "properties": { - "status": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIStatus" - }, - { - "type": "string", - "enum": [ - "pending-verification" - ] - } - ] - }, - "voteId": { - "type": "string" - }, - "isVerified": { - "type": "boolean" + "w": { + "type": "integer", + "format": "int32" }, - "user": { - "$ref": "#/components/schemas/VoteResponseUser" + "h": { + "type": "integer", + "format": "int32" }, - "editKey": { + "src": { "type": "string" } }, "required": [ - "status" + "w", + "h", + "src" ], "type": "object", "additionalProperties": false }, - "VoteBodyParams": { + "FeedPostMediaItem": { "properties": { - "commenterEmail": { + "title": { + "type": "string" + }, + "linkUrl": { + "type": "string" + }, + "sizes": { + "items": { + "$ref": "#/components/schemas/FeedPostMediaItemAsset" + }, + "type": "array" + } + }, + "required": [ + "sizes" + ], + "type": "object", + "additionalProperties": false + }, + "FeedPostLink": { + "properties": { + "text": { + "type": "string" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "Int32Map": { + "properties": {}, + "additionalProperties": { + "type": "integer", + "format": "int32" + }, + "type": "object" + }, + "FeedPost": { + "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "title": { + "type": "string" + }, + "fromUserId": { + "type": "string" + }, + "fromUserDisplayName": { "type": "string", "nullable": true }, - "commenterName": { + "fromUserAvatar": { "type": "string", "nullable": true }, - "voteDir": { - "type": "string", - "enum": [ - "up", - "down" - ] + "fromIpHash": { + "type": "string" }, - "url": { + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "weight": { + "type": "number", + "format": "double" + }, + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "contentHTML": { + "type": "string" + }, + "media": { + "items": { + "$ref": "#/components/schemas/FeedPostMediaItem" + }, + "type": "array" + }, + "links": { + "items": { + "$ref": "#/components/schemas/FeedPostLink" + }, + "type": "array" + }, + "createdAt": { "type": "string", + "format": "date-time" + }, + "reacts": { + "$ref": "#/components/schemas/Int32Map" + }, + "commentCount": { + "type": "integer", + "format": "int32", "nullable": true } }, "required": [ - "commenterEmail", - "commenterName", - "voteDir", - "url" + "_id", + "tenantId", + "createdAt" ], "type": "object", "additionalProperties": false }, - "VoteDeleteResponse": { + "UserSessionInfo": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "id": { + "type": "string" }, - "wasPendingVote": { + "authorized": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array" + }, + "displayLabel": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "email": { + "type": "string", + "nullable": true + }, + "groupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "hasBlockedUsers": { + "type": "boolean" + }, + "isAnonSession": { + "type": "boolean" + }, + "needsTOS": { "type": "boolean" + }, + "sessionId": { + "type": "string", + "nullable": true + }, + "username": { + "type": "string" + }, + "websiteUrl": { + "type": "string" } }, - "required": [ - "status" - ], "type": "object", "additionalProperties": false }, - "GetCommentVoteUserNamesSuccessResponse": { + "GetPublicFeedPostsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "voteUserNames": { + "feedPosts": { "items": { - "type": "string" + "$ref": "#/components/schemas/FeedPost" }, "type": "array" }, - "hasMore": { - "type": "boolean" + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true } }, "required": [ "status", - "voteUserNames", - "hasMore" + "feedPosts" ], "type": "object", "additionalProperties": false }, - "ChangeCommentPinStatusResponse": { + "TenantIdWS": { + "type": "string" + }, + "UserIdWS": { + "type": "string" + }, + "UrlIdWS": { + "type": "string" + }, + "UserPresenceData": { "properties": { - "commentPositions": { - "$ref": "#/components/schemas/CommentPositions" + "urlIdWS": { + "$ref": "#/components/schemas/UrlIdWS" }, - "status": { - "$ref": "#/components/schemas/APIStatus" + "userIdWS": { + "$ref": "#/components/schemas/UserIdWS" + }, + "tenantIdWS": { + "$ref": "#/components/schemas/TenantIdWS" } }, - "required": [ - "commentPositions", - "status" - ], "type": "object" }, - "BlockSuccess": { + "PublicFeedPostsResponse": { + "allOf": [ + { + "properties": { + "myReacts": { + "properties": {}, + "additionalProperties": { + "properties": {}, + "additionalProperties": { + "type": "boolean" + }, + "type": "object" + }, + "type": "object" + } + }, + "type": "object" + }, + { + "$ref": "#/components/schemas/GetPublicFeedPostsResponse" + }, + { + "$ref": "#/components/schemas/UserPresenceData" + } + ] + }, + "ReactFeedPostResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "reactType": { + "type": "string" + }, + "isUndo": { + "type": "boolean" } }, "required": [ "status", - "commentStatuses" + "reactType", + "isUndo" ], "type": "object", "additionalProperties": false }, - "PublicBlockFromCommentParams": { + "ReactBodyParams": { "properties": { - "commentIds": { - "items": { - "type": "string" + "reactType": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "UserReactsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "reacts": { + "properties": {}, + "additionalProperties": { + "properties": {}, + "additionalProperties": { + "type": "boolean" + }, + "type": "object" }, - "type": "array", - "nullable": true, - "description": "A list of comment ids to check if are blocked after performing the update." + "type": "object" } }, "required": [ - "commentIds" + "status", + "reacts" ], "type": "object", "additionalProperties": false }, - "UnblockSuccess": { + "CreateFeedPostResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "feedPost": { + "$ref": "#/components/schemas/FeedPost" } }, "required": [ "status", - "commentStatuses" + "feedPost" ], "type": "object", "additionalProperties": false }, - "APIUserSubscription": { + "CreateFeedPostParams": { "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "pageTitle": { + "title": { "type": "string" }, - "url": { + "contentHTML": { "type": "string" }, - "urlId": { - "type": "string" + "media": { + "items": { + "$ref": "#/components/schemas/FeedPostMediaItem" + }, + "type": "array" }, - "anonUserId": { - "type": "string" + "links": { + "items": { + "$ref": "#/components/schemas/FeedPostLink" + }, + "type": "array" }, - "userId": { + "fromUserId": { "type": "string" }, - "id": { + "fromUserDisplayName": { "type": "string" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "meta": { + "$ref": "#/components/schemas/Record_string.string_" } }, - "required": [ - "createdAt", - "urlId", - "id" - ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "GetSubscriptionsAPIResponse": { + "UpdateFeedPostParams": { "properties": { - "reason": { + "title": { "type": "string" }, - "code": { + "contentHTML": { "type": "string" }, - "subscriptions": { + "media": { "items": { - "$ref": "#/components/schemas/APIUserSubscription" + "$ref": "#/components/schemas/FeedPostMediaItem" }, "type": "array" }, - "status": { - "type": "string" + "links": { + "items": { + "$ref": "#/components/schemas/FeedPostLink" + }, + "type": "array" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "meta": { + "$ref": "#/components/schemas/Record_string.string_" } }, - "required": [ - "status" - ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "CreateSubscriptionAPIResponse": { + "FeedPostStats": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "subscription": { - "$ref": "#/components/schemas/APIUserSubscription" + "reacts": { + "$ref": "#/components/schemas/Int32Map" }, + "commentCount": { + "type": "integer", + "format": "int32" + } + }, + "type": "object", + "additionalProperties": false + }, + "FeedPostsStatsResponse": { + "properties": { "status": { - "type": "string" + "$ref": "#/components/schemas/APIStatus" + }, + "stats": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/FeedPostStats" + }, + "type": "object" } }, "required": [ - "status" + "status", + "stats" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "CreateAPIUserSubscriptionData": { + "EventLogEntry": { "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - }, - "pageTitle": { + "_id": { "type": "string" }, - "url": { + "createdAt": { + "type": "string", + "format": "date-time" + }, + "tenantId": { "type": "string" }, "urlId": { "type": "string" }, - "anonUserId": { + "broadcastId": { "type": "string" }, - "userId": { + "data": { "type": "string" } }, "required": [ - "urlId" + "_id", + "createdAt", + "tenantId", + "urlId", + "broadcastId", + "data" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "UpdateSubscriptionAPIResponse": { + "GetEventLogResponse": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "subscription": { - "$ref": "#/components/schemas/APIUserSubscription" + "events": { + "items": { + "$ref": "#/components/schemas/EventLogEntry" + }, + "type": "array" }, "status": { - "type": "string" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "events", "status" ], "type": "object" }, - "UpdateAPIUserSubscriptionData": { - "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - } - }, - "type": "object" + "LiveEventType": { + "enum": [ + "update-badges", + "notification", + "notification-update", + "p-u", + "new-vote", + "deleted-vote", + "new-comment", + "updated-comment", + "deleted-comment", + "cvc", + "new-config", + "thread-state-change", + "fr", + "dfr", + "new-feed-post", + "updated-feed-post", + "deleted-feed-post", + "new-ticket", + "updated-ticket-state", + "updated-ticket-assignment", + "deleted-ticket", + "page-react", + "question-result" + ], + "type": "string" }, - "DeleteSubscriptionAPIResponse": { + "TenantId": { + "type": "string" + }, + "UserNotification": { "properties": { - "reason": { + "_id": { "type": "string" }, - "code": { + "tenantId": { + "$ref": "#/components/schemas/TenantId" + }, + "userId": { + "type": "string", + "nullable": true + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "urlId": { "type": "string" }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "APISSOUser": { - "properties": { - "id": { - "type": "string" - }, - "username": { + "url": { "type": "string" }, - "websiteUrl": { - "type": "string" - }, - "email": { - "type": "string" + "pageTitle": { + "type": "string", + "nullable": true }, - "signUpDate": { - "type": "integer", - "format": "int64" + "relatedObjectType": { + "$ref": "#/components/schemas/NotificationObjectType" }, - "createdFromUrlId": { + "relatedObjectId": { "type": "string" }, - "loginCount": { - "type": "integer", - "format": "int32" - }, - "avatarSrc": { - "type": "string" + "viewed": { + "type": "boolean" }, - "optedInNotifications": { + "isUnreadMessage": { "type": "boolean" }, - "optedInSubscriptionNotifications": { + "sent": { "type": "boolean" }, - "displayLabel": { - "type": "string" + "createdAt": { + "type": "string", + "format": "date-time" }, - "displayName": { - "type": "string" + "type": { + "$ref": "#/components/schemas/NotificationType" }, - "isAccountOwner": { - "type": "boolean" + "fromCommentId": { + "type": "string", + "nullable": true }, - "isAdminAdmin": { - "type": "boolean" + "fromVoteId": { + "type": "string", + "nullable": true }, - "isCommentModeratorAdmin": { - "type": "boolean" + "fromUserName": { + "type": "string", + "nullable": true }, - "isProfileActivityPrivate": { - "type": "boolean" + "fromUserId": { + "type": "string", + "nullable": true }, - "isProfileCommentsPrivate": { - "type": "boolean" + "fromUserAvatarSrc": { + "type": "string", + "nullable": true }, - "isProfileDMDisabled": { + "optedOut": { "type": "boolean" }, - "hasBlockedUsers": { - "type": "boolean" + "count": { + "type": "integer", + "format": "int64" }, - "groupIds": { + "relatedIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "fromUserIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "fromUserNames": { "items": { "type": "string" }, @@ -3145,1908 +3749,2087 @@ } }, "required": [ - "id", - "username", - "websiteUrl", - "email", - "signUpDate", - "createdFromUrlId", - "loginCount", - "avatarSrc", - "optedInNotifications", - "optedInSubscriptionNotifications", - "displayLabel", - "displayName" + "_id", + "tenantId", + "urlId", + "url", + "relatedObjectType", + "relatedObjectId", + "viewed", + "isUnreadMessage", + "sent", + "createdAt", + "type", + "optedOut" ], "type": "object", "additionalProperties": false }, - "GetSSOUserByIdAPIResponse": { + "PubSubVote": { "properties": { - "reason": { + "_id": { "type": "string" }, - "code": { + "tenantId": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" - }, - "status": { + "urlId": { "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "GetSSOUserByEmailAPIResponse": { - "properties": { - "reason": { + }, + "urlIdRaw": { "type": "string" }, - "code": { + "commentId": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" + "userId": { + "type": "string", + "nullable": true }, - "status": { - "type": "string" + "direction": { + "type": "integer", + "format": "int32" + }, + "createdAt": { + "type": "integer", + "format": "int64" + }, + "verificationId": { + "type": "string", + "nullable": true } }, "required": [ - "status" + "_id", + "tenantId", + "urlId", + "urlIdRaw", + "commentId", + "direction", + "createdAt", + "verificationId" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "DeleteSSOUserAPIResponse": { + "FDomain": { + "type": "string" + }, + "PubSubCommentBase": { "properties": { - "reason": { + "_id": { "type": "string" }, - "code": { + "tenantId": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "PatchSSOUserAPIResponse": { - "properties": { - "reason": { + "urlId": { "type": "string" }, - "code": { + "commenterName": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" + "commenterLink": { + "type": "string", + "nullable": true }, - "status": { + "commentHTML": { "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "UpdateAPISSOUserData": { - "properties": { - "groupIds": { - "items": { - "type": "string" - }, - "type": "array" }, - "hasBlockedUsers": { - "type": "boolean" + "comment": { + "type": "string" }, - "isProfileDMDisabled": { - "type": "boolean" + "parentId": { + "type": "string", + "nullable": true }, - "isProfileCommentsPrivate": { - "type": "boolean" + "votes": { + "type": "integer", + "format": "int32", + "nullable": true }, - "isProfileActivityPrivate": { - "type": "boolean" + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true }, - "isCommentModeratorAdmin": { - "type": "boolean" + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true }, - "isAdminAdmin": { + "verified": { "type": "boolean" }, - "isAccountOwner": { - "type": "boolean" + "avatarSrc": { + "type": "string", + "nullable": true }, - "displayName": { - "type": "string" + "hasImages": { + "type": "boolean" }, - "displayLabel": { - "type": "string" + "hasLinks": { + "type": "boolean" }, - "optedInSubscriptionNotifications": { + "isByAdmin": { "type": "boolean" }, - "optedInNotifications": { + "isByModerator": { "type": "boolean" }, - "avatarSrc": { - "type": "string" + "isPinned": { + "type": "boolean", + "nullable": true }, - "loginCount": { - "type": "integer", - "format": "int32" + "isLocked": { + "type": "boolean", + "nullable": true }, - "createdFromUrlId": { - "type": "string" + "displayLabel": { + "type": "string", + "nullable": true }, - "signUpDate": { + "rating": { + "type": "number", + "format": "double", + "nullable": true + }, + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true + }, + "viewCount": { "type": "integer", - "format": "int64" + "format": "int64", + "nullable": true }, - "email": { - "type": "string" + "isDeleted": { + "type": "boolean" }, - "websiteUrl": { - "type": "string" + "isDeletedUser": { + "type": "boolean" }, - "username": { - "type": "string" + "isSpam": { + "type": "boolean" }, - "id": { - "type": "string" - } - }, - "type": "object" - }, - "PutSSOUserAPIResponse": { - "properties": { - "reason": { - "type": "string" + "anonUserId": { + "type": "string", + "nullable": true }, - "code": { - "type": "string" + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "user": { + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "domain": { "allOf": [ { - "$ref": "#/components/schemas/APISSOUser" + "$ref": "#/components/schemas/FDomain" } ], "nullable": true }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "AddSSOUserAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/APISSOUser" - }, - "status": { + "url": { "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "CreateAPISSOUserData": { - "properties": { - "groupIds": { - "items": { - "type": "string" - }, - "type": "array" }, - "hasBlockedUsers": { - "type": "boolean" + "pageTitle": { + "type": "string", + "nullable": true }, - "isProfileDMDisabled": { - "type": "boolean" + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true }, - "isProfileCommentsPrivate": { + "reviewed": { "type": "boolean" }, - "isProfileActivityPrivate": { + "hasCode": { "type": "boolean" }, - "isCommentModeratorAdmin": { + "approved": { "type": "boolean" }, - "isAdminAdmin": { - "type": "boolean" + "locale": { + "type": "string", + "nullable": true }, - "isAccountOwner": { + "isBannedUser": { "type": "boolean" }, - "displayName": { - "type": "string" - }, - "displayLabel": { - "type": "string" - }, - "optedInSubscriptionNotifications": { - "type": "boolean" + "groupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + } + }, + "required": [ + "_id", + "tenantId", + "urlId", + "commenterName", + "commentHTML", + "comment", + "verified", + "url", + "approved", + "locale" + ], + "type": "object", + "additionalProperties": false + }, + "PubSubComment": { + "allOf": [ + { + "$ref": "#/components/schemas/PubSubCommentBase" }, - "optedInNotifications": { - "type": "boolean" + { + "properties": { + "isLive": { + "type": "boolean" + }, + "hidden": { + "type": "boolean" + }, + "date": { + "type": "string" + } + }, + "required": [ + "date" + ], + "type": "object" + } + ] + }, + "Record_string._before-string-or-null--after-string-or-null__": { + "properties": {}, + "additionalProperties": { + "properties": { + "after": { + "type": "string", + "nullable": true + }, + "before": { + "type": "string", + "nullable": true + } }, - "avatarSrc": { - "type": "string" + "required": [ + "after", + "before" + ], + "type": "object" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "CommentPositions": { + "$ref": "#/components/schemas/Record_string._before-string-or-null--after-string-or-null__" + }, + "LiveEvent": { + "properties": { + "type": { + "$ref": "#/components/schemas/LiveEventType" }, - "loginCount": { + "timestamp": { "type": "integer", - "format": "int32" - }, - "createdFromUrlId": { - "type": "string" + "format": "int64" }, - "signUpDate": { + "ts": { "type": "integer", "format": "int64" }, - "email": { + "broadcastId": { "type": "string" }, - "websiteUrl": { + "userId": { "type": "string" }, - "username": { - "type": "string" + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array" + }, + "notification": { + "$ref": "#/components/schemas/UserNotification" + }, + "vote": { + "$ref": "#/components/schemas/PubSubVote" + }, + "comment": { + "$ref": "#/components/schemas/PubSubComment" + }, + "feedPost": { + "$ref": "#/components/schemas/FeedPost" + }, + "extraInfo": { + "properties": { + "commentPositions": { + "$ref": "#/components/schemas/CommentPositions" + } + }, + "type": "object" + }, + "config": { + "additionalProperties": false, + "type": "object" }, - "id": { - "type": "string" - } - }, - "required": [ - "email", - "username", - "id" - ], - "type": "object" - }, - "APIPage": { - "properties": { "isClosed": { "type": "boolean" }, - "accessibleByGroupIds": { + "uj": { "items": { "type": "string" }, "type": "array" }, - "rootCommentCount": { - "type": "integer", - "format": "int64" + "ul": { + "items": { + "type": "string" + }, + "type": "array" }, - "commentCount": { + "sc": { "type": "integer", - "format": "int64" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" + "format": "int32" }, - "id": { - "type": "string" + "changes": { + "$ref": "#/components/schemas/Int32Map" } }, "required": [ - "rootCommentCount", - "commentCount", - "createdAt", - "title", - "urlId", - "id" + "type" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "GetPagesAPIResponse": { + "PublicAPIGetCommentTextResponse": { "properties": { - "reason": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "code": { + "commentText": { "type": "string" }, - "pages": { - "items": { - "$ref": "#/components/schemas/APIPage" - }, - "type": "array" - }, - "status": { + "sanitizedCommentText": { "type": "string" } }, "required": [ - "status" + "status", + "commentText", + "sanitizedCommentText" ], "type": "object" }, - "GetPageByURLIdAPIResponse": { + "SetCommentTextResult": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "page": { - "$ref": "#/components/schemas/APIPage" + "approved": { + "type": "boolean" }, - "status": { + "commentHTML": { "type": "string" } }, "required": [ - "status" + "approved", + "commentHTML" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "AddPageAPIResponse": { + "PublicAPISetCommentTextResponse": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "page": { - "$ref": "#/components/schemas/APIPage" + "comment": { + "$ref": "#/components/schemas/SetCommentTextResult" }, "status": { - "type": "string" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "comment", "status" ], "type": "object" }, - "CreateAPIPageData": { + "CommentUserMentionInfo": { "properties": { - "accessibleByGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "rootCommentCount": { - "type": "integer", - "format": "int64" - }, - "commentCount": { - "type": "integer", - "format": "int64" - }, - "title": { + "id": { "type": "string" }, - "url": { + "tag": { "type": "string" }, - "urlId": { + "rawTag": { "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "user", + "sso" + ] + }, + "sent": { + "type": "boolean" } }, "required": [ - "title", - "url", - "urlId" + "id", + "tag" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "PatchPageAPIResponse": { + "CommentUserHashTagInfo": { "properties": { - "reason": { + "id": { "type": "string" }, - "code": { + "tag": { "type": "string" }, - "commentsUpdated": { - "type": "integer", - "format": "int64" - }, - "page": { - "$ref": "#/components/schemas/APIPage" + "url": { + "type": "string", + "nullable": true }, - "status": { - "type": "string" + "retain": { + "type": "boolean" } }, "required": [ - "status" + "id", + "tag", + "url" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "UpdateAPIPageData": { + "CommentTextUpdateRequest": { "properties": { - "isClosed": { - "type": "boolean" + "comment": { + "type": "string" }, - "accessibleByGroupIds": { + "mentions": { "items": { - "type": "string" + "$ref": "#/components/schemas/CommentUserMentionInfo" }, "type": "array" }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" - } - }, - "type": "object" - }, - "DeletePageAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "status": { - "type": "string" + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" } }, "required": [ - "status" + "comment" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "PublicVote": { - "properties": { - "id": { - "type": "string" - }, - "urlId": { - "type": "string" - }, - "commentId": { - "type": "string" + "Pick_GetCommentsResponse.Exclude_keyofGetCommentsResponse.lastGenDate-or-pageNumber__": { + "properties": {}, + "additionalProperties": {}, + "type": "object", + "description": "From T, pick a set of properties whose keys are in the union K" + }, + "Omit_GetCommentsResponse.lastGenDate-or-pageNumber_": { + "$ref": "#/components/schemas/Pick_GetCommentsResponse.Exclude_keyofGetCommentsResponse.lastGenDate-or-pageNumber__", + "description": "Construct a type with the properties of T except for those in type K." + }, + "GetCommentsForUserResponse": { + "allOf": [ + { + "$ref": "#/components/schemas/Omit_GetCommentsResponse.lastGenDate-or-pageNumber_" }, - "userId": { - "type": "string" - }, - "direction": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "id", - "urlId", - "commentId", - "userId", - "direction", - "createdAt" - ], - "type": "object", - "additionalProperties": false - }, - "GetVotesResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "appliedAuthorizedVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" - }, - "appliedAnonymousVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" - }, - "pendingVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" + { + "properties": { + "moderatingTenantIds": { + "items": { + "type": "string" + }, + "type": "array" + } }, - "type": "array" + "type": "object" } - }, - "required": [ - "status", - "appliedAuthorizedVotes", - "appliedAnonymousVotes", - "pendingVotes" - ], - "type": "object", - "additionalProperties": false + ] }, - "GetVotesForUserResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "appliedAuthorizedVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" - }, - "appliedAnonymousVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" + "PublicComment": { + "allOf": [ + { + "properties": { + "isUnread": { + "type": "boolean" + }, + "myVoteId": { + "type": "string" + }, + "isVotedDown": { + "type": "boolean" + }, + "isVotedUp": { + "type": "boolean" + }, + "hasChildren": { + "type": "boolean", + "description": "This is always set when asTree=true" + }, + "nestedChildrenCount": { + "type": "integer", + "format": "int32", + "description": "The total nested child count included in this response (may be more available w/ pagination) Only set with asTree=true, otherwise this will be null." + }, + "childCount": { + "type": "integer", + "format": "int32", + "description": "You must ask the API to count children (with asTree=true&countChildren=true), otherwise this will be null. This will be the complete direct child count, whereas children may only contain a subset based on pagination." + }, + "children": { + "items": { + "$ref": "#/components/schemas/PublicComment" + }, + "type": "array" + }, + "isFlagged": { + "type": "boolean" + }, + "isBlocked": { + "type": "boolean" + } }, - "type": "array" + "type": "object" }, - "pendingVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" + { + "$ref": "#/components/schemas/PublicCommentBase" } - }, - "required": [ - "status", - "appliedAuthorizedVotes", - "appliedAnonymousVotes", - "pendingVotes" - ], - "type": "object", - "additionalProperties": false - }, - "DigestEmailFrequency": { - "enum": [ - -1, - 0, - 1, - 2 - ], - "type": "integer" + ] }, - "User": { + "PublicCommentBase": { "properties": { "_id": { "type": "string" }, - "tenantId": { - "type": "string", + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], "nullable": true }, - "username": { + "commenterName": { "type": "string" }, - "displayName": { + "commenterLink": { + "type": "string", + "nullable": true + }, + "commentHTML": { "type": "string" }, - "websiteUrl": { + "parentId": { "type": "string", "nullable": true }, - "email": { + "date": { "type": "string", + "format": "date-time", "nullable": true }, - "pendingEmail": { - "type": "string" - }, - "backupEmail": { - "type": "string" - }, - "pendingBackupEmail": { - "type": "string" - }, - "signUpDate": { + "votes": { "type": "integer", - "format": "int64" - }, - "createdFromUrlId": { - "type": "string", + "format": "int32", "nullable": true }, - "createdFromTenantId": { - "type": "string", + "votesUp": { + "type": "integer", + "format": "int32", "nullable": true }, - "createdFromIpHashed": { - "type": "string" + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true }, "verified": { "type": "boolean" }, - "loginId": { - "type": "string" - }, - "loginIdDate": { - "type": "integer", - "format": "int64" - }, - "loginCount": { - "type": "integer", - "format": "int32" + "avatarSrc": { + "type": "string", + "nullable": true }, - "optedInNotifications": { + "hasImages": { "type": "boolean" }, - "optedInTenantNotifications": { + "isByAdmin": { "type": "boolean" }, - "hideAccountCode": { + "isByModerator": { "type": "boolean" }, - "avatarSrc": { - "type": "string", + "isPinned": { + "type": "boolean", "nullable": true }, - "isFastCommentsHelpRequestAdmin": { - "type": "boolean" + "isLocked": { + "type": "boolean", + "nullable": true }, - "isHelpRequestAdmin": { - "type": "boolean" + "displayLabel": { + "type": "string", + "nullable": true }, - "isAccountOwner": { - "type": "boolean" + "rating": { + "type": "number", + "format": "double", + "nullable": true }, - "isAdminAdmin": { - "type": "boolean" + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true }, - "isBillingAdmin": { - "type": "boolean" + "viewCount": { + "type": "integer", + "format": "int64", + "nullable": true }, - "isAnalyticsAdmin": { + "isDeleted": { "type": "boolean" }, - "isCustomizationAdmin": { + "isDeletedUser": { "type": "boolean" }, - "isManageDataAdmin": { + "isSpam": { "type": "boolean" }, - "isCommentModeratorAdmin": { - "type": "boolean" - }, - "isAPIAdmin": { - "type": "boolean" - }, - "isSiteAdmin": { - "type": "boolean" + "anonUserId": { + "type": "string", + "nullable": true }, - "moderatorIds": { + "feedbackIds": { "items": { "type": "string" }, "type": "array" }, - "isImpersonator": { - "type": "boolean" - }, - "isCouponManager": { + "requiresVerification": { "type": "boolean" }, - "locale": { + "editKey": { "type": "string" }, - "digestEmailFrequency": { - "$ref": "#/components/schemas/DigestEmailFrequency" + "approved": { + "type": "boolean" + } + }, + "required": [ + "_id", + "commenterName", + "commentHTML", + "date", + "verified" + ], + "type": "object", + "additionalProperties": false + }, + "Record_string.any_": { + "properties": {}, + "additionalProperties": {}, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "GetCommentsResponse_PublicComment_": { + "properties": { + "statusCode": { + "type": "integer", + "format": "int32" }, - "notificationFrequency": { - "type": "number", - "format": "double" + "status": { + "type": "string" }, - "adminNotificationFrequency": { - "type": "number", - "format": "double" + "code": { + "type": "string" }, - "lastTenantNotificationSentDate": { - "type": "string", - "format": "date-time" + "reason": { + "type": "string" }, - "lastReplyNotificationSentDate": { - "type": "string", - "format": "date-time" + "translatedWarning": { + "type": "string" }, - "ignoredAddToMySiteMessages": { - "type": "boolean" + "comments": { + "items": { + "$ref": "#/components/schemas/PublicComment" + }, + "type": "array" }, - "lastLoginDate": { - "type": "string", - "format": "date-time" + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true }, - "displayLabel": { + "urlIdClean": { "type": "string" }, - "isProfileActivityPrivate": { - "type": "boolean" - }, - "isProfileCommentsPrivate": { - "type": "boolean" + "lastGenDate": { + "type": "integer", + "format": "int64", + "nullable": true }, - "isProfileDMDisabled": { + "includesPastPages": { "type": "boolean" }, - "profileCommentApprovalMode": { - "type": "number", - "format": "double" + "isDemo": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false }, - "karma": { - "type": "number", - "format": "double" + "commentCount": { + "type": "integer", + "format": "int32" }, - "passwordHash": { - "type": "string" + "isSiteAdmin": { + "type": "boolean" }, - "averageTicketAckTimeMS": { - "type": "number", - "format": "double", - "nullable": true + "hasBillingIssue": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false }, - "hasBlockedUsers": { - "type": "boolean" + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" }, - "bio": { - "type": "string" + "pageNumber": { + "type": "integer", + "format": "int32" }, - "headerBackgroundSrc": { - "type": "string" + "isWhiteLabeled": { + "type": "boolean" }, - "countryCode": { - "type": "string" + "isProd": { + "type": "boolean", + "enum": [ + false + ], + "nullable": false }, - "countryFlag": { - "type": "string" + "isCrawler": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false }, - "socialLinks": { - "items": { - "type": "string" - }, - "type": "array" + "notificationCount": { + "type": "integer", + "format": "int32" }, - "hasTwoFactor": { + "hasMore": { "type": "boolean" }, - "isEmailSuppressed": { + "isClosed": { "type": "boolean" + }, + "presencePollState": { + "type": "integer", + "format": "int32" + }, + "customConfig": { + "$ref": "#/components/schemas/CustomConfigParameters" } }, "required": [ - "_id", - "username", - "email", - "signUpDate", - "createdFromTenantId", - "createdFromIpHashed", - "verified", - "loginId", - "loginIdDate" + "status", + "comments", + "user", + "pageNumber" ], "type": "object", "additionalProperties": false }, - "GetUserResponse": { + "GetCommentsResponseWithPresence_PublicComment_": { + "allOf": [ + { + "$ref": "#/components/schemas/GetCommentsResponse_PublicComment_" + }, + { + "$ref": "#/components/schemas/UserPresenceData" + } + ] + }, + "SaveCommentResponseOptimized": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, + "comment": { + "$ref": "#/components/schemas/PublicComment" + }, "user": { - "$ref": "#/components/schemas/User" + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true + }, + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" } }, "required": [ "status", + "comment", "user" ], "type": "object", "additionalProperties": false }, - "UserBadge": { + "SaveCommentsResponseWithPresence": { + "allOf": [ + { + "$ref": "#/components/schemas/SaveCommentResponseOptimized" + }, + { + "properties": { + "userIdWS": { + "$ref": "#/components/schemas/UserIdWS" + } + }, + "type": "object" + } + ] + }, + "Record_string.string-or-number_": { + "properties": {}, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + } + ] + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "CommentData": { "properties": { - "_id": { - "type": "string" + "date": { + "type": "integer", + "format": "int64" }, - "userId": { + "localDateString": { "type": "string" }, - "badgeId": { - "type": "string" + "localDateHours": { + "type": "integer", + "format": "int32" }, - "fromTenantId": { + "commenterName": { "type": "string" }, - "createdAt": { + "commenterEmail": { "type": "string", - "format": "date-time" - }, - "type": { - "type": "integer", - "format": "int32" + "nullable": true }, - "threshold": { - "type": "integer", - "format": "int64" + "commenterLink": { + "type": "string", + "nullable": true }, - "description": { + "comment": { "type": "string" }, - "displayLabel": { - "type": "string" + "productId": { + "type": "integer", + "format": "int32" }, - "displaySrc": { + "userId": { "type": "string", "nullable": true }, - "backgroundColor": { + "avatarSrc": { "type": "string", "nullable": true }, - "borderColor": { + "parentId": { "type": "string", "nullable": true }, - "textColor": { - "type": "string", - "nullable": true + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" }, - "cssClass": { - "type": "string", - "nullable": true + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" }, - "veteranUserThresholdMillis": { + "pageTitle": { + "type": "string" + }, + "isFromMyAccountPage": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "meta": { + "additionalProperties": false, + "type": "object" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "rating": { + "type": "number", + "format": "double" + }, + "fromOfflineRestore": { + "type": "boolean" + }, + "autoplayDelayMS": { "type": "integer", "format": "int64" }, - "displayedOnComments": { + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "questionValues": { + "$ref": "#/components/schemas/Record_string.string-or-number_" + }, + "tos": { "type": "boolean" }, - "receivedAt": { - "type": "string", - "format": "date-time" + "botId": { + "type": "string" + } + }, + "required": [ + "commenterName", + "comment", + "url", + "urlId" + ], + "type": "object", + "additionalProperties": false + }, + "DeletedCommentResultComment": { + "properties": { + "isDeleted": { + "type": "boolean" }, - "order": { - "type": "integer", - "format": "int32" + "commentHTML": { + "type": "string" }, - "urlId": { + "commenterName": { + "type": "string" + }, + "userId": { "type": "string", "nullable": true } }, "required": [ - "_id", - "userId", - "badgeId", - "fromTenantId", - "createdAt", - "type", - "threshold", - "description", - "displayLabel", - "veteranUserThresholdMillis", - "displayedOnComments", - "receivedAt" + "commentHTML", + "commenterName" ], "type": "object", "additionalProperties": false }, - "APIGetUserBadgeResponse": { + "PublicAPIDeleteCommentResponse": { "properties": { + "comment": { + "$ref": "#/components/schemas/DeletedCommentResultComment" + }, + "hardRemoved": { + "type": "boolean" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "userBadge": { - "$ref": "#/components/schemas/UserBadge" } }, "required": [ - "status", - "userBadge" + "hardRemoved", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APIGetUserBadgesResponse": { + "CheckBlockedCommentsResponse": { "properties": { + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" + }, "status": { "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "commentStatuses", + "status" + ], + "type": "object" + }, + "VoteBodyParams": { + "properties": { + "commenterEmail": { + "type": "string", + "nullable": true }, - "userBadges": { - "items": { - "$ref": "#/components/schemas/UserBadge" - }, - "type": "array" + "commenterName": { + "type": "string", + "nullable": true + }, + "voteDir": { + "type": "string", + "enum": [ + "up", + "down" + ] + }, + "url": { + "type": "string", + "nullable": true } }, "required": [ - "status", - "userBadges" + "commenterEmail", + "commenterName", + "voteDir", + "url" ], "type": "object", "additionalProperties": false }, - "APICreateUserBadgeResponse": { + "GetCommentVoteUserNamesSuccessResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "userBadge": { - "$ref": "#/components/schemas/UserBadge" - }, - "notes": { + "voteUserNames": { "items": { "type": "string" }, "type": "array" + }, + "hasMore": { + "type": "boolean" } }, "required": [ "status", - "userBadge" + "voteUserNames", + "hasMore" ], "type": "object", "additionalProperties": false }, - "CreateUserBadgeParams": { + "ChangeCommentPinStatusResponse": { "properties": { - "userId": { - "type": "string" - }, - "badgeId": { - "type": "string" + "commentPositions": { + "$ref": "#/components/schemas/CommentPositions" }, - "displayedOnComments": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "userId", - "badgeId" + "commentPositions", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APIEmptySuccessResponse": { + "BlockSuccess": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" + }, + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" } }, "required": [ - "status" + "status", + "commentStatuses" ], "type": "object", "additionalProperties": false }, - "UpdateUserBadgeParams": { + "PublicBlockFromCommentParams": { "properties": { - "displayedOnComments": { - "type": "boolean" + "commentIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true, + "description": "A list of comment ids to check if are blocked after performing the update." } }, + "required": [ + "commentIds" + ], "type": "object", "additionalProperties": false }, - "Record_string.number_": { - "properties": {}, - "additionalProperties": { - "type": "number", - "format": "double" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "UserBadgeProgress": { + "UnblockSuccess": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "type": "string" - }, - "userId": { - "type": "string" - }, - "firstCommentId": { - "type": "string" - }, - "firstCommentDate": { - "type": "string", - "format": "date-time" - }, - "autoTrustFactor": { - "type": "number", - "format": "double" - }, - "manualTrustFactor": { - "type": "number", - "format": "double" - }, - "progress": { - "$ref": "#/components/schemas/Record_string.number_" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "tosAcceptedAt": { - "type": "string", - "format": "date-time" + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" } }, "required": [ - "_id", - "tenantId", - "userId", - "firstCommentId", - "firstCommentDate", - "progress" + "status", + "commentStatuses" ], "type": "object", "additionalProperties": false }, - "APIGetUserBadgeProgressResponse": { + "APIUserSubscription": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "notificationFrequency": { + "type": "number", + "format": "double" }, - "userBadgeProgress": { - "$ref": "#/components/schemas/UserBadgeProgress" + "createdAt": { + "type": "string", + "format": "date-time" + }, + "pageTitle": { + "type": "string" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "anonUserId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "id": { + "type": "string" } }, "required": [ - "status", - "userBadgeProgress" + "createdAt", + "urlId", + "id" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APIGetUserBadgeProgressListResponse": { + "GetSubscriptionsAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "userBadgeProgresses": { + "code": { + "type": "string" + }, + "subscriptions": { "items": { - "$ref": "#/components/schemas/UserBadgeProgress" + "$ref": "#/components/schemas/APIUserSubscription" }, "type": "array" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "userBadgeProgresses" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APITicket": { + "CreateSubscriptionAPIResponse": { "properties": { - "_id": { + "reason": { "type": "string" }, - "urlId": { + "code": { "type": "string" }, - "userId": { - "type": "string" + "subscription": { + "$ref": "#/components/schemas/APIUserSubscription" }, - "managedByTenantId": { + "status": { "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPIUserSubscriptionData": { + "properties": { + "notificationFrequency": { + "type": "number", + "format": "double" }, - "assignedUserIds": { - "items": { - "type": "string" - }, - "type": "array" + "pageTitle": { + "type": "string" }, - "subject": { + "url": { "type": "string" }, - "createdAt": { + "urlId": { "type": "string" }, - "state": { - "type": "integer", - "format": "int32" + "anonUserId": { + "type": "string" }, - "fileCount": { - "type": "integer", - "format": "int32" + "userId": { + "type": "string" } }, "required": [ - "_id", - "urlId", - "userId", - "managedByTenantId", - "assignedUserIds", - "subject", - "createdAt", - "state", - "fileCount" + "urlId" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "GetTicketsResponse": { + "UpdateSubscriptionAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "tickets": { - "items": { - "$ref": "#/components/schemas/APITicket" - }, - "type": "array" + "code": { + "type": "string" + }, + "subscription": { + "$ref": "#/components/schemas/APIUserSubscription" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "tickets" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTicketResponse": { + "UpdateAPIUserSubscriptionData": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "ticket": { - "$ref": "#/components/schemas/APITicket" + "notificationFrequency": { + "type": "number", + "format": "double" } }, - "required": [ - "status", - "ticket" - ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTicketBody": { + "DeleteSubscriptionAPIResponse": { "properties": { - "subject": { + "reason": { + "type": "string" + }, + "code": { + "type": "string" + }, + "status": { "type": "string" } }, "required": [ - "subject" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APITicketFile": { + "APISSOUser": { "properties": { "id": { "type": "string" }, - "s3Key": { + "username": { "type": "string" }, - "originalFileName": { + "websiteUrl": { "type": "string" }, - "sizeBytes": { + "email": { + "type": "string" + }, + "signUpDate": { "type": "integer", - "format": "int32" + "format": "int64" }, - "contentType": { + "createdFromUrlId": { "type": "string" }, - "uploadedByUserId": { - "type": "string" + "loginCount": { + "type": "integer", + "format": "int32" }, - "uploadedAt": { + "avatarSrc": { "type": "string" }, - "url": { + "optedInNotifications": { + "type": "boolean" + }, + "optedInSubscriptionNotifications": { + "type": "boolean" + }, + "displayLabel": { "type": "string" }, - "expiresAt": { + "displayName": { "type": "string" }, - "expired": { + "isAccountOwner": { "type": "boolean" - } - }, - "required": [ - "id", - "s3Key", - "originalFileName", - "sizeBytes", - "contentType", - "uploadedByUserId", - "uploadedAt", - "url", - "expiresAt" - ], - "type": "object", - "additionalProperties": false - }, - "APITicketDetail": { - "properties": { - "_id": { - "type": "string" - }, - "urlId": { - "type": "string" - }, - "userId": { - "type": "string" }, - "managedByTenantId": { - "type": "string" + "isAdminAdmin": { + "type": "boolean" }, - "assignedUserIds": { - "items": { - "type": "string" - }, - "type": "array" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "subject": { - "type": "string" + "isProfileActivityPrivate": { + "type": "boolean" }, - "createdAt": { - "type": "string" + "isProfileCommentsPrivate": { + "type": "boolean" }, - "state": { - "type": "integer", - "format": "int32" + "isProfileDMDisabled": { + "type": "boolean" }, - "fileCount": { - "type": "integer", - "format": "int32" + "hasBlockedUsers": { + "type": "boolean" }, - "files": { + "groupIds": { "items": { - "$ref": "#/components/schemas/APITicketFile" + "type": "string" }, "type": "array" - }, - "reopenedAt": { - "type": "string", - "nullable": true - }, - "resolvedAt": { - "type": "string", - "nullable": true - }, - "ackAt": { - "type": "string", - "nullable": true } }, "required": [ - "_id", - "urlId", - "userId", - "managedByTenantId", - "assignedUserIds", - "subject", - "createdAt", - "state", - "fileCount", - "files" + "id", + "username", + "websiteUrl", + "email", + "signUpDate", + "createdFromUrlId", + "loginCount", + "avatarSrc", + "optedInNotifications", + "optedInSubscriptionNotifications", + "displayLabel", + "displayName" ], "type": "object", "additionalProperties": false }, - "GetTicketResponse": { + "GetSSOUserByIdAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "ticket": { - "$ref": "#/components/schemas/APITicketDetail" + "code": { + "type": "string" }, - "availableStates": { - "items": { - "type": "number", - "format": "double" - }, - "type": "array" + "user": { + "$ref": "#/components/schemas/APISSOUser" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "ticket", - "availableStates" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "ChangeTicketStateResponse": { + "GetSSOUserByEmailAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "ticket": { - "$ref": "#/components/schemas/APITicket" + "code": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/APISSOUser" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "ticket" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "ChangeTicketStateBody": { + "DeleteSSOUserAPIResponse": { "properties": { - "state": { - "type": "integer", - "format": "int32" + "reason": { + "type": "string" + }, + "code": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/APISSOUser" + }, + "status": { + "type": "string" } }, "required": [ - "state" - ], - "type": "object", - "additionalProperties": false - }, - "ImportedSiteType": { - "enum": [ - 0, - 1 + "status" ], - "type": "integer" - }, - "SiteType": { - "$ref": "#/components/schemas/ImportedSiteType" + "type": "object" }, - "APIDomainConfiguration": { + "PatchSSOUserAPIResponse": { "properties": { - "id": { + "reason": { "type": "string" }, - "domain": { + "code": { "type": "string" }, - "emailFromName": { - "type": "string", - "nullable": true - }, - "emailFromEmail": { - "type": "string", - "nullable": true + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "UpdateAPISSOUserData": { + "properties": { + "groupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "wpSyncToken": { - "type": "string", - "nullable": true + "hasBlockedUsers": { + "type": "boolean" }, - "wpSynced": { + "isProfileDMDisabled": { "type": "boolean" }, - "wpURL": { - "type": "string", - "nullable": true + "isProfileCommentsPrivate": { + "type": "boolean" }, - "createdAt": { - "type": "string", - "format": "date-time" + "isProfileActivityPrivate": { + "type": "boolean" }, - "autoAddedDate": { - "type": "string", - "format": "date-time" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "siteType": { - "$ref": "#/components/schemas/SiteType" + "isAdminAdmin": { + "type": "boolean" }, - "logoSrc": { - "type": "string", - "nullable": true + "isAccountOwner": { + "type": "boolean" }, - "logoSrc100px": { - "type": "string", - "nullable": true + "displayName": { + "type": "string" }, - "footerUnsubscribeURL": { + "displayLabel": { "type": "string" }, - "disableUnsubscribeLinks": { + "optedInSubscriptionNotifications": { "type": "boolean" - } - }, - "required": [ - "id", - "domain", - "createdAt" - ], - "type": "object", - "additionalProperties": false - }, - "BillingInfo": { - "properties": { - "name": { - "type": "string" }, - "address": { + "optedInNotifications": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "city": { + "loginCount": { + "type": "integer", + "format": "int32" + }, + "createdFromUrlId": { "type": "string" }, - "state": { + "signUpDate": { + "type": "integer", + "format": "int64" + }, + "email": { "type": "string" }, - "zip": { + "websiteUrl": { "type": "string" }, - "country": { + "username": { "type": "string" }, - "currency": { - "type": "string", - "nullable": true, - "description": "Currency for invoices." + "id": { + "type": "string" + } + }, + "type": "object" + }, + "PutSSOUserAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "email": { - "type": "string", - "description": "Email for invoices." + "code": { + "type": "string" + }, + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/APISSOUser" + } + ], + "nullable": true + }, + "status": { + "type": "string" } }, "required": [ - "name", - "address", - "city", - "state", - "zip", - "country" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APITenant": { + "AddSSOUserAPIResponse": { "properties": { - "id": { - "type": "string" - }, - "name": { + "reason": { "type": "string" }, - "email": { + "code": { "type": "string" }, - "signUpDate": { - "type": "number", - "format": "double" + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "packageId": { + "status": { "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPISSOUserData": { + "properties": { + "groupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "paymentFrequency": { - "type": "number", - "format": "double" - }, - "billingInfoValid": { + "hasBlockedUsers": { "type": "boolean" }, - "billingHandledExternally": { + "isProfileDMDisabled": { "type": "boolean" }, - "createdBy": { - "type": "string" + "isProfileCommentsPrivate": { + "type": "boolean" }, - "isSetup": { + "isProfileActivityPrivate": { "type": "boolean" }, - "domainConfiguration": { - "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" - }, - "type": "array" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "billingInfo": { - "$ref": "#/components/schemas/BillingInfo" + "isAdminAdmin": { + "type": "boolean" }, - "stripeCustomerId": { - "type": "string" + "isAccountOwner": { + "type": "boolean" }, - "stripeSubscriptionId": { + "displayName": { "type": "string" }, - "stripePlanId": { + "displayLabel": { "type": "string" }, - "enableProfanityFilter": { - "type": "boolean" - }, - "enableSpamFilter": { + "optedInSubscriptionNotifications": { "type": "boolean" }, - "lastBillingIssueReminderDate": { - "type": "string", - "format": "date-time" - }, - "removeUnverifiedComments": { + "optedInNotifications": { "type": "boolean" }, - "unverifiedCommentsTTLms": { - "type": "number", - "format": "double", - "nullable": true - }, - "commentsRequireApproval": { - "type": "boolean" + "avatarSrc": { + "type": "string" }, - "autoApproveCommentOnVerification": { - "type": "boolean" + "loginCount": { + "type": "integer", + "format": "int32" }, - "sendProfaneToSpam": { - "type": "boolean" + "createdFromUrlId": { + "type": "string" }, - "hasFlexPricing": { - "type": "boolean" + "signUpDate": { + "type": "integer", + "format": "int64" }, - "hasAuditing": { - "type": "boolean" + "email": { + "type": "string" }, - "flexLastBilledAmount": { - "type": "number", - "format": "double" + "websiteUrl": { + "type": "string" }, - "deAnonIpAddr": { - "type": "number", - "format": "double" + "username": { + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "id": { + "type": "string" } }, "required": [ - "id", - "name", - "signUpDate", - "packageId", - "paymentFrequency", - "billingInfoValid", - "createdBy", - "isSetup", - "domainConfiguration", - "enableProfanityFilter", - "enableSpamFilter" + "email", + "username", + "id" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "GetTenantResponse": { + "APIPage": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "isClosed": { + "type": "boolean" }, - "tenant": { - "$ref": "#/components/schemas/APITenant" + "accessibleByGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "rootCommentCount": { + "type": "integer", + "format": "int64" + }, + "commentCount": { + "type": "integer", + "format": "int64" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "id": { + "type": "string" } }, "required": [ - "status", - "tenant" + "rootCommentCount", + "commentCount", + "createdAt", + "title", + "urlId", + "id" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "GetTenantsResponse": { + "GetPagesAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "tenants": { + "code": { + "type": "string" + }, + "pages": { "items": { - "$ref": "#/components/schemas/APITenant" + "$ref": "#/components/schemas/APIPage" }, "type": "array" - } - }, - "required": [ - "status", - "tenants" - ], - "type": "object", - "additionalProperties": false - }, - "CreateTenantResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "tenant": { - "$ref": "#/components/schemas/APITenant" + "status": { + "type": "string" } }, "required": [ - "status", - "tenant" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTenantBody": { + "GetPageByURLIdAPIResponse": { "properties": { - "name": { + "reason": { "type": "string" }, - "domainConfiguration": { - "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" - }, - "type": "array" - }, - "email": { + "code": { "type": "string" }, - "signUpDate": { - "type": "number", - "format": "double" + "page": { + "$ref": "#/components/schemas/APIPage" }, - "packageId": { + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "AddPageAPIResponse": { + "properties": { + "reason": { "type": "string" }, - "paymentFrequency": { - "type": "number", - "format": "double" - }, - "billingInfoValid": { - "type": "boolean" + "code": { + "type": "string" }, - "billingHandledExternally": { - "type": "boolean" + "page": { + "$ref": "#/components/schemas/APIPage" }, - "createdBy": { + "status": { "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPIPageData": { + "properties": { + "accessibleByGroupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "isSetup": { - "type": "boolean" + "rootCommentCount": { + "type": "integer", + "format": "int64" }, - "billingInfo": { - "$ref": "#/components/schemas/BillingInfo" + "commentCount": { + "type": "integer", + "format": "int64" }, - "stripeCustomerId": { + "title": { "type": "string" }, - "stripeSubscriptionId": { + "url": { "type": "string" }, - "stripePlanId": { + "urlId": { "type": "string" - }, - "enableProfanityFilter": { - "type": "boolean" - }, - "enableSpamFilter": { - "type": "boolean" - }, - "removeUnverifiedComments": { - "type": "boolean" - }, - "unverifiedCommentsTTLms": { - "type": "number", - "format": "double" - }, - "commentsRequireApproval": { - "type": "boolean" - }, - "autoApproveCommentOnVerification": { - "type": "boolean" - }, - "sendProfaneToSpam": { - "type": "boolean" - }, - "deAnonIpAddr": { - "type": "number", - "format": "double" - }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" } }, "required": [ - "name", - "domainConfiguration" + "title", + "url", + "urlId" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "UpdateTenantBody": { + "PatchPageAPIResponse": { "properties": { - "name": { - "type": "string" - }, - "email": { + "reason": { "type": "string" }, - "signUpDate": { - "type": "number", - "format": "double" - }, - "packageId": { + "code": { "type": "string" }, - "paymentFrequency": { - "type": "number", - "format": "double" - }, - "billingInfoValid": { - "type": "boolean" + "commentsUpdated": { + "type": "integer", + "format": "int64" }, - "billingHandledExternally": { - "type": "boolean" + "page": { + "$ref": "#/components/schemas/APIPage" }, - "createdBy": { + "status": { "type": "string" - }, - "isSetup": { + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "UpdateAPIPageData": { + "properties": { + "isClosed": { "type": "boolean" }, - "domainConfiguration": { + "accessibleByGroupIds": { "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" + "type": "string" }, "type": "array" }, - "billingInfo": { - "$ref": "#/components/schemas/BillingInfo" - }, - "stripeCustomerId": { + "title": { "type": "string" }, - "stripeSubscriptionId": { + "url": { "type": "string" }, - "stripePlanId": { + "urlId": { + "type": "string" + } + }, + "type": "object" + }, + "DeletePageAPIResponse": { + "properties": { + "reason": { "type": "string" }, - "enableProfanityFilter": { - "type": "boolean" - }, - "enableSpamFilter": { - "type": "boolean" - }, - "removeUnverifiedComments": { - "type": "boolean" - }, - "unverifiedCommentsTTLms": { - "type": "number", - "format": "double" - }, - "commentsRequireApproval": { - "type": "boolean" + "code": { + "type": "string" }, - "autoApproveCommentOnVerification": { - "type": "boolean" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "PublicVote": { + "properties": { + "id": { + "type": "string" }, - "sendProfaneToSpam": { - "type": "boolean" + "urlId": { + "type": "string" }, - "deAnonIpAddr": { - "type": "number", - "format": "double" + "commentId": { + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "userId": { + "type": "string" }, - "managedByTenantId": { + "direction": { "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" } }, + "required": [ + "id", + "urlId", + "commentId", + "userId", + "direction", + "createdAt" + ], "type": "object", "additionalProperties": false }, - "GetTenantUserResponse": { + "GetVotesResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantUser": { - "$ref": "#/components/schemas/User" + "appliedAuthorizedVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "appliedAnonymousVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "pendingVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" } }, "required": [ "status", - "tenantUser" + "appliedAuthorizedVotes", + "appliedAnonymousVotes", + "pendingVotes" ], "type": "object", "additionalProperties": false }, - "GetTenantUsersResponse": { + "GetVotesForUserResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantUsers": { + "appliedAuthorizedVotes": { "items": { - "$ref": "#/components/schemas/User" + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "appliedAnonymousVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "pendingVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" }, "type": "array" } }, "required": [ "status", - "tenantUsers" + "appliedAuthorizedVotes", + "appliedAnonymousVotes", + "pendingVotes" ], "type": "object", "additionalProperties": false }, - "CreateTenantUserResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "tenantUser": { - "$ref": "#/components/schemas/User" - } - }, - "required": [ - "status", - "tenantUser" + "DigestEmailFrequency": { + "enum": [ + -1, + 0, + 1, + 2 ], - "type": "object", - "additionalProperties": false + "type": "integer" }, - "CreateTenantUserBody": { + "ImportedAgentApprovalNotificationFrequency": { + "enum": [ + -1, + 0, + 1, + 2 + ], + "type": "integer" + }, + "AgentApprovalNotificationFrequency": { + "$ref": "#/components/schemas/ImportedAgentApprovalNotificationFrequency" + }, + "User": { "properties": { - "username": { + "_id": { "type": "string" }, - "email": { + "tenantId": { + "type": "string", + "nullable": true + }, + "username": { "type": "string" }, "displayName": { "type": "string" }, "websiteUrl": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "nullable": true + }, + "pendingEmail": { + "type": "string" + }, + "backupEmail": { + "type": "string" + }, + "pendingBackupEmail": { "type": "string" }, "signUpDate": { - "type": "number", - "format": "double" + "type": "integer", + "format": "int64" }, - "locale": { + "createdFromUrlId": { + "type": "string", + "nullable": true + }, + "createdFromTenantId": { + "type": "string", + "nullable": true + }, + "createdFromIpHashed": { "type": "string" }, "verified": { "type": "boolean" }, + "loginId": { + "type": "string" + }, + "loginIdDate": { + "type": "integer", + "format": "int64" + }, "loginCount": { - "type": "number", - "format": "double" + "type": "integer", + "format": "int32" }, "optedInNotifications": { "type": "boolean" @@ -5058,7 +5841,11 @@ "type": "boolean" }, "avatarSrc": { - "type": "string" + "type": "string", + "nullable": true + }, + "isFastCommentsHelpRequestAdmin": { + "type": "boolean" }, "isHelpRequestAdmin": { "type": "boolean" @@ -5087,3452 +5874,2954 @@ "isAPIAdmin": { "type": "boolean" }, + "isSiteAdmin": { + "type": "boolean" + }, "moderatorIds": { "items": { "type": "string" }, "type": "array" }, - "digestEmailFrequency": { - "type": "number", - "format": "double" - }, - "displayLabel": { - "type": "string" - } - }, - "required": [ - "username", - "email" - ], - "type": "object", - "additionalProperties": false - }, - "ReplaceTenantUserBody": { - "properties": { - "username": { - "type": "string" + "isImpersonator": { + "type": "boolean" }, - "email": { - "type": "string" + "isCouponManager": { + "type": "boolean" }, - "displayName": { + "locale": { "type": "string" }, - "websiteUrl": { - "type": "string" + "digestEmailFrequency": { + "$ref": "#/components/schemas/DigestEmailFrequency" }, - "signUpDate": { + "notificationFrequency": { "type": "number", "format": "double" }, - "locale": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "loginCount": { + "adminNotificationFrequency": { "type": "number", "format": "double" }, - "optedInNotifications": { - "type": "boolean" + "agentApprovalNotificationFrequency": { + "$ref": "#/components/schemas/AgentApprovalNotificationFrequency" }, - "optedInTenantNotifications": { - "type": "boolean" + "lastTenantNotificationSentDate": { + "type": "string", + "format": "date-time" }, - "hideAccountCode": { + "lastReplyNotificationSentDate": { + "type": "string", + "format": "date-time" + }, + "ignoredAddToMySiteMessages": { "type": "boolean" }, - "avatarSrc": { - "type": "string" + "lastLoginDate": { + "type": "string", + "format": "date-time" }, - "isHelpRequestAdmin": { - "type": "boolean" + "displayLabel": { + "type": "string" }, - "isAccountOwner": { + "isProfileActivityPrivate": { "type": "boolean" }, - "isAdminAdmin": { + "isProfileCommentsPrivate": { "type": "boolean" }, - "isBillingAdmin": { + "isProfileDMDisabled": { "type": "boolean" }, - "isAnalyticsAdmin": { - "type": "boolean" + "profileCommentApprovalMode": { + "type": "number", + "format": "double" }, - "isCustomizationAdmin": { - "type": "boolean" + "karma": { + "type": "number", + "format": "double" }, - "isManageDataAdmin": { - "type": "boolean" + "passwordHash": { + "type": "string" }, - "isCommentModeratorAdmin": { - "type": "boolean" + "averageTicketAckTimeMS": { + "type": "number", + "format": "double", + "nullable": true }, - "isAPIAdmin": { + "hasBlockedUsers": { "type": "boolean" }, - "moderatorIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "digestEmailFrequency": { - "type": "number", - "format": "double" + "bio": { + "type": "string" }, - "displayLabel": { + "headerBackgroundSrc": { "type": "string" }, - "createdFromUrlId": { + "countryCode": { "type": "string" }, - "createdFromTenantId": { + "countryFlag": { "type": "string" }, - "lastLoginDate": { - "type": "number", - "format": "double" + "socialLinks": { + "items": { + "type": "string" + }, + "type": "array" }, - "karma": { - "type": "number", - "format": "double" + "hasTwoFactor": { + "type": "boolean" + }, + "isEmailSuppressed": { + "type": "boolean" } }, "required": [ + "_id", "username", - "email" + "email", + "signUpDate", + "createdFromTenantId", + "createdFromIpHashed", + "verified", + "loginId", + "loginIdDate" ], "type": "object", "additionalProperties": false }, - "UpdateTenantUserBody": { + "GetUserResponse": { "properties": { - "username": { - "type": "string" - }, - "displayName": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "websiteUrl": { - "type": "string" + "user": { + "$ref": "#/components/schemas/User" + } + }, + "required": [ + "status", + "user" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgeResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "email": { - "type": "string" + "userBadge": { + "$ref": "#/components/schemas/UserBadge" + } + }, + "required": [ + "status", + "userBadge" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgesResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "signUpDate": { - "type": "number", - "format": "double" + "userBadges": { + "items": { + "$ref": "#/components/schemas/UserBadge" + }, + "type": "array" + } + }, + "required": [ + "status", + "userBadges" + ], + "type": "object", + "additionalProperties": false + }, + "APICreateUserBadgeResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "verified": { - "type": "boolean" + "userBadge": { + "$ref": "#/components/schemas/UserBadge" }, - "loginCount": { - "type": "number", - "format": "double" + "notes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "status", + "userBadge" + ], + "type": "object", + "additionalProperties": false + }, + "CreateUserBadgeParams": { + "properties": { + "userId": { + "type": "string" }, - "optedInNotifications": { - "type": "boolean" + "badgeId": { + "type": "string" }, - "optedInTenantNotifications": { + "displayedOnComments": { "type": "boolean" - }, - "hideAccountCode": { + } + }, + "required": [ + "userId", + "badgeId" + ], + "type": "object", + "additionalProperties": false + }, + "APIEmptySuccessResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateUserBadgeParams": { + "properties": { + "displayedOnComments": { "type": "boolean" - }, - "avatarSrc": { + } + }, + "type": "object", + "additionalProperties": false + }, + "UserBadgeProgress": { + "properties": { + "_id": { "type": "string" }, - "isHelpRequestAdmin": { - "type": "boolean" + "tenantId": { + "type": "string" }, - "isAccountOwner": { - "type": "boolean" + "userId": { + "type": "string" }, - "isAdminAdmin": { - "type": "boolean" + "firstCommentId": { + "type": "string" }, - "isBillingAdmin": { - "type": "boolean" + "firstCommentDate": { + "type": "string", + "format": "date-time" }, - "isAnalyticsAdmin": { - "type": "boolean" + "autoTrustFactor": { + "type": "number", + "format": "double" }, - "isCustomizationAdmin": { - "type": "boolean" + "manualTrustFactor": { + "type": "number", + "format": "double" }, - "isManageDataAdmin": { - "type": "boolean" + "progress": { + "$ref": "#/components/schemas/Record_string.number_" }, - "isCommentModeratorAdmin": { - "type": "boolean" + "tosAcceptedAt": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "_id", + "tenantId", + "userId", + "firstCommentId", + "firstCommentDate", + "progress" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgeProgressResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "isAPIAdmin": { - "type": "boolean" + "userBadgeProgress": { + "$ref": "#/components/schemas/UserBadgeProgress" + } + }, + "required": [ + "status", + "userBadgeProgress" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgeProgressListResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "moderatorIds": { + "userBadgeProgresses": { "items": { - "type": "string" + "$ref": "#/components/schemas/UserBadgeProgress" }, "type": "array" - }, - "locale": { - "type": "string" - }, - "digestEmailFrequency": { - "type": "number", - "format": "double" - }, - "displayLabel": { - "type": "string" } }, + "required": [ + "status", + "userBadgeProgresses" + ], "type": "object", "additionalProperties": false }, - "TenantPackage": { + "APITicket": { "properties": { "_id": { "type": "string" }, - "name": { + "urlId": { "type": "string" }, - "tenantId": { + "userId": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" + "managedByTenantId": { + "type": "string" }, - "monthlyCostUSD": { - "type": "number", - "format": "double", - "nullable": true + "assignedUserIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "yearlyCostUSD": { - "type": "number", - "format": "double", - "nullable": true + "subject": { + "type": "string" }, - "monthlyStripePlanId": { - "type": "string", - "nullable": true - }, - "yearlyStripePlanId": { - "type": "string", - "nullable": true - }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" - }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" - }, - "maxMonthlySmallWidgetsCredits": { - "type": "number", - "format": "double" - }, - "maxMonthlyComments": { - "type": "number", - "format": "double" - }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" - }, - "maxTenantUsers": { - "type": "number", - "format": "double" - }, - "maxSSOUsers": { - "type": "number", - "format": "double" - }, - "maxModerators": { - "type": "number", - "format": "double" - }, - "maxDomains": { - "type": "number", - "format": "double" - }, - "maxWhiteLabeledTenants": { - "type": "number", - "format": "double" - }, - "maxMonthlyEventLogRequests": { - "type": "number", - "format": "double" - }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" - }, - "hasWhiteLabeling": { - "type": "boolean" - }, - "hasDebranding": { - "type": "boolean" - }, - "hasLLMSpamDetection": { - "type": "boolean" - }, - "forWhoText": { + "createdAt": { "type": "string" }, - "featureTaglines": { - "items": { - "type": "string" - }, - "type": "array" - }, - "hasAuditing": { - "type": "boolean" - }, - "hasFlexPricing": { - "type": "boolean" - }, - "enableSAML": { - "type": "boolean" - }, - "enableCanvasLTI": { - "type": "boolean" - }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" - }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" - }, - "flexCommentCostCents": { - "type": "number", - "format": "double" - }, - "flexCommentUnit": { - "type": "number", - "format": "double" - }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" - }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" - }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" - }, - "flexSmallWidgetsCreditCostCents": { - "type": "number", - "format": "double" - }, - "flexSmallWidgetsCreditUnit": { - "type": "number", - "format": "double" - }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" - }, - "flexModeratorUnit": { - "type": "number", - "format": "double" - }, - "flexAdminCostCents": { - "type": "number", - "format": "double" - }, - "flexAdminUnit": { - "type": "number", - "format": "double" - }, - "flexDomainCostCents": { - "type": "number", - "format": "double" - }, - "flexDomainUnit": { - "type": "number", - "format": "double" - }, - "flexChatGPTCostCents": { - "type": "number", - "format": "double" - }, - "flexChatGPTUnit": { - "type": "number", - "format": "double" - }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" - }, - "flexManagedTenantCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOAdminCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOAdminUnit": { - "type": "number", - "format": "double" - }, - "flexSSOModeratorCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOModeratorUnit": { - "type": "number", - "format": "double" + "state": { + "type": "integer", + "format": "int32" }, - "isSSOBillingMonthlyActiveUsers": { - "type": "boolean" + "fileCount": { + "type": "integer", + "format": "int32" } }, "required": [ "_id", - "name", - "tenantId", + "urlId", + "userId", + "managedByTenantId", + "assignedUserIds", + "subject", "createdAt", - "monthlyCostUSD", - "yearlyCostUSD", - "monthlyStripePlanId", - "yearlyStripePlanId", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlySmallWidgetsCredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "maxWhiteLabeledTenants", - "maxMonthlyEventLogRequests", - "maxCustomCollectionSize", - "hasWhiteLabeling", - "hasDebranding", - "hasLLMSpamDetection", - "forWhoText", - "featureTaglines", - "hasAuditing", - "hasFlexPricing" + "state", + "fileCount" ], "type": "object", "additionalProperties": false }, - "GetTenantPackageResponse": { + "GetTicketsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantPackage": { - "$ref": "#/components/schemas/TenantPackage" + "tickets": { + "items": { + "$ref": "#/components/schemas/APITicket" + }, + "type": "array" } }, "required": [ "status", - "tenantPackage" + "tickets" ], "type": "object", "additionalProperties": false }, - "GetTenantPackagesResponse": { + "CreateTicketResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantPackages": { - "items": { - "$ref": "#/components/schemas/TenantPackage" - }, - "type": "array" + "ticket": { + "$ref": "#/components/schemas/APITicket" } }, "required": [ "status", - "tenantPackages" + "ticket" ], "type": "object", "additionalProperties": false }, - "CreateTenantPackageResponse": { + "CreateTicketBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "tenantPackage": { - "$ref": "#/components/schemas/TenantPackage" + "subject": { + "type": "string" } }, "required": [ - "status", - "tenantPackage" + "subject" ], "type": "object", "additionalProperties": false }, - "CreateTenantPackageBody": { + "APITicketFile": { "properties": { - "name": { + "id": { "type": "string" }, - "monthlyCostUSD": { - "type": "number", - "format": "double", - "nullable": true - }, - "yearlyCostUSD": { - "type": "number", - "format": "double", - "nullable": true - }, - "monthlyStripePlanId": { - "type": "string", - "nullable": true - }, - "yearlyStripePlanId": { - "type": "string", - "nullable": true - }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" - }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" - }, - "maxMonthlySmallWidgetsCredits": { - "type": "number", - "format": "double" - }, - "maxMonthlyComments": { - "type": "number", - "format": "double" - }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" + "s3Key": { + "type": "string" }, - "maxTenantUsers": { - "type": "number", - "format": "double" + "originalFileName": { + "type": "string" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "sizeBytes": { + "type": "integer", + "format": "int32" }, - "maxModerators": { - "type": "number", - "format": "double" + "contentType": { + "type": "string" }, - "maxDomains": { - "type": "number", - "format": "double" + "uploadedByUserId": { + "type": "string" }, - "maxWhiteLabeledTenants": { - "type": "number", - "format": "double" + "uploadedAt": { + "type": "string" }, - "maxMonthlyEventLogRequests": { - "type": "number", - "format": "double" + "url": { + "type": "string" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "expiresAt": { + "type": "string" }, - "hasWhiteLabeling": { + "expired": { "type": "boolean" + } + }, + "required": [ + "id", + "s3Key", + "originalFileName", + "sizeBytes", + "contentType", + "uploadedByUserId", + "uploadedAt", + "url", + "expiresAt" + ], + "type": "object", + "additionalProperties": false + }, + "APITicketDetail": { + "properties": { + "_id": { + "type": "string" }, - "hasDebranding": { - "type": "boolean" + "urlId": { + "type": "string" }, - "hasLLMSpamDetection": { - "type": "boolean" + "userId": { + "type": "string" }, - "forWhoText": { + "managedByTenantId": { "type": "string" }, - "featureTaglines": { + "assignedUserIds": { "items": { "type": "string" }, "type": "array" }, - "hasAuditing": { - "type": "boolean" - }, - "hasFlexPricing": { - "type": "boolean" - }, - "enableSAML": { - "type": "boolean" - }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" - }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" - }, - "flexCommentCostCents": { - "type": "number", - "format": "double" - }, - "flexCommentUnit": { - "type": "number", - "format": "double" - }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" - }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" - }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" - }, - "flexSmallWidgetsCreditCostCents": { - "type": "number", - "format": "double" - }, - "flexSmallWidgetsCreditUnit": { - "type": "number", - "format": "double" - }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" - }, - "flexModeratorUnit": { - "type": "number", - "format": "double" - }, - "flexAdminCostCents": { - "type": "number", - "format": "double" - }, - "flexAdminUnit": { - "type": "number", - "format": "double" - }, - "flexDomainCostCents": { - "type": "number", - "format": "double" - }, - "flexDomainUnit": { - "type": "number", - "format": "double" - }, - "flexChatGPTCostCents": { - "type": "number", - "format": "double" + "subject": { + "type": "string" }, - "flexChatGPTUnit": { - "type": "number", - "format": "double" + "createdAt": { + "type": "string" }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" + "state": { + "type": "integer", + "format": "int32" }, - "flexManagedTenantCostCents": { - "type": "number", - "format": "double" + "fileCount": { + "type": "integer", + "format": "int32" }, - "flexSSOAdminCostCents": { - "type": "number", - "format": "double" + "files": { + "items": { + "$ref": "#/components/schemas/APITicketFile" + }, + "type": "array" }, - "flexSSOAdminUnit": { - "type": "number", - "format": "double" + "reopenedAt": { + "type": "string", + "nullable": true }, - "flexSSOModeratorCostCents": { - "type": "number", - "format": "double" + "resolvedAt": { + "type": "string", + "nullable": true }, - "flexSSOModeratorUnit": { - "type": "number", - "format": "double" + "ackAt": { + "type": "string", + "nullable": true } }, "required": [ - "name", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "hasDebranding", - "forWhoText", - "featureTaglines", - "hasFlexPricing" + "_id", + "urlId", + "userId", + "managedByTenantId", + "assignedUserIds", + "subject", + "createdAt", + "state", + "fileCount", + "files" ], "type": "object", "additionalProperties": false }, - "ReplaceTenantPackageBody": { + "GetTicketResponse": { "properties": { - "name": { - "type": "string" - }, - "monthlyCostUSD": { - "type": "number", - "format": "double" - }, - "yearlyCostUSD": { - "type": "number", - "format": "double" - }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" - }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" - }, - "maxMonthlyComments": { - "type": "number", - "format": "double" - }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "maxTenantUsers": { - "type": "number", - "format": "double" + "ticket": { + "$ref": "#/components/schemas/APITicketDetail" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "availableStates": { + "items": { + "type": "number", + "format": "double" + }, + "type": "array" + } + }, + "required": [ + "status", + "ticket", + "availableStates" + ], + "type": "object", + "additionalProperties": false + }, + "ChangeTicketStateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "maxModerators": { - "type": "number", - "format": "double" + "ticket": { + "$ref": "#/components/schemas/APITicket" + } + }, + "required": [ + "status", + "ticket" + ], + "type": "object", + "additionalProperties": false + }, + "ChangeTicketStateBody": { + "properties": { + "state": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "state" + ], + "type": "object", + "additionalProperties": false + }, + "ImportedSiteType": { + "enum": [ + 0, + 1 + ], + "type": "integer" + }, + "SiteType": { + "$ref": "#/components/schemas/ImportedSiteType" + }, + "APIDomainConfiguration": { + "properties": { + "id": { + "type": "string" }, - "maxDomains": { - "type": "number", - "format": "double" + "domain": { + "type": "string" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "emailFromName": { + "type": "string", + "nullable": true }, - "hasDebranding": { - "type": "boolean" + "emailFromEmail": { + "type": "string", + "nullable": true }, - "forWhoText": { - "type": "string" + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" }, - "featureTaglines": { - "items": { - "type": "string" - }, - "type": "array" + "wpSyncToken": { + "type": "string", + "nullable": true }, - "hasFlexPricing": { + "wpSynced": { "type": "boolean" }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" + "wpURL": { + "type": "string", + "nullable": true }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" + "createdAt": { + "type": "string", + "format": "date-time" }, - "flexCommentCostCents": { - "type": "number", - "format": "double" + "autoAddedDate": { + "type": "string", + "format": "date-time" }, - "flexCommentUnit": { - "type": "number", - "format": "double" + "siteType": { + "$ref": "#/components/schemas/SiteType" }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" + "logoSrc": { + "type": "string", + "nullable": true }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" + "logoSrc100px": { + "type": "string", + "nullable": true }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" + "footerUnsubscribeURL": { + "type": "string" }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" + "disableUnsubscribeLinks": { + "type": "boolean" + } + }, + "required": [ + "id", + "domain", + "createdAt" + ], + "type": "object", + "additionalProperties": false + }, + "BillingInfo": { + "properties": { + "name": { + "type": "string" }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" + "address": { + "type": "string" }, - "flexModeratorUnit": { - "type": "number", - "format": "double" + "city": { + "type": "string" }, - "flexAdminCostCents": { - "type": "number", - "format": "double" + "state": { + "type": "string" }, - "flexAdminUnit": { - "type": "number", - "format": "double" + "zip": { + "type": "string" }, - "flexDomainCostCents": { - "type": "number", - "format": "double" + "country": { + "type": "string" }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "currency": { + "type": "string", + "nullable": true, + "description": "Currency for invoices." }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" + "email": { + "type": "string", + "description": "Email for invoices." } }, "required": [ "name", - "monthlyCostUSD", - "yearlyCostUSD", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "hasDebranding", - "forWhoText", - "featureTaglines", - "hasFlexPricing" + "address", + "city", + "state", + "zip", + "country" ], "type": "object", "additionalProperties": false }, - "UpdateTenantPackageBody": { + "APITenant": { "properties": { + "id": { + "type": "string" + }, "name": { "type": "string" }, - "monthlyCostUSD": { + "email": { + "type": "string" + }, + "signUpDate": { "type": "number", "format": "double" }, - "yearlyCostUSD": { + "packageId": { + "type": "string" + }, + "paymentFrequency": { "type": "number", "format": "double" }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" - }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" - }, - "maxMonthlyComments": { - "type": "number", - "format": "double" - }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" - }, - "maxTenantUsers": { - "type": "number", - "format": "double" - }, - "maxSSOUsers": { - "type": "number", - "format": "double" - }, - "maxModerators": { - "type": "number", - "format": "double" - }, - "maxDomains": { - "type": "number", - "format": "double" - }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" - }, - "hasDebranding": { + "billingInfoValid": { "type": "boolean" }, - "hasWhiteLabeling": { + "billingHandledExternally": { "type": "boolean" }, - "forWhoText": { + "createdBy": { "type": "string" }, - "featureTaglines": { + "isSetup": { + "type": "boolean" + }, + "domainConfiguration": { "items": { - "type": "string" + "$ref": "#/components/schemas/APIDomainConfiguration" }, "type": "array" }, - "hasFlexPricing": { - "type": "boolean" - }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" - }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" - }, - "flexCommentCostCents": { - "type": "number", - "format": "double" - }, - "flexCommentUnit": { - "type": "number", - "format": "double" - }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" - }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" - }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" - }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" - }, - "flexModeratorUnit": { - "type": "number", - "format": "double" - }, - "flexAdminCostCents": { - "type": "number", - "format": "double" - }, - "flexAdminUnit": { - "type": "number", - "format": "double" - }, - "flexDomainCostCents": { - "type": "number", - "format": "double" - }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" - } - }, - "type": "object", - "additionalProperties": false - }, - "APITenantDailyUsage": { - "properties": { - "id": { + "stripeCustomerId": { "type": "string" }, - "tenantId": { + "stripeSubscriptionId": { "type": "string" }, - "yearNumber": { - "type": "number", - "format": "double" + "stripePlanId": { + "type": "string" }, - "monthNumber": { - "type": "number", - "format": "double" + "enableProfanityFilter": { + "type": "boolean" }, - "dayNumber": { - "type": "number", - "format": "double" + "enableSpamFilter": { + "type": "boolean" }, - "commentFetchCount": { - "type": "number", - "format": "double" + "lastBillingIssueReminderDate": { + "type": "string", + "format": "date-time" }, - "commentCreateCount": { - "type": "number", - "format": "double" + "removeUnverifiedComments": { + "type": "boolean" }, - "conversationCreateCount": { + "unverifiedCommentsTTLms": { "type": "number", - "format": "double" + "format": "double", + "nullable": true }, - "voteCount": { - "type": "number", - "format": "double" + "commentsRequireApproval": { + "type": "boolean" }, - "accountCreatedCount": { - "type": "number", - "format": "double" + "autoApproveCommentOnVerification": { + "type": "boolean" }, - "userMentionSearch": { - "type": "number", - "format": "double" + "sendProfaneToSpam": { + "type": "boolean" }, - "hashTagSearch": { - "type": "number", - "format": "double" + "hasFlexPricing": { + "type": "boolean" }, - "gifSearchTrending": { - "type": "number", - "format": "double" + "hasAuditing": { + "type": "boolean" }, - "gifSearch": { + "flexLastBilledAmount": { "type": "number", "format": "double" }, - "apiCreditsUsed": { + "deAnonIpAddr": { "type": "number", "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "billed": { - "type": "boolean" - }, - "ignored": { - "type": "boolean" - }, - "apiErrorCount": { - "type": "number", - "format": "double" + "meta": { + "$ref": "#/components/schemas/Record_string.string_" } }, "required": [ "id", - "tenantId", - "yearNumber", - "monthNumber", - "dayNumber", - "commentFetchCount", - "commentCreateCount", - "conversationCreateCount", - "voteCount", - "accountCreatedCount", - "userMentionSearch", - "hashTagSearch", - "gifSearchTrending", - "gifSearch", - "apiCreditsUsed", - "createdAt", - "billed", - "ignored", - "apiErrorCount" + "name", + "signUpDate", + "packageId", + "paymentFrequency", + "billingInfoValid", + "createdBy", + "isSetup", + "domainConfiguration", + "enableProfanityFilter", + "enableSpamFilter" ], "type": "object", "additionalProperties": false }, - "GetTenantDailyUsagesResponse": { + "GetTenantResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantDailyUsages": { - "items": { - "$ref": "#/components/schemas/APITenantDailyUsage" - }, - "type": "array" + "tenant": { + "$ref": "#/components/schemas/APITenant" } }, "required": [ "status", - "tenantDailyUsages" + "tenant" ], "type": "object", "additionalProperties": false }, - "MetaItem": { + "GetTenantsResponse": { "properties": { - "name": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "values": { + "tenants": { "items": { - "type": "string" + "$ref": "#/components/schemas/APITenant" }, "type": "array" } }, "required": [ - "name", - "values" + "status", + "tenants" ], "type": "object", "additionalProperties": false }, - "QuestionResult": { + "CreateTenantResponse": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "tenant": { + "$ref": "#/components/schemas/APITenant" + } + }, + "required": [ + "status", + "tenant" + ], + "type": "object", + "additionalProperties": false + }, + "CreateTenantBody": { + "properties": { + "name": { "type": "string" }, - "urlId": { + "domainConfiguration": { + "items": { + "$ref": "#/components/schemas/APIDomainConfiguration" + }, + "type": "array" + }, + "email": { "type": "string" }, - "anonUserId": { + "signUpDate": { + "type": "number", + "format": "double" + }, + "packageId": { "type": "string" }, - "userId": { + "paymentFrequency": { + "type": "number", + "format": "double" + }, + "billingInfoValid": { + "type": "boolean" + }, + "billingHandledExternally": { + "type": "boolean" + }, + "createdBy": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" + "isSetup": { + "type": "boolean" }, - "value": { - "type": "integer", - "format": "int32" + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "commentId": { - "type": "string", - "nullable": true + "stripeCustomerId": { + "type": "string" }, - "questionId": { + "stripeSubscriptionId": { + "type": "string" + }, + "stripePlanId": { "type": "string" }, + "enableProfanityFilter": { + "type": "boolean" + }, + "enableSpamFilter": { + "type": "boolean" + }, + "removeUnverifiedComments": { + "type": "boolean" + }, + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double" + }, + "commentsRequireApproval": { + "type": "boolean" + }, + "autoApproveCommentOnVerification": { + "type": "boolean" + }, + "sendProfaneToSpam": { + "type": "boolean" + }, + "deAnonIpAddr": { + "type": "number", + "format": "double" + }, "meta": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "name", + "domainConfiguration" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateTenantBody": { + "properties": { + "name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "signUpDate": { + "type": "number", + "format": "double" + }, + "packageId": { + "type": "string" + }, + "paymentFrequency": { + "type": "number", + "format": "double" + }, + "billingInfoValid": { + "type": "boolean" + }, + "billingHandledExternally": { + "type": "boolean" + }, + "createdBy": { + "type": "string" + }, + "isSetup": { + "type": "boolean" + }, + "domainConfiguration": { "items": { - "$ref": "#/components/schemas/MetaItem" + "$ref": "#/components/schemas/APIDomainConfiguration" }, - "type": "array", - "nullable": true + "type": "array" }, - "ipHash": { + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" + }, + "stripeCustomerId": { + "type": "string" + }, + "stripeSubscriptionId": { + "type": "string" + }, + "stripePlanId": { + "type": "string" + }, + "enableProfanityFilter": { + "type": "boolean" + }, + "enableSpamFilter": { + "type": "boolean" + }, + "removeUnverifiedComments": { + "type": "boolean" + }, + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double" + }, + "commentsRequireApproval": { + "type": "boolean" + }, + "autoApproveCommentOnVerification": { + "type": "boolean" + }, + "sendProfaneToSpam": { + "type": "boolean" + }, + "deAnonIpAddr": { + "type": "number", + "format": "double" + }, + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "managedByTenantId": { "type": "string" } }, - "required": [ - "_id", - "tenantId", - "urlId", - "anonUserId", - "userId", - "createdAt", - "value", - "questionId", - "ipHash" - ], "type": "object", "additionalProperties": false }, - "GetQuestionResultResponse": { + "GetTenantUserResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "questionResult": { - "$ref": "#/components/schemas/QuestionResult" + "tenantUser": { + "$ref": "#/components/schemas/User" } }, "required": [ "status", - "questionResult" + "tenantUser" ], "type": "object", "additionalProperties": false }, - "GetQuestionResultsResponse": { + "GetTenantUsersResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "questionResults": { + "tenantUsers": { "items": { - "$ref": "#/components/schemas/QuestionResult" + "$ref": "#/components/schemas/User" }, "type": "array" } }, "required": [ "status", - "questionResults" + "tenantUsers" ], "type": "object", "additionalProperties": false }, - "CreateQuestionResultResponse": { + "CreateTenantUserResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "questionResult": { - "$ref": "#/components/schemas/QuestionResult" + "tenantUser": { + "$ref": "#/components/schemas/User" } }, "required": [ "status", - "questionResult" + "tenantUser" ], "type": "object", "additionalProperties": false }, - "CreateQuestionResultBody": { + "CreateTenantUserBody": { "properties": { - "urlId": { + "username": { "type": "string" }, - "value": { - "type": "number", - "format": "double" - }, - "questionId": { + "email": { "type": "string" }, - "anonUserId": { + "displayName": { "type": "string" }, - "userId": { + "websiteUrl": { "type": "string" }, - "commentId": { - "type": "string" + "signUpDate": { + "type": "number", + "format": "double" }, - "meta": { - "items": { - "$ref": "#/components/schemas/MetaItem" - }, - "type": "array", - "nullable": true - } - }, - "required": [ - "urlId", - "value", - "questionId" - ], - "type": "object", - "additionalProperties": {} - }, - "UpdateQuestionResultBody": { - "properties": { - "urlId": { + "locale": { "type": "string" }, - "anonUserId": { - "type": "string" - }, - "userId": { - "type": "string" + "verified": { + "type": "boolean" }, - "value": { + "loginCount": { "type": "number", "format": "double" }, - "commentId": { - "type": "string" + "optedInNotifications": { + "type": "boolean" }, - "questionId": { + "optedInTenantNotifications": { + "type": "boolean" + }, + "hideAccountCode": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "meta": { + "isHelpRequestAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "isAdminAdmin": { + "type": "boolean" + }, + "isBillingAdmin": { + "type": "boolean" + }, + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "moderatorIds": { "items": { - "$ref": "#/components/schemas/MetaItem" + "type": "string" }, - "type": "array", - "nullable": true - } - }, - "type": "object", - "additionalProperties": {} - }, - "Record_number.number_": { - "properties": {}, - "additionalProperties": { - "type": "number", - "format": "double" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "QuestionDatum": { - "properties": { - "v": { - "$ref": "#/components/schemas/Record_number.number_" + "type": "array" }, - "total": { - "type": "integer", - "format": "int64" + "digestEmailFrequency": { + "type": "number", + "format": "double" + }, + "displayLabel": { + "type": "string" } }, "required": [ - "v", - "total" + "username", + "email" ], "type": "object", "additionalProperties": false }, - "Record_string.QuestionDatum_": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/QuestionDatum" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "QuestionResultAggregationOverall": { + "ReplaceTenantUserBody": { "properties": { - "dataByDateBucket": { - "$ref": "#/components/schemas/Record_string.QuestionDatum_" + "username": { + "type": "string" }, - "dataByUrlId": { - "$ref": "#/components/schemas/Record_string.QuestionDatum_" + "email": { + "type": "string" }, - "countsByValue": { - "$ref": "#/components/schemas/Int32Map" + "displayName": { + "type": "string" }, - "total": { - "type": "integer", - "format": "int64" + "websiteUrl": { + "type": "string" }, - "average": { + "signUpDate": { "type": "number", "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "total", - "createdAt" - ], - "type": "object", - "additionalProperties": false - }, - "AggregateQuestionResultsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "locale": { + "type": "string" }, - "data": { - "$ref": "#/components/schemas/QuestionResultAggregationOverall" - } - }, - "required": [ - "status", - "data" - ], - "type": "object", - "additionalProperties": false - }, - "AggregateTimeBucket": { - "type": "string", - "enum": [ - "day", - "month", - "year" - ] - }, - "Record_string.QuestionResultAggregationOverall_": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/QuestionResultAggregationOverall" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "BulkAggregateQuestionResultsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "verified": { + "type": "boolean" }, - "data": { - "$ref": "#/components/schemas/Record_string.QuestionResultAggregationOverall_" - } - }, - "required": [ - "status", - "data" - ], - "type": "object", - "additionalProperties": false - }, - "BulkAggregateQuestionItem": { - "properties": { - "aggId": { - "type": "string" + "loginCount": { + "type": "number", + "format": "double" }, - "questionId": { + "optedInNotifications": { + "type": "boolean" + }, + "optedInTenantNotifications": { + "type": "boolean" + }, + "hideAccountCode": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "questionIds": { + "isHelpRequestAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "isAdminAdmin": { + "type": "boolean" + }, + "isBillingAdmin": { + "type": "boolean" + }, + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "moderatorIds": { "items": { "type": "string" }, "type": "array" }, - "urlId": { + "digestEmailFrequency": { + "type": "number", + "format": "double" + }, + "displayLabel": { "type": "string" }, - "timeBucket": { - "$ref": "#/components/schemas/AggregateTimeBucket" + "createdFromUrlId": { + "type": "string" }, - "startDate": { - "type": "string", - "format": "date-time" + "createdFromTenantId": { + "type": "string" + }, + "lastLoginDate": { + "type": "number", + "format": "double" + }, + "karma": { + "type": "number", + "format": "double" } }, "required": [ - "aggId" + "username", + "email" ], "type": "object", "additionalProperties": false }, - "BulkAggregateQuestionResultsRequest": { + "UpdateTenantUserBody": { "properties": { - "aggregations": { - "items": { - "$ref": "#/components/schemas/BulkAggregateQuestionItem" - }, - "type": "array" - } - }, - "required": [ - "aggregations" - ], - "type": "object", - "additionalProperties": false - }, - "CommentLogType": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 37, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 46, - 47, - 48, - 49, - 50, - 51, - 52, - 53, - 54, - 55 - ], - "type": "integer" - }, - "RepeatCommentHandlingAction": { - "enum": [ - 0, - 1, - 2 - ], - "type": "integer" - }, - "RepeatCommentCheckIgnoredReason": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "integer" - }, - "CommentLogData": { - "properties": { - "clearContent": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" - }, - "phrase": { + "username": { "type": "string" }, - "badWord": { + "displayName": { "type": "string" }, - "word": { + "websiteUrl": { "type": "string" }, - "locale": { + "email": { "type": "string" }, - "tenantBadgeId": { - "type": "string" + "signUpDate": { + "type": "number", + "format": "double" }, - "badgeId": { - "type": "string" + "verified": { + "type": "boolean" }, - "wasLoggedIn": { + "loginCount": { + "type": "number", + "format": "double" + }, + "optedInNotifications": { "type": "boolean" }, - "foundUser": { + "optedInTenantNotifications": { "type": "boolean" }, - "verified": { + "hideAccountCode": { "type": "boolean" }, - "engine": { + "avatarSrc": { "type": "string" }, - "engineResponse": { + "isHelpRequestAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "isAdminAdmin": { + "type": "boolean" + }, + "isBillingAdmin": { + "type": "boolean" + }, + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "moderatorIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "locale": { "type": "string" }, - "engineTokens": { + "digestEmailFrequency": { "type": "number", "format": "double" }, - "trustFactor": { - "type": "number", - "format": "double" + "displayLabel": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "TenantPackage": { + "properties": { + "_id": { + "type": "string" }, - "rule": { - "$ref": "#/components/schemas/SpamRule" + "name": { + "type": "string" }, - "userId": { + "tenantId": { "type": "string" }, - "subscribers": { - "type": "number", - "format": "double" + "createdAt": { + "type": "string", + "format": "date-time" }, - "notificationCount": { - "type": "number", - "format": "double" + "templateId": { + "type": "string" }, - "votesBefore": { + "monthlyCostUSD": { "type": "number", "format": "double", "nullable": true }, - "votesUpBefore": { + "yearlyCostUSD": { "type": "number", "format": "double", "nullable": true }, - "votesDownBefore": { - "type": "number", - "format": "double", + "monthlyStripePlanId": { + "type": "string", "nullable": true }, - "votesAfter": { - "type": "number", - "format": "double", + "yearlyStripePlanId": { + "type": "string", "nullable": true }, - "votesUpAfter": { + "maxMonthlyPageLoads": { "type": "number", - "format": "double", - "nullable": true + "format": "double" }, - "votesDownAfter": { + "maxMonthlyAPICredits": { "type": "number", - "format": "double", - "nullable": true + "format": "double" }, - "repeatAction": { - "$ref": "#/components/schemas/RepeatCommentHandlingAction" + "maxMonthlySmallWidgetsCredits": { + "type": "number", + "format": "double" }, - "reason": { - "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "otherData": {}, - "spamBefore": { - "type": "boolean" + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "spamAfter": { - "type": "boolean" + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "permanentFlag": { - "type": "string", - "enum": [ - "permanent" - ], - "nullable": false + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "approvedBefore": { - "type": "boolean" + "maxModerators": { + "type": "number", + "format": "double" }, - "approvedAfter": { - "type": "boolean" + "maxDomains": { + "type": "number", + "format": "double" }, - "reviewedBefore": { - "type": "boolean" - }, - "reviewedAfter": { - "type": "boolean" - }, - "textBefore": { - "type": "string" - }, - "textAfter": { - "type": "string" - }, - "expireBefore": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "expireAfter": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "flagCountBefore": { + "maxWhiteLabeledTenants": { "type": "number", - "format": "double", - "nullable": true + "format": "double" }, - "trustFactorBefore": { + "maxMonthlyEventLogRequests": { "type": "number", "format": "double" }, - "trustFactorAfter": { + "maxCustomCollectionSize": { "type": "number", "format": "double" }, - "referencedCommentId": { - "type": "string" - }, - "invalidLocale": { - "type": "string" - }, - "detectedLocale": { - "type": "string" + "hasWhiteLabeling": { + "type": "boolean" }, - "detectedLanguage": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "CommentLogEntry": { - "properties": { - "d": { - "type": "string", - "format": "date-time" + "hasDebranding": { + "type": "boolean" }, - "t": { - "$ref": "#/components/schemas/CommentLogType" + "hasLLMSpamDetection": { + "type": "boolean" }, - "da": { - "$ref": "#/components/schemas/CommentLogData" - } - }, - "required": [ - "d", - "t" - ], - "type": "object", - "additionalProperties": false - }, - "FComment": { - "properties": { - "_id": { + "forWhoText": { "type": "string" }, - "tenantId": { - "type": "string" + "featureTaglines": { + "items": { + "type": "string" + }, + "type": "array" }, - "urlId": { - "type": "string" + "hasAuditing": { + "type": "boolean" }, - "urlIdRaw": { - "type": "string" + "hasFlexPricing": { + "type": "boolean" }, - "url": { - "type": "string" + "enableSAML": { + "type": "boolean" }, - "pageTitle": { - "type": "string", - "nullable": true + "enableCanvasLTI": { + "type": "boolean" }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], - "nullable": true + "flexPageLoadCostCents": { + "type": "number", + "format": "double" }, - "anonUserId": { - "type": "string", - "nullable": true + "flexPageLoadUnit": { + "type": "number", + "format": "double" }, - "commenterEmail": { - "type": "string", - "nullable": true + "flexCommentCostCents": { + "type": "number", + "format": "double" }, - "commenterName": { - "type": "string" + "flexCommentUnit": { + "type": "number", + "format": "double" }, - "commenterLink": { - "type": "string", - "nullable": true + "flexSSOUserCostCents": { + "type": "number", + "format": "double" }, - "comment": { - "type": "string" + "flexSSOUserUnit": { + "type": "number", + "format": "double" }, - "commentHTML": { - "type": "string" + "flexAPICreditCostCents": { + "type": "number", + "format": "double" }, - "parentId": { - "type": "string", - "nullable": true + "flexAPICreditUnit": { + "type": "number", + "format": "double" }, - "date": { - "type": "string", - "format": "date-time", - "nullable": true + "flexSmallWidgetsCreditCostCents": { + "type": "number", + "format": "double" }, - "localDateString": { - "type": "string", - "nullable": true + "flexSmallWidgetsCreditUnit": { + "type": "number", + "format": "double" }, - "localDateHours": { - "type": "integer", - "format": "int32", - "nullable": true + "flexModeratorCostCents": { + "type": "number", + "format": "double" }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true + "flexModeratorUnit": { + "type": "number", + "format": "double" }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true + "flexAdminCostCents": { + "type": "number", + "format": "double" }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "flexAdminUnit": { + "type": "number", + "format": "double" }, - "expireAt": { - "type": "string", - "format": "date-time", - "nullable": true + "flexDomainCostCents": { + "type": "number", + "format": "double" }, - "verified": { - "type": "boolean" + "flexDomainUnit": { + "type": "number", + "format": "double" }, - "verifiedDate": { - "type": "string", - "format": "date-time", - "nullable": true + "flexChatGPTCostCents": { + "type": "number", + "format": "double" }, - "verificationId": { - "type": "string", - "nullable": true + "flexChatGPTUnit": { + "type": "number", + "format": "double" }, - "notificationSentForParent": { - "type": "boolean" + "flexLLMCostCents": { + "type": "number", + "format": "double" }, - "notificationSentForParentTenant": { - "type": "boolean" + "flexLLMUnit": { + "type": "number", + "format": "double" }, - "reviewed": { - "type": "boolean" + "flexMinimumCostCents": { + "type": "number", + "format": "double" }, - "imported": { - "type": "boolean" + "flexManagedTenantCostCents": { + "type": "number", + "format": "double" }, - "externalId": { - "type": "string" + "flexSSOAdminCostCents": { + "type": "number", + "format": "double" }, - "externalParentId": { - "type": "string", - "nullable": true + "flexSSOAdminUnit": { + "type": "number", + "format": "double" }, - "avatarSrc": { - "type": "string", - "nullable": true + "flexSSOModeratorCostCents": { + "type": "number", + "format": "double" }, - "isSpam": { - "type": "boolean" + "flexSSOModeratorUnit": { + "type": "number", + "format": "double" }, - "permNotSpam": { + "isSSOBillingMonthlyActiveUsers": { "type": "boolean" }, - "aiDeterminedSpam": { + "hasAIAgents": { "type": "boolean" }, - "hasImages": { - "type": "boolean" - }, - "pageNumber": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "pageNumberOF": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "pageNumberNF": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "hasLinks": { - "type": "boolean" - }, - "hasCode": { - "type": "boolean" - }, - "approved": { - "type": "boolean" - }, - "locale": { - "type": "string", - "nullable": true - }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" - }, - "isBannedUser": { - "type": "boolean" - }, - "isByAdmin": { - "type": "boolean" - }, - "isByModerator": { - "type": "boolean" - }, - "isPinned": { - "type": "boolean", - "nullable": true - }, - "isLocked": { - "type": "boolean", - "nullable": true - }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "rating": { + "maxAIAgents": { "type": "number", - "format": "double", - "nullable": true - }, - "displayLabel": { - "type": "string", - "nullable": true - }, - "fromProductId": { - "type": "integer", - "format": "int32" - }, - "meta": { - "properties": { - "wpId": { - "type": "string" - }, - "wpUserId": { - "type": "string" - }, - "wpPostId": { - "type": "string" - } - }, - "additionalProperties": {}, - "type": "object", - "nullable": true - }, - "ipHash": { - "type": "string" - }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" - }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" - }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", - "nullable": true - }, - "domain": { - "allOf": [ - { - "$ref": "#/components/schemas/FDomain" - } - ], - "nullable": true - }, - "veteranBadgeProcessed": { - "type": "string" - }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true - }, - "didProcessBadges": { - "type": "boolean" - }, - "fromOfflineRestore": { - "type": "boolean" - }, - "autoplayJobId": { - "type": "string" - }, - "autoplayDelayMS": { - "type": "integer", - "format": "int64" - }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "logs": { - "items": { - "$ref": "#/components/schemas/CommentLogEntry" - }, - "type": "array", - "nullable": true - }, - "groupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true - }, - "viewCount": { - "type": "integer", - "format": "int64", - "nullable": true - }, - "requiresVerification": { - "type": "boolean" + "format": "double" }, - "editKey": { - "type": "string" + "aiAgentDailyBudgetCents": { + "type": "number", + "format": "double" }, - "tosAcceptedAt": { - "type": "string", - "format": "date-time" + "aiAgentMonthlyBudgetCents": { + "type": "number", + "format": "double" } }, "required": [ "_id", + "name", "tenantId", - "urlId", - "url", - "commenterName", - "comment", - "commentHTML", - "date", - "verified", - "approved", - "locale" + "createdAt", + "monthlyCostUSD", + "yearlyCostUSD", + "monthlyStripePlanId", + "yearlyStripePlanId", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlySmallWidgetsCredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "maxWhiteLabeledTenants", + "maxMonthlyEventLogRequests", + "maxCustomCollectionSize", + "hasWhiteLabeling", + "hasDebranding", + "hasLLMSpamDetection", + "forWhoText", + "featureTaglines", + "hasAuditing", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "FindCommentsByRangeItem": { + "GetTenantPackageResponse": { "properties": { - "comment": { - "allOf": [ - { - "$ref": "#/components/schemas/FComment" - } - ], - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "result": { - "$ref": "#/components/schemas/QuestionResult" + "tenantPackage": { + "$ref": "#/components/schemas/TenantPackage" } }, "required": [ - "comment", - "result" + "status", + "tenantPackage" ], "type": "object", "additionalProperties": false }, - "FindCommentsByRangeResponse": { + "GetTenantPackagesResponse": { "properties": { - "results": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "tenantPackages": { "items": { - "$ref": "#/components/schemas/FindCommentsByRangeItem" + "$ref": "#/components/schemas/TenantPackage" }, "type": "array" - }, - "createdAt": { - "type": "string", - "format": "date-time" } }, "required": [ - "results", - "createdAt" + "status", + "tenantPackages" ], "type": "object", "additionalProperties": false }, - "CombineQuestionResultsWithCommentsResponse": { + "CreateTenantPackageResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { - "$ref": "#/components/schemas/FindCommentsByRangeResponse" + "tenantPackage": { + "$ref": "#/components/schemas/TenantPackage" } }, "required": [ "status", - "data" + "tenantPackage" ], "type": "object", "additionalProperties": false }, - "QuestionConfig": { + "CreateTenantPackageBody": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "type": "string" - }, "name": { "type": "string" }, - "question": { - "type": "string" - }, - "summaryLabel": { - "type": "string" + "monthlyCostUSD": { + "type": "number", + "format": "double", + "nullable": true }, - "helpText": { - "type": "string" + "yearlyCostUSD": { + "type": "number", + "format": "double", + "nullable": true }, - "createdAt": { + "monthlyStripePlanId": { "type": "string", - "format": "date-time" + "nullable": true }, - "createdBy": { - "type": "string" + "yearlyStripePlanId": { + "type": "string", + "nullable": true }, - "usedCount": { + "maxMonthlyPageLoads": { "type": "number", "format": "double" }, - "lastUsed": { - "type": "string", - "format": "date-time" - }, - "type": { - "type": "string" - }, - "numStars": { + "maxMonthlyAPICredits": { "type": "number", "format": "double" }, - "min": { + "maxMonthlySmallWidgetsCredits": { "type": "number", "format": "double" }, - "max": { + "maxMonthlyComments": { "type": "number", "format": "double" }, - "defaultValue": { + "maxConcurrentUsers": { "type": "number", "format": "double" }, - "labelNegative": { - "type": "string" - }, - "labelPositive": { - "type": "string" - }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" - }, - "subQuestionIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "alwaysShowSubQuestions": { - "type": "boolean" - }, - "reportingOrder": { + "maxTenantUsers": { "type": "number", "format": "double" - } - }, - "required": [ - "_id", - "tenantId", - "name", - "question", - "helpText", - "createdAt", - "createdBy", - "usedCount", - "lastUsed", - "type", - "numStars", - "min", - "max", - "defaultValue", - "labelNegative", - "labelPositive", - "customOptions", - "subQuestionIds", - "alwaysShowSubQuestions", - "reportingOrder" - ], - "type": "object", - "additionalProperties": false - }, - "GetQuestionConfigResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "questionConfig": { - "$ref": "#/components/schemas/QuestionConfig" - } - }, - "required": [ - "status", - "questionConfig" - ], - "type": "object", - "additionalProperties": false - }, - "GetQuestionConfigsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "questionConfigs": { - "items": { - "$ref": "#/components/schemas/QuestionConfig" - }, - "type": "array" - } - }, - "required": [ - "status", - "questionConfigs" - ], - "type": "object", - "additionalProperties": false - }, - "CreateQuestionConfigResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "questionConfig": { - "$ref": "#/components/schemas/QuestionConfig" - } - }, - "required": [ - "status", - "questionConfig" - ], - "type": "object", - "additionalProperties": false - }, - "CreateQuestionConfigBody": { - "properties": { - "name": { - "type": "string" - }, - "question": { - "type": "string" }, - "helpText": { - "type": "string" + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "type": { - "type": "string" + "maxModerators": { + "type": "number", + "format": "double" }, - "numStars": { + "maxDomains": { "type": "number", "format": "double" }, - "min": { + "maxWhiteLabeledTenants": { "type": "number", "format": "double" }, - "max": { + "maxMonthlyEventLogRequests": { "type": "number", "format": "double" }, - "defaultValue": { + "maxCustomCollectionSize": { "type": "number", "format": "double" }, - "labelNegative": { - "type": "string" + "hasWhiteLabeling": { + "type": "boolean" }, - "labelPositive": { - "type": "string" + "hasDebranding": { + "type": "boolean" }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" + "hasLLMSpamDetection": { + "type": "boolean" }, - "subQuestionIds": { + "forWhoText": { + "type": "string" + }, + "featureTaglines": { "items": { "type": "string" }, "type": "array" }, - "alwaysShowSubQuestions": { + "hasAuditing": { "type": "boolean" }, - "reportingOrder": { - "type": "number", - "format": "double" - } - }, - "required": [ - "name", - "question", - "type", - "reportingOrder" - ], - "type": "object", - "additionalProperties": {} - }, - "UpdateQuestionConfigBody": { - "properties": { - "name": { - "type": "string" - }, - "question": { - "type": "string" - }, - "helpText": { - "type": "string" + "hasFlexPricing": { + "type": "boolean" }, - "type": { - "type": "string" + "enableSAML": { + "type": "boolean" }, - "numStars": { + "flexPageLoadCostCents": { "type": "number", "format": "double" }, - "min": { + "flexPageLoadUnit": { "type": "number", "format": "double" }, - "max": { + "flexCommentCostCents": { "type": "number", "format": "double" }, - "defaultValue": { + "flexCommentUnit": { "type": "number", "format": "double" }, - "labelNegative": { - "type": "string" + "flexSSOUserCostCents": { + "type": "number", + "format": "double" }, - "labelPositive": { - "type": "string" + "flexSSOUserUnit": { + "type": "number", + "format": "double" }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" + "flexAPICreditCostCents": { + "type": "number", + "format": "double" }, - "subQuestionIds": { - "items": { - "type": "string" - }, - "type": "array" + "flexAPICreditUnit": { + "type": "number", + "format": "double" }, - "alwaysShowSubQuestions": { - "type": "boolean" + "flexSmallWidgetsCreditCostCents": { + "type": "number", + "format": "double" }, - "reportingOrder": { + "flexSmallWidgetsCreditUnit": { "type": "number", "format": "double" - } - }, - "type": "object", - "additionalProperties": {} - }, - "PendingCommentToSyncOutbound": { - "properties": { - "_id": { - "type": "string" }, - "commentId": { - "type": "string" + "flexModeratorCostCents": { + "type": "number", + "format": "double" }, - "comment": { - "$ref": "#/components/schemas/FComment" + "flexModeratorUnit": { + "type": "number", + "format": "double" }, - "externalId": { - "type": "string", - "nullable": true + "flexAdminCostCents": { + "type": "number", + "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "flexAdminUnit": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "flexDomainCostCents": { + "type": "number", + "format": "double" }, - "attemptCount": { + "flexDomainUnit": { "type": "number", "format": "double" }, - "nextAttemptAt": { - "type": "string", - "format": "date-time" + "flexLLMCostCents": { + "type": "number", + "format": "double" }, - "eventType": { + "flexLLMUnit": { "type": "number", "format": "double" }, - "type": { + "flexMinimumCostCents": { "type": "number", "format": "double" }, - "domain": { - "type": "string" + "flexManagedTenantCostCents": { + "type": "number", + "format": "double" }, - "lastError": { - "additionalProperties": false, - "type": "object" + "flexSSOAdminCostCents": { + "type": "number", + "format": "double" }, - "webhookId": { - "type": "string" - } - }, - "required": [ - "_id", - "commentId", - "externalId", - "createdAt", - "tenantId", - "attemptCount", - "nextAttemptAt", - "eventType", - "type", - "domain", - "lastError" - ], - "type": "object", - "additionalProperties": false - }, - "GetPendingWebhookEventsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexSSOAdminUnit": { + "type": "number", + "format": "double" }, - "pendingWebhookEvents": { - "items": { - "$ref": "#/components/schemas/PendingCommentToSyncOutbound" - }, - "type": "array" - } - }, - "required": [ - "status", - "pendingWebhookEvents" - ], - "type": "object", - "additionalProperties": false - }, - "GetPendingWebhookEventCountResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexSSOModeratorCostCents": { + "type": "number", + "format": "double" }, - "count": { + "flexSSOModeratorUnit": { "type": "number", "format": "double" } }, "required": [ - "status", - "count" + "name", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "hasDebranding", + "forWhoText", + "featureTaglines", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "GetNotificationsResponse": { + "ReplaceTenantPackageBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "name": { + "type": "string" }, - "notifications": { - "items": { - "$ref": "#/components/schemas/UserNotification" - }, - "type": "array" - } - }, - "required": [ - "status", - "notifications" - ], - "type": "object", - "additionalProperties": false - }, - "GetNotificationCountResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "monthlyCostUSD": { + "type": "number", + "format": "double" }, - "count": { + "yearlyCostUSD": { "type": "number", "format": "double" - } - }, - "required": [ - "status", - "count" - ], - "type": "object", - "additionalProperties": false - }, - "UpdateNotificationBody": { - "properties": { - "viewed": { - "type": "boolean" }, - "optedOut": { - "type": "boolean" - } - }, - "type": "object", - "additionalProperties": {} - }, - "UserNotificationCount": { - "properties": { - "_id": { - "type": "string" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "count": { + "maxMonthlyAPICredits": { "type": "number", "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "expireAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "_id", - "count", - "createdAt", - "expireAt" - ], - "type": "object", - "additionalProperties": false - }, - "GetCachedNotificationCountResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "data": { - "$ref": "#/components/schemas/UserNotificationCount" - } - }, - "required": [ - "status", - "data" - ], - "type": "object", - "additionalProperties": false - }, - "Moderator": { - "properties": { - "_id": { - "type": "string" + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "name": { - "type": "string", - "nullable": true + "maxModerators": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string", - "nullable": true + "maxDomains": { + "type": "number", + "format": "double" }, - "acceptedInvite": { + "maxCustomCollectionSize": { + "type": "number", + "format": "double" + }, + "hasDebranding": { "type": "boolean" }, - "email": { - "type": "string", - "nullable": true + "forWhoText": { + "type": "string" }, - "markReviewedCount": { + "featureTaglines": { + "items": { + "type": "string" + }, + "type": "array" + }, + "hasFlexPricing": { + "type": "boolean" + }, + "flexPageLoadCostCents": { "type": "number", "format": "double" }, - "deletedCount": { + "flexPageLoadUnit": { "type": "number", "format": "double" }, - "markedSpamCount": { + "flexCommentCostCents": { "type": "number", "format": "double" }, - "markedNotSpamCount": { + "flexCommentUnit": { "type": "number", "format": "double" }, - "approvedCount": { + "flexSSOUserCostCents": { "type": "number", "format": "double" }, - "unApprovedCount": { + "flexSSOUserUnit": { "type": "number", "format": "double" }, - "editedCount": { + "flexAPICreditCostCents": { "type": "number", "format": "double" }, - "bannedCount": { + "flexAPICreditUnit": { "type": "number", "format": "double" }, - "unFlaggedCount": { + "flexModeratorCostCents": { "type": "number", "format": "double" }, - "verificationId": { - "type": "string", - "nullable": true - }, - "createdAt": { - "type": "string", - "format": "date-time" + "flexModeratorUnit": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true + "flexAdminCostCents": { + "type": "number", + "format": "double" }, - "isEmailSuppressed": { - "type": "boolean" - } - }, - "required": [ - "_id", - "tenantId", - "name", - "userId", - "acceptedInvite", - "email", - "markReviewedCount", - "deletedCount", - "markedSpamCount", - "markedNotSpamCount", - "approvedCount", - "unApprovedCount", - "editedCount", - "bannedCount", - "unFlaggedCount", - "verificationId", - "createdAt", - "moderationGroupIds" - ], - "type": "object", - "additionalProperties": false - }, - "GetModeratorResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexAdminUnit": { + "type": "number", + "format": "double" }, - "moderator": { - "$ref": "#/components/schemas/Moderator" - } - }, - "required": [ - "status", - "moderator" - ], - "type": "object", - "additionalProperties": false - }, - "GetModeratorsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexDomainCostCents": { + "type": "number", + "format": "double" }, - "moderators": { - "items": { - "$ref": "#/components/schemas/Moderator" - }, - "type": "array" - } - }, - "required": [ - "status", - "moderators" - ], - "type": "object", - "additionalProperties": false - }, - "CreateModeratorResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexDomainUnit": { + "type": "number", + "format": "double" }, - "moderator": { - "$ref": "#/components/schemas/Moderator" + "flexMinimumCostCents": { + "type": "number", + "format": "double" } }, "required": [ - "status", - "moderator" + "name", + "monthlyCostUSD", + "yearlyCostUSD", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "hasDebranding", + "forWhoText", + "featureTaglines", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "CreateModeratorBody": { + "UpdateTenantPackageBody": { "properties": { "name": { "type": "string" }, - "email": { - "type": "string" + "monthlyCostUSD": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string" + "yearlyCostUSD": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "name", - "email" - ], - "type": "object", - "additionalProperties": {} - }, - "UpdateModeratorBody": { - "properties": { - "name": { - "type": "string" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "email": { - "type": "string" + "maxMonthlyAPICredits": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string" + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": {} - }, - "TenantHashTag": { - "properties": { - "_id": { - "type": "string" + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "tag": { - "type": "string" + "maxModerators": { + "type": "number", + "format": "double" }, - "url": { + "maxDomains": { + "type": "number", + "format": "double" + }, + "maxCustomCollectionSize": { + "type": "number", + "format": "double" + }, + "hasDebranding": { + "type": "boolean" + }, + "hasWhiteLabeling": { + "type": "boolean" + }, + "forWhoText": { "type": "string" - } - }, - "required": [ - "_id", - "createdAt", - "tenantId", - "tag" - ], - "type": "object", - "additionalProperties": false - }, - "GetHashTagsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "hashTags": { + "featureTaglines": { "items": { - "$ref": "#/components/schemas/TenantHashTag" + "type": "string" }, "type": "array" - } - }, - "required": [ - "status", - "hashTags" - ], - "type": "object", - "additionalProperties": false - }, - "CreateHashTagResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "hashTag": { - "$ref": "#/components/schemas/TenantHashTag" + "hasFlexPricing": { + "type": "boolean" + }, + "flexPageLoadCostCents": { + "type": "number", + "format": "double" + }, + "flexPageLoadUnit": { + "type": "number", + "format": "double" + }, + "flexCommentCostCents": { + "type": "number", + "format": "double" + }, + "flexCommentUnit": { + "type": "number", + "format": "double" + }, + "flexSSOUserCostCents": { + "type": "number", + "format": "double" + }, + "flexSSOUserUnit": { + "type": "number", + "format": "double" + }, + "flexAPICreditCostCents": { + "type": "number", + "format": "double" + }, + "flexAPICreditUnit": { + "type": "number", + "format": "double" + }, + "flexModeratorCostCents": { + "type": "number", + "format": "double" + }, + "flexModeratorUnit": { + "type": "number", + "format": "double" + }, + "flexAdminCostCents": { + "type": "number", + "format": "double" + }, + "flexAdminUnit": { + "type": "number", + "format": "double" + }, + "flexDomainCostCents": { + "type": "number", + "format": "double" + }, + "flexDomainUnit": { + "type": "number", + "format": "double" + }, + "flexMinimumCostCents": { + "type": "number", + "format": "double" } }, - "required": [ - "status", - "hashTag" - ], "type": "object", "additionalProperties": false }, - "CreateHashTagBody": { + "APITenantDailyUsage": { "properties": { - "tenantId": { + "id": { "type": "string" }, - "tag": { + "tenantId": { "type": "string" }, - "url": { - "type": "string" + "yearNumber": { + "type": "number", + "format": "double" + }, + "monthNumber": { + "type": "number", + "format": "double" + }, + "dayNumber": { + "type": "number", + "format": "double" + }, + "commentFetchCount": { + "type": "number", + "format": "double" + }, + "commentCreateCount": { + "type": "number", + "format": "double" + }, + "conversationCreateCount": { + "type": "number", + "format": "double" + }, + "voteCount": { + "type": "number", + "format": "double" + }, + "accountCreatedCount": { + "type": "number", + "format": "double" + }, + "userMentionSearch": { + "type": "number", + "format": "double" + }, + "hashTagSearch": { + "type": "number", + "format": "double" + }, + "gifSearchTrending": { + "type": "number", + "format": "double" + }, + "gifSearch": { + "type": "number", + "format": "double" + }, + "apiCreditsUsed": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "billed": { + "type": "boolean" + }, + "ignored": { + "type": "boolean" + }, + "apiErrorCount": { + "type": "number", + "format": "double" } }, "required": [ - "tag" + "id", + "tenantId", + "yearNumber", + "monthNumber", + "dayNumber", + "commentFetchCount", + "commentCreateCount", + "conversationCreateCount", + "voteCount", + "accountCreatedCount", + "userMentionSearch", + "hashTagSearch", + "gifSearchTrending", + "gifSearch", + "apiCreditsUsed", + "createdAt", + "billed", + "ignored", + "apiErrorCount" ], "type": "object", "additionalProperties": false }, - "BulkCreateHashTagsResponse": { + "GetTenantDailyUsagesResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "results": { + "tenantDailyUsages": { "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APITenantDailyUsage" }, "type": "array" } }, "required": [ "status", - "results" + "tenantDailyUsages" ], "type": "object", "additionalProperties": false }, - "BulkCreateHashTagsBody": { + "MetaItem": { "properties": { - "tenantId": { + "name": { "type": "string" }, - "tags": { + "values": { "items": { - "properties": { - "url": { - "type": "string" - }, - "tag": { - "type": "string" - } - }, - "required": [ - "tag" - ], - "type": "object" + "type": "string" }, "type": "array" } }, "required": [ - "tags" + "name", + "values" ], "type": "object", "additionalProperties": false }, - "UpdateHashTagResponse": { + "QuestionResult": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "hashTag": { - "$ref": "#/components/schemas/TenantHashTag" + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "anonUserId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "value": { + "type": "integer", + "format": "int32" + }, + "commentId": { + "type": "string", + "nullable": true + }, + "questionId": { + "type": "string" + }, + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true + }, + "ipHash": { + "type": "string" } }, "required": [ - "status", - "hashTag" + "_id", + "tenantId", + "urlId", + "anonUserId", + "userId", + "createdAt", + "value", + "questionId", + "ipHash" ], "type": "object", "additionalProperties": false }, - "UpdateHashTagBody": { + "GetQuestionResultResponse": { "properties": { - "tenantId": { - "type": "string" - }, - "url": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "tag": { - "type": "string" + "questionResult": { + "$ref": "#/components/schemas/QuestionResult" } }, + "required": [ + "status", + "questionResult" + ], "type": "object", "additionalProperties": false }, - "GetFeedPostsResponse": { + "GetQuestionResultsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "feedPosts": { + "questionResults": { "items": { - "$ref": "#/components/schemas/FeedPost" + "$ref": "#/components/schemas/QuestionResult" }, "type": "array" } }, "required": [ "status", - "feedPosts" + "questionResults" ], "type": "object", "additionalProperties": false }, - "CreateFeedPostsResponse": { + "CreateQuestionResultResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "feedPost": { - "$ref": "#/components/schemas/FeedPost" + "questionResult": { + "$ref": "#/components/schemas/QuestionResult" } }, "required": [ "status", - "feedPost" + "questionResult" ], "type": "object", "additionalProperties": false }, - "Record_string.unknown_": { - "properties": {}, - "additionalProperties": {}, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "Record_string.Record_string.string__": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/Record_string.string_" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "EmailTemplateDefinition": { + "CreateQuestionResultBody": { "properties": { - "emailTemplateId": { + "urlId": { "type": "string" }, - "defaultTestData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "value": { + "type": "number", + "format": "double" }, - "defaultTranslationsByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "questionId": { + "type": "string" }, - "defaultEJS": { + "anonUserId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "commentId": { "type": "string" + }, + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true } }, "required": [ - "emailTemplateId", - "defaultTestData", - "defaultTranslationsByLocale", - "defaultEJS" + "urlId", + "value", + "questionId" ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "GetEmailTemplateDefinitionsResponse": { + "UpdateQuestionResultBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "urlId": { + "type": "string" }, - "definitions": { + "anonUserId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "value": { + "type": "number", + "format": "double" + }, + "commentId": { + "type": "string" + }, + "questionId": { + "type": "string" + }, + "meta": { "items": { - "$ref": "#/components/schemas/EmailTemplateDefinition" + "$ref": "#/components/schemas/MetaItem" }, - "type": "array" + "type": "array", + "nullable": true + } + }, + "type": "object", + "additionalProperties": {} + }, + "Record_number.number_": { + "properties": {}, + "additionalProperties": { + "type": "number", + "format": "double" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "QuestionDatum": { + "properties": { + "v": { + "$ref": "#/components/schemas/Record_number.number_" + }, + "total": { + "type": "integer", + "format": "int64" } }, "required": [ - "status", - "definitions" + "v", + "total" ], "type": "object", "additionalProperties": false }, - "EmailTemplateRenderErrorResponse": { + "Record_string.QuestionDatum_": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/QuestionDatum" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "QuestionResultAggregationOverall": { "properties": { - "id": { - "type": "string" + "dataByDateBucket": { + "$ref": "#/components/schemas/Record_string.QuestionDatum_" }, - "tenantId": { - "type": "string" + "dataByUrlId": { + "$ref": "#/components/schemas/Record_string.QuestionDatum_" }, - "customTemplateId": { - "type": "string" + "countsByValue": { + "$ref": "#/components/schemas/Int32Map" }, - "error": { - "type": "string" + "total": { + "type": "integer", + "format": "int64" }, - "count": { + "average": { "type": "number", "format": "double" }, "createdAt": { "type": "string", "format": "date-time" - }, - "lastOccurredAt": { - "type": "string", - "format": "date-time" } }, "required": [ - "id", - "tenantId", - "customTemplateId", - "error", - "count", - "createdAt", - "lastOccurredAt" + "total", + "createdAt" ], "type": "object", "additionalProperties": false }, - "GetEmailTemplateRenderErrorsResponse": { + "AggregateQuestionResultsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "renderErrors": { - "items": { - "$ref": "#/components/schemas/EmailTemplateRenderErrorResponse" - }, - "type": "array" + "data": { + "$ref": "#/components/schemas/QuestionResultAggregationOverall" } }, "required": [ "status", - "renderErrors" + "data" ], "type": "object", "additionalProperties": false }, - "CustomEmailTemplate": { - "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "type": "string" - }, - "emailTemplateId": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "updatedByUserId": { - "type": "string", - "nullable": true - }, - "domain": { - "type": "string", - "nullable": true - }, - "ejs": { - "type": "string" - }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" - }, - "testData": {} + "AggregateTimeBucket": { + "type": "string", + "enum": [ + "day", + "month", + "year" + ] + }, + "Record_string.QuestionResultAggregationOverall_": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/QuestionResultAggregationOverall" }, - "required": [ - "_id", - "tenantId", - "emailTemplateId", - "displayName", - "createdAt", - "updatedAt", - "updatedByUserId", - "ejs", - "translationOverridesByLocale", - "testData" - ], "type": "object", - "additionalProperties": false + "description": "Construct a type with a set of properties K of type T" }, - "GetEmailTemplateResponse": { + "BulkAggregateQuestionResultsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "emailTemplate": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "data": { + "$ref": "#/components/schemas/Record_string.QuestionResultAggregationOverall_" } }, "required": [ "status", - "emailTemplate" + "data" ], "type": "object", "additionalProperties": false }, - "GetEmailTemplatesResponse": { + "BulkAggregateQuestionItem": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "aggId": { + "type": "string" }, - "emailTemplates": { + "questionId": { + "type": "string" + }, + "questionIds": { "items": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "type": "string" }, "type": "array" + }, + "urlId": { + "type": "string" + }, + "timeBucket": { + "$ref": "#/components/schemas/AggregateTimeBucket" + }, + "startDate": { + "type": "string", + "format": "date-time" } }, "required": [ - "status", - "emailTemplates" + "aggId" ], "type": "object", "additionalProperties": false }, - "CreateEmailTemplateResponse": { + "BulkAggregateQuestionResultsRequest": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "emailTemplate": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "aggregations": { + "items": { + "$ref": "#/components/schemas/BulkAggregateQuestionItem" + }, + "type": "array" } }, "required": [ - "status", - "emailTemplate" + "aggregations" ], "type": "object", "additionalProperties": false }, - "CreateEmailTemplateBody": { + "CommentLogType": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55 + ], + "type": "integer" + }, + "RepeatCommentHandlingAction": { + "enum": [ + 0, + 1, + 2 + ], + "type": "integer" + }, + "RepeatCommentCheckIgnoredReason": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "integer" + }, + "CommentLogData": { "properties": { - "emailTemplateId": { - "type": "string" + "clearContent": { + "type": "boolean" }, - "displayName": { + "isDeletedUser": { + "type": "boolean" + }, + "phrase": { "type": "string" }, - "ejs": { + "badWord": { "type": "string" }, - "domain": { + "word": { "type": "string" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "locale": { + "type": "string" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" - } - }, - "required": [ - "emailTemplateId", - "displayName", - "ejs" - ], - "type": "object", - "additionalProperties": false - }, - "UpdateEmailTemplateBody": { - "properties": { - "emailTemplateId": { + "tenantBadgeId": { "type": "string" }, - "displayName": { + "badgeId": { "type": "string" }, - "ejs": { + "wasLoggedIn": { + "type": "boolean" + }, + "foundUser": { + "type": "boolean" + }, + "verified": { + "type": "boolean" + }, + "engine": { "type": "string" }, - "domain": { + "engineResponse": { "type": "string" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "engineTokens": { + "type": "number", + "format": "double" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" - } - }, - "type": "object", - "additionalProperties": false - }, - "RenderEmailTemplateResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "trustFactor": { + "type": "number", + "format": "double" }, - "html": { - "type": "string" - } - }, - "required": [ - "status", - "html" - ], - "type": "object", - "additionalProperties": false - }, - "RenderEmailTemplateBody": { - "properties": { - "emailTemplateId": { + "source": { "type": "string" }, - "ejs": { + "rule": { + "$ref": "#/components/schemas/SpamRule" + }, + "userId": { "type": "string" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "subscribers": { + "type": "number", + "format": "double" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" - } - }, - "required": [ - "emailTemplateId", - "ejs" - ], - "type": "object", - "additionalProperties": false - }, - "AddDomainConfigParams": { - "properties": { - "domain": { - "type": "string" + "notificationCount": { + "type": "number", + "format": "double" }, - "emailFromName": { + "votesBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUpBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDownBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUpAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDownAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "repeatAction": { + "$ref": "#/components/schemas/RepeatCommentHandlingAction" + }, + "reason": { + "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" + }, + "otherData": {}, + "spamBefore": { + "type": "boolean" + }, + "spamAfter": { + "type": "boolean" + }, + "permanentFlag": { + "type": "string", + "enum": [ + "permanent" + ], + "nullable": false + }, + "approvedBefore": { + "type": "boolean" + }, + "approvedAfter": { + "type": "boolean" + }, + "reviewedBefore": { + "type": "boolean" + }, + "reviewedAfter": { + "type": "boolean" + }, + "textBefore": { "type": "string" }, - "emailFromEmail": { + "textAfter": { "type": "string" }, - "logoSrc": { + "expireBefore": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "expireAfter": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "flagCountBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "trustFactorBefore": { + "type": "number", + "format": "double" + }, + "trustFactorAfter": { + "type": "number", + "format": "double" + }, + "referencedCommentId": { "type": "string" }, - "logoSrc100px": { + "invalidLocale": { "type": "string" }, - "footerUnsubscribeURL": { + "detectedLocale": { "type": "string" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "detectedLanguage": { + "type": "string" } }, - "required": [ - "domain" - ], "type": "object", "additionalProperties": false }, - "UpdateDomainConfigParams": { + "CommentLogEntry": { "properties": { - "domain": { - "type": "string" - }, - "emailFromName": { - "type": "string" - }, - "emailFromEmail": { - "type": "string" - }, - "logoSrc": { - "type": "string" - }, - "logoSrc100px": { - "type": "string" + "d": { + "type": "string", + "format": "date-time" }, - "footerUnsubscribeURL": { - "type": "string" + "t": { + "$ref": "#/components/schemas/CommentLogType" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "da": { + "$ref": "#/components/schemas/CommentLogData" } }, "required": [ - "domain" + "d", + "t" ], "type": "object", "additionalProperties": false }, - "PatchDomainConfigParams": { + "FComment": { "properties": { - "domain": { - "type": "string" - }, - "emailFromName": { + "_id": { "type": "string" }, - "emailFromEmail": { + "tenantId": { "type": "string" }, - "logoSrc": { + "urlId": { "type": "string" }, - "logoSrc100px": { + "urlIdRaw": { "type": "string" }, - "footerUnsubscribeURL": { + "url": { "type": "string" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" - } - }, - "type": "object", - "additionalProperties": false - }, - "APICommentBase": { - "properties": { - "_id": { - "type": "string" + "pageTitle": { + "type": "string", + "nullable": true }, - "aiDeterminedSpam": { - "type": "boolean" + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, "anonUserId": { "type": "string", "nullable": true }, - "approved": { - "type": "boolean" - }, - "avatarSrc": { + "commenterEmail": { "type": "string", "nullable": true }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", + "commenterName": { + "type": "string" + }, + "commenterLink": { + "type": "string", "nullable": true }, "comment": { @@ -8541,88 +8830,134 @@ "commentHTML": { "type": "string" }, - "commenterEmail": { - "type": "string", - "nullable": true - }, - "commenterLink": { + "parentId": { "type": "string", "nullable": true }, - "commenterName": { - "type": "string" - }, "date": { "type": "string", "format": "date-time", "nullable": true }, - "displayLabel": { + "localDateString": { "type": "string", "nullable": true }, - "domain": { - "allOf": [ - { - "$ref": "#/components/schemas/FDomain" - } - ], + "localDateHours": { + "type": "integer", + "format": "int32", "nullable": true }, - "externalId": { - "type": "string" - }, - "externalParentId": { - "type": "string", + "votes": { + "type": "integer", + "format": "int32", "nullable": true }, - "expireAt": { - "type": "string", - "format": "date-time", + "votesUp": { + "type": "integer", + "format": "int32", "nullable": true }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "flagCount": { + "votesDown": { "type": "integer", "format": "int32", "nullable": true }, - "fromProductId": { - "type": "integer", - "format": "int32" + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true }, - "hasCode": { + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "verificationId": { + "type": "string", + "nullable": true + }, + "notificationSentForParent": { + "type": "boolean" + }, + "notificationSentForParentTenant": { + "type": "boolean" + }, + "reviewed": { + "type": "boolean" + }, + "imported": { + "type": "boolean" + }, + "externalId": { + "type": "string" + }, + "externalParentId": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "permNotSpam": { + "type": "boolean" + }, + "aiDeterminedSpam": { "type": "boolean" }, "hasImages": { "type": "boolean" }, + "pageNumber": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "pageNumberOF": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "pageNumberNF": { + "type": "integer", + "format": "int32", + "nullable": true + }, "hasLinks": { "type": "boolean" }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" - }, - "isByAdmin": { + "hasCode": { "type": "boolean" }, - "isByModerator": { + "approved": { "type": "boolean" }, + "locale": { + "type": "string", + "nullable": true + }, "isDeleted": { "type": "boolean" }, "isDeletedUser": { "type": "boolean" }, + "isBannedUser": { + "type": "boolean" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, "isPinned": { "type": "boolean", "nullable": true @@ -8631,30 +8966,29 @@ "type": "boolean", "nullable": true }, - "isSpam": { - "type": "boolean" - }, - "localDateHours": { + "flagCount": { "type": "integer", "format": "int32", "nullable": true }, - "localDateString": { - "type": "string", + "rating": { + "type": "number", + "format": "double", "nullable": true }, - "locale": { + "displayLabel": { "type": "string", "nullable": true }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" + "fromProductId": { + "type": "integer", + "format": "int32" }, "meta": { "properties": { + "wpId": { + "type": "string" + }, "wpUserId": { "type": "string" }, @@ -8666,956 +9000,6140 @@ "type": "object", "nullable": true }, - "moderationGroupIds": { + "ipHash": { + "type": "string" + }, + "mentions": { "items": { - "type": "string" + "$ref": "#/components/schemas/CommentUserMentionInfo" }, - "type": "array", - "nullable": true - }, - "notificationSentForParent": { - "type": "boolean" + "type": "array" }, - "notificationSentForParentTenant": { - "type": "boolean" + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" }, - "pageTitle": { - "type": "string", + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", "nullable": true }, - "parentId": { - "type": "string", + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], "nullable": true }, - "rating": { - "type": "number", - "format": "double", + "veteranBadgeProcessed": { + "type": "string" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", "nullable": true }, - "reviewed": { + "didProcessBadges": { "type": "boolean" }, - "tenantId": { - "type": "string" + "fromOfflineRestore": { + "type": "boolean" }, - "url": { + "autoplayJobId": { "type": "string" }, - "urlId": { - "type": "string" + "autoplayDelayMS": { + "type": "integer", + "format": "int64" }, - "urlIdRaw": { - "type": "string" + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], + "logs": { + "items": { + "$ref": "#/components/schemas/CommentLogEntry" + }, + "type": "array", "nullable": true }, - "verified": { - "type": "boolean" - }, - "verifiedDate": { - "type": "string", - "format": "date-time", + "groupIds": { + "items": { + "type": "string" + }, + "type": "array", "nullable": true }, - "votes": { + "viewCount": { "type": "integer", - "format": "int32", + "format": "int64", "nullable": true }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "requiresVerification": { + "type": "boolean" }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true + "editKey": { + "type": "string" + }, + "tosAcceptedAt": { + "type": "string", + "format": "date-time" + }, + "botId": { + "type": "string" } }, "required": [ "_id", - "approved", + "tenantId", + "urlId", + "url", + "commenterName", "comment", "commentHTML", - "commenterName", "date", - "locale", - "tenantId", - "url", - "urlId", - "verified" + "verified", + "approved", + "locale" ], "type": "object", "additionalProperties": false }, - "APIComment": { - "allOf": [ - { - "$ref": "#/components/schemas/APICommentBase" + "FindCommentsByRangeItem": { + "properties": { + "comment": { + "allOf": [ + { + "$ref": "#/components/schemas/FComment" + } + ], + "nullable": true }, - { - "properties": { - "date": { - "type": "number", - "format": "double", - "nullable": true - } - }, - "required": [ - "date" - ], - "type": "object" + "result": { + "$ref": "#/components/schemas/QuestionResult" } - ] + }, + "required": [ + "comment", + "result" + ], + "type": "object", + "additionalProperties": false }, - "APIGetCommentResponse": { + "FindCommentsByRangeResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "results": { + "items": { + "$ref": "#/components/schemas/FindCommentsByRangeItem" + }, + "type": "array" }, - "comment": { - "$ref": "#/components/schemas/APIComment" + "createdAt": { + "type": "string", + "format": "date-time" } }, "required": [ - "status", - "comment" + "results", + "createdAt" ], "type": "object", "additionalProperties": false }, - "APIGetCommentsResponse": { + "CombineQuestionResultsWithCommentsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "comments": { - "items": { - "$ref": "#/components/schemas/APIComment" - }, - "type": "array" + "data": { + "$ref": "#/components/schemas/FindCommentsByRangeResponse" } }, "required": [ "status", - "comments" + "data" ], "type": "object", "additionalProperties": false }, - "UpdatableCommentParams": { + "QuestionConfig": { "properties": { - "urlId": { + "_id": { "type": "string" }, - "urlIdRaw": { + "tenantId": { "type": "string" }, - "url": { + "name": { "type": "string" }, - "pageTitle": { - "type": "string", - "nullable": true - }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], - "nullable": true - }, - "commenterEmail": { - "type": "string", - "nullable": true - }, - "commenterName": { + "question": { "type": "string" }, - "commenterLink": { - "type": "string", - "nullable": true - }, - "comment": { + "summaryLabel": { "type": "string" }, - "commentHTML": { + "helpText": { "type": "string" }, - "parentId": { - "type": "string", - "nullable": true - }, - "date": { - "type": "number", - "format": "double", - "nullable": true - }, - "localDateString": { - "type": "string", - "nullable": true - }, - "localDateHours": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "expireAt": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "verified": { - "type": "boolean" - }, - "verifiedDate": { + "createdAt": { "type": "string", - "format": "date-time", - "nullable": true - }, - "notificationSentForParent": { - "type": "boolean" - }, - "notificationSentForParentTenant": { - "type": "boolean" - }, - "reviewed": { - "type": "boolean" + "format": "date-time" }, - "externalId": { + "createdBy": { "type": "string" }, - "externalParentId": { - "type": "string", - "nullable": true + "usedCount": { + "type": "number", + "format": "double" }, - "avatarSrc": { + "lastUsed": { "type": "string", - "nullable": true - }, - "isSpam": { - "type": "boolean" - }, - "approved": { - "type": "boolean" - }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" + "format": "date-time" }, - "isByAdmin": { - "type": "boolean" + "type": { + "type": "string" }, - "isByModerator": { - "type": "boolean" + "numStars": { + "type": "number", + "format": "double" }, - "isPinned": { - "type": "boolean", - "nullable": true + "min": { + "type": "number", + "format": "double" }, - "isLocked": { - "type": "boolean", - "nullable": true + "max": { + "type": "number", + "format": "double" }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true + "defaultValue": { + "type": "number", + "format": "double" }, - "displayLabel": { - "type": "string", - "nullable": true + "labelNegative": { + "type": "string" }, - "meta": { - "properties": { - "wpUserId": { - "type": "string" - }, - "wpPostId": { - "type": "string" - } - }, - "additionalProperties": {}, - "type": "object", - "nullable": true + "labelPositive": { + "type": "string" }, - "moderationGroupIds": { + "customOptions": { "items": { - "type": "string" + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" }, - "type": "array", - "nullable": true + "type": "array" }, - "feedbackIds": { + "subQuestionIds": { "items": { "type": "string" }, "type": "array" + }, + "alwaysShowSubQuestions": { + "type": "boolean" + }, + "reportingOrder": { + "type": "number", + "format": "double" } }, - "type": "object", - "additionalProperties": false - }, - "DeleteCommentAction": { - "type": "string", - "enum": [ - "already-deleted", - "hard-removed", - "anonymized" - ] - }, - "DeleteCommentResult": { - "properties": { - "action": { - "$ref": "#/components/schemas/DeleteCommentAction" - }, - "status": { + "required": [ + "_id", + "tenantId", + "name", + "question", + "helpText", + "createdAt", + "createdBy", + "usedCount", + "lastUsed", + "type", + "numStars", + "min", + "max", + "defaultValue", + "labelNegative", + "labelPositive", + "customOptions", + "subQuestionIds", + "alwaysShowSubQuestions", + "reportingOrder" + ], + "type": "object", + "additionalProperties": false + }, + "GetQuestionConfigResponse": { + "properties": { + "status": { "$ref": "#/components/schemas/APIStatus" + }, + "questionConfig": { + "$ref": "#/components/schemas/QuestionConfig" } }, "required": [ - "action", - "status" + "status", + "questionConfig" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "SaveCommentResponse": { + "GetQuestionConfigsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "comment": { - "$ref": "#/components/schemas/FComment" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/UserSessionInfo" - } - ], - "nullable": true - }, - "moduleData": { - "$ref": "#/components/schemas/Record_string.any_" + "questionConfigs": { + "items": { + "$ref": "#/components/schemas/QuestionConfig" + }, + "type": "array" } }, "required": [ "status", - "comment", - "user" + "questionConfigs" ], "type": "object", "additionalProperties": false }, - "CreateCommentParams": { + "CreateQuestionConfigResponse": { "properties": { - "date": { - "type": "integer", - "format": "int64" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "localDateString": { + "questionConfig": { + "$ref": "#/components/schemas/QuestionConfig" + } + }, + "required": [ + "status", + "questionConfig" + ], + "type": "object", + "additionalProperties": false + }, + "CreateQuestionConfigBody": { + "properties": { + "name": { "type": "string" }, - "localDateHours": { - "type": "integer", - "format": "int32" + "question": { + "type": "string" }, - "commenterName": { + "helpText": { "type": "string" }, - "commenterEmail": { - "type": "string", - "nullable": true + "type": { + "type": "string" }, - "commenterLink": { - "type": "string", - "nullable": true + "numStars": { + "type": "number", + "format": "double" }, - "comment": { - "type": "string" + "min": { + "type": "number", + "format": "double" }, - "productId": { - "type": "integer", - "format": "int32" + "max": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string", - "nullable": true + "defaultValue": { + "type": "number", + "format": "double" }, - "avatarSrc": { - "type": "string", - "nullable": true + "labelNegative": { + "type": "string" }, - "parentId": { - "type": "string", - "nullable": true + "labelPositive": { + "type": "string" }, - "mentions": { + "customOptions": { "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" }, "type": "array" }, - "hashTags": { + "subQuestionIds": { "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" + "type": "string" }, "type": "array" }, - "pageTitle": { + "alwaysShowSubQuestions": { + "type": "boolean" + }, + "reportingOrder": { + "type": "number", + "format": "double" + } + }, + "required": [ + "name", + "question", + "type", + "reportingOrder" + ], + "type": "object", + "additionalProperties": {} + }, + "UpdateQuestionConfigBody": { + "properties": { + "name": { "type": "string" }, - "isFromMyAccountPage": { - "type": "boolean" + "question": { + "type": "string" }, - "url": { + "helpText": { "type": "string" }, - "urlId": { + "type": { "type": "string" }, - "meta": { - "additionalProperties": false, - "type": "object" + "numStars": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" + "min": { + "type": "number", + "format": "double" }, - "rating": { + "max": { "type": "number", "format": "double" }, - "fromOfflineRestore": { - "type": "boolean" + "defaultValue": { + "type": "number", + "format": "double" }, - "autoplayDelayMS": { - "type": "integer", - "format": "int64" + "labelNegative": { + "type": "string" }, - "feedbackIds": { + "labelPositive": { + "type": "string" + }, + "customOptions": { "items": { - "type": "string" + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" }, "type": "array" }, - "questionValues": { - "$ref": "#/components/schemas/Record_string.string-or-number_" - }, - "tos": { - "type": "boolean" + "subQuestionIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "approved": { + "alwaysShowSubQuestions": { "type": "boolean" }, - "domain": { + "reportingOrder": { + "type": "number", + "format": "double" + } + }, + "type": "object", + "additionalProperties": {} + }, + "PendingCommentToSyncOutbound": { + "properties": { + "_id": { "type": "string" }, - "ip": { + "commentId": { "type": "string" }, - "isPinned": { - "type": "boolean" + "comment": { + "$ref": "#/components/schemas/FComment" }, - "locale": { + "externalId": { "type": "string", - "description": "Example: en_us" + "nullable": true }, - "reviewed": { - "type": "boolean" + "createdAt": { + "type": "string", + "format": "date-time" }, - "verified": { - "type": "boolean" + "tenantId": { + "type": "string" }, - "votes": { - "type": "integer", - "format": "int32" + "attemptCount": { + "type": "number", + "format": "double" }, - "votesDown": { - "type": "integer", - "format": "int32" + "nextAttemptAt": { + "type": "string", + "format": "date-time" }, - "votesUp": { - "type": "integer", - "format": "int32" + "eventType": { + "type": "number", + "format": "double" + }, + "type": { + "type": "number", + "format": "double" + }, + "domain": { + "type": "string" + }, + "lastError": { + "additionalProperties": false, + "type": "object" + }, + "webhookId": { + "type": "string" } }, "required": [ - "commenterName", - "comment", - "url", - "urlId", - "locale" + "_id", + "commentId", + "externalId", + "createdAt", + "tenantId", + "attemptCount", + "nextAttemptAt", + "eventType", + "type", + "domain", + "lastError" ], "type": "object", "additionalProperties": false }, - "FlagCommentResponse": { + "GetPendingWebhookEventsResponse": { "properties": { - "statusCode": { - "type": "integer", - "format": "int32" - }, "status": { "$ref": "#/components/schemas/APIStatus" }, - "code": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "wasUnapproved": { - "type": "boolean" + "pendingWebhookEvents": { + "items": { + "$ref": "#/components/schemas/PendingCommentToSyncOutbound" + }, + "type": "array" } }, "required": [ - "status" + "status", + "pendingWebhookEvents" ], "type": "object", "additionalProperties": false }, - "BlockFromCommentParams": { + "GetPendingWebhookEventCountResponse": { "properties": { - "commentIdsToCheck": { - "items": { - "type": "string" - }, - "type": "array" + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "count": { + "type": "number", + "format": "double" } }, + "required": [ + "status", + "count" + ], "type": "object", "additionalProperties": false }, - "UnBlockFromCommentParams": { + "GetNotificationsResponse": { "properties": { - "commentIdsToCheck": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "notifications": { "items": { - "type": "string" + "$ref": "#/components/schemas/UserNotification" }, "type": "array" } }, + "required": [ + "status", + "notifications" + ], "type": "object", "additionalProperties": false }, - "APIAuditLog": { + "GetNotificationCountResponse": { "properties": { - "_id": { - "type": "string" - }, - "userId": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "username": { - "type": "string" + "count": { + "type": "number", + "format": "double" + } + }, + "required": [ + "status", + "count" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateNotificationBody": { + "properties": { + "viewed": { + "type": "boolean" }, - "resourceName": { + "optedOut": { + "type": "boolean" + } + }, + "type": "object", + "additionalProperties": {} + }, + "UserNotificationCount": { + "properties": { + "_id": { "type": "string" }, - "crudType": { - "type": "string", - "enum": [ - "c", - "r", - "u", - "d", - "login" - ] - }, - "from": { - "type": "string", - "enum": [ - "ui", - "api", - "cron" - ] - }, - "url": { - "type": "string", - "nullable": true - }, - "ip": { - "type": "string", - "nullable": true + "count": { + "type": "number", + "format": "double" }, - "when": { + "createdAt": { "type": "string", "format": "date-time" }, - "description": { - "type": "string" - }, - "serverStartDate": { + "expireAt": { "type": "string", "format": "date-time" - }, - "objectDetails": { - "allOf": [ - { - "$ref": "#/components/schemas/Record_string.any_" - } - ], - "nullable": true } }, "required": [ "_id", - "resourceName", - "crudType" + "count", + "createdAt", + "expireAt" ], "type": "object", "additionalProperties": false }, - "GetAuditLogsResponse": { + "GetCachedNotificationCountResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "auditLogs": { - "items": { - "$ref": "#/components/schemas/APIAuditLog" - }, - "type": "array" + "data": { + "$ref": "#/components/schemas/UserNotificationCount" } }, "required": [ "status", - "auditLogs" + "data" ], "type": "object", "additionalProperties": false }, - "SORT_DIR": { - "type": "string", - "enum": [ - "ASC", - "DESC" - ] - }, - "DistinctAccumulator": { - "$ref": "#/components/schemas/Record_string.number_" - }, - "GroupValues": { - "$ref": "#/components/schemas/Record_string.string_" - }, - "AggregationValue": { + "Moderator": { "properties": { - "groups": { - "$ref": "#/components/schemas/GroupValues" + "_id": { + "type": "string" }, - "stringValue": { + "tenantId": { "type": "string" }, - "numericValue": { + "name": { + "type": "string", + "nullable": true + }, + "userId": { + "type": "string", + "nullable": true + }, + "acceptedInvite": { + "type": "boolean" + }, + "email": { + "type": "string", + "nullable": true + }, + "markReviewedCount": { "type": "number", "format": "double" }, - "distinctCount": { - "type": "integer", - "format": "int64" + "deletedCount": { + "type": "number", + "format": "double" }, - "distinctCounts": { - "$ref": "#/components/schemas/DistinctAccumulator" - } - }, - "type": "object" - }, - "Record_string.AggregationValue_": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/AggregationValue" + "markedSpamCount": { + "type": "number", + "format": "double" + }, + "markedNotSpamCount": { + "type": "number", + "format": "double" + }, + "approvedCount": { + "type": "number", + "format": "double" + }, + "unApprovedCount": { + "type": "number", + "format": "double" + }, + "editedCount": { + "type": "number", + "format": "double" + }, + "bannedCount": { + "type": "number", + "format": "double" + }, + "unFlaggedCount": { + "type": "number", + "format": "double" + }, + "verificationId": { + "type": "string", + "nullable": true + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, + "isEmailSuppressed": { + "type": "boolean" + } }, + "required": [ + "_id", + "tenantId", + "name", + "userId", + "acceptedInvite", + "email", + "markReviewedCount", + "deletedCount", + "markedSpamCount", + "markedNotSpamCount", + "approvedCount", + "unApprovedCount", + "editedCount", + "bannedCount", + "unFlaggedCount", + "verificationId", + "createdAt", + "moderationGroupIds" + ], "type": "object", - "description": "Construct a type with a set of properties K of type T" + "additionalProperties": false }, - "AggregationItem": { - "allOf": [ - { - "$ref": "#/components/schemas/Record_string.AggregationValue_" + "GetModeratorResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - { - "properties": { - "groups": { - "$ref": "#/components/schemas/GroupValues" - } - }, - "type": "object" + "moderator": { + "$ref": "#/components/schemas/Moderator" } - ] + }, + "required": [ + "status", + "moderator" + ], + "type": "object", + "additionalProperties": false }, - "AggregationResponse": { - "description": "The API response returns the aggregated data along with simple stats", + "GetModeratorsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { + "moderators": { "items": { - "$ref": "#/components/schemas/AggregationItem" + "$ref": "#/components/schemas/Moderator" }, "type": "array" - }, - "stats": { - "properties": { - "timeMS": { - "type": "integer", - "format": "int64" - }, - "scanned": { - "type": "integer", - "format": "int64" - } - }, - "required": [ - "timeMS", - "scanned" - ], - "type": "object" } }, "required": [ "status", - "data" + "moderators" ], "type": "object", "additionalProperties": false }, - "QueryPredicate": { + "CreateModeratorResponse": { "properties": { - "key": { - "type": "string" - }, - "value": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "number", - "format": "double" - }, - { - "type": "boolean" - } - ] + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "operator": { - "type": "string", - "enum": [ - "eq", - "not_eq", - "greater_than", - "less_than", - "contains" - ] + "moderator": { + "$ref": "#/components/schemas/Moderator" } }, "required": [ - "key", - "value", - "operator" + "status", + "moderator" ], "type": "object", "additionalProperties": false }, - "AggregationOpType": { - "type": "string", - "enum": [ - "sum", - "countDistinct", - "distinct", - "avg", - "min", - "max", - "count" - ], - "description": "The supported aggregation operation types" - }, - "AggregationOperation": { - "description": "An operation that will be applied on a field", + "CreateModeratorBody": { "properties": { - "field": { - "type": "string", - "description": "The field to operate on" + "name": { + "type": "string" }, - "op": { - "$ref": "#/components/schemas/AggregationOpType", - "description": "The type of operation" + "email": { + "type": "string" }, - "alias": { - "type": "string", - "description": "Optional alias for the output; if not provided, a default alias is computed" + "userId": { + "type": "string" }, - "expandArray": { - "type": "boolean" + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" } }, "required": [ - "field", - "op" + "name", + "email" ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "AggregationRequest": { - "description": "The aggregation request accepts a resource, optional grouping keys, an array of operations, and an optional sort", + "UpdateModeratorBody": { "properties": { - "query": { - "items": { - "$ref": "#/components/schemas/QueryPredicate" - }, - "type": "array" + "name": { + "type": "string" }, - "resourceName": { + "email": { "type": "string" }, - "groupBy": { - "items": { - "type": "string" - }, - "type": "array" + "userId": { + "type": "string" }, - "operations": { + "moderationGroupIds": { "items": { - "$ref": "#/components/schemas/AggregationOperation" + "type": "string" }, "type": "array" - }, - "sort": { - "properties": { - "dir": { - "type": "string", - "enum": [ - "asc", - "desc" - ] - }, - "field": { - "type": "string" - } - }, - "required": [ - "dir", - "field" - ], - "type": "object" } }, - "required": [ - "resourceName", - "operations" - ], "type": "object", - "additionalProperties": false - } - }, - "securitySchemes": { - "api_key": { - "type": "apiKey", - "name": "x-api-key", - "in": "header" + "additionalProperties": {} + }, + "TenantHashTag": { + "properties": { + "_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "tenantId": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "_id", + "createdAt", + "tenantId", + "tag" + ], + "type": "object", + "additionalProperties": false + }, + "GetHashTagsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/TenantHashTag" + }, + "type": "array" + } + }, + "required": [ + "status", + "hashTags" + ], + "type": "object", + "additionalProperties": false + }, + "CreateHashTagResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "hashTag": { + "$ref": "#/components/schemas/TenantHashTag" + } + }, + "required": [ + "status", + "hashTag" + ], + "type": "object", + "additionalProperties": false + }, + "CreateHashTagBody": { + "properties": { + "tenantId": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "tag" + ], + "type": "object", + "additionalProperties": false + }, + "BulkCreateHashTagsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "results": { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/CreateHashTagResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + }, + "type": "array" + } + }, + "required": [ + "status", + "results" + ], + "type": "object", + "additionalProperties": false + }, + "BulkCreateHashTagsBody": { + "properties": { + "tenantId": { + "type": "string" + }, + "tags": { + "items": { + "properties": { + "url": { + "type": "string" + }, + "tag": { + "type": "string" + } + }, + "required": [ + "tag" + ], + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "tags" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateHashTagResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "hashTag": { + "$ref": "#/components/schemas/TenantHashTag" + } + }, + "required": [ + "status", + "hashTag" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateHashTagBody": { + "properties": { + "tenantId": { + "type": "string" + }, + "url": { + "type": "string" + }, + "tag": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "GetFeedPostsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "feedPosts": { + "items": { + "$ref": "#/components/schemas/FeedPost" + }, + "type": "array" + } + }, + "required": [ + "status", + "feedPosts" + ], + "type": "object", + "additionalProperties": false + }, + "CreateFeedPostsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "feedPost": { + "$ref": "#/components/schemas/FeedPost" + } + }, + "required": [ + "status", + "feedPost" + ], + "type": "object", + "additionalProperties": false + }, + "Record_string.unknown_": { + "properties": {}, + "additionalProperties": {}, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "Record_string.Record_string.string__": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "EmailTemplateDefinition": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "defaultTestData": { + "$ref": "#/components/schemas/Record_string.unknown_" + }, + "defaultTranslationsByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "defaultEJS": { + "type": "string" + } + }, + "required": [ + "emailTemplateId", + "defaultTestData", + "defaultTranslationsByLocale", + "defaultEJS" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplateDefinitionsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "definitions": { + "items": { + "$ref": "#/components/schemas/EmailTemplateDefinition" + }, + "type": "array" + } + }, + "required": [ + "status", + "definitions" + ], + "type": "object", + "additionalProperties": false + }, + "EmailTemplateRenderErrorResponse": { + "properties": { + "id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "customTemplateId": { + "type": "string" + }, + "error": { + "type": "string" + }, + "count": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "lastOccurredAt": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "tenantId", + "customTemplateId", + "error", + "count", + "createdAt", + "lastOccurredAt" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplateRenderErrorsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "renderErrors": { + "items": { + "$ref": "#/components/schemas/EmailTemplateRenderErrorResponse" + }, + "type": "array" + } + }, + "required": [ + "status", + "renderErrors" + ], + "type": "object", + "additionalProperties": false + }, + "CustomEmailTemplate": { + "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "emailTemplateId": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "updatedByUserId": { + "type": "string", + "nullable": true + }, + "domain": { + "type": "string", + "nullable": true + }, + "ejs": { + "type": "string" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "testData": {} + }, + "required": [ + "_id", + "tenantId", + "emailTemplateId", + "displayName", + "createdAt", + "updatedAt", + "updatedByUserId", + "ejs", + "translationOverridesByLocale", + "testData" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "emailTemplate": { + "$ref": "#/components/schemas/CustomEmailTemplate" + } + }, + "required": [ + "status", + "emailTemplate" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplatesResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "emailTemplates": { + "items": { + "$ref": "#/components/schemas/CustomEmailTemplate" + }, + "type": "array" + } + }, + "required": [ + "status", + "emailTemplates" + ], + "type": "object", + "additionalProperties": false + }, + "CreateEmailTemplateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "emailTemplate": { + "$ref": "#/components/schemas/CustomEmailTemplate" + } + }, + "required": [ + "status", + "emailTemplate" + ], + "type": "object", + "additionalProperties": false + }, + "CreateEmailTemplateBody": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "ejs": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "testData": { + "$ref": "#/components/schemas/Record_string.unknown_" + } + }, + "required": [ + "emailTemplateId", + "displayName", + "ejs" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateEmailTemplateBody": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "ejs": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "testData": { + "$ref": "#/components/schemas/Record_string.unknown_" + } + }, + "type": "object", + "additionalProperties": false + }, + "RenderEmailTemplateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "html": { + "type": "string" + } + }, + "required": [ + "status", + "html" + ], + "type": "object", + "additionalProperties": false + }, + "RenderEmailTemplateBody": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "ejs": { + "type": "string" + }, + "testData": { + "$ref": "#/components/schemas/Record_string.unknown_" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + } + }, + "required": [ + "emailTemplateId", + "ejs" + ], + "type": "object", + "additionalProperties": false + }, + "AddDomainConfigParams": { + "properties": { + "domain": { + "type": "string" + }, + "emailFromName": { + "type": "string" + }, + "emailFromEmail": { + "type": "string" + }, + "logoSrc": { + "type": "string" + }, + "logoSrc100px": { + "type": "string" + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "domain" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateDomainConfigParams": { + "properties": { + "domain": { + "type": "string" + }, + "emailFromName": { + "type": "string" + }, + "emailFromEmail": { + "type": "string" + }, + "logoSrc": { + "type": "string" + }, + "logoSrc100px": { + "type": "string" + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "domain" + ], + "type": "object", + "additionalProperties": false + }, + "PatchDomainConfigParams": { + "properties": { + "domain": { + "type": "string" + }, + "emailFromName": { + "type": "string" + }, + "emailFromEmail": { + "type": "string" + }, + "logoSrc": { + "type": "string" + }, + "logoSrc100px": { + "type": "string" + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "type": "object", + "additionalProperties": false + }, + "APICommentBase": { + "properties": { + "id": { + "type": "string" + }, + "aiDeterminedSpam": { + "type": "boolean" + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "approved": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true + }, + "comment": { + "type": "string" + }, + "commentHTML": { + "type": "string" + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "commenterName": { + "type": "string" + }, + "date": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "displayLabel": { + "type": "string", + "nullable": true + }, + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], + "nullable": true + }, + "externalId": { + "type": "string" + }, + "externalParentId": { + "type": "string", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "fromProductId": { + "type": "integer", + "format": "int32" + }, + "hasCode": { + "type": "boolean" + }, + "hasImages": { + "type": "boolean" + }, + "hasLinks": { + "type": "boolean" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isPinned": { + "type": "boolean", + "nullable": true + }, + "isLocked": { + "type": "boolean", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "localDateHours": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "localDateString": { + "type": "string", + "nullable": true + }, + "locale": { + "type": "string", + "nullable": true + }, + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" + }, + "meta": { + "properties": { + "wpUserId": { + "type": "string" + }, + "wpPostId": { + "type": "string" + } + }, + "additionalProperties": {}, + "type": "object", + "nullable": true + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, + "notificationSentForParent": { + "type": "boolean" + }, + "notificationSentForParentTenant": { + "type": "boolean" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "parentId": { + "type": "string", + "nullable": true + }, + "rating": { + "type": "number", + "format": "double", + "nullable": true + }, + "reviewed": { + "type": "boolean" + }, + "tenantId": { + "type": "string" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "urlIdRaw": { + "type": "string" + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "votes": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true + } + }, + "required": [ + "id", + "approved", + "comment", + "commentHTML", + "commenterName", + "date", + "locale", + "tenantId", + "url", + "urlId", + "verified" + ], + "type": "object", + "additionalProperties": false + }, + "APIComment": { + "allOf": [ + { + "$ref": "#/components/schemas/APICommentBase" + }, + { + "properties": { + "date": { + "type": "number", + "format": "double", + "nullable": true + } + }, + "required": [ + "date" + ], + "type": "object" + } + ] + }, + "APIGetCommentResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "comment": { + "$ref": "#/components/schemas/APIComment" + } + }, + "required": [ + "status", + "comment" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetCommentsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "comments": { + "items": { + "$ref": "#/components/schemas/APIComment" + }, + "type": "array" + } + }, + "required": [ + "status", + "comments" + ], + "type": "object", + "additionalProperties": false + }, + "UpdatableCommentParams": { + "properties": { + "urlId": { + "type": "string" + }, + "urlIdRaw": { + "type": "string" + }, + "url": { + "type": "string" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "commenterName": { + "type": "string" + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "comment": { + "type": "string" + }, + "commentHTML": { + "type": "string" + }, + "parentId": { + "type": "string", + "nullable": true + }, + "date": { + "type": "number", + "format": "double", + "nullable": true + }, + "localDateString": { + "type": "string", + "nullable": true + }, + "localDateHours": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votes": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "notificationSentForParent": { + "type": "boolean" + }, + "notificationSentForParentTenant": { + "type": "boolean" + }, + "reviewed": { + "type": "boolean" + }, + "externalId": { + "type": "string" + }, + "externalParentId": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "approved": { + "type": "boolean" + }, + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, + "isPinned": { + "type": "boolean", + "nullable": true + }, + "isLocked": { + "type": "boolean", + "nullable": true + }, + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "displayLabel": { + "type": "string", + "nullable": true + }, + "meta": { + "properties": { + "wpUserId": { + "type": "string" + }, + "wpPostId": { + "type": "string" + } + }, + "additionalProperties": {}, + "type": "object", + "nullable": true + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "APISaveCommentResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "comment": { + "$ref": "#/components/schemas/APIComment" + }, + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true + }, + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" + } + }, + "required": [ + "status", + "comment", + "user" + ], + "type": "object", + "additionalProperties": false + }, + "CreateCommentParams": { + "properties": { + "date": { + "type": "integer", + "format": "int64" + }, + "localDateString": { + "type": "string" + }, + "localDateHours": { + "type": "integer", + "format": "int32" + }, + "commenterName": { + "type": "string" + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "comment": { + "type": "string" + }, + "productId": { + "type": "integer", + "format": "int32" + }, + "userId": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "parentId": { + "type": "string", + "nullable": true + }, + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" + }, + "pageTitle": { + "type": "string" + }, + "isFromMyAccountPage": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "meta": { + "additionalProperties": false, + "type": "object" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "rating": { + "type": "number", + "format": "double" + }, + "fromOfflineRestore": { + "type": "boolean" + }, + "autoplayDelayMS": { + "type": "integer", + "format": "int64" + }, + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "questionValues": { + "$ref": "#/components/schemas/Record_string.string-or-number_" + }, + "tos": { + "type": "boolean" + }, + "botId": { + "type": "string" + }, + "approved": { + "type": "boolean" + }, + "domain": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "isPinned": { + "type": "boolean" + }, + "locale": { + "type": "string", + "description": "Example: en_us" + }, + "reviewed": { + "type": "boolean" + }, + "verified": { + "type": "boolean" + }, + "votes": { + "type": "integer", + "format": "int32" + }, + "votesDown": { + "type": "integer", + "format": "int32" + }, + "votesUp": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "commenterName", + "comment", + "url", + "urlId", + "locale" + ], + "type": "object", + "additionalProperties": false + }, + "FlagCommentResponse": { + "properties": { + "statusCode": { + "type": "integer", + "format": "int32" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "code": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "wasUnapproved": { + "type": "boolean" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "BlockFromCommentParams": { + "properties": { + "commentIdsToCheck": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "UnBlockFromCommentParams": { + "properties": { + "commentIdsToCheck": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "APIAuditLog": { + "properties": { + "_id": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "username": { + "type": "string" + }, + "resourceName": { + "type": "string" + }, + "crudType": { + "type": "string", + "enum": [ + "c", + "r", + "u", + "d", + "login" + ] + }, + "from": { + "type": "string", + "enum": [ + "ui", + "api", + "cron" + ] + }, + "url": { + "type": "string", + "nullable": true + }, + "ip": { + "type": "string", + "nullable": true + }, + "when": { + "type": "string", + "format": "date-time" + }, + "description": { + "type": "string" + }, + "serverStartDate": { + "type": "string", + "format": "date-time" + }, + "objectDetails": { + "allOf": [ + { + "$ref": "#/components/schemas/Record_string.any_" + } + ], + "nullable": true + } + }, + "required": [ + "_id", + "resourceName", + "crudType" + ], + "type": "object", + "additionalProperties": false + }, + "GetAuditLogsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "auditLogs": { + "items": { + "$ref": "#/components/schemas/APIAuditLog" + }, + "type": "array" + } + }, + "required": [ + "status", + "auditLogs" + ], + "type": "object", + "additionalProperties": false + }, + "SORT_DIR": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ] + }, + "DistinctAccumulator": { + "$ref": "#/components/schemas/Record_string.number_" + }, + "GroupValues": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "AggregationValue": { + "properties": { + "groups": { + "$ref": "#/components/schemas/GroupValues" + }, + "stringValue": { + "type": "string" + }, + "numericValue": { + "type": "number", + "format": "double" + }, + "distinctCount": { + "type": "integer", + "format": "int64" + }, + "distinctCounts": { + "$ref": "#/components/schemas/DistinctAccumulator" + } + }, + "type": "object" + }, + "Record_string.AggregationValue_": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/AggregationValue" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "AggregationItem": { + "allOf": [ + { + "$ref": "#/components/schemas/Record_string.AggregationValue_" + }, + { + "properties": { + "groups": { + "$ref": "#/components/schemas/GroupValues" + } + }, + "type": "object" + } + ] + }, + "AggregationResponse": { + "description": "The API response returns the aggregated data along with simple stats", + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "data": { + "items": { + "$ref": "#/components/schemas/AggregationItem" + }, + "type": "array" + }, + "stats": { + "properties": { + "timeMS": { + "type": "integer", + "format": "int64" + }, + "scanned": { + "type": "integer", + "format": "int64" + } + }, + "required": [ + "timeMS", + "scanned" + ], + "type": "object" + } + }, + "required": [ + "status", + "data" + ], + "type": "object", + "additionalProperties": false + }, + "AggregationAPIError": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "reason": { + "type": "string" + }, + "code": { + "type": "string" + }, + "validResourceNames": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "status", + "reason", + "code" + ], + "type": "object", + "additionalProperties": false + }, + "QueryPredicate": { + "properties": { + "key": { + "type": "string" + }, + "value": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + }, + { + "type": "boolean" + } + ] + }, + "operator": { + "type": "string", + "enum": [ + "eq", + "not_eq", + "greater_than", + "less_than", + "contains" + ] + } + }, + "required": [ + "key", + "value", + "operator" + ], + "type": "object", + "additionalProperties": false + }, + "AggregationOpType": { + "type": "string", + "enum": [ + "sum", + "countDistinct", + "distinct", + "avg", + "min", + "max", + "count" + ], + "description": "The supported aggregation operation types" + }, + "AggregationOperation": { + "description": "An operation that will be applied on a field", + "properties": { + "field": { + "type": "string", + "description": "The field to operate on" + }, + "op": { + "$ref": "#/components/schemas/AggregationOpType", + "description": "The type of operation" + }, + "alias": { + "type": "string", + "description": "Optional alias for the output; if not provided, a default alias is computed" + }, + "expandArray": { + "type": "boolean" + } + }, + "required": [ + "field", + "op" + ], + "type": "object", + "additionalProperties": false + }, + "AggregationRequest": { + "description": "The aggregation request accepts a resource, optional grouping keys, an array of operations, and an optional sort", + "properties": { + "query": { + "items": { + "$ref": "#/components/schemas/QueryPredicate" + }, + "type": "array" + }, + "resourceName": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "operations": { + "items": { + "$ref": "#/components/schemas/AggregationOperation" + }, + "type": "array" + }, + "sort": { + "properties": { + "dir": { + "type": "string", + "enum": [ + "asc", + "desc" + ] + }, + "field": { + "type": "string" + } + }, + "required": [ + "dir", + "field" + ], + "type": "object" + } + }, + "required": [ + "resourceName", + "operations" + ], + "type": "object", + "additionalProperties": false + } + }, + "securitySchemes": { + "api_key": { + "type": "apiKey", + "name": "x-api-key", + "in": "header" + } + } + }, + "info": { + "title": "fastcomments", + "version": "0.0.0", + "contact": {} + }, + "paths": { + "/user-search/{tenantId}": { + "get": { + "operationId": "SearchUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SearchUsersResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usernameStartsWith", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "mentionGroupIds", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchSection", + "required": false, + "schema": { + "type": "string", + "enum": [ + "fast", + "site" + ] + } + } + ] + } + }, + "/user-presence-status": { + "get": { + "operationId": "GetUserPresenceStatuses", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlIdWS", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "userIds", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications": { + "get": { + "operationId": "GetUserNotifications", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetMyNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Used to determine whether the current page is subscribed.", + "in": "query", + "name": "urlId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "pageSize", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "in": "query", + "name": "afterId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "includeContext", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "afterCreatedAt", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "in": "query", + "name": "unreadOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "dmOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "noDm", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeTranslations", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeTenantNotifications", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/reset": { + "post": { + "operationId": "ResetUserNotifications", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "afterId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "afterCreatedAt", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "in": "query", + "name": "unreadOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "dmOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "noDm", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/get-count": { + "get": { + "operationId": "GetUserNotificationCount", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUserNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/reset-count": { + "post": { + "operationId": "ResetUserNotificationCount", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/{notificationId}/mark/{newStatus}": { + "post": { + "operationId": "UpdateUserNotificationStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "title": "UpdateUserNotificationStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UserNotificationWriteResponse" + }, + { + "$ref": "#/components/schemas/IgnoredResponse" + } + ] + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "notificationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "newStatus", + "required": true, + "schema": { + "type": "string", + "enum": [ + "read", + "unread" + ] + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/{notificationId}/mark-opted/{optedInOrOut}": { + "post": { + "operationId": "UpdateUserNotificationCommentSubscriptionStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "title": "UpdateUserNotificationCommentSubscriptionStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UserNotificationWriteResponse" + }, + { + "$ref": "#/components/schemas/IgnoredResponse" + } + ] + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Enable or disable notifications for a specific comment.", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "notificationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "optedInOrOut", + "required": true, + "schema": { + "type": "string", + "enum": [ + "in", + "out" + ] + } + }, + { + "in": "query", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}": { + "post": { + "operationId": "UpdateUserNotificationPageSubscriptionStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "title": "UpdateUserNotificationPageSubscriptionStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UserNotificationWriteResponse" + }, + { + "$ref": "#/components/schemas/IgnoredResponse" + } + ] + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Enable or disable notifications for a page. When users are subscribed to a page, notifications are created\nfor new root comments, and also", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "url", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "pageTitle", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "subscribedOrUnsubscribed", + "required": true, + "schema": { + "type": "string", + "enum": [ + "subscribe", + "unsubscribe" + ] + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/upload-image/{tenantId}": { + "post": { + "operationId": "UploadImage", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UploadImageResponse" + } + } + } + } + }, + "description": "Upload and resize an image", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices)", + "in": "query", + "name": "sizePreset", + "required": false, + "schema": { + "$ref": "#/components/schemas/SizePreset" + } + }, + { + "description": "Page id that upload is happening from, to configure", + "in": "query", + "name": "urlId", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + } + }, + "required": [ + "file" + ] + } + } + } + } + } + }, + "/translations/{namespace}/{component}": { + "get": { + "operationId": "GetTranslations", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTranslationsResponse" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "500": { + "description": "Internal", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "namespace", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "component", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "useFullTranslationIds", + "required": false, + "schema": { + "type": "boolean" + } + } + ] + } + }, + "/pages/{tenantId}": { + "get": { + "operationId": "GetPagesPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPublicPagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "List pages for a tenant. Used by the FChat desktop client to populate its room list.\nRequires `enableFChat` to be true on the resolved custom config for each page.\nPages that require SSO are filtered against the requesting user's group access.", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`.", + "in": "query", + "name": "cursor", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": "1..200, default 50", + "in": "query", + "name": "limit", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "description": "Optional case-insensitive title prefix filter.", + "in": "query", + "name": "q", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": "Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical).", + "in": "query", + "name": "sortBy", + "required": false, + "schema": { + "$ref": "#/components/schemas/PagesSortBy" + } + }, + { + "description": "If true, only return pages with at least one comment.", + "in": "query", + "name": "hasComments", + "required": false, + "schema": { + "type": "boolean" + } + } + ] + } + }, + "/pages/{tenantId}/users/online": { + "get": { + "operationId": "GetOnlineUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageUsersOnlineResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Currently-online viewers of a page: people whose websocket session is subscribed to the page right now.\nReturns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate).", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Page URL identifier (cleaned server-side).", + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Cursor: pass nextAfterName from the previous response.", + "in": "query", + "name": "afterName", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": "Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.", + "in": "query", + "name": "afterUserId", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/pages/{tenantId}/users/offline": { + "get": { + "operationId": "GetOfflineUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageUsersOfflineResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Past commenters on the page who are NOT currently online. Sorted by displayName.\nUse this after exhausting /users/online to render a \"Members\" section.\nCursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName}\nindex from afterName forward via $gt, no $skip cost.", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Page URL identifier (cleaned server-side).", + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Cursor: pass nextAfterName from the previous response.", + "in": "query", + "name": "afterName", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": "Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.", + "in": "query", + "name": "afterUserId", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/pages/{tenantId}/users/info": { + "get": { + "operationId": "GetUsersInfo", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageUsersInfoResponse" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Bulk user info for a tenant. Given userIds, return display info from User / SSOUser.\nUsed by the comment widget to enrich users that just appeared via a presence event.\nNo page context: privacy is enforced uniformly (private profiles are masked).", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Comma-delimited userIds.", + "in": "query", + "name": "ids", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/page-reacts/v1/likes/{tenantId}": { + "get": { + "operationId": "GetV1PageLikes", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetV1PageLikes" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "post": { + "operationId": "CreateV1PageReact", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateV1PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "title", + "required": false, + "schema": { + "type": "string" + } + } + ] + }, + "delete": { + "operationId": "DeleteV1PageReact", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteV1PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/page-reacts/v2/{tenantId}/list": { + "get": { + "operationId": "GetV2PageReactUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetV2PageReactUsersResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/page-reacts/v2/{tenantId}": { + "get": { + "operationId": "GetV2PageReacts", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetV2PageReacts" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "post": { + "operationId": "CreateV2PageReact", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateV2PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "title", + "required": false, + "schema": { + "type": "string" + } + } + ] + }, + "delete": { + "operationId": "DeleteV2PageReact", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteV2PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/count": { + "get": { + "operationId": "GetCount", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPICountCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "byIPFromComment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filter", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "demo", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/api/ids": { + "get": { + "operationId": "GetApiIds", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIGetCommentIdsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "byIPFromComment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "afterId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "demo", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/api/comments": { + "get": { + "operationId": "GetApiComments", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIGetCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "format": "double", + "type": "number" + } + }, + { + "in": "query", + "name": "count", + "required": false, + "schema": { + "format": "double", + "type": "number" + } + }, + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "byIPFromComment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sorts", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "demo", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/api/export": { + "post": { + "operationId": "PostApiExport", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationExportResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "byIPFromComment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sorts", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/api/export/status": { + "get": { + "operationId": "GetApiExportStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationExportStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "batchJobId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/users": { + "get": { + "operationId": "GetSearchUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationUserSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/pages": { + "get": { + "operationId": "GetSearchPages", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationPageSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/sites": { + "get": { + "operationId": "GetSearchSites", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationSiteSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/comments/summary": { + "get": { + "operationId": "GetSearchCommentsSummary", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationCommentSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/suggest": { + "get": { + "operationId": "GetSearchSuggest", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationSuggestResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}": { + "get": { + "operationId": "GetPreBanSummary", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PreBanSummary" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "includeByUserIdAndEmail", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeByIP", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeByEmailDomain", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/bulk-pre-ban-summary": { + "post": { + "operationId": "PostBulkPreBanSummary", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkPreBanSummary" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "includeByUserIdAndEmail", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeByIP", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeByEmailDomain", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkPreBanParams" + } + } + } + } + } + }, + "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}": { + "post": { + "operationId": "PostBanUserFromComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BanUserFromCommentResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "banEmail", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "banEmailDomain", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "banIP", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "deleteAllUsersComments", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "bannedUntil", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "isShadowBan", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "updateId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "banReason", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}": { + "get": { + "operationId": "GetBanUsersFromComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetBannedUsersFromCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/ban-user/undo": { + "post": { + "operationId": "PostBanUserUndo", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BanUserUndoParams" + } + } + } + } + } + }, + "/auth/my-account/moderate-comments/remove-comment/{commentId}": { + "post": { + "operationId": "PostRemoveComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "title": "PostRemoveCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/DeleteCommentResult" + }, + { + "$ref": "#/components/schemas/RemoveCommentActionResponse" + } + ] + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}": { + "post": { + "operationId": "PostRestoreDeletedComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/flag-comment/{commentId}": { + "post": { + "operationId": "PostFlagComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/un-flag-comment/{commentId}": { + "post": { + "operationId": "PostUnFlagComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}": { + "post": { + "operationId": "PostSetCommentReviewStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reviewed", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}": { + "post": { + "operationId": "PostSetCommentSpamStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "spam", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "permNotSpam", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}": { + "post": { + "operationId": "PostSetCommentApprovalStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetCommentApprovedResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "approved", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/logs/{commentId}": { + "get": { + "operationId": "GetLogs", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIGetLogsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/comment/{commentId}": { + "get": { + "operationId": "GetModerationComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPICommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "includeEmail", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeIP", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/comments-by-ids": { + "post": { + "operationId": "PostCommentsByIds", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommentsByIdsParams" + } + } + } + } + } + }, + "/auth/my-account/moderate-comments/comment-children/{commentId}": { + "get": { + "operationId": "GetCommentChildren", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/get-comment-text/{commentId}": { + "get": { + "operationId": "GetModerationCommentText", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-comment-text/{commentId}": { + "post": { + "operationId": "PostSetCommentText", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetCommentTextParams" + } + } + } + } } - } - }, - "info": { - "title": "fastcomments", - "version": "0.0.0", - "contact": {} - }, - "paths": { - "/user-search/{tenantId}": { + }, + "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}": { + "post": { + "operationId": "PostAdjustCommentVotes", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AdjustVotesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AdjustCommentVotesParams" + } + } + } + } + } + }, + "/auth/my-account/moderate-comments/vote/{commentId}": { + "post": { + "operationId": "PostVote", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "direction", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}": { + "delete": { + "operationId": "DeleteModerationVote", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "voteId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}": { "get": { - "operationId": "SearchUsers", + "operationId": "GetCommentBanStatus", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/SearchUsersSectionedResponse" - }, - { - "$ref": "#/components/schemas/SearchUsersResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentBanStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/user-ban-preference": { + "get": { + "operationId": "GetUserBanPreference", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIModerateGetUserBanPreferencesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ - { - "in": "path", - "name": "tenantId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "urlId", - "required": true, - "schema": { - "type": "string" - } - }, { "in": "query", - "name": "usernameStartsWith", + "name": "sso", "required": false, "schema": { "type": "string" } - }, - { - "in": "query", - "name": "mentionGroupIds", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string" + } + ] + } + }, + "/auth/my-account/moderate-comments/get-manual-badges": { + "get": { + "operationId": "GetManualBadges", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTenantManualBadgesResponse" + } } } }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ { "in": "query", "name": "sso", @@ -9623,45 +15141,26 @@ "schema": { "type": "string" } - }, - { - "in": "query", - "name": "searchSection", - "required": false, - "schema": { - "type": "string", - "enum": [ - "fast", - "site" - ] - } } ] } }, - "/user-presence-status": { + "/auth/my-account/moderate-comments/get-manual-badges-for-user": { "get": { - "operationId": "GetUserPresenceStatuses", + "operationId": "GetManualBadgesForUser", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserManualBadgesResponse" } } } }, - "422": { - "description": "Validation Failed", + "default": { + "description": "Error", "content": { "application/json": { "schema": { @@ -9672,30 +15171,30 @@ } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", - "required": true, + "name": "badgesUserId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "urlIdWS", - "required": true, + "name": "commentId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "userIds", - "required": true, + "name": "sso", + "required": false, "schema": { "type": "string" } @@ -9703,36 +15202,39 @@ ] } }, - "/user-notifications": { - "get": { - "operationId": "GetUserNotifications", + "/auth/my-account/moderate-comments/award-badge": { + "put": { + "operationId": "PutAwardBadge", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetMyNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/AwardUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", + "name": "badgeId", "required": true, "schema": { "type": "string" @@ -9740,16 +15242,15 @@ }, { "in": "query", - "name": "pageSize", + "name": "userId", "required": false, "schema": { - "format": "int32", - "type": "integer" + "type": "string" } }, { "in": "query", - "name": "afterId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -9757,51 +15258,83 @@ }, { "in": "query", - "name": "includeContext", + "name": "broadcastId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "afterCreatedAt", + "name": "sso", "required": false, "schema": { - "format": "int64", - "type": "integer" + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/remove-badge": { + "put": { + "operationId": "PutRemoveBadge", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RemoveUserBadgeResponse" + } + } } }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ { "in": "query", - "name": "unreadOnly", - "required": false, + "name": "badgeId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "dmOnly", + "name": "userId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "noDm", + "name": "commentId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "includeTranslations", + "name": "broadcastId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { @@ -9815,80 +15348,148 @@ ] } }, - "/user-notifications/reset": { - "post": { - "operationId": "ResetUserNotifications", + "/auth/my-account/moderate-comments/get-trust-factor": { + "get": { + "operationId": "GetTrustFactor", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserTrustFactorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", - "required": true, + "name": "userId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "afterId", + "name": "sso", "required": false, "schema": { "type": "string" } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-trust-factor": { + "put": { + "operationId": "SetTrustFactor", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetUserTrustFactorResponse" + } + } + } }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ { "in": "query", - "name": "afterCreatedAt", + "name": "userId", "required": false, "schema": { - "format": "int64", - "type": "integer" + "type": "string" } }, { "in": "query", - "name": "unreadOnly", + "name": "trustFactor", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "dmOnly", + "name": "sso", "required": false, "schema": { - "type": "boolean" + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/get-user-internal-profile": { + "get": { + "operationId": "GetUserInternalProfile", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUserInternalProfileResponse" + } + } } }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ { "in": "query", - "name": "noDm", + "name": "commentId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { @@ -9902,36 +15503,39 @@ ] } }, - "/user-notifications/get-count": { - "get": { - "operationId": "GetUserNotificationCount", + "/auth/my-account/moderate-comments/reopen-thread": { + "put": { + "operationId": "PutReopenThread", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", + "name": "urlId", "required": true, "schema": { "type": "string" @@ -9948,36 +15552,39 @@ ] } }, - "/user-notifications/reset-count": { - "post": { - "operationId": "ResetUserNotificationCount", + "/auth/my-account/moderate-comments/close-thread": { + "put": { + "operationId": "PutCloseThread", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", + "name": "urlId", "required": true, "schema": { "type": "string" @@ -9994,64 +15601,36 @@ ] } }, - "/user-notifications/{notificationId}/mark/{newStatus}": { - "post": { - "operationId": "UpdateUserNotificationStatus", + "/auth/my-account/moderate-comments/banned-users/counts": { + "get": { + "operationId": "GetCounts", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UserNotificationWriteResponse" - }, - { - "$ref": "#/components/schemas/IgnoredResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetBannedUsersCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ - { - "in": "query", - "name": "tenantId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "notificationId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "newStatus", - "required": true, - "schema": { - "type": "string", - "enum": [ - "read", - "unread" - ] - } - }, { "in": "query", "name": "sso", @@ -10063,24 +15642,22 @@ ] } }, - "/user-notifications/{notificationId}/mark-opted/{optedInOrOut}": { - "post": { - "operationId": "UpdateUserNotificationCommentSubscriptionStatus", + "/gifs/trending/{tenantId}": { + "get": { + "operationId": "GetGifsTrending", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { + "title": "GetGifsTrendingResponse", "anyOf": [ { - "$ref": "#/components/schemas/UserNotificationWriteResponse" - }, - { - "$ref": "#/components/schemas/IgnoredResponse" + "$ref": "#/components/schemas/GifSearchResponse" }, { - "$ref": "#/components/schemas/APIError" + "$ref": "#/components/schemas/GifSearchInternalError" } ] } @@ -10088,14 +15665,13 @@ } } }, - "description": "Enable or disable notifications for a specific comment.", "tags": [ "Public" ], "security": [], "parameters": [ { - "in": "query", + "in": "path", "name": "tenantId", "required": true, "schema": { @@ -10103,77 +15679,83 @@ } }, { - "in": "path", - "name": "notificationId", - "required": true, + "in": "query", + "name": "locale", + "required": false, "schema": { "type": "string" } }, - { - "in": "path", - "name": "optedInOrOut", - "required": true, - "schema": { - "type": "string", - "enum": [ - "in", - "out" - ] - } - }, { "in": "query", - "name": "commentId", - "required": true, + "name": "rating", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "sso", + "name": "page", "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } } ] } }, - "/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}": { - "post": { - "operationId": "UpdateUserNotificationPageSubscriptionStatus", + "/gifs/search/{tenantId}": { + "get": { + "operationId": "GetGifsSearch", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { + "title": "GetGifsSearchResponse", "anyOf": [ { - "$ref": "#/components/schemas/UserNotificationWriteResponse" - }, - { - "$ref": "#/components/schemas/IgnoredResponse" + "$ref": "#/components/schemas/GifSearchResponse" }, { - "$ref": "#/components/schemas/APIError" + "$ref": "#/components/schemas/GifSearchInternalError" } ] } } } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, - "description": "Enable or disable notifications for a page. When users are subscribed to a page, notifications are created\nfor new root comments, and also", "tags": [ "Public" ], "security": [], "parameters": [ { - "in": "query", + "in": "path", "name": "tenantId", "required": true, "schema": { @@ -10182,7 +15764,7 @@ }, { "in": "query", - "name": "urlId", + "name": "search", "required": true, "schema": { "type": "string" @@ -10190,59 +15772,67 @@ }, { "in": "query", - "name": "url", - "required": true, + "name": "locale", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "pageTitle", - "required": true, + "name": "rating", + "required": false, "schema": { "type": "string" } }, - { - "in": "path", - "name": "subscribedOrUnsubscribed", - "required": true, - "schema": { - "type": "string", - "enum": [ - "subscribe", - "unsubscribe" - ] - } - }, { "in": "query", - "name": "sso", + "name": "page", "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } } ] } }, - "/upload-image/{tenantId}": { - "post": { - "operationId": "UploadImage", + "/gifs/get-large/{tenantId}": { + "get": { + "operationId": "GetGifLarge", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UploadImageResponse" + "$ref": "#/components/schemas/GifGetLargeResponse" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, - "description": "Upload and resize an image", "tags": [ "Public" ], @@ -10257,43 +15847,14 @@ } }, { - "description": "Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices)", - "in": "query", - "name": "sizePreset", - "required": false, - "schema": { - "$ref": "#/components/schemas/SizePreset" - } - }, - { - "description": "Page id that upload is happening from, to configure", "in": "query", - "name": "urlId", - "required": false, + "name": "largeInternalURLSanitized", + "required": true, "schema": { "type": "string" } } - ], - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "format": "binary" - } - }, - "required": [ - "file" - ] - } - } - } - } + ] } }, "/flag-comment/{commentId}": { @@ -10305,14 +15866,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10367,14 +15931,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/PublicFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10456,14 +16023,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10520,14 +16090,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ReactFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ReactFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10600,14 +16173,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UserReactsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UserReactsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10657,14 +16233,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10727,22 +16306,26 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - { - "$ref": "#/components/schemas/APIError" + "title": "DeleteFeedPostPublicResponse", + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" } - ] + }, + "required": [ + "status" + ], + "type": "object" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10797,14 +16380,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/FeedPostsStatsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FeedPostsStatsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10854,14 +16440,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEventLogResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEventLogResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10909,7 +16498,7 @@ { "in": "query", "name": "endTime", - "required": true, + "required": false, "schema": { "format": "int64", "type": "integer" @@ -10927,14 +16516,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEventLogResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEventLogResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10982,7 +16574,7 @@ { "in": "query", "name": "endTime", - "required": true, + "required": false, "schema": { "format": "int64", "type": "integer" @@ -11000,14 +16592,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11062,14 +16657,100 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "editKey", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommentTextUpdateRequest" + } + } + } + } + } + }, + "/comments-for-user": { + "get": { + "operationId": "GetCommentsForUser", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCommentsForUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11081,56 +16762,63 @@ "security": [], "parameters": [ { - "in": "path", - "name": "tenantId", - "required": true, + "in": "query", + "name": "userId", + "required": false, "schema": { "type": "string" } }, { - "in": "path", - "name": "commentId", - "required": true, + "in": "query", + "name": "direction", + "required": false, "schema": { - "type": "string" + "$ref": "#/components/schemas/SortDirections" } }, { "in": "query", - "name": "broadcastId", - "required": true, + "name": "repliesToUserId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "editKey", + "name": "page", "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } }, { "in": "query", - "name": "sso", + "name": "includei10n", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "locale", "required": false, "schema": { "type": "string" } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CommentTextUpdateRequest" - } + }, + { + "in": "query", + "name": "isCrawler", + "required": false, + "schema": { + "type": "boolean" } } - } + ] } }, "/comments/{tenantId}": { @@ -11142,14 +16830,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11404,14 +17095,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11484,14 +17178,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11554,14 +17251,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CheckBlockedCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CheckBlockedCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11609,14 +17309,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/VoteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11697,14 +17400,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/VoteDeleteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11783,14 +17489,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11846,14 +17555,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11908,14 +17620,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11970,14 +17685,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIError" - }, - { - "$ref": "#/components/schemas/APIEmptyResponse" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12032,14 +17750,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIError" - }, - { - "$ref": "#/components/schemas/APIEmptyResponse" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12094,14 +17815,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/BlockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BlockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12156,14 +17880,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UnblockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UnblockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12211,6 +17938,28 @@ } } }, + "/auth/logout": { + "put": { + "operationId": "LogoutPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [] + } + }, "/api/v1/subscriptions": { "get": { "operationId": "GetSubscriptions", @@ -12404,6 +18153,7 @@ "content": { "application/json": { "schema": { + "title": "GetSSOUsersResponse", "properties": { "users": { "items": { @@ -12948,14 +18698,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetVotesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetVotesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12993,14 +18746,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/VoteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13068,14 +18824,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetVotesForUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetVotesForUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13131,14 +18890,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/VoteDeleteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13186,14 +18948,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13233,14 +18998,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13278,14 +19046,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptySuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13333,14 +19104,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptySuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13380,14 +19154,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13468,14 +19245,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APICreateUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APICreateUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13517,14 +19297,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13564,14 +19347,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13629,14 +19415,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13676,14 +19465,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTicketsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTicketsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13748,14 +19540,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTicketResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTicketResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13805,14 +19600,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTicketResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTicketResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13860,14 +19658,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeTicketStateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeTicketStateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13925,14 +19726,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13970,14 +19774,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14025,14 +19832,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14080,14 +19890,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14134,14 +19947,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14183,14 +19999,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14228,14 +20047,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14291,14 +20113,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14354,14 +20179,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14417,14 +20245,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantUsersResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantUsersResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14463,14 +20294,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14512,14 +20346,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14567,14 +20404,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantPackageResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantPackageResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14612,14 +20452,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14667,14 +20510,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14722,14 +20568,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14769,14 +20618,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantPackagesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantPackagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14815,14 +20667,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantPackageResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantPackageResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14864,14 +20719,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14939,14 +20797,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionResultResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionResultResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14984,14 +20845,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15039,14 +20903,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15086,14 +20953,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15172,14 +21042,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateQuestionResultResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateQuestionResultResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15221,14 +21094,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/AggregateQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/AggregateQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15312,14 +21188,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15369,14 +21248,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15479,14 +21361,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionConfigResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionConfigResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15524,14 +21409,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15579,14 +21467,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15626,14 +21517,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionConfigsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionConfigsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15672,14 +21566,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateQuestionConfigResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateQuestionConfigResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15721,14 +21618,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15818,14 +21718,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15906,14 +21809,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15953,14 +21859,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16041,14 +21950,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16120,14 +22032,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16185,14 +22100,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetCachedNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCachedNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16230,14 +22148,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16277,14 +22198,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetModeratorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetModeratorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16322,14 +22246,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16377,14 +22304,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16432,14 +22362,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetModeratorsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetModeratorsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16478,14 +22411,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateModeratorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateModeratorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16527,14 +22463,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16582,14 +22521,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetHashTagsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetHashTagsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16628,14 +22570,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateHashTagResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16677,14 +22622,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/BulkCreateHashTagsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BulkCreateHashTagsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16726,14 +22674,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UpdateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UpdateHashTagResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16781,14 +22732,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16822,6 +22776,7 @@ "content": { "application/json": { "schema": { + "title": "DeleteHashTagRequestBody", "properties": { "tenantId": { "type": "string" @@ -16843,14 +22798,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16909,14 +22867,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16990,14 +22951,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17047,14 +23011,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17086,14 +23053,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17142,14 +23112,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17197,14 +23170,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17242,14 +23218,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17297,14 +23276,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17344,14 +23326,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplatesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplatesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17390,14 +23375,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17439,14 +23427,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/RenderEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/RenderEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17496,6 +23487,7 @@ "content": { "application/json": { "schema": { + "title": "GetDomainConfigsResponse", "anyOf": [ { "properties": { @@ -17555,6 +23547,7 @@ "content": { "application/json": { "schema": { + "title": "AddDomainConfigResponse", "anyOf": [ { "properties": { @@ -17626,6 +23619,7 @@ "content": { "application/json": { "schema": { + "title": "GetDomainConfigResponse", "anyOf": [ { "properties": { @@ -17693,6 +23687,7 @@ "content": { "application/json": { "schema": { + "title": "DeleteDomainConfigResponse", "properties": { "status": {} }, @@ -17739,6 +23734,7 @@ "content": { "application/json": { "schema": { + "title": "PutDomainConfigResponse", "anyOf": [ { "properties": { @@ -17816,6 +23812,7 @@ "content": { "application/json": { "schema": { + "title": "PatchDomainConfigResponse", "anyOf": [ { "properties": { @@ -17895,14 +23892,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17940,14 +23940,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18019,14 +24022,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/DeleteCommentResult" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/DeleteCommentResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18082,14 +24088,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18226,6 +24235,24 @@ "schema": { "$ref": "#/components/schemas/SortDirections" } + }, + { + "in": "query", + "name": "fromDate", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "in": "query", + "name": "toDate", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } } ] }, @@ -18237,14 +24264,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/SaveCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APISaveCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18319,9 +24349,10 @@ "application/json": { "schema": { "items": { + "title": "SaveCommentsBulkResponse", "anyOf": [ { - "$ref": "#/components/schemas/SaveCommentResponse" + "$ref": "#/components/schemas/APISaveCommentResponse" }, { "$ref": "#/components/schemas/APIError" @@ -18405,14 +24436,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/FlagCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FlagCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18468,14 +24502,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/FlagCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FlagCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18531,14 +24568,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/BlockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BlockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18604,14 +24644,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UnblockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UnblockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18677,14 +24720,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetAuditLogsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetAuditLogsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18760,7 +24806,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AggregationResponse" + "title": "AggregateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/AggregationResponse" + }, + { + "$ref": "#/components/schemas/AggregationAPIError" + } + ] } } } From 214a13712f80356ff73a15a05bb5415ff7e9b1a1 Mon Sep 17 00:00:00 2001 From: winrid Date: Thu, 18 Jun 2026 22:19:25 -0700 Subject: [PATCH 2/8] docs: document ModerationApi client --- README.md | 45 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f0bf154..8f35833 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,11 @@ This library contains the generated API client and the SSO utilities to make wor ### Public vs Secured APIs -For the API client, there are two classes, `DefaultAPI` and `PublicAPI`. The `DefaultAPI` contains methods that require your API key, and `PublicAPI` contains api calls -that can be made directly from a browser/mobile device/etc without authentication. +For the API client, there are three classes, `DefaultApi`, `PublicApi`, and `ModerationApi`. The `DefaultApi` contains methods that require your API key, and `PublicApi` contains +methods that can be made directly from a browser/mobile device/etc without authentication. The `ModerationApi` contains methods that power the moderator dashboard - listing, +counting, searching, exporting and pulling logs for comments, moderation actions (remove/restore, flag, set review/spam/approval status, adjust votes, reopen/close threads), +bans (ban from a comment, undo bans, pre-ban summaries, ban status and preferences, banned-user counts), and badges & trust (award/remove badges, manual badges, get/set trust +factor, user internal profile). Every `ModerationApi` method accepts an `sso` parameter so the call is performed on behalf of an SSO-authenticated moderator. ## Quick Start @@ -100,11 +103,47 @@ int main() { } ``` +### Using Moderation APIs (ModerationApi) + +The `ModerationApi` powers the moderator dashboard. Every method accepts an `sso` parameter so the call runs on behalf of an SSO-authenticated moderator (see the SSO section below +for how to create a token): + +```cpp +#include +#include "FastCommentsClient/api/ModerationApi.h" +#include "FastCommentsClient/ApiClient.h" +#include "FastCommentsClient/ApiConfiguration.h" + +int main() { + auto config = std::make_shared(); + + // REQUIRED: Set the base URL + config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com")); + + auto apiClient = std::make_shared(config); + org::openapitools::client::api::ModerationApi moderationApi(apiClient); + + // Pass the moderator's SSO token to authenticate the call + auto ssoToken = utility::conversions::to_string_t("YOUR_MODERATOR_SSO_TOKEN"); + + auto response = moderationApi.getCount( + boost::none, // textSearch + boost::none, // byIPFromComment + boost::none, // filter + boost::none, // searchFilters + boost::none, // demo + ssoToken // sso + ).get(); + + return 0; +} +``` + ### Common Issues 1. **"URI must contain a hostname" error**: Make sure you call `config->setBaseUrl(utility::conversions::to_string_t("https://fastcomments.com"))` before creating the ApiClient. The cpp-restsdk generator doesn't automatically read the server URL from the OpenAPI spec. 2. **401 "missing-api-key" error**: Make sure you call `config->setApiKey(utility::conversions::to_string_t("api_key"), utility::conversions::to_string_t("YOUR_KEY"))` before creating the DefaultAPI instance. -3. **Wrong API class**: Use `DefaultAPI` for server-side authenticated requests, `PublicAPI` for client-side/public requests. +3. **Wrong API class**: Use `DefaultApi` for server-side authenticated requests, `PublicApi` for client-side/public requests, and `ModerationApi` for moderator dashboard requests (authenticated with a moderator SSO token). ## Making API Calls: Synchronous vs Asynchronous From a36b0fee42105a45c3a216f8b2a5d17246cbf99c Mon Sep 17 00:00:00 2001 From: winrid Date: Thu, 18 Jun 2026 22:37:42 -0700 Subject: [PATCH 3/8] Add GitHub Actions CI workflow --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..484197a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +# Runs on PRs and pushes to the default branch. We use `pull_request` (never +# `pull_request_target`), so secrets are NOT exposed to pull requests from forks. +on: + pull_request: + push: + branches: [main, master] + +permissions: + contents: read + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y cmake g++ pkg-config libssl-dev libcpprest-dev libboost-all-dev libsecret-1-dev + - name: Configure + run: cmake -S . -B build + - name: Build + run: cmake --build build -j + - name: Run tests + run: ctest --test-dir build --output-on-failure + env: + FASTCOMMENTS_API_KEY: ${{ secrets.FASTCOMMENTS_API_KEY }} + FASTCOMMENTS_TENANT_ID: ${{ secrets.FASTCOMMENTS_TENANT_ID }} From 0be9b62c3d7ab069f69a816f5f6722dc8add6f7b Mon Sep 17 00:00:00 2001 From: winrid Date: Thu, 18 Jun 2026 22:43:19 -0700 Subject: [PATCH 4/8] CI: limit build parallelism to avoid runner OOM --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 484197a..7bdc849 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,8 +25,9 @@ jobs: sudo apt-get install -y cmake g++ pkg-config libssl-dev libcpprest-dev libboost-all-dev libsecret-1-dev - name: Configure run: cmake -S . -B build + # Limit parallelism: the generated model set is large and high -j exhausts runner memory. - name: Build - run: cmake --build build -j + run: cmake --build build --parallel 2 - name: Run tests run: ctest --test-dir build --output-on-failure env: From 533439360a5b9cac12ee02d9dbc4e2ffd6f78e43 Mon Sep 17 00:00:00 2001 From: winrid Date: Thu, 18 Jun 2026 23:34:08 -0700 Subject: [PATCH 5/8] Regenerate C++ client with upstream openapi-generator 7.23.0 Switch update.sh from the local custom generator jar to the released @openapitools/openapi-generator-cli, which fixes nested map types (e.g. translationOverridesByLocale now generates as std::map> instead of std::map). --- client/.openapi-generator-ignore | 23 - client/.openapi-generator/FILES | 753 ------------------ client/.openapi-generator/VERSION | 1 - client/README.md | 2 +- client/include/FastCommentsClient/AnyType.h | 2 +- client/include/FastCommentsClient/ApiClient.h | 2 +- .../FastCommentsClient/ApiConfiguration.h | 2 +- .../include/FastCommentsClient/ApiException.h | 2 +- .../include/FastCommentsClient/HttpContent.h | 2 +- client/include/FastCommentsClient/IHttpBody.h | 2 +- client/include/FastCommentsClient/JsonBody.h | 2 +- client/include/FastCommentsClient/ModelBase.h | 3 +- .../FastCommentsClient/MultipartFormData.h | 2 +- client/include/FastCommentsClient/Object.h | 2 +- .../FastCommentsClient/api/DefaultApi.h | 2 +- .../FastCommentsClient/api/ModerationApi.h | 2 +- .../FastCommentsClient/api/PublicApi.h | 2 +- .../FastCommentsClient/model/APIAuditLog.h | 12 +- .../model/APIBanUserChangeLog.h | 3 +- .../model/APIBanUserChangedValues.h | 18 +- .../FastCommentsClient/model/APIBannedUser.h | 18 +- .../model/APIBannedUserWithMultiMatchInfo.h | 15 +- .../FastCommentsClient/model/APIComment.h | 81 +- .../FastCommentsClient/model/APICommentBase.h | 81 +- .../model/APICommentBase_meta.h | 21 +- .../model/APICommentCommonBannedUser.h | 15 +- .../model/APICreateUserBadgeResponse.h | 3 +- .../model/APIDomainConfiguration.h | 21 +- .../model/APIEmptyResponse.h | 3 +- .../model/APIEmptySuccessResponse.h | 3 +- .../FastCommentsClient/model/APIError.h | 3 +- .../model/APIGetCommentResponse.h | 3 +- .../model/APIGetCommentsResponse.h | 3 +- .../APIGetUserBadgeProgressListResponse.h | 3 +- .../model/APIGetUserBadgeProgressResponse.h | 3 +- .../model/APIGetUserBadgeResponse.h | 3 +- .../model/APIGetUserBadgesResponse.h | 3 +- ...APIModerateGetUserBanPreferencesResponse.h | 6 +- .../model/APIModerateUserBanPreferences.h | 3 +- .../FastCommentsClient/model/APIPage.h | 3 +- .../FastCommentsClient/model/APISSOUser.h | 3 +- .../model/APISaveCommentResponse.h | 6 +- .../FastCommentsClient/model/APIStatus.h | 3 +- .../FastCommentsClient/model/APITenant.h | 6 +- .../model/APITenantDailyUsage.h | 3 +- .../FastCommentsClient/model/APITicket.h | 3 +- .../model/APITicketDetail.h | 12 +- .../FastCommentsClient/model/APITicketFile.h | 3 +- .../model/APIUserSubscription.h | 3 +- .../model/AddDomainConfigParams.h | 3 +- .../model/AddDomainConfigResponse.h | 9 +- .../model/AddDomainConfigResponse_anyOf.h | 9 +- .../model/AddPageAPIResponse.h | 3 +- .../model/AddSSOUserAPIResponse.h | 3 +- .../model/AdjustCommentVotesParams.h | 3 +- .../model/AdjustVotesResponse.h | 3 +- .../model/AggregateQuestionResultsResponse.h | 3 +- .../model/AggregateResponse.h | 3 +- .../model/AggregateTimeBucket.h | 3 +- .../model/AggregationAPIError.h | 3 +- .../model/AggregationItem.h | 3 +- .../model/AggregationOpType.h | 3 +- .../model/AggregationOperation.h | 3 +- .../model/AggregationRequest.h | 3 +- .../model/AggregationRequest_sort.h | 3 +- .../model/AggregationResponse.h | 3 +- .../model/AggregationResponse_stats.h | 3 +- .../model/AggregationValue.h | 3 +- .../model/AwardUserBadgeResponse.h | 3 +- .../model/BanUserFromCommentResult.h | 3 +- .../model/BanUserUndoParams.h | 3 +- .../model/BannedUserMatch.h | 6 +- .../model/BannedUserMatchType.h | 3 +- .../model/BannedUserMatch_matchedOnValue.h | 3 +- .../FastCommentsClient/model/BillingInfo.h | 6 +- .../model/BlockFromCommentParams.h | 3 +- .../FastCommentsClient/model/BlockSuccess.h | 3 +- .../model/BuildModerationFilterParams.h | 21 +- .../model/BuildModerationFilterResponse.h | 3 +- .../model/BulkAggregateQuestionItem.h | 3 +- .../BulkAggregateQuestionResultsRequest.h | 3 +- .../BulkAggregateQuestionResultsResponse.h | 3 +- .../model/BulkCreateHashTagsBody.h | 3 +- .../model/BulkCreateHashTagsBody_tags_inner.h | 3 +- .../model/BulkCreateHashTagsResponse.h | 3 +- ...BulkCreateHashTagsResponse_results_inner.h | 3 +- .../model/BulkPreBanParams.h | 3 +- .../model/BulkPreBanSummary.h | 3 +- .../model/ChangeCommentPinStatusResponse.h | 3 +- .../model/ChangeTicketStateBody.h | 3 +- .../model/ChangeTicketStateResponse.h | 3 +- .../model/CheckBlockedCommentsResponse.h | 3 +- ...mbineQuestionResultsWithCommentsResponse.h | 3 +- .../FastCommentsClient/model/CommentData.h | 18 +- .../model/CommentHTMLRenderingMode.h | 3 +- .../FastCommentsClient/model/CommentLogData.h | 33 +- .../model/CommentLogEntry.h | 3 +- .../FastCommentsClient/model/CommentLogType.h | 3 +- .../CommentQuestionResultsRenderingType.h | 3 +- .../model/CommentQuestionsRequired.h | 3 +- .../model/CommentTextUpdateRequest.h | 3 +- .../model/CommentThreadDeletionMode.h | 3 +- .../model/CommentUserBadgeInfo.h | 21 +- .../model/CommentUserHashTagInfo.h | 6 +- .../model/CommentUserMentionInfo.h | 3 +- .../model/CommenterNameFormats.h | 3 +- .../model/CommentsByIdsParams.h | 3 +- .../model/CreateAPIPageData.h | 3 +- .../model/CreateAPISSOUserData.h | 3 +- .../model/CreateAPIUserSubscriptionData.h | 3 +- .../model/CreateCommentParams.h | 18 +- .../model/CreateEmailTemplateBody.h | 9 +- .../model/CreateEmailTemplateResponse.h | 3 +- .../model/CreateFeedPostParams.h | 3 +- .../model/CreateFeedPostResponse.h | 3 +- .../model/CreateFeedPostsResponse.h | 3 +- .../model/CreateHashTagBody.h | 3 +- .../model/CreateHashTagResponse.h | 3 +- .../model/CreateModeratorBody.h | 21 +- .../model/CreateModeratorResponse.h | 3 +- .../model/CreateQuestionConfigBody.h | 21 +- .../model/CreateQuestionConfigResponse.h | 3 +- .../model/CreateQuestionResultBody.h | 24 +- .../model/CreateQuestionResultResponse.h | 3 +- .../model/CreateSubscriptionAPIResponse.h | 3 +- .../model/CreateTenantBody.h | 3 +- .../model/CreateTenantPackageBody.h | 15 +- .../model/CreateTenantPackageResponse.h | 3 +- .../model/CreateTenantResponse.h | 3 +- .../model/CreateTenantUserBody.h | 3 +- .../model/CreateTenantUserResponse.h | 3 +- .../model/CreateTicketBody.h | 3 +- .../model/CreateTicketResponse.h | 3 +- .../model/CreateUserBadgeParams.h | 3 +- .../model/CreateV1PageReact.h | 3 +- .../model/CustomConfigParameters.h | 57 +- .../model/CustomEmailTemplate.h | 21 +- .../model/DeleteCommentAction.h | 3 +- .../model/DeleteCommentResult.h | 3 +- .../model/DeleteDomainConfigResponse.h | 6 +- .../model/DeleteFeedPostPublicResponse.h | 3 +- .../model/DeleteHashTagRequestBody.h | 3 +- .../model/DeletePageAPIResponse.h | 3 +- .../model/DeleteSSOUserAPIResponse.h | 3 +- .../model/DeleteSubscriptionAPIResponse.h | 3 +- .../model/DeletedCommentResultComment.h | 6 +- .../model/DigestEmailFrequency.h | 3 +- .../model/EmailTemplateDefinition.h | 9 +- .../model/EmailTemplateRenderErrorResponse.h | 3 +- .../FastCommentsClient/model/EventLogEntry.h | 3 +- .../FastCommentsClient/model/FComment.h | 102 +-- .../FastCommentsClient/model/FComment_meta.h | 21 +- .../FastCommentsClient/model/FeedPost.h | 12 +- .../FastCommentsClient/model/FeedPostLink.h | 3 +- .../model/FeedPostMediaItem.h | 3 +- .../model/FeedPostMediaItemAsset.h | 3 +- .../FastCommentsClient/model/FeedPostStats.h | 3 +- .../model/FeedPostsStatsResponse.h | 3 +- .../model/FindCommentsByRangeItem.h | 6 +- .../model/FindCommentsByRangeResponse.h | 3 +- .../model/FlagCommentResponse.h | 3 +- .../model/GetAuditLogsResponse.h | 3 +- .../model/GetBannedUsersCountResponse.h | 3 +- .../model/GetBannedUsersFromCommentResponse.h | 3 +- .../GetCachedNotificationCountResponse.h | 3 +- .../model/GetCommentBanStatusResponse.h | 9 +- .../model/GetCommentTextResponse.h | 6 +- .../GetCommentVoteUserNamesSuccessResponse.h | 3 +- .../model/GetCommentsForUserResponse.h | 3 +- ...mentsResponseWithPresence_PublicComment_.h | 9 +- .../GetCommentsResponse_PublicComment_.h | 9 +- .../model/GetDomainConfigResponse.h | 9 +- .../model/GetDomainConfigsResponse.h | 9 +- .../model/GetDomainConfigsResponse_anyOf.h | 9 +- .../model/GetDomainConfigsResponse_anyOf_1.h | 6 +- .../GetEmailTemplateDefinitionsResponse.h | 3 +- .../GetEmailTemplateRenderErrorsResponse.h | 3 +- .../model/GetEmailTemplateResponse.h | 3 +- .../model/GetEmailTemplatesResponse.h | 3 +- .../model/GetEventLogResponse.h | 3 +- .../model/GetFeedPostsResponse.h | 3 +- .../model/GetGifsSearchResponse.h | 3 +- .../model/GetGifsTrendingResponse.h | 3 +- .../model/GetHashTagsResponse.h | 3 +- .../model/GetModeratorResponse.h | 3 +- .../model/GetModeratorsResponse.h | 3 +- .../model/GetMyNotificationsResponse.h | 3 +- .../model/GetNotificationCountResponse.h | 3 +- .../model/GetNotificationsResponse.h | 3 +- .../model/GetPageByURLIdAPIResponse.h | 3 +- .../model/GetPagesAPIResponse.h | 3 +- .../GetPendingWebhookEventCountResponse.h | 3 +- .../model/GetPendingWebhookEventsResponse.h | 3 +- .../model/GetPublicFeedPostsResponse.h | 6 +- .../model/GetPublicPagesResponse.h | 6 +- .../model/GetQuestionConfigResponse.h | 3 +- .../model/GetQuestionConfigsResponse.h | 3 +- .../model/GetQuestionResultResponse.h | 3 +- .../model/GetQuestionResultsResponse.h | 3 +- .../model/GetSSOUserByEmailAPIResponse.h | 3 +- .../model/GetSSOUserByIdAPIResponse.h | 3 +- .../model/GetSSOUsersResponse.h | 3 +- .../model/GetSubscriptionsAPIResponse.h | 3 +- .../model/GetTenantDailyUsagesResponse.h | 3 +- .../model/GetTenantManualBadgesResponse.h | 3 +- .../model/GetTenantPackageResponse.h | 3 +- .../model/GetTenantPackagesResponse.h | 3 +- .../model/GetTenantResponse.h | 3 +- .../model/GetTenantUserResponse.h | 3 +- .../model/GetTenantUsersResponse.h | 3 +- .../model/GetTenantsResponse.h | 3 +- .../model/GetTicketResponse.h | 3 +- .../model/GetTicketsResponse.h | 3 +- .../model/GetTranslationsResponse.h | 3 +- .../model/GetUserInternalProfileResponse.h | 3 +- .../GetUserInternalProfileResponse_profile.h | 24 +- .../model/GetUserManualBadgesResponse.h | 3 +- .../model/GetUserNotificationCountResponse.h | 3 +- .../model/GetUserPresenceStatusesResponse.h | 3 +- .../model/GetUserResponse.h | 3 +- .../model/GetUserTrustFactorResponse.h | 3 +- .../FastCommentsClient/model/GetV1PageLikes.h | 3 +- .../model/GetV2PageReactUsersResponse.h | 3 +- .../model/GetV2PageReacts.h | 3 +- .../model/GetVotesForUserResponse.h | 3 +- .../model/GetVotesResponse.h | 3 +- .../model/GifGetLargeResponse.h | 3 +- .../FastCommentsClient/model/GifRating.h | 3 +- .../model/GifSearchInternalError.h | 3 +- .../model/GifSearchResponse.h | 3 +- .../GifSearchResponse_images_inner_inner.h | 3 +- .../model/HeaderAccountNotification.h | 18 +- .../FastCommentsClient/model/HeaderState.h | 3 +- .../model/IgnoredResponse.h | 3 +- .../model/ImageContentProfanityLevel.h | 3 +- ...portedAgentApprovalNotificationFrequency.h | 3 +- .../model/ImportedSiteType.h | 3 +- .../FastCommentsClient/model/LiveEvent.h | 3 +- .../FastCommentsClient/model/LiveEventType.h | 3 +- .../model/LiveEvent_extraInfo.h | 3 +- .../FastCommentsClient/model/MediaAsset.h | 3 +- .../model/MentionAutoCompleteMode.h | 3 +- .../FastCommentsClient/model/MetaItem.h | 3 +- .../ModerationAPIChildCommentsResponse.h | 3 +- .../model/ModerationAPIComment.h | 57 +- .../model/ModerationAPICommentLog.h | 3 +- .../model/ModerationAPICommentResponse.h | 3 +- .../ModerationAPICountCommentsResponse.h | 3 +- .../ModerationAPIGetCommentIdsResponse.h | 3 +- .../model/ModerationAPIGetCommentsResponse.h | 3 +- .../model/ModerationAPIGetLogsResponse.h | 3 +- .../model/ModerationCommentSearchResponse.h | 3 +- .../model/ModerationExportResponse.h | 3 +- .../model/ModerationExportStatusResponse.h | 3 +- .../model/ModerationFilter.h | 3 +- .../model/ModerationPageSearchProjected.h | 3 +- .../model/ModerationPageSearchResponse.h | 3 +- .../model/ModerationSiteSearchProjected.h | 6 +- .../model/ModerationSiteSearchResponse.h | 3 +- .../model/ModerationSuggestResponse.h | 3 +- .../model/ModerationUserSearchProjected.h | 9 +- .../model/ModerationUserSearchResponse.h | 3 +- .../FastCommentsClient/model/Moderator.h | 18 +- .../model/NotificationAndCount.h | 3 +- .../model/NotificationObjectType.h | 3 +- .../model/NotificationType.h | 3 +- .../FastCommentsClient/model/PageUserEntry.h | 3 +- .../model/PageUsersInfoResponse.h | 3 +- .../model/PageUsersOfflineResponse.h | 9 +- .../model/PageUsersOnlineResponse.h | 9 +- .../FastCommentsClient/model/PagesSortBy.h | 3 +- .../model/PatchDomainConfigParams.h | 3 +- .../model/PatchDomainConfigResponse.h | 9 +- .../model/PatchPageAPIResponse.h | 3 +- .../model/PatchSSOUserAPIResponse.h | 3 +- .../model/PendingCommentToSyncOutbound.h | 6 +- .../model/PostRemoveCommentResponse.h | 3 +- .../FastCommentsClient/model/PreBanSummary.h | 3 +- .../FastCommentsClient/model/PubSubComment.h | 63 +- .../model/PubSubCommentBase.h | 63 +- .../FastCommentsClient/model/PubSubVote.h | 9 +- .../model/PublicAPIDeleteCommentResponse.h | 3 +- .../model/PublicAPIGetCommentTextResponse.h | 3 +- .../model/PublicAPISetCommentTextResponse.h | 3 +- .../model/PublicBlockFromCommentParams.h | 6 +- .../FastCommentsClient/model/PublicComment.h | 48 +- .../model/PublicCommentBase.h | 48 +- .../model/PublicFeedPostsResponse.h | 6 +- .../FastCommentsClient/model/PublicPage.h | 3 +- .../FastCommentsClient/model/PublicVote.h | 3 +- .../model/PutDomainConfigResponse.h | 9 +- .../model/PutSSOUserAPIResponse.h | 6 +- .../FastCommentsClient/model/QueryPredicate.h | 3 +- .../model/QueryPredicate_value.h | 3 +- .../FastCommentsClient/model/QuestionConfig.h | 3 +- .../QuestionConfig_customOptions_inner.h | 3 +- .../FastCommentsClient/model/QuestionDatum.h | 3 +- .../model/QuestionRenderingType.h | 3 +- .../FastCommentsClient/model/QuestionResult.h | 9 +- .../model/QuestionResultAggregationOverall.h | 3 +- .../model/QuestionSubQuestionVisibility.h | 3 +- .../model/QuestionWhenSave.h | 3 +- .../model/ReactBodyParams.h | 3 +- .../model/ReactFeedPostResponse.h | 3 +- ...ng_or_null__after_string_or_null___value.h | 9 +- .../model/RemoveCommentActionResponse.h | 3 +- .../model/RemoveUserBadgeResponse.h | 3 +- .../model/RenderEmailTemplateBody.h | 9 +- .../model/RenderEmailTemplateResponse.h | 3 +- .../model/RenderableUserNotification.h | 18 +- .../model/RepeatCommentCheckIgnoredReason.h | 3 +- .../model/RepeatCommentHandlingAction.h | 3 +- .../model/ReplaceTenantPackageBody.h | 3 +- .../model/ReplaceTenantUserBody.h | 3 +- .../model/ResetUserNotificationsResponse.h | 3 +- .../FastCommentsClient/model/SORT_DIR.h | 3 +- .../model/SSOSecurityLevel.h | 3 +- .../model/SaveCommentResponseOptimized.h | 6 +- .../model/SaveCommentsBulkResponse.h | 6 +- .../model/SaveCommentsResponseWithPresence.h | 6 +- .../model/SearchUsersResponse.h | 3 +- .../model/SearchUsersResult.h | 3 +- .../model/SearchUsersSectionedResponse.h | 3 +- .../model/SetCommentApprovedResponse.h | 3 +- .../model/SetCommentTextParams.h | 3 +- .../model/SetCommentTextResponse.h | 3 +- .../model/SetCommentTextResult.h | 3 +- .../model/SetUserTrustFactorResponse.h | 3 +- .../FastCommentsClient/model/SizePreset.h | 3 +- .../FastCommentsClient/model/SortDirections.h | 3 +- .../FastCommentsClient/model/SpamRule.h | 3 +- .../FastCommentsClient/model/TOSConfig.h | 3 +- .../FastCommentsClient/model/TenantBadge.h | 27 +- .../FastCommentsClient/model/TenantHashTag.h | 3 +- .../FastCommentsClient/model/TenantPackage.h | 15 +- .../model/UnBlockFromCommentParams.h | 3 +- .../FastCommentsClient/model/UnblockSuccess.h | 3 +- .../model/UpdatableCommentParams.h | 66 +- .../model/UpdateAPIPageData.h | 3 +- .../model/UpdateAPISSOUserData.h | 3 +- .../model/UpdateAPIUserSubscriptionData.h | 3 +- .../model/UpdateDomainConfigParams.h | 3 +- .../model/UpdateEmailTemplateBody.h | 9 +- .../model/UpdateFeedPostParams.h | 3 +- .../model/UpdateHashTagBody.h | 3 +- .../model/UpdateHashTagResponse.h | 3 +- .../model/UpdateModeratorBody.h | 21 +- .../model/UpdateNotificationBody.h | 21 +- .../model/UpdateQuestionConfigBody.h | 21 +- .../model/UpdateQuestionResultBody.h | 24 +- .../model/UpdateSubscriptionAPIResponse.h | 3 +- .../model/UpdateTenantBody.h | 3 +- .../model/UpdateTenantPackageBody.h | 3 +- .../model/UpdateTenantUserBody.h | 3 +- .../model/UpdateUserBadgeParams.h | 3 +- ...icationCommentSubscriptionStatusResponse.h | 3 +- ...tificationPageSubscriptionStatusResponse.h | 3 +- .../UpdateUserNotificationStatusResponse.h | 3 +- .../model/UploadImageResponse.h | 3 +- .../include/FastCommentsClient/model/User.h | 24 +- .../FastCommentsClient/model/UserBadge.h | 21 +- .../model/UserBadgeProgress.h | 3 +- .../model/UserNotification.h | 27 +- .../model/UserNotificationCount.h | 3 +- .../model/UserNotificationWriteResponse.h | 3 +- .../model/UserPresenceData.h | 3 +- .../model/UserReactsResponse.h | 3 +- .../model/UserSearchResult.h | 6 +- .../model/UserSearchSection.h | 3 +- .../model/UserSearchSectionResult.h | 3 +- .../model/UserSessionInfo.h | 12 +- .../model/UsersListLocation.h | 3 +- .../FastCommentsClient/model/VoteBodyParams.h | 12 +- .../model/VoteDeleteResponse.h | 3 +- .../FastCommentsClient/model/VoteResponse.h | 21 +- .../model/VoteResponseUser.h | 6 +- .../model/VoteResponse_status.h | 66 -- .../FastCommentsClient/model/VoteStyle.h | 3 +- client/src/AnyType.cpp | 2 +- client/src/ApiClient.cpp | 2 +- client/src/ApiConfiguration.cpp | 2 +- client/src/ApiException.cpp | 2 +- client/src/HttpContent.cpp | 2 +- client/src/JsonBody.cpp | 2 +- client/src/ModelBase.cpp | 2 +- client/src/MultipartFormData.cpp | 2 +- client/src/Object.cpp | 2 +- client/src/api/DefaultApi.cpp | 230 +++--- client/src/api/ModerationApi.cpp | 2 +- client/src/api/PublicApi.cpp | 2 +- client/src/model/APIAuditLog.cpp | 76 +- client/src/model/APIBanUserChangeLog.cpp | 10 +- client/src/model/APIBanUserChangedValues.cpp | 113 ++- client/src/model/APIBannedUser.cpp | 113 ++- .../model/APIBannedUserWithMultiMatchInfo.cpp | 88 +- client/src/model/APIComment.cpp | 547 ++++++------- client/src/model/APICommentBase.cpp | 547 ++++++------- client/src/model/APICommentBase_meta.cpp | 56 +- .../src/model/APICommentCommonBannedUser.cpp | 86 +- .../src/model/APICreateUserBadgeResponse.cpp | 8 +- client/src/model/APIDomainConfiguration.cpp | 134 ++-- client/src/model/APIEmptyResponse.cpp | 4 +- client/src/model/APIEmptySuccessResponse.cpp | 4 +- client/src/model/APIError.cpp | 18 +- client/src/model/APIGetCommentResponse.cpp | 6 +- client/src/model/APIGetCommentsResponse.cpp | 6 +- .../APIGetUserBadgeProgressListResponse.cpp | 6 +- .../model/APIGetUserBadgeProgressResponse.cpp | 6 +- client/src/model/APIGetUserBadgeResponse.cpp | 6 +- client/src/model/APIGetUserBadgesResponse.cpp | 6 +- ...IModerateGetUserBanPreferencesResponse.cpp | 22 +- .../model/APIModerateUserBanPreferences.cpp | 10 +- client/src/model/APIPage.cpp | 20 +- client/src/model/APISSOUser.cpp | 42 +- client/src/model/APISaveCommentResponse.cpp | 26 +- client/src/model/APIStatus.cpp | 2 +- client/src/model/APITenant.cpp | 75 +- client/src/model/APITenantDailyUsage.cpp | 40 +- client/src/model/APITicket.cpp | 20 +- client/src/model/APITicketDetail.cpp | 79 +- client/src/model/APITicketFile.cpp | 22 +- client/src/model/APIUserSubscription.cpp | 18 +- client/src/model/AddDomainConfigParams.cpp | 16 +- client/src/model/AddDomainConfigResponse.cpp | 42 +- .../model/AddDomainConfigResponse_anyOf.cpp | 38 +- client/src/model/AddPageAPIResponse.cpp | 10 +- client/src/model/AddSSOUserAPIResponse.cpp | 10 +- client/src/model/AdjustCommentVotesParams.cpp | 4 +- client/src/model/AdjustVotesResponse.cpp | 6 +- .../AggregateQuestionResultsResponse.cpp | 6 +- client/src/model/AggregateResponse.cpp | 14 +- client/src/model/AggregateTimeBucket.cpp | 2 +- client/src/model/AggregationAPIError.cpp | 10 +- client/src/model/AggregationItem.cpp | 4 +- client/src/model/AggregationOpType.cpp | 2 +- client/src/model/AggregationOperation.cpp | 10 +- client/src/model/AggregationRequest.cpp | 12 +- client/src/model/AggregationRequest_sort.cpp | 6 +- client/src/model/AggregationResponse.cpp | 8 +- .../src/model/AggregationResponse_stats.cpp | 6 +- client/src/model/AggregationValue.cpp | 12 +- client/src/model/AwardUserBadgeResponse.cpp | 8 +- client/src/model/BanUserFromCommentResult.cpp | 10 +- client/src/model/BanUserUndoParams.cpp | 4 +- client/src/model/BannedUserMatch.cpp | 22 +- client/src/model/BannedUserMatchType.cpp | 2 +- .../model/BannedUserMatch_matchedOnValue.cpp | 2 +- client/src/model/BillingInfo.cpp | 35 +- client/src/model/BlockFromCommentParams.cpp | 4 +- client/src/model/BlockSuccess.cpp | 6 +- .../src/model/BuildModerationFilterParams.cpp | 65 +- .../model/BuildModerationFilterResponse.cpp | 6 +- .../src/model/BulkAggregateQuestionItem.cpp | 14 +- .../BulkAggregateQuestionResultsRequest.cpp | 4 +- .../BulkAggregateQuestionResultsResponse.cpp | 6 +- client/src/model/BulkCreateHashTagsBody.cpp | 6 +- .../BulkCreateHashTagsBody_tags_inner.cpp | 6 +- .../src/model/BulkCreateHashTagsResponse.cpp | 6 +- ...lkCreateHashTagsResponse_results_inner.cpp | 20 +- client/src/model/BulkPreBanParams.cpp | 4 +- client/src/model/BulkPreBanSummary.cpp | 14 +- .../model/ChangeCommentPinStatusResponse.cpp | 6 +- client/src/model/ChangeTicketStateBody.cpp | 4 +- .../src/model/ChangeTicketStateResponse.cpp | 6 +- .../model/CheckBlockedCommentsResponse.cpp | 6 +- ...ineQuestionResultsWithCommentsResponse.cpp | 6 +- client/src/model/CommentData.cpp | 139 ++-- client/src/model/CommentHTMLRenderingMode.cpp | 2 +- client/src/model/CommentLogData.cpp | 265 +++--- client/src/model/CommentLogEntry.cpp | 8 +- client/src/model/CommentLogType.cpp | 2 +- .../CommentQuestionResultsRenderingType.cpp | 2 +- client/src/model/CommentQuestionsRequired.cpp | 2 +- client/src/model/CommentTextUpdateRequest.cpp | 8 +- .../src/model/CommentThreadDeletionMode.cpp | 2 +- client/src/model/CommentUserBadgeInfo.cpp | 122 ++- client/src/model/CommentUserHashTagInfo.cpp | 27 +- client/src/model/CommentUserMentionInfo.cpp | 12 +- client/src/model/CommenterNameFormats.cpp | 2 +- client/src/model/CommentsByIdsParams.cpp | 4 +- client/src/model/CreateAPIPageData.cpp | 14 +- client/src/model/CreateAPISSOUserData.cpp | 42 +- .../model/CreateAPIUserSubscriptionData.cpp | 14 +- client/src/model/CreateCommentParams.cpp | 159 ++-- client/src/model/CreateEmailTemplateBody.cpp | 22 +- .../src/model/CreateEmailTemplateResponse.cpp | 6 +- client/src/model/CreateFeedPostParams.cpp | 18 +- client/src/model/CreateFeedPostResponse.cpp | 6 +- client/src/model/CreateFeedPostsResponse.cpp | 6 +- client/src/model/CreateHashTagBody.cpp | 8 +- client/src/model/CreateHashTagResponse.cpp | 6 +- client/src/model/CreateModeratorBody.cpp | 62 +- client/src/model/CreateModeratorResponse.cpp | 6 +- client/src/model/CreateQuestionConfigBody.cpp | 92 ++- .../model/CreateQuestionConfigResponse.cpp | 6 +- client/src/model/CreateQuestionResultBody.cpp | 87 +- .../model/CreateQuestionResultResponse.cpp | 6 +- .../model/CreateSubscriptionAPIResponse.cpp | 10 +- client/src/model/CreateTenantBody.cpp | 48 +- client/src/model/CreateTenantPackageBody.cpp | 168 ++-- .../src/model/CreateTenantPackageResponse.cpp | 6 +- client/src/model/CreateTenantResponse.cpp | 6 +- client/src/model/CreateTenantUserBody.cpp | 50 +- client/src/model/CreateTenantUserResponse.cpp | 6 +- client/src/model/CreateTicketBody.cpp | 4 +- client/src/model/CreateTicketResponse.cpp | 6 +- client/src/model/CreateUserBadgeParams.cpp | 8 +- client/src/model/CreateV1PageReact.cpp | 6 +- client/src/model/CustomConfigParameters.cpp | 476 +++++------ client/src/model/CustomEmailTemplate.cpp | 99 +-- client/src/model/DeleteCommentAction.cpp | 2 +- client/src/model/DeleteCommentResult.cpp | 6 +- .../src/model/DeleteDomainConfigResponse.cpp | 20 +- .../model/DeleteFeedPostPublicResponse.cpp | 4 +- client/src/model/DeleteHashTagRequestBody.cpp | 4 +- client/src/model/DeletePageAPIResponse.cpp | 8 +- client/src/model/DeleteSSOUserAPIResponse.cpp | 10 +- .../model/DeleteSubscriptionAPIResponse.cpp | 8 +- .../src/model/DeletedCommentResultComment.cpp | 27 +- client/src/model/DigestEmailFrequency.cpp | 2 +- client/src/model/EmailTemplateDefinition.cpp | 18 +- .../EmailTemplateRenderErrorResponse.cpp | 16 +- client/src/model/EventLogEntry.cpp | 14 +- client/src/model/FComment.cpp | 704 +++++++--------- client/src/model/FComment_meta.cpp | 59 +- client/src/model/FeedPost.cpp | 85 +- client/src/model/FeedPostLink.cpp | 10 +- client/src/model/FeedPostMediaItem.cpp | 8 +- client/src/model/FeedPostMediaItemAsset.cpp | 8 +- client/src/model/FeedPostStats.cpp | 6 +- client/src/model/FeedPostsStatsResponse.cpp | 6 +- client/src/model/FindCommentsByRangeItem.cpp | 22 +- .../src/model/FindCommentsByRangeResponse.cpp | 6 +- client/src/model/FlagCommentResponse.cpp | 12 +- client/src/model/GetAuditLogsResponse.cpp | 6 +- .../src/model/GetBannedUsersCountResponse.cpp | 6 +- .../GetBannedUsersFromCommentResponse.cpp | 8 +- .../GetCachedNotificationCountResponse.cpp | 6 +- .../src/model/GetCommentBanStatusResponse.cpp | 42 +- client/src/model/GetCommentTextResponse.cpp | 23 +- ...GetCommentVoteUserNamesSuccessResponse.cpp | 8 +- .../src/model/GetCommentsForUserResponse.cpp | 4 +- ...ntsResponseWithPresence_PublicComment_.cpp | 89 +-- .../GetCommentsResponse_PublicComment_.cpp | 83 +- client/src/model/GetDomainConfigResponse.cpp | 42 +- client/src/model/GetDomainConfigsResponse.cpp | 42 +- .../model/GetDomainConfigsResponse_anyOf.cpp | 38 +- .../GetDomainConfigsResponse_anyOf_1.cpp | 24 +- .../GetEmailTemplateDefinitionsResponse.cpp | 6 +- .../GetEmailTemplateRenderErrorsResponse.cpp | 6 +- client/src/model/GetEmailTemplateResponse.cpp | 6 +- .../src/model/GetEmailTemplatesResponse.cpp | 6 +- client/src/model/GetEventLogResponse.cpp | 6 +- client/src/model/GetFeedPostsResponse.cpp | 6 +- client/src/model/GetGifsSearchResponse.cpp | 8 +- client/src/model/GetGifsTrendingResponse.cpp | 8 +- client/src/model/GetHashTagsResponse.cpp | 6 +- client/src/model/GetModeratorResponse.cpp | 6 +- client/src/model/GetModeratorsResponse.cpp | 6 +- .../src/model/GetMyNotificationsResponse.cpp | 12 +- .../model/GetNotificationCountResponse.cpp | 6 +- client/src/model/GetNotificationsResponse.cpp | 6 +- .../src/model/GetPageByURLIdAPIResponse.cpp | 10 +- client/src/model/GetPagesAPIResponse.cpp | 10 +- .../GetPendingWebhookEventCountResponse.cpp | 6 +- .../model/GetPendingWebhookEventsResponse.cpp | 6 +- .../src/model/GetPublicFeedPostsResponse.cpp | 24 +- client/src/model/GetPublicPagesResponse.cpp | 25 +- .../src/model/GetQuestionConfigResponse.cpp | 6 +- .../src/model/GetQuestionConfigsResponse.cpp | 6 +- .../src/model/GetQuestionResultResponse.cpp | 6 +- .../src/model/GetQuestionResultsResponse.cpp | 6 +- .../model/GetSSOUserByEmailAPIResponse.cpp | 10 +- .../src/model/GetSSOUserByIdAPIResponse.cpp | 10 +- client/src/model/GetSSOUsersResponse.cpp | 6 +- .../src/model/GetSubscriptionsAPIResponse.cpp | 10 +- .../model/GetTenantDailyUsagesResponse.cpp | 6 +- .../model/GetTenantManualBadgesResponse.cpp | 6 +- client/src/model/GetTenantPackageResponse.cpp | 6 +- .../src/model/GetTenantPackagesResponse.cpp | 6 +- client/src/model/GetTenantResponse.cpp | 6 +- client/src/model/GetTenantUserResponse.cpp | 6 +- client/src/model/GetTenantUsersResponse.cpp | 6 +- client/src/model/GetTenantsResponse.cpp | 6 +- client/src/model/GetTicketResponse.cpp | 8 +- client/src/model/GetTicketsResponse.cpp | 6 +- client/src/model/GetTranslationsResponse.cpp | 6 +- .../model/GetUserInternalProfileResponse.cpp | 6 +- ...GetUserInternalProfileResponse_profile.cpp | 155 ++-- .../src/model/GetUserManualBadgesResponse.cpp | 6 +- .../GetUserNotificationCountResponse.cpp | 6 +- .../model/GetUserPresenceStatusesResponse.cpp | 6 +- client/src/model/GetUserResponse.cpp | 6 +- .../src/model/GetUserTrustFactorResponse.cpp | 8 +- client/src/model/GetV1PageLikes.cpp | 12 +- .../src/model/GetV2PageReactUsersResponse.cpp | 6 +- client/src/model/GetV2PageReacts.cpp | 8 +- client/src/model/GetVotesForUserResponse.cpp | 10 +- client/src/model/GetVotesResponse.cpp | 10 +- client/src/model/GifGetLargeResponse.cpp | 6 +- client/src/model/GifRating.cpp | 2 +- client/src/model/GifSearchInternalError.cpp | 6 +- client/src/model/GifSearchResponse.cpp | 6 +- .../GifSearchResponse_images_inner_inner.cpp | 2 +- .../src/model/HeaderAccountNotification.cpp | 105 ++- client/src/model/HeaderState.cpp | 14 +- client/src/model/IgnoredResponse.cpp | 6 +- .../src/model/ImageContentProfanityLevel.cpp | 2 +- ...rtedAgentApprovalNotificationFrequency.cpp | 2 +- client/src/model/ImportedSiteType.cpp | 2 +- client/src/model/LiveEvent.cpp | 36 +- client/src/model/LiveEventType.cpp | 2 +- client/src/model/LiveEvent_extraInfo.cpp | 4 +- client/src/model/MediaAsset.cpp | 8 +- client/src/model/MentionAutoCompleteMode.cpp | 2 +- client/src/model/MetaItem.cpp | 6 +- .../ModerationAPIChildCommentsResponse.cpp | 6 +- client/src/model/ModerationAPIComment.cpp | 391 ++++----- client/src/model/ModerationAPICommentLog.cpp | 10 +- .../model/ModerationAPICommentResponse.cpp | 6 +- .../ModerationAPICountCommentsResponse.cpp | 6 +- .../ModerationAPIGetCommentIdsResponse.cpp | 8 +- .../ModerationAPIGetCommentsResponse.cpp | 10 +- .../model/ModerationAPIGetLogsResponse.cpp | 6 +- .../model/ModerationCommentSearchResponse.cpp | 6 +- client/src/model/ModerationExportResponse.cpp | 6 +- .../model/ModerationExportStatusResponse.cpp | 10 +- client/src/model/ModerationFilter.cpp | 26 +- .../model/ModerationPageSearchProjected.cpp | 10 +- .../model/ModerationPageSearchResponse.cpp | 6 +- .../model/ModerationSiteSearchProjected.cpp | 23 +- .../model/ModerationSiteSearchResponse.cpp | 6 +- .../src/model/ModerationSuggestResponse.cpp | 10 +- .../model/ModerationUserSearchProjected.cpp | 44 +- .../model/ModerationUserSearchResponse.cpp | 6 +- client/src/model/Moderator.cpp | 124 ++- client/src/model/NotificationAndCount.cpp | 6 +- client/src/model/NotificationObjectType.cpp | 2 +- client/src/model/NotificationType.cpp | 2 +- client/src/model/PageUserEntry.cpp | 10 +- client/src/model/PageUsersInfoResponse.cpp | 6 +- client/src/model/PageUsersOfflineResponse.cpp | 44 +- client/src/model/PageUsersOnlineResponse.cpp | 48 +- client/src/model/PagesSortBy.cpp | 2 +- client/src/model/PatchDomainConfigParams.cpp | 16 +- .../src/model/PatchDomainConfigResponse.cpp | 42 +- client/src/model/PatchPageAPIResponse.cpp | 12 +- client/src/model/PatchSSOUserAPIResponse.cpp | 10 +- .../model/PendingCommentToSyncOutbound.cpp | 45 +- .../src/model/PostRemoveCommentResponse.cpp | 6 +- client/src/model/PreBanSummary.cpp | 8 +- client/src/model/PubSubComment.cpp | 426 +++++----- client/src/model/PubSubCommentBase.cpp | 420 +++++----- client/src/model/PubSubVote.cpp | 54 +- .../model/PublicAPIDeleteCommentResponse.cpp | 8 +- .../model/PublicAPIGetCommentTextResponse.cpp | 8 +- .../model/PublicAPISetCommentTextResponse.cpp | 6 +- .../model/PublicBlockFromCommentParams.cpp | 20 +- client/src/model/PublicComment.cpp | 334 ++++---- client/src/model/PublicCommentBase.cpp | 314 ++++---- client/src/model/PublicFeedPostsResponse.cpp | 32 +- client/src/model/PublicPage.cpp | 12 +- client/src/model/PublicVote.cpp | 14 +- client/src/model/PutDomainConfigResponse.cpp | 42 +- client/src/model/PutSSOUserAPIResponse.cpp | 26 +- client/src/model/QueryPredicate.cpp | 8 +- client/src/model/QueryPredicate_value.cpp | 2 +- client/src/model/QuestionConfig.cpp | 44 +- .../QuestionConfig_customOptions_inner.cpp | 6 +- client/src/model/QuestionDatum.cpp | 6 +- client/src/model/QuestionRenderingType.cpp | 2 +- client/src/model/QuestionResult.cpp | 57 +- .../QuestionResultAggregationOverall.cpp | 14 +- .../model/QuestionSubQuestionVisibility.cpp | 2 +- client/src/model/QuestionWhenSave.cpp | 2 +- client/src/model/ReactBodyParams.cpp | 4 +- client/src/model/ReactFeedPostResponse.cpp | 8 +- ..._or_null__after_string_or_null___value.cpp | 40 +- .../src/model/RemoveCommentActionResponse.cpp | 6 +- client/src/model/RemoveUserBadgeResponse.cpp | 6 +- client/src/model/RenderEmailTemplateBody.cpp | 18 +- .../src/model/RenderEmailTemplateResponse.cpp | 6 +- .../src/model/RenderableUserNotification.cpp | 129 ++- .../model/RepeatCommentCheckIgnoredReason.cpp | 2 +- .../src/model/RepeatCommentHandlingAction.cpp | 2 +- client/src/model/ReplaceTenantPackageBody.cpp | 64 +- client/src/model/ReplaceTenantUserBody.cpp | 58 +- .../model/ResetUserNotificationsResponse.cpp | 6 +- client/src/model/SORT_DIR.cpp | 2 +- client/src/model/SSOSecurityLevel.cpp | 2 +- .../model/SaveCommentResponseOptimized.cpp | 26 +- client/src/model/SaveCommentsBulkResponse.cpp | 40 +- .../SaveCommentsResponseWithPresence.cpp | 28 +- client/src/model/SearchUsersResponse.cpp | 6 +- client/src/model/SearchUsersResult.cpp | 8 +- .../model/SearchUsersSectionedResponse.cpp | 6 +- .../src/model/SetCommentApprovedResponse.cpp | 6 +- client/src/model/SetCommentTextParams.cpp | 4 +- client/src/model/SetCommentTextResponse.cpp | 6 +- client/src/model/SetCommentTextResult.cpp | 6 +- .../src/model/SetUserTrustFactorResponse.cpp | 6 +- client/src/model/SizePreset.cpp | 2 +- client/src/model/SortDirections.cpp | 2 +- client/src/model/SpamRule.cpp | 6 +- client/src/model/TOSConfig.cpp | 8 +- client/src/model/TenantBadge.cpp | 180 ++--- client/src/model/TenantHashTag.cpp | 12 +- client/src/model/TenantPackage.cpp | 192 +++-- client/src/model/UnBlockFromCommentParams.cpp | 4 +- client/src/model/UnblockSuccess.cpp | 6 +- client/src/model/UpdatableCommentParams.cpp | 435 +++++----- client/src/model/UpdateAPIPageData.cpp | 12 +- client/src/model/UpdateAPISSOUserData.cpp | 42 +- .../model/UpdateAPIUserSubscriptionData.cpp | 4 +- client/src/model/UpdateDomainConfigParams.cpp | 16 +- client/src/model/UpdateEmailTemplateBody.cpp | 22 +- client/src/model/UpdateFeedPostParams.cpp | 14 +- client/src/model/UpdateHashTagBody.cpp | 8 +- client/src/model/UpdateHashTagResponse.cpp | 6 +- client/src/model/UpdateModeratorBody.cpp | 62 +- client/src/model/UpdateNotificationBody.cpp | 56 +- client/src/model/UpdateQuestionConfigBody.cpp | 92 ++- client/src/model/UpdateQuestionResultBody.cpp | 87 +- .../model/UpdateSubscriptionAPIResponse.cpp | 10 +- client/src/model/UpdateTenantBody.cpp | 50 +- client/src/model/UpdateTenantPackageBody.cpp | 66 +- client/src/model/UpdateTenantUserBody.cpp | 50 +- client/src/model/UpdateUserBadgeParams.cpp | 4 +- ...ationCommentSubscriptionStatusResponse.cpp | 10 +- ...ficationPageSubscriptionStatusResponse.cpp | 10 +- .../UpdateUserNotificationStatusResponse.cpp | 10 +- client/src/model/UploadImageResponse.cpp | 12 +- client/src/model/User.cpp | 241 +++--- client/src/model/UserBadge.cpp | 142 ++-- client/src/model/UserBadgeProgress.cpp | 20 +- client/src/model/UserNotification.cpp | 186 ++--- client/src/model/UserNotificationCount.cpp | 10 +- .../model/UserNotificationWriteResponse.cpp | 8 +- client/src/model/UserPresenceData.cpp | 8 +- client/src/model/UserReactsResponse.cpp | 6 +- client/src/model/UserSearchResult.cpp | 29 +- client/src/model/UserSearchSection.cpp | 2 +- client/src/model/UserSearchSectionResult.cpp | 6 +- client/src/model/UserSessionInfo.cpp | 81 +- client/src/model/UsersListLocation.cpp | 2 +- client/src/model/VoteBodyParams.cpp | 61 +- client/src/model/VoteDeleteResponse.cpp | 6 +- client/src/model/VoteResponse.cpp | 64 +- client/src/model/VoteResponseUser.cpp | 21 +- client/src/model/VoteResponse_status.cpp | 75 -- client/src/model/VoteStyle.cpp | 2 +- docs/Models/VoteResponse.md | 2 +- docs/Models/VoteResponse_status.md | 8 - docs/README.md | 417 +++++----- openapitools.json | 2 +- update.sh | 4 +- 756 files changed, 7762 insertions(+), 9082 deletions(-) delete mode 100644 client/.openapi-generator-ignore delete mode 100644 client/.openapi-generator/FILES delete mode 100644 client/.openapi-generator/VERSION delete mode 100644 client/include/FastCommentsClient/model/VoteResponse_status.h delete mode 100644 client/src/model/VoteResponse_status.cpp delete mode 100644 docs/Models/VoteResponse_status.md diff --git a/client/.openapi-generator-ignore b/client/.openapi-generator-ignore deleted file mode 100644 index 7484ee5..0000000 --- a/client/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES deleted file mode 100644 index c6ba2de..0000000 --- a/client/.openapi-generator/FILES +++ /dev/null @@ -1,753 +0,0 @@ -.gitignore -.openapi-generator-ignore -CMakeLists.txt -Config.cmake.in -README.md -git_push.sh -include/FastCommentsClient/AnyType.h -include/FastCommentsClient/ApiClient.h -include/FastCommentsClient/ApiConfiguration.h -include/FastCommentsClient/ApiException.h -include/FastCommentsClient/HttpContent.h -include/FastCommentsClient/IHttpBody.h -include/FastCommentsClient/JsonBody.h -include/FastCommentsClient/ModelBase.h -include/FastCommentsClient/MultipartFormData.h -include/FastCommentsClient/Object.h -include/FastCommentsClient/api/DefaultApi.h -include/FastCommentsClient/api/ModerationApi.h -include/FastCommentsClient/api/PublicApi.h -include/FastCommentsClient/model/APIAuditLog.h -include/FastCommentsClient/model/APIBanUserChangeLog.h -include/FastCommentsClient/model/APIBanUserChangedValues.h -include/FastCommentsClient/model/APIBannedUser.h -include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h -include/FastCommentsClient/model/APIComment.h -include/FastCommentsClient/model/APICommentBase.h -include/FastCommentsClient/model/APICommentBase_meta.h -include/FastCommentsClient/model/APICommentCommonBannedUser.h -include/FastCommentsClient/model/APICreateUserBadgeResponse.h -include/FastCommentsClient/model/APIDomainConfiguration.h -include/FastCommentsClient/model/APIEmptyResponse.h -include/FastCommentsClient/model/APIEmptySuccessResponse.h -include/FastCommentsClient/model/APIError.h -include/FastCommentsClient/model/APIGetCommentResponse.h -include/FastCommentsClient/model/APIGetCommentsResponse.h -include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h -include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h -include/FastCommentsClient/model/APIGetUserBadgeResponse.h -include/FastCommentsClient/model/APIGetUserBadgesResponse.h -include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h -include/FastCommentsClient/model/APIModerateUserBanPreferences.h -include/FastCommentsClient/model/APIPage.h -include/FastCommentsClient/model/APISSOUser.h -include/FastCommentsClient/model/APISaveCommentResponse.h -include/FastCommentsClient/model/APIStatus.h -include/FastCommentsClient/model/APITenant.h -include/FastCommentsClient/model/APITenantDailyUsage.h -include/FastCommentsClient/model/APITicket.h -include/FastCommentsClient/model/APITicketDetail.h -include/FastCommentsClient/model/APITicketFile.h -include/FastCommentsClient/model/APIUserSubscription.h -include/FastCommentsClient/model/AddDomainConfigParams.h -include/FastCommentsClient/model/AddDomainConfigResponse.h -include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h -include/FastCommentsClient/model/AddPageAPIResponse.h -include/FastCommentsClient/model/AddSSOUserAPIResponse.h -include/FastCommentsClient/model/AdjustCommentVotesParams.h -include/FastCommentsClient/model/AdjustVotesResponse.h -include/FastCommentsClient/model/AggregateQuestionResultsResponse.h -include/FastCommentsClient/model/AggregateResponse.h -include/FastCommentsClient/model/AggregateTimeBucket.h -include/FastCommentsClient/model/AggregationAPIError.h -include/FastCommentsClient/model/AggregationItem.h -include/FastCommentsClient/model/AggregationOpType.h -include/FastCommentsClient/model/AggregationOperation.h -include/FastCommentsClient/model/AggregationRequest.h -include/FastCommentsClient/model/AggregationRequest_sort.h -include/FastCommentsClient/model/AggregationResponse.h -include/FastCommentsClient/model/AggregationResponse_stats.h -include/FastCommentsClient/model/AggregationValue.h -include/FastCommentsClient/model/AwardUserBadgeResponse.h -include/FastCommentsClient/model/BanUserFromCommentResult.h -include/FastCommentsClient/model/BanUserUndoParams.h -include/FastCommentsClient/model/BannedUserMatch.h -include/FastCommentsClient/model/BannedUserMatchType.h -include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h -include/FastCommentsClient/model/BillingInfo.h -include/FastCommentsClient/model/BlockFromCommentParams.h -include/FastCommentsClient/model/BlockSuccess.h -include/FastCommentsClient/model/BuildModerationFilterParams.h -include/FastCommentsClient/model/BuildModerationFilterResponse.h -include/FastCommentsClient/model/BulkAggregateQuestionItem.h -include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h -include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h -include/FastCommentsClient/model/BulkCreateHashTagsBody.h -include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h -include/FastCommentsClient/model/BulkCreateHashTagsResponse.h -include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h -include/FastCommentsClient/model/BulkPreBanParams.h -include/FastCommentsClient/model/BulkPreBanSummary.h -include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h -include/FastCommentsClient/model/ChangeTicketStateBody.h -include/FastCommentsClient/model/ChangeTicketStateResponse.h -include/FastCommentsClient/model/CheckBlockedCommentsResponse.h -include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h -include/FastCommentsClient/model/CommentData.h -include/FastCommentsClient/model/CommentHTMLRenderingMode.h -include/FastCommentsClient/model/CommentLogData.h -include/FastCommentsClient/model/CommentLogEntry.h -include/FastCommentsClient/model/CommentLogType.h -include/FastCommentsClient/model/CommentQuestionResultsRenderingType.h -include/FastCommentsClient/model/CommentQuestionsRequired.h -include/FastCommentsClient/model/CommentTextUpdateRequest.h -include/FastCommentsClient/model/CommentThreadDeletionMode.h -include/FastCommentsClient/model/CommentUserBadgeInfo.h -include/FastCommentsClient/model/CommentUserHashTagInfo.h -include/FastCommentsClient/model/CommentUserMentionInfo.h -include/FastCommentsClient/model/CommenterNameFormats.h -include/FastCommentsClient/model/CommentsByIdsParams.h -include/FastCommentsClient/model/CreateAPIPageData.h -include/FastCommentsClient/model/CreateAPISSOUserData.h -include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h -include/FastCommentsClient/model/CreateCommentParams.h -include/FastCommentsClient/model/CreateEmailTemplateBody.h -include/FastCommentsClient/model/CreateEmailTemplateResponse.h -include/FastCommentsClient/model/CreateFeedPostParams.h -include/FastCommentsClient/model/CreateFeedPostResponse.h -include/FastCommentsClient/model/CreateFeedPostsResponse.h -include/FastCommentsClient/model/CreateHashTagBody.h -include/FastCommentsClient/model/CreateHashTagResponse.h -include/FastCommentsClient/model/CreateModeratorBody.h -include/FastCommentsClient/model/CreateModeratorResponse.h -include/FastCommentsClient/model/CreateQuestionConfigBody.h -include/FastCommentsClient/model/CreateQuestionConfigResponse.h -include/FastCommentsClient/model/CreateQuestionResultBody.h -include/FastCommentsClient/model/CreateQuestionResultResponse.h -include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h -include/FastCommentsClient/model/CreateTenantBody.h -include/FastCommentsClient/model/CreateTenantPackageBody.h -include/FastCommentsClient/model/CreateTenantPackageResponse.h -include/FastCommentsClient/model/CreateTenantResponse.h -include/FastCommentsClient/model/CreateTenantUserBody.h -include/FastCommentsClient/model/CreateTenantUserResponse.h -include/FastCommentsClient/model/CreateTicketBody.h -include/FastCommentsClient/model/CreateTicketResponse.h -include/FastCommentsClient/model/CreateUserBadgeParams.h -include/FastCommentsClient/model/CreateV1PageReact.h -include/FastCommentsClient/model/CustomConfigParameters.h -include/FastCommentsClient/model/CustomEmailTemplate.h -include/FastCommentsClient/model/DeleteCommentAction.h -include/FastCommentsClient/model/DeleteCommentResult.h -include/FastCommentsClient/model/DeleteDomainConfigResponse.h -include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h -include/FastCommentsClient/model/DeleteHashTagRequestBody.h -include/FastCommentsClient/model/DeletePageAPIResponse.h -include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h -include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h -include/FastCommentsClient/model/DeletedCommentResultComment.h -include/FastCommentsClient/model/DigestEmailFrequency.h -include/FastCommentsClient/model/EmailTemplateDefinition.h -include/FastCommentsClient/model/EmailTemplateRenderErrorResponse.h -include/FastCommentsClient/model/EventLogEntry.h -include/FastCommentsClient/model/FComment.h -include/FastCommentsClient/model/FComment_meta.h -include/FastCommentsClient/model/FeedPost.h -include/FastCommentsClient/model/FeedPostLink.h -include/FastCommentsClient/model/FeedPostMediaItem.h -include/FastCommentsClient/model/FeedPostMediaItemAsset.h -include/FastCommentsClient/model/FeedPostStats.h -include/FastCommentsClient/model/FeedPostsStatsResponse.h -include/FastCommentsClient/model/FindCommentsByRangeItem.h -include/FastCommentsClient/model/FindCommentsByRangeResponse.h -include/FastCommentsClient/model/FlagCommentResponse.h -include/FastCommentsClient/model/GetAuditLogsResponse.h -include/FastCommentsClient/model/GetBannedUsersCountResponse.h -include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h -include/FastCommentsClient/model/GetCachedNotificationCountResponse.h -include/FastCommentsClient/model/GetCommentBanStatusResponse.h -include/FastCommentsClient/model/GetCommentTextResponse.h -include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h -include/FastCommentsClient/model/GetCommentsForUserResponse.h -include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h -include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h -include/FastCommentsClient/model/GetDomainConfigResponse.h -include/FastCommentsClient/model/GetDomainConfigsResponse.h -include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h -include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h -include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h -include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h -include/FastCommentsClient/model/GetEmailTemplateResponse.h -include/FastCommentsClient/model/GetEmailTemplatesResponse.h -include/FastCommentsClient/model/GetEventLogResponse.h -include/FastCommentsClient/model/GetFeedPostsResponse.h -include/FastCommentsClient/model/GetGifsSearchResponse.h -include/FastCommentsClient/model/GetGifsTrendingResponse.h -include/FastCommentsClient/model/GetHashTagsResponse.h -include/FastCommentsClient/model/GetModeratorResponse.h -include/FastCommentsClient/model/GetModeratorsResponse.h -include/FastCommentsClient/model/GetMyNotificationsResponse.h -include/FastCommentsClient/model/GetNotificationCountResponse.h -include/FastCommentsClient/model/GetNotificationsResponse.h -include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h -include/FastCommentsClient/model/GetPagesAPIResponse.h -include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h -include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h -include/FastCommentsClient/model/GetPublicFeedPostsResponse.h -include/FastCommentsClient/model/GetPublicPagesResponse.h -include/FastCommentsClient/model/GetQuestionConfigResponse.h -include/FastCommentsClient/model/GetQuestionConfigsResponse.h -include/FastCommentsClient/model/GetQuestionResultResponse.h -include/FastCommentsClient/model/GetQuestionResultsResponse.h -include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h -include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h -include/FastCommentsClient/model/GetSSOUsersResponse.h -include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h -include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h -include/FastCommentsClient/model/GetTenantManualBadgesResponse.h -include/FastCommentsClient/model/GetTenantPackageResponse.h -include/FastCommentsClient/model/GetTenantPackagesResponse.h -include/FastCommentsClient/model/GetTenantResponse.h -include/FastCommentsClient/model/GetTenantUserResponse.h -include/FastCommentsClient/model/GetTenantUsersResponse.h -include/FastCommentsClient/model/GetTenantsResponse.h -include/FastCommentsClient/model/GetTicketResponse.h -include/FastCommentsClient/model/GetTicketsResponse.h -include/FastCommentsClient/model/GetTranslationsResponse.h -include/FastCommentsClient/model/GetUserInternalProfileResponse.h -include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h -include/FastCommentsClient/model/GetUserManualBadgesResponse.h -include/FastCommentsClient/model/GetUserNotificationCountResponse.h -include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h -include/FastCommentsClient/model/GetUserResponse.h -include/FastCommentsClient/model/GetUserTrustFactorResponse.h -include/FastCommentsClient/model/GetV1PageLikes.h -include/FastCommentsClient/model/GetV2PageReactUsersResponse.h -include/FastCommentsClient/model/GetV2PageReacts.h -include/FastCommentsClient/model/GetVotesForUserResponse.h -include/FastCommentsClient/model/GetVotesResponse.h -include/FastCommentsClient/model/GifGetLargeResponse.h -include/FastCommentsClient/model/GifRating.h -include/FastCommentsClient/model/GifSearchInternalError.h -include/FastCommentsClient/model/GifSearchResponse.h -include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h -include/FastCommentsClient/model/HeaderAccountNotification.h -include/FastCommentsClient/model/HeaderState.h -include/FastCommentsClient/model/IgnoredResponse.h -include/FastCommentsClient/model/ImageContentProfanityLevel.h -include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h -include/FastCommentsClient/model/ImportedSiteType.h -include/FastCommentsClient/model/LiveEvent.h -include/FastCommentsClient/model/LiveEventType.h -include/FastCommentsClient/model/LiveEvent_extraInfo.h -include/FastCommentsClient/model/MediaAsset.h -include/FastCommentsClient/model/MentionAutoCompleteMode.h -include/FastCommentsClient/model/MetaItem.h -include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h -include/FastCommentsClient/model/ModerationAPIComment.h -include/FastCommentsClient/model/ModerationAPICommentLog.h -include/FastCommentsClient/model/ModerationAPICommentResponse.h -include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h -include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h -include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h -include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h -include/FastCommentsClient/model/ModerationCommentSearchResponse.h -include/FastCommentsClient/model/ModerationExportResponse.h -include/FastCommentsClient/model/ModerationExportStatusResponse.h -include/FastCommentsClient/model/ModerationFilter.h -include/FastCommentsClient/model/ModerationPageSearchProjected.h -include/FastCommentsClient/model/ModerationPageSearchResponse.h -include/FastCommentsClient/model/ModerationSiteSearchProjected.h -include/FastCommentsClient/model/ModerationSiteSearchResponse.h -include/FastCommentsClient/model/ModerationSuggestResponse.h -include/FastCommentsClient/model/ModerationUserSearchProjected.h -include/FastCommentsClient/model/ModerationUserSearchResponse.h -include/FastCommentsClient/model/Moderator.h -include/FastCommentsClient/model/NotificationAndCount.h -include/FastCommentsClient/model/NotificationObjectType.h -include/FastCommentsClient/model/NotificationType.h -include/FastCommentsClient/model/PageUserEntry.h -include/FastCommentsClient/model/PageUsersInfoResponse.h -include/FastCommentsClient/model/PageUsersOfflineResponse.h -include/FastCommentsClient/model/PageUsersOnlineResponse.h -include/FastCommentsClient/model/PagesSortBy.h -include/FastCommentsClient/model/PatchDomainConfigParams.h -include/FastCommentsClient/model/PatchDomainConfigResponse.h -include/FastCommentsClient/model/PatchPageAPIResponse.h -include/FastCommentsClient/model/PatchSSOUserAPIResponse.h -include/FastCommentsClient/model/PendingCommentToSyncOutbound.h -include/FastCommentsClient/model/PostRemoveCommentResponse.h -include/FastCommentsClient/model/PreBanSummary.h -include/FastCommentsClient/model/PubSubComment.h -include/FastCommentsClient/model/PubSubCommentBase.h -include/FastCommentsClient/model/PubSubVote.h -include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h -include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h -include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h -include/FastCommentsClient/model/PublicBlockFromCommentParams.h -include/FastCommentsClient/model/PublicComment.h -include/FastCommentsClient/model/PublicCommentBase.h -include/FastCommentsClient/model/PublicFeedPostsResponse.h -include/FastCommentsClient/model/PublicPage.h -include/FastCommentsClient/model/PublicVote.h -include/FastCommentsClient/model/PutDomainConfigResponse.h -include/FastCommentsClient/model/PutSSOUserAPIResponse.h -include/FastCommentsClient/model/QueryPredicate.h -include/FastCommentsClient/model/QueryPredicate_value.h -include/FastCommentsClient/model/QuestionConfig.h -include/FastCommentsClient/model/QuestionConfig_customOptions_inner.h -include/FastCommentsClient/model/QuestionDatum.h -include/FastCommentsClient/model/QuestionRenderingType.h -include/FastCommentsClient/model/QuestionResult.h -include/FastCommentsClient/model/QuestionResultAggregationOverall.h -include/FastCommentsClient/model/QuestionSubQuestionVisibility.h -include/FastCommentsClient/model/QuestionWhenSave.h -include/FastCommentsClient/model/ReactBodyParams.h -include/FastCommentsClient/model/ReactFeedPostResponse.h -include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h -include/FastCommentsClient/model/RemoveCommentActionResponse.h -include/FastCommentsClient/model/RemoveUserBadgeResponse.h -include/FastCommentsClient/model/RenderEmailTemplateBody.h -include/FastCommentsClient/model/RenderEmailTemplateResponse.h -include/FastCommentsClient/model/RenderableUserNotification.h -include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h -include/FastCommentsClient/model/RepeatCommentHandlingAction.h -include/FastCommentsClient/model/ReplaceTenantPackageBody.h -include/FastCommentsClient/model/ReplaceTenantUserBody.h -include/FastCommentsClient/model/ResetUserNotificationsResponse.h -include/FastCommentsClient/model/SORT_DIR.h -include/FastCommentsClient/model/SSOSecurityLevel.h -include/FastCommentsClient/model/SaveCommentResponseOptimized.h -include/FastCommentsClient/model/SaveCommentsBulkResponse.h -include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h -include/FastCommentsClient/model/SearchUsersResponse.h -include/FastCommentsClient/model/SearchUsersResult.h -include/FastCommentsClient/model/SearchUsersSectionedResponse.h -include/FastCommentsClient/model/SetCommentApprovedResponse.h -include/FastCommentsClient/model/SetCommentTextParams.h -include/FastCommentsClient/model/SetCommentTextResponse.h -include/FastCommentsClient/model/SetCommentTextResult.h -include/FastCommentsClient/model/SetUserTrustFactorResponse.h -include/FastCommentsClient/model/SizePreset.h -include/FastCommentsClient/model/SortDirections.h -include/FastCommentsClient/model/SpamRule.h -include/FastCommentsClient/model/TOSConfig.h -include/FastCommentsClient/model/TenantBadge.h -include/FastCommentsClient/model/TenantHashTag.h -include/FastCommentsClient/model/TenantPackage.h -include/FastCommentsClient/model/UnBlockFromCommentParams.h -include/FastCommentsClient/model/UnblockSuccess.h -include/FastCommentsClient/model/UpdatableCommentParams.h -include/FastCommentsClient/model/UpdateAPIPageData.h -include/FastCommentsClient/model/UpdateAPISSOUserData.h -include/FastCommentsClient/model/UpdateAPIUserSubscriptionData.h -include/FastCommentsClient/model/UpdateDomainConfigParams.h -include/FastCommentsClient/model/UpdateEmailTemplateBody.h -include/FastCommentsClient/model/UpdateFeedPostParams.h -include/FastCommentsClient/model/UpdateHashTagBody.h -include/FastCommentsClient/model/UpdateHashTagResponse.h -include/FastCommentsClient/model/UpdateModeratorBody.h -include/FastCommentsClient/model/UpdateNotificationBody.h -include/FastCommentsClient/model/UpdateQuestionConfigBody.h -include/FastCommentsClient/model/UpdateQuestionResultBody.h -include/FastCommentsClient/model/UpdateSubscriptionAPIResponse.h -include/FastCommentsClient/model/UpdateTenantBody.h -include/FastCommentsClient/model/UpdateTenantPackageBody.h -include/FastCommentsClient/model/UpdateTenantUserBody.h -include/FastCommentsClient/model/UpdateUserBadgeParams.h -include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h -include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h -include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h -include/FastCommentsClient/model/UploadImageResponse.h -include/FastCommentsClient/model/User.h -include/FastCommentsClient/model/UserBadge.h -include/FastCommentsClient/model/UserBadgeProgress.h -include/FastCommentsClient/model/UserNotification.h -include/FastCommentsClient/model/UserNotificationCount.h -include/FastCommentsClient/model/UserNotificationWriteResponse.h -include/FastCommentsClient/model/UserPresenceData.h -include/FastCommentsClient/model/UserReactsResponse.h -include/FastCommentsClient/model/UserSearchResult.h -include/FastCommentsClient/model/UserSearchSection.h -include/FastCommentsClient/model/UserSearchSectionResult.h -include/FastCommentsClient/model/UserSessionInfo.h -include/FastCommentsClient/model/UsersListLocation.h -include/FastCommentsClient/model/VoteBodyParams.h -include/FastCommentsClient/model/VoteDeleteResponse.h -include/FastCommentsClient/model/VoteResponse.h -include/FastCommentsClient/model/VoteResponseUser.h -include/FastCommentsClient/model/VoteResponse_status.h -include/FastCommentsClient/model/VoteStyle.h -src/AnyType.cpp -src/ApiClient.cpp -src/ApiConfiguration.cpp -src/ApiException.cpp -src/HttpContent.cpp -src/JsonBody.cpp -src/ModelBase.cpp -src/MultipartFormData.cpp -src/Object.cpp -src/api/DefaultApi.cpp -src/api/ModerationApi.cpp -src/api/PublicApi.cpp -src/model/APIAuditLog.cpp -src/model/APIBanUserChangeLog.cpp -src/model/APIBanUserChangedValues.cpp -src/model/APIBannedUser.cpp -src/model/APIBannedUserWithMultiMatchInfo.cpp -src/model/APIComment.cpp -src/model/APICommentBase.cpp -src/model/APICommentBase_meta.cpp -src/model/APICommentCommonBannedUser.cpp -src/model/APICreateUserBadgeResponse.cpp -src/model/APIDomainConfiguration.cpp -src/model/APIEmptyResponse.cpp -src/model/APIEmptySuccessResponse.cpp -src/model/APIError.cpp -src/model/APIGetCommentResponse.cpp -src/model/APIGetCommentsResponse.cpp -src/model/APIGetUserBadgeProgressListResponse.cpp -src/model/APIGetUserBadgeProgressResponse.cpp -src/model/APIGetUserBadgeResponse.cpp -src/model/APIGetUserBadgesResponse.cpp -src/model/APIModerateGetUserBanPreferencesResponse.cpp -src/model/APIModerateUserBanPreferences.cpp -src/model/APIPage.cpp -src/model/APISSOUser.cpp -src/model/APISaveCommentResponse.cpp -src/model/APIStatus.cpp -src/model/APITenant.cpp -src/model/APITenantDailyUsage.cpp -src/model/APITicket.cpp -src/model/APITicketDetail.cpp -src/model/APITicketFile.cpp -src/model/APIUserSubscription.cpp -src/model/AddDomainConfigParams.cpp -src/model/AddDomainConfigResponse.cpp -src/model/AddDomainConfigResponse_anyOf.cpp -src/model/AddPageAPIResponse.cpp -src/model/AddSSOUserAPIResponse.cpp -src/model/AdjustCommentVotesParams.cpp -src/model/AdjustVotesResponse.cpp -src/model/AggregateQuestionResultsResponse.cpp -src/model/AggregateResponse.cpp -src/model/AggregateTimeBucket.cpp -src/model/AggregationAPIError.cpp -src/model/AggregationItem.cpp -src/model/AggregationOpType.cpp -src/model/AggregationOperation.cpp -src/model/AggregationRequest.cpp -src/model/AggregationRequest_sort.cpp -src/model/AggregationResponse.cpp -src/model/AggregationResponse_stats.cpp -src/model/AggregationValue.cpp -src/model/AwardUserBadgeResponse.cpp -src/model/BanUserFromCommentResult.cpp -src/model/BanUserUndoParams.cpp -src/model/BannedUserMatch.cpp -src/model/BannedUserMatchType.cpp -src/model/BannedUserMatch_matchedOnValue.cpp -src/model/BillingInfo.cpp -src/model/BlockFromCommentParams.cpp -src/model/BlockSuccess.cpp -src/model/BuildModerationFilterParams.cpp -src/model/BuildModerationFilterResponse.cpp -src/model/BulkAggregateQuestionItem.cpp -src/model/BulkAggregateQuestionResultsRequest.cpp -src/model/BulkAggregateQuestionResultsResponse.cpp -src/model/BulkCreateHashTagsBody.cpp -src/model/BulkCreateHashTagsBody_tags_inner.cpp -src/model/BulkCreateHashTagsResponse.cpp -src/model/BulkCreateHashTagsResponse_results_inner.cpp -src/model/BulkPreBanParams.cpp -src/model/BulkPreBanSummary.cpp -src/model/ChangeCommentPinStatusResponse.cpp -src/model/ChangeTicketStateBody.cpp -src/model/ChangeTicketStateResponse.cpp -src/model/CheckBlockedCommentsResponse.cpp -src/model/CombineQuestionResultsWithCommentsResponse.cpp -src/model/CommentData.cpp -src/model/CommentHTMLRenderingMode.cpp -src/model/CommentLogData.cpp -src/model/CommentLogEntry.cpp -src/model/CommentLogType.cpp -src/model/CommentQuestionResultsRenderingType.cpp -src/model/CommentQuestionsRequired.cpp -src/model/CommentTextUpdateRequest.cpp -src/model/CommentThreadDeletionMode.cpp -src/model/CommentUserBadgeInfo.cpp -src/model/CommentUserHashTagInfo.cpp -src/model/CommentUserMentionInfo.cpp -src/model/CommenterNameFormats.cpp -src/model/CommentsByIdsParams.cpp -src/model/CreateAPIPageData.cpp -src/model/CreateAPISSOUserData.cpp -src/model/CreateAPIUserSubscriptionData.cpp -src/model/CreateCommentParams.cpp -src/model/CreateEmailTemplateBody.cpp -src/model/CreateEmailTemplateResponse.cpp -src/model/CreateFeedPostParams.cpp -src/model/CreateFeedPostResponse.cpp -src/model/CreateFeedPostsResponse.cpp -src/model/CreateHashTagBody.cpp -src/model/CreateHashTagResponse.cpp -src/model/CreateModeratorBody.cpp -src/model/CreateModeratorResponse.cpp -src/model/CreateQuestionConfigBody.cpp -src/model/CreateQuestionConfigResponse.cpp -src/model/CreateQuestionResultBody.cpp -src/model/CreateQuestionResultResponse.cpp -src/model/CreateSubscriptionAPIResponse.cpp -src/model/CreateTenantBody.cpp -src/model/CreateTenantPackageBody.cpp -src/model/CreateTenantPackageResponse.cpp -src/model/CreateTenantResponse.cpp -src/model/CreateTenantUserBody.cpp -src/model/CreateTenantUserResponse.cpp -src/model/CreateTicketBody.cpp -src/model/CreateTicketResponse.cpp -src/model/CreateUserBadgeParams.cpp -src/model/CreateV1PageReact.cpp -src/model/CustomConfigParameters.cpp -src/model/CustomEmailTemplate.cpp -src/model/DeleteCommentAction.cpp -src/model/DeleteCommentResult.cpp -src/model/DeleteDomainConfigResponse.cpp -src/model/DeleteFeedPostPublicResponse.cpp -src/model/DeleteHashTagRequestBody.cpp -src/model/DeletePageAPIResponse.cpp -src/model/DeleteSSOUserAPIResponse.cpp -src/model/DeleteSubscriptionAPIResponse.cpp -src/model/DeletedCommentResultComment.cpp -src/model/DigestEmailFrequency.cpp -src/model/EmailTemplateDefinition.cpp -src/model/EmailTemplateRenderErrorResponse.cpp -src/model/EventLogEntry.cpp -src/model/FComment.cpp -src/model/FComment_meta.cpp -src/model/FeedPost.cpp -src/model/FeedPostLink.cpp -src/model/FeedPostMediaItem.cpp -src/model/FeedPostMediaItemAsset.cpp -src/model/FeedPostStats.cpp -src/model/FeedPostsStatsResponse.cpp -src/model/FindCommentsByRangeItem.cpp -src/model/FindCommentsByRangeResponse.cpp -src/model/FlagCommentResponse.cpp -src/model/GetAuditLogsResponse.cpp -src/model/GetBannedUsersCountResponse.cpp -src/model/GetBannedUsersFromCommentResponse.cpp -src/model/GetCachedNotificationCountResponse.cpp -src/model/GetCommentBanStatusResponse.cpp -src/model/GetCommentTextResponse.cpp -src/model/GetCommentVoteUserNamesSuccessResponse.cpp -src/model/GetCommentsForUserResponse.cpp -src/model/GetCommentsResponseWithPresence_PublicComment_.cpp -src/model/GetCommentsResponse_PublicComment_.cpp -src/model/GetDomainConfigResponse.cpp -src/model/GetDomainConfigsResponse.cpp -src/model/GetDomainConfigsResponse_anyOf.cpp -src/model/GetDomainConfigsResponse_anyOf_1.cpp -src/model/GetEmailTemplateDefinitionsResponse.cpp -src/model/GetEmailTemplateRenderErrorsResponse.cpp -src/model/GetEmailTemplateResponse.cpp -src/model/GetEmailTemplatesResponse.cpp -src/model/GetEventLogResponse.cpp -src/model/GetFeedPostsResponse.cpp -src/model/GetGifsSearchResponse.cpp -src/model/GetGifsTrendingResponse.cpp -src/model/GetHashTagsResponse.cpp -src/model/GetModeratorResponse.cpp -src/model/GetModeratorsResponse.cpp -src/model/GetMyNotificationsResponse.cpp -src/model/GetNotificationCountResponse.cpp -src/model/GetNotificationsResponse.cpp -src/model/GetPageByURLIdAPIResponse.cpp -src/model/GetPagesAPIResponse.cpp -src/model/GetPendingWebhookEventCountResponse.cpp -src/model/GetPendingWebhookEventsResponse.cpp -src/model/GetPublicFeedPostsResponse.cpp -src/model/GetPublicPagesResponse.cpp -src/model/GetQuestionConfigResponse.cpp -src/model/GetQuestionConfigsResponse.cpp -src/model/GetQuestionResultResponse.cpp -src/model/GetQuestionResultsResponse.cpp -src/model/GetSSOUserByEmailAPIResponse.cpp -src/model/GetSSOUserByIdAPIResponse.cpp -src/model/GetSSOUsersResponse.cpp -src/model/GetSubscriptionsAPIResponse.cpp -src/model/GetTenantDailyUsagesResponse.cpp -src/model/GetTenantManualBadgesResponse.cpp -src/model/GetTenantPackageResponse.cpp -src/model/GetTenantPackagesResponse.cpp -src/model/GetTenantResponse.cpp -src/model/GetTenantUserResponse.cpp -src/model/GetTenantUsersResponse.cpp -src/model/GetTenantsResponse.cpp -src/model/GetTicketResponse.cpp -src/model/GetTicketsResponse.cpp -src/model/GetTranslationsResponse.cpp -src/model/GetUserInternalProfileResponse.cpp -src/model/GetUserInternalProfileResponse_profile.cpp -src/model/GetUserManualBadgesResponse.cpp -src/model/GetUserNotificationCountResponse.cpp -src/model/GetUserPresenceStatusesResponse.cpp -src/model/GetUserResponse.cpp -src/model/GetUserTrustFactorResponse.cpp -src/model/GetV1PageLikes.cpp -src/model/GetV2PageReactUsersResponse.cpp -src/model/GetV2PageReacts.cpp -src/model/GetVotesForUserResponse.cpp -src/model/GetVotesResponse.cpp -src/model/GifGetLargeResponse.cpp -src/model/GifRating.cpp -src/model/GifSearchInternalError.cpp -src/model/GifSearchResponse.cpp -src/model/GifSearchResponse_images_inner_inner.cpp -src/model/HeaderAccountNotification.cpp -src/model/HeaderState.cpp -src/model/IgnoredResponse.cpp -src/model/ImageContentProfanityLevel.cpp -src/model/ImportedAgentApprovalNotificationFrequency.cpp -src/model/ImportedSiteType.cpp -src/model/LiveEvent.cpp -src/model/LiveEventType.cpp -src/model/LiveEvent_extraInfo.cpp -src/model/MediaAsset.cpp -src/model/MentionAutoCompleteMode.cpp -src/model/MetaItem.cpp -src/model/ModerationAPIChildCommentsResponse.cpp -src/model/ModerationAPIComment.cpp -src/model/ModerationAPICommentLog.cpp -src/model/ModerationAPICommentResponse.cpp -src/model/ModerationAPICountCommentsResponse.cpp -src/model/ModerationAPIGetCommentIdsResponse.cpp -src/model/ModerationAPIGetCommentsResponse.cpp -src/model/ModerationAPIGetLogsResponse.cpp -src/model/ModerationCommentSearchResponse.cpp -src/model/ModerationExportResponse.cpp -src/model/ModerationExportStatusResponse.cpp -src/model/ModerationFilter.cpp -src/model/ModerationPageSearchProjected.cpp -src/model/ModerationPageSearchResponse.cpp -src/model/ModerationSiteSearchProjected.cpp -src/model/ModerationSiteSearchResponse.cpp -src/model/ModerationSuggestResponse.cpp -src/model/ModerationUserSearchProjected.cpp -src/model/ModerationUserSearchResponse.cpp -src/model/Moderator.cpp -src/model/NotificationAndCount.cpp -src/model/NotificationObjectType.cpp -src/model/NotificationType.cpp -src/model/PageUserEntry.cpp -src/model/PageUsersInfoResponse.cpp -src/model/PageUsersOfflineResponse.cpp -src/model/PageUsersOnlineResponse.cpp -src/model/PagesSortBy.cpp -src/model/PatchDomainConfigParams.cpp -src/model/PatchDomainConfigResponse.cpp -src/model/PatchPageAPIResponse.cpp -src/model/PatchSSOUserAPIResponse.cpp -src/model/PendingCommentToSyncOutbound.cpp -src/model/PostRemoveCommentResponse.cpp -src/model/PreBanSummary.cpp -src/model/PubSubComment.cpp -src/model/PubSubCommentBase.cpp -src/model/PubSubVote.cpp -src/model/PublicAPIDeleteCommentResponse.cpp -src/model/PublicAPIGetCommentTextResponse.cpp -src/model/PublicAPISetCommentTextResponse.cpp -src/model/PublicBlockFromCommentParams.cpp -src/model/PublicComment.cpp -src/model/PublicCommentBase.cpp -src/model/PublicFeedPostsResponse.cpp -src/model/PublicPage.cpp -src/model/PublicVote.cpp -src/model/PutDomainConfigResponse.cpp -src/model/PutSSOUserAPIResponse.cpp -src/model/QueryPredicate.cpp -src/model/QueryPredicate_value.cpp -src/model/QuestionConfig.cpp -src/model/QuestionConfig_customOptions_inner.cpp -src/model/QuestionDatum.cpp -src/model/QuestionRenderingType.cpp -src/model/QuestionResult.cpp -src/model/QuestionResultAggregationOverall.cpp -src/model/QuestionSubQuestionVisibility.cpp -src/model/QuestionWhenSave.cpp -src/model/ReactBodyParams.cpp -src/model/ReactFeedPostResponse.cpp -src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp -src/model/RemoveCommentActionResponse.cpp -src/model/RemoveUserBadgeResponse.cpp -src/model/RenderEmailTemplateBody.cpp -src/model/RenderEmailTemplateResponse.cpp -src/model/RenderableUserNotification.cpp -src/model/RepeatCommentCheckIgnoredReason.cpp -src/model/RepeatCommentHandlingAction.cpp -src/model/ReplaceTenantPackageBody.cpp -src/model/ReplaceTenantUserBody.cpp -src/model/ResetUserNotificationsResponse.cpp -src/model/SORT_DIR.cpp -src/model/SSOSecurityLevel.cpp -src/model/SaveCommentResponseOptimized.cpp -src/model/SaveCommentsBulkResponse.cpp -src/model/SaveCommentsResponseWithPresence.cpp -src/model/SearchUsersResponse.cpp -src/model/SearchUsersResult.cpp -src/model/SearchUsersSectionedResponse.cpp -src/model/SetCommentApprovedResponse.cpp -src/model/SetCommentTextParams.cpp -src/model/SetCommentTextResponse.cpp -src/model/SetCommentTextResult.cpp -src/model/SetUserTrustFactorResponse.cpp -src/model/SizePreset.cpp -src/model/SortDirections.cpp -src/model/SpamRule.cpp -src/model/TOSConfig.cpp -src/model/TenantBadge.cpp -src/model/TenantHashTag.cpp -src/model/TenantPackage.cpp -src/model/UnBlockFromCommentParams.cpp -src/model/UnblockSuccess.cpp -src/model/UpdatableCommentParams.cpp -src/model/UpdateAPIPageData.cpp -src/model/UpdateAPISSOUserData.cpp -src/model/UpdateAPIUserSubscriptionData.cpp -src/model/UpdateDomainConfigParams.cpp -src/model/UpdateEmailTemplateBody.cpp -src/model/UpdateFeedPostParams.cpp -src/model/UpdateHashTagBody.cpp -src/model/UpdateHashTagResponse.cpp -src/model/UpdateModeratorBody.cpp -src/model/UpdateNotificationBody.cpp -src/model/UpdateQuestionConfigBody.cpp -src/model/UpdateQuestionResultBody.cpp -src/model/UpdateSubscriptionAPIResponse.cpp -src/model/UpdateTenantBody.cpp -src/model/UpdateTenantPackageBody.cpp -src/model/UpdateTenantUserBody.cpp -src/model/UpdateUserBadgeParams.cpp -src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp -src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp -src/model/UpdateUserNotificationStatusResponse.cpp -src/model/UploadImageResponse.cpp -src/model/User.cpp -src/model/UserBadge.cpp -src/model/UserBadgeProgress.cpp -src/model/UserNotification.cpp -src/model/UserNotificationCount.cpp -src/model/UserNotificationWriteResponse.cpp -src/model/UserPresenceData.cpp -src/model/UserReactsResponse.cpp -src/model/UserSearchResult.cpp -src/model/UserSearchSection.cpp -src/model/UserSearchSectionResult.cpp -src/model/UserSessionInfo.cpp -src/model/UsersListLocation.cpp -src/model/VoteBodyParams.cpp -src/model/VoteDeleteResponse.cpp -src/model/VoteResponse.cpp -src/model/VoteResponseUser.cpp -src/model/VoteResponse_status.cpp -src/model/VoteStyle.cpp diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION deleted file mode 100644 index e465da4..0000000 --- a/client/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -7.14.0 diff --git a/client/README.md b/client/README.md index caa54ce..64773ea 100644 --- a/client/README.md +++ b/client/README.md @@ -7,7 +7,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat - API version: 0.0.0 - Package version: 1.2.1 -- Generator version: 7.14.0 +- Generator version: 7.23.0 - Build package: org.openapitools.codegen.languages.CppRestSdkClientCodegen - API namespace: org.openapitools.client.api diff --git a/client/include/FastCommentsClient/AnyType.h b/client/include/FastCommentsClient/AnyType.h index 6c698c1..ca4465b 100644 --- a/client/include/FastCommentsClient/AnyType.h +++ b/client/include/FastCommentsClient/AnyType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/ApiClient.h b/client/include/FastCommentsClient/ApiClient.h index 90f28fb..f211a4d 100644 --- a/client/include/FastCommentsClient/ApiClient.h +++ b/client/include/FastCommentsClient/ApiClient.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/ApiConfiguration.h b/client/include/FastCommentsClient/ApiConfiguration.h index 71d2c28..5255c38 100644 --- a/client/include/FastCommentsClient/ApiConfiguration.h +++ b/client/include/FastCommentsClient/ApiConfiguration.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/ApiException.h b/client/include/FastCommentsClient/ApiException.h index 84b7210..66f8b6f 100644 --- a/client/include/FastCommentsClient/ApiException.h +++ b/client/include/FastCommentsClient/ApiException.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/HttpContent.h b/client/include/FastCommentsClient/HttpContent.h index 8556a94..1e5056f 100644 --- a/client/include/FastCommentsClient/HttpContent.h +++ b/client/include/FastCommentsClient/HttpContent.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/IHttpBody.h b/client/include/FastCommentsClient/IHttpBody.h index ed3b62b..306e635 100644 --- a/client/include/FastCommentsClient/IHttpBody.h +++ b/client/include/FastCommentsClient/IHttpBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/JsonBody.h b/client/include/FastCommentsClient/JsonBody.h index a72b6e2..2930131 100644 --- a/client/include/FastCommentsClient/JsonBody.h +++ b/client/include/FastCommentsClient/JsonBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/ModelBase.h b/client/include/FastCommentsClient/ModelBase.h index 617e4ba..e949f4e 100644 --- a/client/include/FastCommentsClient/ModelBase.h +++ b/client/include/FastCommentsClient/ModelBase.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -27,6 +27,7 @@ #include #include +#include #include #include diff --git a/client/include/FastCommentsClient/MultipartFormData.h b/client/include/FastCommentsClient/MultipartFormData.h index 58b9a1f..b015322 100644 --- a/client/include/FastCommentsClient/MultipartFormData.h +++ b/client/include/FastCommentsClient/MultipartFormData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/Object.h b/client/include/FastCommentsClient/Object.h index f96e9ab..24b706e 100644 --- a/client/include/FastCommentsClient/Object.h +++ b/client/include/FastCommentsClient/Object.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/api/DefaultApi.h b/client/include/FastCommentsClient/api/DefaultApi.h index 7b3c641..82d7ae3 100644 --- a/client/include/FastCommentsClient/api/DefaultApi.h +++ b/client/include/FastCommentsClient/api/DefaultApi.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/api/ModerationApi.h b/client/include/FastCommentsClient/api/ModerationApi.h index b4f9dc7..8b1102b 100644 --- a/client/include/FastCommentsClient/api/ModerationApi.h +++ b/client/include/FastCommentsClient/api/ModerationApi.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/api/PublicApi.h b/client/include/FastCommentsClient/api/PublicApi.h index 095a449..2b40962 100644 --- a/client/include/FastCommentsClient/api/PublicApi.h +++ b/client/include/FastCommentsClient/api/PublicApi.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIAuditLog.h b/client/include/FastCommentsClient/model/APIAuditLog.h index 457076c..9305bfd 100644 --- a/client/include/FastCommentsClient/model/APIAuditLog.h +++ b/client/include/FastCommentsClient/model/APIAuditLog.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIAuditLog_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -161,11 +162,9 @@ class APIAuditLog FromEnum m_From; bool m_FromIsSet; - utility::string_t m_Url; - bool m_UrlIsSet; + boost::optional m_Url; - utility::string_t m_Ip; - bool m_IpIsSet; + boost::optional m_Ip; utility::datetime m_When; bool m_WhenIsSet; @@ -176,8 +175,7 @@ class APIAuditLog utility::datetime m_ServerStartDate; bool m_ServerStartDateIsSet; - std::map> m_ObjectDetails; - bool m_ObjectDetailsIsSet; + boost::optional>> m_ObjectDetails; }; diff --git a/client/include/FastCommentsClient/model/APIBanUserChangeLog.h b/client/include/FastCommentsClient/model/APIBanUserChangeLog.h index d8083b5..849b79a 100644 --- a/client/include/FastCommentsClient/model/APIBanUserChangeLog.h +++ b/client/include/FastCommentsClient/model/APIBanUserChangeLog.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIBanUserChangeLog_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIBanUserChangeLog_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIBanUserChangedValues.h b/client/include/FastCommentsClient/model/APIBanUserChangedValues.h index 72beb01..2d6825e 100644 --- a/client/include/FastCommentsClient/model/APIBanUserChangedValues.h +++ b/client/include/FastCommentsClient/model/APIBanUserChangedValues.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIBanUserChangedValues_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIBanUserChangedValues_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -126,17 +127,13 @@ class APIBanUserChangedValues utility::string_t m_TenantId; bool m_TenantIdIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; - utility::string_t m_Email; - bool m_EmailIsSet; + boost::optional m_Email; - utility::string_t m_Username; - bool m_UsernameIsSet; + boost::optional m_Username; - utility::string_t m_IpHash; - bool m_IpHashIsSet; + boost::optional m_IpHash; utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; @@ -150,8 +147,7 @@ class APIBanUserChangedValues utility::string_t m_BanType; bool m_BanTypeIsSet; - utility::datetime m_BannedUntil; - bool m_BannedUntilIsSet; + boost::optional m_BannedUntil; bool m_HasEmailWildcard; bool m_HasEmailWildcardIsSet; diff --git a/client/include/FastCommentsClient/model/APIBannedUser.h b/client/include/FastCommentsClient/model/APIBannedUser.h index 4cced4f..10cf0f9 100644 --- a/client/include/FastCommentsClient/model/APIBannedUser.h +++ b/client/include/FastCommentsClient/model/APIBannedUser.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIBannedUser_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIBannedUser_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -126,17 +127,13 @@ class APIBannedUser utility::string_t m_TenantId; bool m_TenantIdIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; - utility::string_t m_Email; - bool m_EmailIsSet; + boost::optional m_Email; - utility::string_t m_Username; - bool m_UsernameIsSet; + boost::optional m_Username; - utility::string_t m_IpHash; - bool m_IpHashIsSet; + boost::optional m_IpHash; utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; @@ -150,8 +147,7 @@ class APIBannedUser utility::string_t m_BanType; bool m_BanTypeIsSet; - utility::datetime m_BannedUntil; - bool m_BannedUntilIsSet; + boost::optional m_BannedUntil; bool m_HasEmailWildcard; bool m_HasEmailWildcardIsSet; diff --git a/client/include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h b/client/include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h index b230a37..80ed644 100644 --- a/client/include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h +++ b/client/include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIBannedUserWithMultiMatchInfo_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIBannedUserWithMultiMatchInfo_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -106,20 +107,16 @@ class APIBannedUserWithMultiMatchInfo utility::string_t m__id; bool m__idIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; utility::string_t m_BanType; bool m_BanTypeIsSet; - utility::string_t m_Email; - bool m_EmailIsSet; + boost::optional m_Email; - utility::string_t m_IpHash; - bool m_IpHashIsSet; + boost::optional m_IpHash; - utility::datetime m_BannedUntil; - bool m_BannedUntilIsSet; + boost::optional m_BannedUntil; bool m_HasEmailWildcard; bool m_HasEmailWildcardIsSet; diff --git a/client/include/FastCommentsClient/model/APIComment.h b/client/include/FastCommentsClient/model/APIComment.h index bfee04b..3c0de63 100644 --- a/client/include/FastCommentsClient/model/APIComment.h +++ b/client/include/FastCommentsClient/model/APIComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIComment_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIComment_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -334,17 +335,14 @@ class APIComment bool m_AiDeterminedSpam; bool m_AiDeterminedSpamIsSet; - utility::string_t m_AnonUserId; - bool m_AnonUserIdIsSet; + boost::optional m_AnonUserId; bool m_Approved; bool m_ApprovedIsSet; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; - std::vector> m_Badges; - bool m_BadgesIsSet; + boost::optional>> m_Badges; utility::string_t m_Comment; bool m_CommentIsSet; @@ -352,38 +350,30 @@ class APIComment utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; - utility::string_t m_CommenterEmail; - bool m_CommenterEmailIsSet; + boost::optional m_CommenterEmail; - utility::string_t m_CommenterLink; - bool m_CommenterLinkIsSet; + boost::optional m_CommenterLink; utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - double m_date; - bool m_dateIsSet; + boost::optional m_date; - utility::string_t m_DisplayLabel; - bool m_DisplayLabelIsSet; + boost::optional m_DisplayLabel; - utility::string_t m_Domain; - bool m_DomainIsSet; + boost::optional m_Domain; utility::string_t m_ExternalId; bool m_ExternalIdIsSet; - utility::string_t m_ExternalParentId; - bool m_ExternalParentIdIsSet; + boost::optional m_ExternalParentId; - utility::datetime m_ExpireAt; - bool m_ExpireAtIsSet; + boost::optional m_ExpireAt; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; - int32_t m_FlagCount; - bool m_FlagCountIsSet; + boost::optional m_FlagCount; int32_t m_FromProductId; bool m_FromProductIdIsSet; @@ -412,32 +402,25 @@ class APIComment bool m_IsDeletedUser; bool m_IsDeletedUserIsSet; - bool m_IsPinned; - bool m_IsPinnedIsSet; + boost::optional m_IsPinned; - bool m_IsLocked; - bool m_IsLockedIsSet; + boost::optional m_IsLocked; bool m_IsSpam; bool m_IsSpamIsSet; - int32_t m_LocalDateHours; - bool m_LocalDateHoursIsSet; + boost::optional m_LocalDateHours; - utility::string_t m_LocalDateString; - bool m_LocalDateStringIsSet; + boost::optional m_LocalDateString; - utility::string_t m_Locale; - bool m_LocaleIsSet; + boost::optional m_Locale; std::vector> m_Mentions; bool m_MentionsIsSet; - std::shared_ptr m_Meta; - bool m_MetaIsSet; + boost::optional> m_Meta; - std::vector m_ModerationGroupIds; - bool m_ModerationGroupIdsIsSet; + boost::optional> m_ModerationGroupIds; bool m_NotificationSentForParent; bool m_NotificationSentForParentIsSet; @@ -445,14 +428,11 @@ class APIComment bool m_NotificationSentForParentTenant; bool m_NotificationSentForParentTenantIsSet; - utility::string_t m_PageTitle; - bool m_PageTitleIsSet; + boost::optional m_PageTitle; - utility::string_t m_ParentId; - bool m_ParentIdIsSet; + boost::optional m_ParentId; - double m_Rating; - bool m_RatingIsSet; + boost::optional m_Rating; bool m_Reviewed; bool m_ReviewedIsSet; @@ -469,23 +449,18 @@ class APIComment utility::string_t m_UrlIdRaw; bool m_UrlIdRawIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; bool m_Verified; bool m_VerifiedIsSet; - utility::datetime m_VerifiedDate; - bool m_VerifiedDateIsSet; + boost::optional m_VerifiedDate; - int32_t m_Votes; - bool m_VotesIsSet; + boost::optional m_Votes; - int32_t m_VotesDown; - bool m_VotesDownIsSet; + boost::optional m_VotesDown; - int32_t m_VotesUp; - bool m_VotesUpIsSet; + boost::optional m_VotesUp; }; diff --git a/client/include/FastCommentsClient/model/APICommentBase.h b/client/include/FastCommentsClient/model/APICommentBase.h index c89bf99..6bc90f7 100644 --- a/client/include/FastCommentsClient/model/APICommentBase.h +++ b/client/include/FastCommentsClient/model/APICommentBase.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APICommentBase_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APICommentBase_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -334,17 +335,14 @@ class APICommentBase bool m_AiDeterminedSpam; bool m_AiDeterminedSpamIsSet; - utility::string_t m_AnonUserId; - bool m_AnonUserIdIsSet; + boost::optional m_AnonUserId; bool m_Approved; bool m_ApprovedIsSet; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; - std::vector> m_Badges; - bool m_BadgesIsSet; + boost::optional>> m_Badges; utility::string_t m_Comment; bool m_CommentIsSet; @@ -352,38 +350,30 @@ class APICommentBase utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; - utility::string_t m_CommenterEmail; - bool m_CommenterEmailIsSet; + boost::optional m_CommenterEmail; - utility::string_t m_CommenterLink; - bool m_CommenterLinkIsSet; + boost::optional m_CommenterLink; utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - utility::datetime m_date; - bool m_dateIsSet; + boost::optional m_date; - utility::string_t m_DisplayLabel; - bool m_DisplayLabelIsSet; + boost::optional m_DisplayLabel; - utility::string_t m_Domain; - bool m_DomainIsSet; + boost::optional m_Domain; utility::string_t m_ExternalId; bool m_ExternalIdIsSet; - utility::string_t m_ExternalParentId; - bool m_ExternalParentIdIsSet; + boost::optional m_ExternalParentId; - utility::datetime m_ExpireAt; - bool m_ExpireAtIsSet; + boost::optional m_ExpireAt; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; - int32_t m_FlagCount; - bool m_FlagCountIsSet; + boost::optional m_FlagCount; int32_t m_FromProductId; bool m_FromProductIdIsSet; @@ -412,32 +402,25 @@ class APICommentBase bool m_IsDeletedUser; bool m_IsDeletedUserIsSet; - bool m_IsPinned; - bool m_IsPinnedIsSet; + boost::optional m_IsPinned; - bool m_IsLocked; - bool m_IsLockedIsSet; + boost::optional m_IsLocked; bool m_IsSpam; bool m_IsSpamIsSet; - int32_t m_LocalDateHours; - bool m_LocalDateHoursIsSet; + boost::optional m_LocalDateHours; - utility::string_t m_LocalDateString; - bool m_LocalDateStringIsSet; + boost::optional m_LocalDateString; - utility::string_t m_Locale; - bool m_LocaleIsSet; + boost::optional m_Locale; std::vector> m_Mentions; bool m_MentionsIsSet; - std::shared_ptr m_Meta; - bool m_MetaIsSet; + boost::optional> m_Meta; - std::vector m_ModerationGroupIds; - bool m_ModerationGroupIdsIsSet; + boost::optional> m_ModerationGroupIds; bool m_NotificationSentForParent; bool m_NotificationSentForParentIsSet; @@ -445,14 +428,11 @@ class APICommentBase bool m_NotificationSentForParentTenant; bool m_NotificationSentForParentTenantIsSet; - utility::string_t m_PageTitle; - bool m_PageTitleIsSet; + boost::optional m_PageTitle; - utility::string_t m_ParentId; - bool m_ParentIdIsSet; + boost::optional m_ParentId; - double m_Rating; - bool m_RatingIsSet; + boost::optional m_Rating; bool m_Reviewed; bool m_ReviewedIsSet; @@ -469,23 +449,18 @@ class APICommentBase utility::string_t m_UrlIdRaw; bool m_UrlIdRawIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; bool m_Verified; bool m_VerifiedIsSet; - utility::datetime m_VerifiedDate; - bool m_VerifiedDateIsSet; + boost::optional m_VerifiedDate; - int32_t m_Votes; - bool m_VotesIsSet; + boost::optional m_Votes; - int32_t m_VotesDown; - bool m_VotesDownIsSet; + boost::optional m_VotesDown; - int32_t m_VotesUp; - bool m_VotesUpIsSet; + boost::optional m_VotesUp; }; diff --git a/client/include/FastCommentsClient/model/APICommentBase_meta.h b/client/include/FastCommentsClient/model/APICommentBase_meta.h index 3fab9d8..b7b1f71 100644 --- a/client/include/FastCommentsClient/model/APICommentBase_meta.h +++ b/client/include/FastCommentsClient/model/APICommentBase_meta.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,11 +18,13 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APICommentBase_meta_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APICommentBase_meta_H_ +#include #include "FastCommentsClient/ModelBase.h" #include #include +#include #include "FastCommentsClient/AnyType.h" namespace org { @@ -66,6 +68,21 @@ class APICommentBase_meta void setWpPostId(const utility::string_t& value); + /// + /// Get additional properties (properties not defined in the schema) + /// + std::map getAdditionalProperties() const; + bool additionalPropertiesIsSet() const; + void unsetAdditionalProperties(); + /// + /// Set additional properties + /// + void setAdditionalProperties(const std::map& value); + /// + /// Add a single additional property + /// + void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); + protected: utility::string_t m_WpUserId; bool m_WpUserIdIsSet; @@ -73,6 +90,8 @@ class APICommentBase_meta utility::string_t m_WpPostId; bool m_WpPostIdIsSet; + std::map m_AdditionalProperties; + bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/APICommentCommonBannedUser.h b/client/include/FastCommentsClient/model/APICommentCommonBannedUser.h index ea96b00..7d5fe95 100644 --- a/client/include/FastCommentsClient/model/APICommentCommonBannedUser.h +++ b/client/include/FastCommentsClient/model/APICommentCommonBannedUser.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APICommentCommonBannedUser_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APICommentCommonBannedUser_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -98,20 +99,16 @@ class APICommentCommonBannedUser utility::string_t m__id; bool m__idIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; utility::string_t m_BanType; bool m_BanTypeIsSet; - utility::string_t m_Email; - bool m_EmailIsSet; + boost::optional m_Email; - utility::string_t m_IpHash; - bool m_IpHashIsSet; + boost::optional m_IpHash; - utility::datetime m_BannedUntil; - bool m_BannedUntilIsSet; + boost::optional m_BannedUntil; bool m_HasEmailWildcard; bool m_HasEmailWildcardIsSet; diff --git a/client/include/FastCommentsClient/model/APICreateUserBadgeResponse.h b/client/include/FastCommentsClient/model/APICreateUserBadgeResponse.h index 23dc26f..fdabd18 100644 --- a/client/include/FastCommentsClient/model/APICreateUserBadgeResponse.h +++ b/client/include/FastCommentsClient/model/APICreateUserBadgeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APICreateUserBadgeResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIDomainConfiguration.h b/client/include/FastCommentsClient/model/APIDomainConfiguration.h index 1c85772..d3429ec 100644 --- a/client/include/FastCommentsClient/model/APIDomainConfiguration.h +++ b/client/include/FastCommentsClient/model/APIDomainConfiguration.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIDomainConfiguration_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -142,23 +143,19 @@ class APIDomainConfiguration utility::string_t m_Domain; bool m_DomainIsSet; - utility::string_t m_EmailFromName; - bool m_EmailFromNameIsSet; + boost::optional m_EmailFromName; - utility::string_t m_EmailFromEmail; - bool m_EmailFromEmailIsSet; + boost::optional m_EmailFromEmail; std::map m_EmailHeaders; bool m_EmailHeadersIsSet; - utility::string_t m_WpSyncToken; - bool m_WpSyncTokenIsSet; + boost::optional m_WpSyncToken; bool m_WpSynced; bool m_WpSyncedIsSet; - utility::string_t m_WpURL; - bool m_WpURLIsSet; + boost::optional m_WpURL; utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; @@ -169,11 +166,9 @@ class APIDomainConfiguration std::shared_ptr m_SiteType; bool m_SiteTypeIsSet; - utility::string_t m_LogoSrc; - bool m_LogoSrcIsSet; + boost::optional m_LogoSrc; - utility::string_t m_LogoSrc100px; - bool m_LogoSrc100pxIsSet; + boost::optional m_LogoSrc100px; utility::string_t m_FooterUnsubscribeURL; bool m_FooterUnsubscribeURLIsSet; diff --git a/client/include/FastCommentsClient/model/APIEmptyResponse.h b/client/include/FastCommentsClient/model/APIEmptyResponse.h index 7e76bc4..313c58d 100644 --- a/client/include/FastCommentsClient/model/APIEmptyResponse.h +++ b/client/include/FastCommentsClient/model/APIEmptyResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIEmptyResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIEmptySuccessResponse.h b/client/include/FastCommentsClient/model/APIEmptySuccessResponse.h index 39367a7..b74b6c4 100644 --- a/client/include/FastCommentsClient/model/APIEmptySuccessResponse.h +++ b/client/include/FastCommentsClient/model/APIEmptySuccessResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIEmptySuccessResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIError.h b/client/include/FastCommentsClient/model/APIError.h index 10334f1..245e463 100644 --- a/client/include/FastCommentsClient/model/APIError.h +++ b/client/include/FastCommentsClient/model/APIError.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIError_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIGetCommentResponse.h b/client/include/FastCommentsClient/model/APIGetCommentResponse.h index 821967b..50a1e21 100644 --- a/client/include/FastCommentsClient/model/APIGetCommentResponse.h +++ b/client/include/FastCommentsClient/model/APIGetCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIGetCommentResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIGetCommentsResponse.h b/client/include/FastCommentsClient/model/APIGetCommentsResponse.h index 6173b07..2d7e427 100644 --- a/client/include/FastCommentsClient/model/APIGetCommentsResponse.h +++ b/client/include/FastCommentsClient/model/APIGetCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIGetCommentsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h b/client/include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h index bed03b7..4cd9b14 100644 --- a/client/include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h +++ b/client/include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIGetUserBadgeProgressListResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h b/client/include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h index c684a5d..7e749f8 100644 --- a/client/include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h +++ b/client/include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIGetUserBadgeProgressResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIGetUserBadgeResponse.h b/client/include/FastCommentsClient/model/APIGetUserBadgeResponse.h index 6b45e61..fd4820f 100644 --- a/client/include/FastCommentsClient/model/APIGetUserBadgeResponse.h +++ b/client/include/FastCommentsClient/model/APIGetUserBadgeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIGetUserBadgeResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIGetUserBadgesResponse.h b/client/include/FastCommentsClient/model/APIGetUserBadgesResponse.h index dfea5c9..b1ef736 100644 --- a/client/include/FastCommentsClient/model/APIGetUserBadgesResponse.h +++ b/client/include/FastCommentsClient/model/APIGetUserBadgesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIGetUserBadgesResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h b/client/include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h index 210ee6d..dc66fb9 100644 --- a/client/include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h +++ b/client/include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIModerateGetUserBanPreferencesResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -68,8 +69,7 @@ class APIModerateGetUserBanPreferencesResponse protected: - std::shared_ptr m_Preferences; - bool m_PreferencesIsSet; + boost::optional> m_Preferences; std::shared_ptr m_Status; bool m_StatusIsSet; diff --git a/client/include/FastCommentsClient/model/APIModerateUserBanPreferences.h b/client/include/FastCommentsClient/model/APIModerateUserBanPreferences.h index e496005..398704e 100644 --- a/client/include/FastCommentsClient/model/APIModerateUserBanPreferences.h +++ b/client/include/FastCommentsClient/model/APIModerateUserBanPreferences.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIModerateUserBanPreferences_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIModerateUserBanPreferences_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIPage.h b/client/include/FastCommentsClient/model/APIPage.h index d5d30fb..871e0ac 100644 --- a/client/include/FastCommentsClient/model/APIPage.h +++ b/client/include/FastCommentsClient/model/APIPage.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIPage_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIPage_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APISSOUser.h b/client/include/FastCommentsClient/model/APISSOUser.h index ffcfaf9..20bab1f 100644 --- a/client/include/FastCommentsClient/model/APISSOUser.h +++ b/client/include/FastCommentsClient/model/APISSOUser.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APISSOUser_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APISSOUser_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APISaveCommentResponse.h b/client/include/FastCommentsClient/model/APISaveCommentResponse.h index 3fc690b..2c6c9a7 100644 --- a/client/include/FastCommentsClient/model/APISaveCommentResponse.h +++ b/client/include/FastCommentsClient/model/APISaveCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APISaveCommentResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -91,8 +92,7 @@ class APISaveCommentResponse std::shared_ptr m_Comment; bool m_CommentIsSet; - std::shared_ptr m_User; - bool m_UserIsSet; + boost::optional> m_User; std::map> m_ModuleData; bool m_ModuleDataIsSet; diff --git a/client/include/FastCommentsClient/model/APIStatus.h b/client/include/FastCommentsClient/model/APIStatus.h index 2d506f0..5fc1359 100644 --- a/client/include/FastCommentsClient/model/APIStatus.h +++ b/client/include/FastCommentsClient/model/APIStatus.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIStatus_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIStatus_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APITenant.h b/client/include/FastCommentsClient/model/APITenant.h index a8553da..4b3bace 100644 --- a/client/include/FastCommentsClient/model/APITenant.h +++ b/client/include/FastCommentsClient/model/APITenant.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APITenant_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APITenant_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -261,8 +262,7 @@ class APITenant bool m_RemoveUnverifiedComments; bool m_RemoveUnverifiedCommentsIsSet; - double m_UnverifiedCommentsTTLms; - bool m_UnverifiedCommentsTTLmsIsSet; + boost::optional m_UnverifiedCommentsTTLms; bool m_CommentsRequireApproval; bool m_CommentsRequireApprovalIsSet; diff --git a/client/include/FastCommentsClient/model/APITenantDailyUsage.h b/client/include/FastCommentsClient/model/APITenantDailyUsage.h index fa5adfa..c8fec23 100644 --- a/client/include/FastCommentsClient/model/APITenantDailyUsage.h +++ b/client/include/FastCommentsClient/model/APITenantDailyUsage.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APITenantDailyUsage_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APITenantDailyUsage_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APITicket.h b/client/include/FastCommentsClient/model/APITicket.h index dbe7e42..8e4eea4 100644 --- a/client/include/FastCommentsClient/model/APITicket.h +++ b/client/include/FastCommentsClient/model/APITicket.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APITicket_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APITicket_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APITicketDetail.h b/client/include/FastCommentsClient/model/APITicketDetail.h index c7aabd5..f20a901 100644 --- a/client/include/FastCommentsClient/model/APITicketDetail.h +++ b/client/include/FastCommentsClient/model/APITicketDetail.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APITicketDetail_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APITicketDetail_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -153,14 +154,11 @@ class APITicketDetail std::vector> m_Files; bool m_FilesIsSet; - utility::string_t m_ReopenedAt; - bool m_ReopenedAtIsSet; + boost::optional m_ReopenedAt; - utility::string_t m_ResolvedAt; - bool m_ResolvedAtIsSet; + boost::optional m_ResolvedAt; - utility::string_t m_AckAt; - bool m_AckAtIsSet; + boost::optional m_AckAt; }; diff --git a/client/include/FastCommentsClient/model/APITicketFile.h b/client/include/FastCommentsClient/model/APITicketFile.h index b180f10..6838606 100644 --- a/client/include/FastCommentsClient/model/APITicketFile.h +++ b/client/include/FastCommentsClient/model/APITicketFile.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APITicketFile_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APITicketFile_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/APIUserSubscription.h b/client/include/FastCommentsClient/model/APIUserSubscription.h index b3c852f..75b1f59 100644 --- a/client/include/FastCommentsClient/model/APIUserSubscription.h +++ b/client/include/FastCommentsClient/model/APIUserSubscription.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_APIUserSubscription_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_APIUserSubscription_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AddDomainConfigParams.h b/client/include/FastCommentsClient/model/AddDomainConfigParams.h index 6a1a8dc..6434042 100644 --- a/client/include/FastCommentsClient/model/AddDomainConfigParams.h +++ b/client/include/FastCommentsClient/model/AddDomainConfigParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AddDomainConfigResponse.h b/client/include/FastCommentsClient/model/AddDomainConfigResponse.h index 57b4a7c..00a685b 100644 --- a/client/include/FastCommentsClient/model/AddDomainConfigResponse.h +++ b/client/include/FastCommentsClient/model/AddDomainConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -84,11 +85,9 @@ class AddDomainConfigResponse utility::string_t m_Code; bool m_CodeIsSet; - std::shared_ptr m_Status; - bool m_StatusIsSet; + boost::optional> m_Status; - std::shared_ptr m_Configuration; - bool m_ConfigurationIsSet; + boost::optional> m_Configuration; }; diff --git a/client/include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h b/client/include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h index e497c8a..18d5e6a 100644 --- a/client/include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h +++ b/client/include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigResponse_anyOf_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AddDomainConfigResponse_anyOf_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -65,11 +66,9 @@ class AddDomainConfigResponse_anyOf protected: - std::shared_ptr m_Configuration; - bool m_ConfigurationIsSet; + boost::optional> m_Configuration; - std::shared_ptr m_Status; - bool m_StatusIsSet; + boost::optional> m_Status; }; diff --git a/client/include/FastCommentsClient/model/AddPageAPIResponse.h b/client/include/FastCommentsClient/model/AddPageAPIResponse.h index f3a8e46..3d23b80 100644 --- a/client/include/FastCommentsClient/model/AddPageAPIResponse.h +++ b/client/include/FastCommentsClient/model/AddPageAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddPageAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AddPageAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AddSSOUserAPIResponse.h b/client/include/FastCommentsClient/model/AddSSOUserAPIResponse.h index 9535b16..854e84a 100644 --- a/client/include/FastCommentsClient/model/AddSSOUserAPIResponse.h +++ b/client/include/FastCommentsClient/model/AddSSOUserAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddSSOUserAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AddSSOUserAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AdjustCommentVotesParams.h b/client/include/FastCommentsClient/model/AdjustCommentVotesParams.h index 938f9c2..9546cf8 100644 --- a/client/include/FastCommentsClient/model/AdjustCommentVotesParams.h +++ b/client/include/FastCommentsClient/model/AdjustCommentVotesParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AdjustCommentVotesParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AdjustCommentVotesParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AdjustVotesResponse.h b/client/include/FastCommentsClient/model/AdjustVotesResponse.h index 94dab9c..bddf5ad 100644 --- a/client/include/FastCommentsClient/model/AdjustVotesResponse.h +++ b/client/include/FastCommentsClient/model/AdjustVotesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AdjustVotesResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AdjustVotesResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse.h b/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse.h index e10c70d..c6d7e2b 100644 --- a/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse.h +++ b/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateQuestionResultsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregateResponse.h b/client/include/FastCommentsClient/model/AggregateResponse.h index ea1ef4f..8637294 100644 --- a/client/include/FastCommentsClient/model/AggregateResponse.h +++ b/client/include/FastCommentsClient/model/AggregateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregateTimeBucket.h b/client/include/FastCommentsClient/model/AggregateTimeBucket.h index 5c25cb4..6b5686a 100644 --- a/client/include/FastCommentsClient/model/AggregateTimeBucket.h +++ b/client/include/FastCommentsClient/model/AggregateTimeBucket.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateTimeBucket_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateTimeBucket_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationAPIError.h b/client/include/FastCommentsClient/model/AggregationAPIError.h index 545aebd..2ea2067 100644 --- a/client/include/FastCommentsClient/model/AggregationAPIError.h +++ b/client/include/FastCommentsClient/model/AggregationAPIError.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationAPIError_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationItem.h b/client/include/FastCommentsClient/model/AggregationItem.h index 0b1ea45..b756dfb 100644 --- a/client/include/FastCommentsClient/model/AggregationItem.h +++ b/client/include/FastCommentsClient/model/AggregationItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationItem_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationItem_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationOpType.h b/client/include/FastCommentsClient/model/AggregationOpType.h index 5e7cb99..6c355a0 100644 --- a/client/include/FastCommentsClient/model/AggregationOpType.h +++ b/client/include/FastCommentsClient/model/AggregationOpType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationOpType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationOpType_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationOperation.h b/client/include/FastCommentsClient/model/AggregationOperation.h index 476c2f0..3a1f3e5 100644 --- a/client/include/FastCommentsClient/model/AggregationOperation.h +++ b/client/include/FastCommentsClient/model/AggregationOperation.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationOperation_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationRequest.h b/client/include/FastCommentsClient/model/AggregationRequest.h index 1bf0899..e43b034 100644 --- a/client/include/FastCommentsClient/model/AggregationRequest.h +++ b/client/include/FastCommentsClient/model/AggregationRequest.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationRequest_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationRequest_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationRequest_sort.h b/client/include/FastCommentsClient/model/AggregationRequest_sort.h index 96784d1..0e275c0 100644 --- a/client/include/FastCommentsClient/model/AggregationRequest_sort.h +++ b/client/include/FastCommentsClient/model/AggregationRequest_sort.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationRequest_sort_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationResponse.h b/client/include/FastCommentsClient/model/AggregationResponse.h index 35de09a..1f90cd8 100644 --- a/client/include/FastCommentsClient/model/AggregationResponse.h +++ b/client/include/FastCommentsClient/model/AggregationResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationResponse_stats.h b/client/include/FastCommentsClient/model/AggregationResponse_stats.h index c547883..1c05e82 100644 --- a/client/include/FastCommentsClient/model/AggregationResponse_stats.h +++ b/client/include/FastCommentsClient/model/AggregationResponse_stats.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationResponse_stats_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationResponse_stats_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AggregationValue.h b/client/include/FastCommentsClient/model/AggregationValue.h index bd790bf..ff22900 100644 --- a/client/include/FastCommentsClient/model/AggregationValue.h +++ b/client/include/FastCommentsClient/model/AggregationValue.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationValue_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregationValue_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/AwardUserBadgeResponse.h b/client/include/FastCommentsClient/model/AwardUserBadgeResponse.h index 80f7c28..2c1dc0e 100644 --- a/client/include/FastCommentsClient/model/AwardUserBadgeResponse.h +++ b/client/include/FastCommentsClient/model/AwardUserBadgeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_AwardUserBadgeResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BanUserFromCommentResult.h b/client/include/FastCommentsClient/model/BanUserFromCommentResult.h index 543803e..318ecac 100644 --- a/client/include/FastCommentsClient/model/BanUserFromCommentResult.h +++ b/client/include/FastCommentsClient/model/BanUserFromCommentResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BanUserFromCommentResult_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BanUserFromCommentResult_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BanUserUndoParams.h b/client/include/FastCommentsClient/model/BanUserUndoParams.h index a898258..0817fe0 100644 --- a/client/include/FastCommentsClient/model/BanUserUndoParams.h +++ b/client/include/FastCommentsClient/model/BanUserUndoParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BanUserUndoParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BanUserUndoParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BannedUserMatch.h b/client/include/FastCommentsClient/model/BannedUserMatch.h index f82bb6e..71f63f8 100644 --- a/client/include/FastCommentsClient/model/BannedUserMatch.h +++ b/client/include/FastCommentsClient/model/BannedUserMatch.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatch_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -70,8 +71,7 @@ class BannedUserMatch std::shared_ptr m_MatchedOn; bool m_MatchedOnIsSet; - std::shared_ptr m_MatchedOnValue; - bool m_MatchedOnValueIsSet; + boost::optional> m_MatchedOnValue; }; diff --git a/client/include/FastCommentsClient/model/BannedUserMatchType.h b/client/include/FastCommentsClient/model/BannedUserMatchType.h index 5de7983..8496d0f 100644 --- a/client/include/FastCommentsClient/model/BannedUserMatchType.h +++ b/client/include/FastCommentsClient/model/BannedUserMatchType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatchType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatchType_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h b/client/include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h index 1e4fd34..4aadbac 100644 --- a/client/include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h +++ b/client/include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatch_matchedOnValue_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BannedUserMatch_matchedOnValue_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BillingInfo.h b/client/include/FastCommentsClient/model/BillingInfo.h index b1b7592..4e1683f 100644 --- a/client/include/FastCommentsClient/model/BillingInfo.h +++ b/client/include/FastCommentsClient/model/BillingInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BillingInfo_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BillingInfo_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -119,8 +120,7 @@ class BillingInfo utility::string_t m_Country; bool m_CountryIsSet; - utility::string_t m_Currency; - bool m_CurrencyIsSet; + boost::optional m_Currency; utility::string_t m_Email; bool m_EmailIsSet; diff --git a/client/include/FastCommentsClient/model/BlockFromCommentParams.h b/client/include/FastCommentsClient/model/BlockFromCommentParams.h index 90e569c..084ba5a 100644 --- a/client/include/FastCommentsClient/model/BlockFromCommentParams.h +++ b/client/include/FastCommentsClient/model/BlockFromCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BlockFromCommentParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BlockFromCommentParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BlockSuccess.h b/client/include/FastCommentsClient/model/BlockSuccess.h index ca25ba0..594a802 100644 --- a/client/include/FastCommentsClient/model/BlockSuccess.h +++ b/client/include/FastCommentsClient/model/BlockSuccess.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BlockSuccess_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BuildModerationFilterParams.h b/client/include/FastCommentsClient/model/BuildModerationFilterParams.h index 7c9f27d..03d52bf 100644 --- a/client/include/FastCommentsClient/model/BuildModerationFilterParams.h +++ b/client/include/FastCommentsClient/model/BuildModerationFilterParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,11 +18,13 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BuildModerationFilterParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BuildModerationFilterParams_H_ +#include #include "FastCommentsClient/ModelBase.h" #include #include +#include #include "FastCommentsClient/AnyType.h" namespace org { @@ -81,6 +83,21 @@ class BuildModerationFilterParams void setTextSearch(const utility::string_t& value); + /// + /// Get additional properties (properties not defined in the schema) + /// + std::map getAdditionalProperties() const; + bool additionalPropertiesIsSet() const; + void unsetAdditionalProperties(); + /// + /// Set additional properties + /// + void setAdditionalProperties(const std::map& value); + /// + /// Add a single additional property + /// + void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); + protected: utility::string_t m_UserId; bool m_UserIdIsSet; @@ -97,6 +114,8 @@ class BuildModerationFilterParams utility::string_t m_TextSearch; bool m_TextSearchIsSet; + std::map m_AdditionalProperties; + bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/BuildModerationFilterResponse.h b/client/include/FastCommentsClient/model/BuildModerationFilterResponse.h index f2b38cc..30005fb 100644 --- a/client/include/FastCommentsClient/model/BuildModerationFilterResponse.h +++ b/client/include/FastCommentsClient/model/BuildModerationFilterResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BuildModerationFilterResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BuildModerationFilterResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkAggregateQuestionItem.h b/client/include/FastCommentsClient/model/BulkAggregateQuestionItem.h index 4c85d96..44ff77f 100644 --- a/client/include/FastCommentsClient/model/BulkAggregateQuestionItem.h +++ b/client/include/FastCommentsClient/model/BulkAggregateQuestionItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionItem_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h index 5a0ebf4..4cd9fc1 100644 --- a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h +++ b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResultsRequest_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResultsRequest_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h index 80cbb64..a42370b 100644 --- a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h +++ b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResultsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkCreateHashTagsBody.h b/client/include/FastCommentsClient/model/BulkCreateHashTagsBody.h index 7f6daf9..c1c54b6 100644 --- a/client/include/FastCommentsClient/model/BulkCreateHashTagsBody.h +++ b/client/include/FastCommentsClient/model/BulkCreateHashTagsBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsBody_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h b/client/include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h index 022d832..7349ab1 100644 --- a/client/include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h +++ b/client/include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsBody_tags_inner_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsBody_tags_inner_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse.h b/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse.h index ff1c3be..bba660b 100644 --- a/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse.h +++ b/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h b/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h index a8838c0..6a5a5f0 100644 --- a/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h +++ b/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkCreateHashTagsResponse_results_inner_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkPreBanParams.h b/client/include/FastCommentsClient/model/BulkPreBanParams.h index bb36892..3c70dab 100644 --- a/client/include/FastCommentsClient/model/BulkPreBanParams.h +++ b/client/include/FastCommentsClient/model/BulkPreBanParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkPreBanParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkPreBanParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/BulkPreBanSummary.h b/client/include/FastCommentsClient/model/BulkPreBanSummary.h index 714bf9c..8b69b81 100644 --- a/client/include/FastCommentsClient/model/BulkPreBanSummary.h +++ b/client/include/FastCommentsClient/model/BulkPreBanSummary.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkPreBanSummary_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkPreBanSummary_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h b/client/include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h index 83898b9..4955661 100644 --- a/client/include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h +++ b/client/include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeCommentPinStatusResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ChangeTicketStateBody.h b/client/include/FastCommentsClient/model/ChangeTicketStateBody.h index 4641abf..380a866 100644 --- a/client/include/FastCommentsClient/model/ChangeTicketStateBody.h +++ b/client/include/FastCommentsClient/model/ChangeTicketStateBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketStateBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketStateBody_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ChangeTicketStateResponse.h b/client/include/FastCommentsClient/model/ChangeTicketStateResponse.h index 733a211..f39f613 100644 --- a/client/include/FastCommentsClient/model/ChangeTicketStateResponse.h +++ b/client/include/FastCommentsClient/model/ChangeTicketStateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketStateResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CheckBlockedCommentsResponse.h b/client/include/FastCommentsClient/model/CheckBlockedCommentsResponse.h index d71ccb8..baf5ce6 100644 --- a/client/include/FastCommentsClient/model/CheckBlockedCommentsResponse.h +++ b/client/include/FastCommentsClient/model/CheckBlockedCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CheckBlockedCommentsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h b/client/include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h index fb86968..019fa53 100644 --- a/client/include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h +++ b/client/include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CombineQuestionResultsWithCommentsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentData.h b/client/include/FastCommentsClient/model/CommentData.h index b8e950b..6a46817 100644 --- a/client/include/FastCommentsClient/model/CommentData.h +++ b/client/include/FastCommentsClient/model/CommentData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentData_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -208,11 +209,9 @@ class CommentData utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - utility::string_t m_CommenterEmail; - bool m_CommenterEmailIsSet; + boost::optional m_CommenterEmail; - utility::string_t m_CommenterLink; - bool m_CommenterLinkIsSet; + boost::optional m_CommenterLink; utility::string_t m_Comment; bool m_CommentIsSet; @@ -220,14 +219,11 @@ class CommentData int32_t m_ProductId; bool m_ProductIdIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; - utility::string_t m_ParentId; - bool m_ParentIdIsSet; + boost::optional m_ParentId; std::vector> m_Mentions; bool m_MentionsIsSet; diff --git a/client/include/FastCommentsClient/model/CommentHTMLRenderingMode.h b/client/include/FastCommentsClient/model/CommentHTMLRenderingMode.h index 180ddf5..3dfec31 100644 --- a/client/include/FastCommentsClient/model/CommentHTMLRenderingMode.h +++ b/client/include/FastCommentsClient/model/CommentHTMLRenderingMode.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentHTMLRenderingMode_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentHTMLRenderingMode_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentLogData.h b/client/include/FastCommentsClient/model/CommentLogData.h index 4ea0cf0..ea739ec 100644 --- a/client/include/FastCommentsClient/model/CommentLogData.h +++ b/client/include/FastCommentsClient/model/CommentLogData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentLogData_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -364,23 +365,17 @@ class CommentLogData double m_NotificationCount; bool m_NotificationCountIsSet; - double m_VotesBefore; - bool m_VotesBeforeIsSet; + boost::optional m_VotesBefore; - double m_VotesUpBefore; - bool m_VotesUpBeforeIsSet; + boost::optional m_VotesUpBefore; - double m_VotesDownBefore; - bool m_VotesDownBeforeIsSet; + boost::optional m_VotesDownBefore; - double m_VotesAfter; - bool m_VotesAfterIsSet; + boost::optional m_VotesAfter; - double m_VotesUpAfter; - bool m_VotesUpAfterIsSet; + boost::optional m_VotesUpAfter; - double m_VotesDownAfter; - bool m_VotesDownAfterIsSet; + boost::optional m_VotesDownAfter; std::shared_ptr m_RepeatAction; bool m_RepeatActionIsSet; @@ -388,8 +383,7 @@ class CommentLogData std::shared_ptr m_Reason; bool m_ReasonIsSet; - std::shared_ptr m_OtherData; - bool m_OtherDataIsSet; + boost::optional> m_OtherData; bool m_SpamBefore; bool m_SpamBeforeIsSet; @@ -418,14 +412,11 @@ class CommentLogData utility::string_t m_TextAfter; bool m_TextAfterIsSet; - utility::datetime m_ExpireBefore; - bool m_ExpireBeforeIsSet; + boost::optional m_ExpireBefore; - utility::datetime m_ExpireAfter; - bool m_ExpireAfterIsSet; + boost::optional m_ExpireAfter; - double m_FlagCountBefore; - bool m_FlagCountBeforeIsSet; + boost::optional m_FlagCountBefore; double m_TrustFactorBefore; bool m_TrustFactorBeforeIsSet; diff --git a/client/include/FastCommentsClient/model/CommentLogEntry.h b/client/include/FastCommentsClient/model/CommentLogEntry.h index b1aa1fe..20f042e 100644 --- a/client/include/FastCommentsClient/model/CommentLogEntry.h +++ b/client/include/FastCommentsClient/model/CommentLogEntry.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentLogEntry_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentLogType.h b/client/include/FastCommentsClient/model/CommentLogType.h index 2d5e081..8628df3 100644 --- a/client/include/FastCommentsClient/model/CommentLogType.h +++ b/client/include/FastCommentsClient/model/CommentLogType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentLogType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentLogType_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentQuestionResultsRenderingType.h b/client/include/FastCommentsClient/model/CommentQuestionResultsRenderingType.h index ce1bd1d..c3bd066 100644 --- a/client/include/FastCommentsClient/model/CommentQuestionResultsRenderingType.h +++ b/client/include/FastCommentsClient/model/CommentQuestionResultsRenderingType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentQuestionResultsRenderingType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentQuestionResultsRenderingType_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentQuestionsRequired.h b/client/include/FastCommentsClient/model/CommentQuestionsRequired.h index 2937e90..b5bbc1b 100644 --- a/client/include/FastCommentsClient/model/CommentQuestionsRequired.h +++ b/client/include/FastCommentsClient/model/CommentQuestionsRequired.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentQuestionsRequired_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentQuestionsRequired_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentTextUpdateRequest.h b/client/include/FastCommentsClient/model/CommentTextUpdateRequest.h index 6177c65..ac1b9e6 100644 --- a/client/include/FastCommentsClient/model/CommentTextUpdateRequest.h +++ b/client/include/FastCommentsClient/model/CommentTextUpdateRequest.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentTextUpdateRequest_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentTextUpdateRequest_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentThreadDeletionMode.h b/client/include/FastCommentsClient/model/CommentThreadDeletionMode.h index 9543d23..1c24fd4 100644 --- a/client/include/FastCommentsClient/model/CommentThreadDeletionMode.h +++ b/client/include/FastCommentsClient/model/CommentThreadDeletionMode.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentThreadDeletionMode_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentThreadDeletionMode_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentUserBadgeInfo.h b/client/include/FastCommentsClient/model/CommentUserBadgeInfo.h index b4f7791..c6555b2 100644 --- a/client/include/FastCommentsClient/model/CommentUserBadgeInfo.h +++ b/client/include/FastCommentsClient/model/CommentUserBadgeInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentUserBadgeInfo_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentUserBadgeInfo_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -109,23 +110,17 @@ class CommentUserBadgeInfo utility::string_t m_Description; bool m_DescriptionIsSet; - utility::string_t m_DisplayLabel; - bool m_DisplayLabelIsSet; + boost::optional m_DisplayLabel; - utility::string_t m_DisplaySrc; - bool m_DisplaySrcIsSet; + boost::optional m_DisplaySrc; - utility::string_t m_BackgroundColor; - bool m_BackgroundColorIsSet; + boost::optional m_BackgroundColor; - utility::string_t m_BorderColor; - bool m_BorderColorIsSet; + boost::optional m_BorderColor; - utility::string_t m_TextColor; - bool m_TextColorIsSet; + boost::optional m_TextColor; - utility::string_t m_CssClass; - bool m_CssClassIsSet; + boost::optional m_CssClass; }; diff --git a/client/include/FastCommentsClient/model/CommentUserHashTagInfo.h b/client/include/FastCommentsClient/model/CommentUserHashTagInfo.h index d9a940f..47cfee4 100644 --- a/client/include/FastCommentsClient/model/CommentUserHashTagInfo.h +++ b/client/include/FastCommentsClient/model/CommentUserHashTagInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentUserHashTagInfo_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentUserHashTagInfo_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -81,8 +82,7 @@ class CommentUserHashTagInfo utility::string_t m_Tag; bool m_TagIsSet; - utility::string_t m_Url; - bool m_UrlIsSet; + boost::optional m_Url; bool m_Retain; bool m_RetainIsSet; diff --git a/client/include/FastCommentsClient/model/CommentUserMentionInfo.h b/client/include/FastCommentsClient/model/CommentUserMentionInfo.h index 97347fe..4aeea28 100644 --- a/client/include/FastCommentsClient/model/CommentUserMentionInfo.h +++ b/client/include/FastCommentsClient/model/CommentUserMentionInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentUserMentionInfo_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommenterNameFormats.h b/client/include/FastCommentsClient/model/CommenterNameFormats.h index 26150da..5224558 100644 --- a/client/include/FastCommentsClient/model/CommenterNameFormats.h +++ b/client/include/FastCommentsClient/model/CommenterNameFormats.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommenterNameFormats_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommenterNameFormats_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CommentsByIdsParams.h b/client/include/FastCommentsClient/model/CommentsByIdsParams.h index 6112b00..904b965 100644 --- a/client/include/FastCommentsClient/model/CommentsByIdsParams.h +++ b/client/include/FastCommentsClient/model/CommentsByIdsParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CommentsByIdsParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CommentsByIdsParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateAPIPageData.h b/client/include/FastCommentsClient/model/CreateAPIPageData.h index c1a84ab..aacba69 100644 --- a/client/include/FastCommentsClient/model/CreateAPIPageData.h +++ b/client/include/FastCommentsClient/model/CreateAPIPageData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateAPIPageData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateAPIPageData_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateAPISSOUserData.h b/client/include/FastCommentsClient/model/CreateAPISSOUserData.h index 8ae4337..31cbb99 100644 --- a/client/include/FastCommentsClient/model/CreateAPISSOUserData.h +++ b/client/include/FastCommentsClient/model/CreateAPISSOUserData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateAPISSOUserData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateAPISSOUserData_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h b/client/include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h index d68900f..018096c 100644 --- a/client/include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h +++ b/client/include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateAPIUserSubscriptionData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateAPIUserSubscriptionData_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateCommentParams.h b/client/include/FastCommentsClient/model/CreateCommentParams.h index 42e6998..99dd071 100644 --- a/client/include/FastCommentsClient/model/CreateCommentParams.h +++ b/client/include/FastCommentsClient/model/CreateCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateCommentParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateCommentParams_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -261,11 +262,9 @@ class CreateCommentParams utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - utility::string_t m_CommenterEmail; - bool m_CommenterEmailIsSet; + boost::optional m_CommenterEmail; - utility::string_t m_CommenterLink; - bool m_CommenterLinkIsSet; + boost::optional m_CommenterLink; utility::string_t m_Comment; bool m_CommentIsSet; @@ -273,14 +272,11 @@ class CreateCommentParams int32_t m_ProductId; bool m_ProductIdIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; - utility::string_t m_ParentId; - bool m_ParentIdIsSet; + boost::optional m_ParentId; std::vector> m_Mentions; bool m_MentionsIsSet; diff --git a/client/include/FastCommentsClient/model/CreateEmailTemplateBody.h b/client/include/FastCommentsClient/model/CreateEmailTemplateBody.h index 4a51026..fc2e3d4 100644 --- a/client/include/FastCommentsClient/model/CreateEmailTemplateBody.h +++ b/client/include/FastCommentsClient/model/CreateEmailTemplateBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplateBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplateBody_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -78,10 +79,10 @@ class CreateEmailTemplateBody /// /// Construct a type with a set of properties K of type T /// - std::map getTranslationOverridesByLocale() const; + std::map> getTranslationOverridesByLocale() const; bool translationOverridesByLocaleIsSet() const; void unsetTranslationOverridesByLocale(); - void setTranslationOverridesByLocale(const std::map& value); + void setTranslationOverridesByLocale(const std::map>& value); /// /// Construct a type with a set of properties K of type T @@ -105,7 +106,7 @@ class CreateEmailTemplateBody utility::string_t m_Domain; bool m_DomainIsSet; - std::map m_TranslationOverridesByLocale; + std::map> m_TranslationOverridesByLocale; bool m_TranslationOverridesByLocaleIsSet; std::map> m_TestData; diff --git a/client/include/FastCommentsClient/model/CreateEmailTemplateResponse.h b/client/include/FastCommentsClient/model/CreateEmailTemplateResponse.h index e22cfc5..8e4517f 100644 --- a/client/include/FastCommentsClient/model/CreateEmailTemplateResponse.h +++ b/client/include/FastCommentsClient/model/CreateEmailTemplateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplateResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateFeedPostParams.h b/client/include/FastCommentsClient/model/CreateFeedPostParams.h index c4f3f3d..c03a1b6 100644 --- a/client/include/FastCommentsClient/model/CreateFeedPostParams.h +++ b/client/include/FastCommentsClient/model/CreateFeedPostParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateFeedPostResponse.h b/client/include/FastCommentsClient/model/CreateFeedPostResponse.h index 50236f6..2ee247a 100644 --- a/client/include/FastCommentsClient/model/CreateFeedPostResponse.h +++ b/client/include/FastCommentsClient/model/CreateFeedPostResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateFeedPostsResponse.h b/client/include/FastCommentsClient/model/CreateFeedPostsResponse.h index 8c948ce..3a14e4d 100644 --- a/client/include/FastCommentsClient/model/CreateFeedPostsResponse.h +++ b/client/include/FastCommentsClient/model/CreateFeedPostsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateHashTagBody.h b/client/include/FastCommentsClient/model/CreateHashTagBody.h index 49ed865..8a66ec7 100644 --- a/client/include/FastCommentsClient/model/CreateHashTagBody.h +++ b/client/include/FastCommentsClient/model/CreateHashTagBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateHashTagBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateHashTagBody_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateHashTagResponse.h b/client/include/FastCommentsClient/model/CreateHashTagResponse.h index a42b62b..6b8edb0 100644 --- a/client/include/FastCommentsClient/model/CreateHashTagResponse.h +++ b/client/include/FastCommentsClient/model/CreateHashTagResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateHashTagResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateModeratorBody.h b/client/include/FastCommentsClient/model/CreateModeratorBody.h index 0a9cf87..f126cc5 100644 --- a/client/include/FastCommentsClient/model/CreateModeratorBody.h +++ b/client/include/FastCommentsClient/model/CreateModeratorBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,11 +18,13 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModeratorBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModeratorBody_H_ +#include #include "FastCommentsClient/ModelBase.h" #include #include +#include #include #include "FastCommentsClient/AnyType.h" @@ -77,6 +79,21 @@ class CreateModeratorBody void setModerationGroupIds(const std::vector& value); + /// + /// Get additional properties (properties not defined in the schema) + /// + std::map getAdditionalProperties() const; + bool additionalPropertiesIsSet() const; + void unsetAdditionalProperties(); + /// + /// Set additional properties + /// + void setAdditionalProperties(const std::map& value); + /// + /// Add a single additional property + /// + void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); + protected: utility::string_t m_Name; bool m_NameIsSet; @@ -90,6 +107,8 @@ class CreateModeratorBody std::vector m_ModerationGroupIds; bool m_ModerationGroupIdsIsSet; + std::map m_AdditionalProperties; + bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/CreateModeratorResponse.h b/client/include/FastCommentsClient/model/CreateModeratorResponse.h index c580660..b1cc84f 100644 --- a/client/include/FastCommentsClient/model/CreateModeratorResponse.h +++ b/client/include/FastCommentsClient/model/CreateModeratorResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModeratorResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateQuestionConfigBody.h b/client/include/FastCommentsClient/model/CreateQuestionConfigBody.h index 746e46e..cfa60f3 100644 --- a/client/include/FastCommentsClient/model/CreateQuestionConfigBody.h +++ b/client/include/FastCommentsClient/model/CreateQuestionConfigBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,12 +18,14 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfigBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfigBody_H_ +#include #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/QuestionConfig_customOptions_inner.h" #include #include +#include #include #include "FastCommentsClient/AnyType.h" @@ -129,6 +131,21 @@ class CreateQuestionConfigBody void setReportingOrder(double value); + /// + /// Get additional properties (properties not defined in the schema) + /// + std::map getAdditionalProperties() const; + bool additionalPropertiesIsSet() const; + void unsetAdditionalProperties(); + /// + /// Set additional properties + /// + void setAdditionalProperties(const std::map& value); + /// + /// Add a single additional property + /// + void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); + protected: utility::string_t m_Name; bool m_NameIsSet; @@ -172,6 +189,8 @@ class CreateQuestionConfigBody double m_ReportingOrder; bool m_ReportingOrderIsSet; + std::map m_AdditionalProperties; + bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/CreateQuestionConfigResponse.h b/client/include/FastCommentsClient/model/CreateQuestionConfigResponse.h index 22f2550..2e40f95 100644 --- a/client/include/FastCommentsClient/model/CreateQuestionConfigResponse.h +++ b/client/include/FastCommentsClient/model/CreateQuestionConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfigResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateQuestionResultBody.h b/client/include/FastCommentsClient/model/CreateQuestionResultBody.h index 01d3e0e..fb3b805 100644 --- a/client/include/FastCommentsClient/model/CreateQuestionResultBody.h +++ b/client/include/FastCommentsClient/model/CreateQuestionResultBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,11 +18,13 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResultBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResultBody_H_ +#include #include "FastCommentsClient/ModelBase.h" #include #include +#include #include #include "FastCommentsClient/AnyType.h" #include "FastCommentsClient/model/MetaItem.h" @@ -94,6 +96,21 @@ class CreateQuestionResultBody void setMeta(const std::vector>& value); + /// + /// Get additional properties (properties not defined in the schema) + /// + std::map getAdditionalProperties() const; + bool additionalPropertiesIsSet() const; + void unsetAdditionalProperties(); + /// + /// Set additional properties + /// + void setAdditionalProperties(const std::map& value); + /// + /// Add a single additional property + /// + void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); + protected: utility::string_t m_UrlId; bool m_UrlIdIsSet; @@ -113,9 +130,10 @@ class CreateQuestionResultBody utility::string_t m_CommentId; bool m_CommentIdIsSet; - std::vector> m_Meta; - bool m_MetaIsSet; + boost::optional>> m_Meta; + std::map m_AdditionalProperties; + bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/CreateQuestionResultResponse.h b/client/include/FastCommentsClient/model/CreateQuestionResultResponse.h index fa90928..f1f37ba 100644 --- a/client/include/FastCommentsClient/model/CreateQuestionResultResponse.h +++ b/client/include/FastCommentsClient/model/CreateQuestionResultResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResultResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h b/client/include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h index c255630..7bcd527 100644 --- a/client/include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h +++ b/client/include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateSubscriptionAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateSubscriptionAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTenantBody.h b/client/include/FastCommentsClient/model/CreateTenantBody.h index 00ce636..9f24c28 100644 --- a/client/include/FastCommentsClient/model/CreateTenantBody.h +++ b/client/include/FastCommentsClient/model/CreateTenantBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantBody_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTenantPackageBody.h b/client/include/FastCommentsClient/model/CreateTenantPackageBody.h index 1c66469..72f09e5 100644 --- a/client/include/FastCommentsClient/model/CreateTenantPackageBody.h +++ b/client/include/FastCommentsClient/model/CreateTenantPackageBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackageBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackageBody_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -304,17 +305,13 @@ class CreateTenantPackageBody utility::string_t m_Name; bool m_NameIsSet; - double m_MonthlyCostUSD; - bool m_MonthlyCostUSDIsSet; + boost::optional m_MonthlyCostUSD; - double m_YearlyCostUSD; - bool m_YearlyCostUSDIsSet; + boost::optional m_YearlyCostUSD; - utility::string_t m_MonthlyStripePlanId; - bool m_MonthlyStripePlanIdIsSet; + boost::optional m_MonthlyStripePlanId; - utility::string_t m_YearlyStripePlanId; - bool m_YearlyStripePlanIdIsSet; + boost::optional m_YearlyStripePlanId; double m_MaxMonthlyPageLoads; bool m_MaxMonthlyPageLoadsIsSet; diff --git a/client/include/FastCommentsClient/model/CreateTenantPackageResponse.h b/client/include/FastCommentsClient/model/CreateTenantPackageResponse.h index edb63ba..4b303ac 100644 --- a/client/include/FastCommentsClient/model/CreateTenantPackageResponse.h +++ b/client/include/FastCommentsClient/model/CreateTenantPackageResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackageResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTenantResponse.h b/client/include/FastCommentsClient/model/CreateTenantResponse.h index c752600..2841f42 100644 --- a/client/include/FastCommentsClient/model/CreateTenantResponse.h +++ b/client/include/FastCommentsClient/model/CreateTenantResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTenantUserBody.h b/client/include/FastCommentsClient/model/CreateTenantUserBody.h index 18b3ed7..427ddef 100644 --- a/client/include/FastCommentsClient/model/CreateTenantUserBody.h +++ b/client/include/FastCommentsClient/model/CreateTenantUserBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUserBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUserBody_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTenantUserResponse.h b/client/include/FastCommentsClient/model/CreateTenantUserResponse.h index cea0432..a06a675 100644 --- a/client/include/FastCommentsClient/model/CreateTenantUserResponse.h +++ b/client/include/FastCommentsClient/model/CreateTenantUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUserResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTicketBody.h b/client/include/FastCommentsClient/model/CreateTicketBody.h index 4bc8073..c58aed3 100644 --- a/client/include/FastCommentsClient/model/CreateTicketBody.h +++ b/client/include/FastCommentsClient/model/CreateTicketBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicketBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicketBody_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateTicketResponse.h b/client/include/FastCommentsClient/model/CreateTicketResponse.h index c50726e..d5fc27e 100644 --- a/client/include/FastCommentsClient/model/CreateTicketResponse.h +++ b/client/include/FastCommentsClient/model/CreateTicketResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicketResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateUserBadgeParams.h b/client/include/FastCommentsClient/model/CreateUserBadgeParams.h index 71bc6e8..98be24a 100644 --- a/client/include/FastCommentsClient/model/CreateUserBadgeParams.h +++ b/client/include/FastCommentsClient/model/CreateUserBadgeParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateUserBadgeParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateUserBadgeParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CreateV1PageReact.h b/client/include/FastCommentsClient/model/CreateV1PageReact.h index cc7dd9d..a6f0f1b 100644 --- a/client/include/FastCommentsClient/model/CreateV1PageReact.h +++ b/client/include/FastCommentsClient/model/CreateV1PageReact.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV1PageReact_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/CustomConfigParameters.h b/client/include/FastCommentsClient/model/CustomConfigParameters.h index 9358974..855bf45 100644 --- a/client/include/FastCommentsClient/model/CustomConfigParameters.h +++ b/client/include/FastCommentsClient/model/CustomConfigParameters.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CustomConfigParameters_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -535,38 +536,30 @@ class CustomConfigParameters bool m_AllowAnonVotes; bool m_AllowAnonVotesIsSet; - std::vector m_AllowedLanguages; - bool m_AllowedLanguagesIsSet; + boost::optional> m_AllowedLanguages; bool m_CollapseReplies; bool m_CollapseRepliesIsSet; - utility::string_t m_CommentCountFormat; - bool m_CommentCountFormatIsSet; + boost::optional m_CommentCountFormat; std::shared_ptr m_CommentHTMLRenderingMode; bool m_CommentHTMLRenderingModeIsSet; - std::shared_ptr m_CommentThreadDeleteMode; - bool m_CommentThreadDeleteModeIsSet; + boost::optional> m_CommentThreadDeleteMode; - std::shared_ptr m_CommenterNameFormat; - bool m_CommenterNameFormatIsSet; + boost::optional> m_CommenterNameFormat; int32_t m_CountAboveToggle; bool m_CountAboveToggleIsSet; - utility::string_t m_CustomCSS; - bool m_CustomCSSIsSet; + boost::optional m_CustomCSS; - utility::string_t m_DefaultAvatarSrc; - bool m_DefaultAvatarSrcIsSet; + boost::optional m_DefaultAvatarSrc; - std::shared_ptr m_DefaultSortDirection; - bool m_DefaultSortDirectionIsSet; + boost::optional> m_DefaultSortDirection; - utility::string_t m_DefaultUsername; - bool m_DefaultUsernameIsSet; + boost::optional m_DefaultUsername; bool m_DisableAutoAdminMigration; bool m_DisableAutoAdminMigrationIsSet; @@ -640,14 +633,12 @@ class CustomConfigParameters bool m_HasDarkBackground; bool m_HasDarkBackgroundIsSet; - utility::string_t m_HeaderHTML; - bool m_HeaderHTMLIsSet; + boost::optional m_HeaderHTML; bool m_HideAvatars; bool m_HideAvatarsIsSet; - utility::string_t m_HideCommentsUnderCountTextFormat; - bool m_HideCommentsUnderCountTextFormatIsSet; + boost::optional m_HideCommentsUnderCountTextFormat; std::shared_ptr m_ImageContentProfanityLevel; bool m_ImageContentProfanityLevelIsSet; @@ -658,20 +649,16 @@ class CustomConfigParameters bool m_LimitCommentsByGroups; bool m_LimitCommentsByGroupsIsSet; - utility::string_t m_Locale; - bool m_LocaleIsSet; + boost::optional m_Locale; - int32_t m_MaxCommentCharacterLength; - bool m_MaxCommentCharacterLengthIsSet; + boost::optional m_MaxCommentCharacterLength; - int32_t m_MaxCommentCreatedCountPUPM; - bool m_MaxCommentCreatedCountPUPMIsSet; + boost::optional m_MaxCommentCreatedCountPUPM; bool m_NoCustomConfig; bool m_NoCustomConfigIsSet; - std::shared_ptr m_MentionAutoCompleteMode; - bool m_MentionAutoCompleteModeIsSet; + boost::optional> m_MentionAutoCompleteMode; bool m_NoImageUploads; bool m_NoImageUploadsIsSet; @@ -679,14 +666,12 @@ class CustomConfigParameters bool m_AllowEmbeds; bool m_AllowEmbedsIsSet; - std::vector m_AllowedEmbedDomains; - bool m_AllowedEmbedDomainsIsSet; + boost::optional> m_AllowedEmbedDomains; bool m_NoStyles; bool m_NoStylesIsSet; - int32_t m_PageSize; - bool m_PageSizeIsSet; + boost::optional m_PageSize; bool m_Readonly; bool m_ReadonlyIsSet; @@ -703,8 +688,7 @@ class CustomConfigParameters bool m_EnableResizeHandle; bool m_EnableResizeHandleIsSet; - std::vector m_RestrictedLinkDomains; - bool m_RestrictedLinkDomainsIsSet; + boost::optional> m_RestrictedLinkDomains; bool m_ShowBadgesInTopBar; bool m_ShowBadgesInTopBarIsSet; @@ -724,8 +708,7 @@ class CustomConfigParameters std::shared_ptr m_SsoSecLvl; bool m_SsoSecLvlIsSet; - std::map m_Translations; - bool m_TranslationsIsSet; + boost::optional> m_Translations; bool m_UseShowCommentsToggle; bool m_UseShowCommentsToggleIsSet; diff --git a/client/include/FastCommentsClient/model/CustomEmailTemplate.h b/client/include/FastCommentsClient/model/CustomEmailTemplate.h index 450f86d..3a36d14 100644 --- a/client/include/FastCommentsClient/model/CustomEmailTemplate.h +++ b/client/include/FastCommentsClient/model/CustomEmailTemplate.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CustomEmailTemplate_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_CustomEmailTemplate_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -103,10 +104,10 @@ class CustomEmailTemplate /// /// Construct a type with a set of properties K of type T /// - std::map getTranslationOverridesByLocale() const; + std::map> getTranslationOverridesByLocale() const; bool translationOverridesByLocaleIsSet() const; void unsetTranslationOverridesByLocale(); - void setTranslationOverridesByLocale(const std::map& value); + void setTranslationOverridesByLocale(const std::map>& value); std::shared_ptr getTestData() const; bool testDataIsSet() const; @@ -130,23 +131,19 @@ class CustomEmailTemplate utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; - utility::datetime m_UpdatedAt; - bool m_UpdatedAtIsSet; + boost::optional m_UpdatedAt; - utility::string_t m_UpdatedByUserId; - bool m_UpdatedByUserIdIsSet; + boost::optional m_UpdatedByUserId; - utility::string_t m_Domain; - bool m_DomainIsSet; + boost::optional m_Domain; utility::string_t m_Ejs; bool m_EjsIsSet; - std::map m_TranslationOverridesByLocale; + std::map> m_TranslationOverridesByLocale; bool m_TranslationOverridesByLocaleIsSet; - std::shared_ptr m_TestData; - bool m_TestDataIsSet; + boost::optional> m_TestData; }; diff --git a/client/include/FastCommentsClient/model/DeleteCommentAction.h b/client/include/FastCommentsClient/model/DeleteCommentAction.h index c9e5abb..255b43d 100644 --- a/client/include/FastCommentsClient/model/DeleteCommentAction.h +++ b/client/include/FastCommentsClient/model/DeleteCommentAction.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentAction_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentAction_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/DeleteCommentResult.h b/client/include/FastCommentsClient/model/DeleteCommentResult.h index a98eb6b..0db3e31 100644 --- a/client/include/FastCommentsClient/model/DeleteCommentResult.h +++ b/client/include/FastCommentsClient/model/DeleteCommentResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentResult_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/DeleteDomainConfigResponse.h b/client/include/FastCommentsClient/model/DeleteDomainConfigResponse.h index 07225cf..42fcc43 100644 --- a/client/include/FastCommentsClient/model/DeleteDomainConfigResponse.h +++ b/client/include/FastCommentsClient/model/DeleteDomainConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteDomainConfigResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteDomainConfigResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -60,8 +61,7 @@ class DeleteDomainConfigResponse protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; + boost::optional> m_Status; }; diff --git a/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h index c0acc22..259a2ec 100644 --- a/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h +++ b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublicResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/DeleteHashTagRequestBody.h b/client/include/FastCommentsClient/model/DeleteHashTagRequestBody.h index 8d38a7a..957a9db 100644 --- a/client/include/FastCommentsClient/model/DeleteHashTagRequestBody.h +++ b/client/include/FastCommentsClient/model/DeleteHashTagRequestBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTagRequestBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTagRequestBody_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/DeletePageAPIResponse.h b/client/include/FastCommentsClient/model/DeletePageAPIResponse.h index b1d60de..305d0fa 100644 --- a/client/include/FastCommentsClient/model/DeletePageAPIResponse.h +++ b/client/include/FastCommentsClient/model/DeletePageAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeletePageAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeletePageAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h b/client/include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h index 7c646d0..07e70ba 100644 --- a/client/include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h +++ b/client/include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteSSOUserAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteSSOUserAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h b/client/include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h index 2d4a121..4c88879 100644 --- a/client/include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h +++ b/client/include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteSubscriptionAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteSubscriptionAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/DeletedCommentResultComment.h b/client/include/FastCommentsClient/model/DeletedCommentResultComment.h index 1260608..77007dd 100644 --- a/client/include/FastCommentsClient/model/DeletedCommentResultComment.h +++ b/client/include/FastCommentsClient/model/DeletedCommentResultComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeletedCommentResultComment_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DeletedCommentResultComment_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -84,8 +85,7 @@ class DeletedCommentResultComment utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; }; diff --git a/client/include/FastCommentsClient/model/DigestEmailFrequency.h b/client/include/FastCommentsClient/model/DigestEmailFrequency.h index 60ee7c1..5ef67bc 100644 --- a/client/include/FastCommentsClient/model/DigestEmailFrequency.h +++ b/client/include/FastCommentsClient/model/DigestEmailFrequency.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DigestEmailFrequency_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_DigestEmailFrequency_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/EmailTemplateDefinition.h b/client/include/FastCommentsClient/model/EmailTemplateDefinition.h index 0515ef2..350fe22 100644 --- a/client/include/FastCommentsClient/model/EmailTemplateDefinition.h +++ b/client/include/FastCommentsClient/model/EmailTemplateDefinition.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_EmailTemplateDefinition_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_EmailTemplateDefinition_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -71,10 +72,10 @@ class EmailTemplateDefinition /// /// Construct a type with a set of properties K of type T /// - std::map getDefaultTranslationsByLocale() const; + std::map> getDefaultTranslationsByLocale() const; bool defaultTranslationsByLocaleIsSet() const; void unsetDefaultTranslationsByLocale(); - void setDefaultTranslationsByLocale(const std::map& value); + void setDefaultTranslationsByLocale(const std::map>& value); utility::string_t getDefaultEJS() const; bool defaultEJSIsSet() const; @@ -89,7 +90,7 @@ class EmailTemplateDefinition std::map> m_DefaultTestData; bool m_DefaultTestDataIsSet; - std::map m_DefaultTranslationsByLocale; + std::map> m_DefaultTranslationsByLocale; bool m_DefaultTranslationsByLocaleIsSet; utility::string_t m_DefaultEJS; diff --git a/client/include/FastCommentsClient/model/EmailTemplateRenderErrorResponse.h b/client/include/FastCommentsClient/model/EmailTemplateRenderErrorResponse.h index 6554d81..1eb150d 100644 --- a/client/include/FastCommentsClient/model/EmailTemplateRenderErrorResponse.h +++ b/client/include/FastCommentsClient/model/EmailTemplateRenderErrorResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_EmailTemplateRenderErrorResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_EmailTemplateRenderErrorResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/EventLogEntry.h b/client/include/FastCommentsClient/model/EventLogEntry.h index 1bdffaa..9e178fa 100644 --- a/client/include/FastCommentsClient/model/EventLogEntry.h +++ b/client/include/FastCommentsClient/model/EventLogEntry.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_EventLogEntry_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_EventLogEntry_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FComment.h b/client/include/FastCommentsClient/model/FComment.h index 7210677..c666c58 100644 --- a/client/include/FastCommentsClient/model/FComment.h +++ b/client/include/FastCommentsClient/model/FComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FComment_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FComment_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -445,23 +446,18 @@ class FComment utility::string_t m_Url; bool m_UrlIsSet; - utility::string_t m_PageTitle; - bool m_PageTitleIsSet; + boost::optional m_PageTitle; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; - utility::string_t m_AnonUserId; - bool m_AnonUserIdIsSet; + boost::optional m_AnonUserId; - utility::string_t m_CommenterEmail; - bool m_CommenterEmailIsSet; + boost::optional m_CommenterEmail; utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - utility::string_t m_CommenterLink; - bool m_CommenterLinkIsSet; + boost::optional m_CommenterLink; utility::string_t m_Comment; bool m_CommentIsSet; @@ -469,38 +465,28 @@ class FComment utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; - utility::string_t m_ParentId; - bool m_ParentIdIsSet; + boost::optional m_ParentId; - utility::datetime m_date; - bool m_dateIsSet; + boost::optional m_date; - utility::string_t m_LocalDateString; - bool m_LocalDateStringIsSet; + boost::optional m_LocalDateString; - int32_t m_LocalDateHours; - bool m_LocalDateHoursIsSet; + boost::optional m_LocalDateHours; - int32_t m_Votes; - bool m_VotesIsSet; + boost::optional m_Votes; - int32_t m_VotesUp; - bool m_VotesUpIsSet; + boost::optional m_VotesUp; - int32_t m_VotesDown; - bool m_VotesDownIsSet; + boost::optional m_VotesDown; - utility::datetime m_ExpireAt; - bool m_ExpireAtIsSet; + boost::optional m_ExpireAt; bool m_Verified; bool m_VerifiedIsSet; - utility::datetime m_VerifiedDate; - bool m_VerifiedDateIsSet; + boost::optional m_VerifiedDate; - utility::string_t m_VerificationId; - bool m_VerificationIdIsSet; + boost::optional m_VerificationId; bool m_NotificationSentForParent; bool m_NotificationSentForParentIsSet; @@ -517,11 +503,9 @@ class FComment utility::string_t m_ExternalId; bool m_ExternalIdIsSet; - utility::string_t m_ExternalParentId; - bool m_ExternalParentIdIsSet; + boost::optional m_ExternalParentId; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; bool m_IsSpam; bool m_IsSpamIsSet; @@ -535,14 +519,11 @@ class FComment bool m_HasImages; bool m_HasImagesIsSet; - int32_t m_PageNumber; - bool m_PageNumberIsSet; + boost::optional m_PageNumber; - int32_t m_PageNumberOF; - bool m_PageNumberOFIsSet; + boost::optional m_PageNumberOF; - int32_t m_PageNumberNF; - bool m_PageNumberNFIsSet; + boost::optional m_PageNumberNF; bool m_HasLinks; bool m_HasLinksIsSet; @@ -553,8 +534,7 @@ class FComment bool m_Approved; bool m_ApprovedIsSet; - utility::string_t m_Locale; - bool m_LocaleIsSet; + boost::optional m_Locale; bool m_IsDeleted; bool m_IsDeletedIsSet; @@ -571,26 +551,20 @@ class FComment bool m_IsByModerator; bool m_IsByModeratorIsSet; - bool m_IsPinned; - bool m_IsPinnedIsSet; + boost::optional m_IsPinned; - bool m_IsLocked; - bool m_IsLockedIsSet; + boost::optional m_IsLocked; - int32_t m_FlagCount; - bool m_FlagCountIsSet; + boost::optional m_FlagCount; - double m_Rating; - bool m_RatingIsSet; + boost::optional m_Rating; - utility::string_t m_DisplayLabel; - bool m_DisplayLabelIsSet; + boost::optional m_DisplayLabel; int32_t m_FromProductId; bool m_FromProductIdIsSet; - std::shared_ptr m_Meta; - bool m_MetaIsSet; + boost::optional> m_Meta; utility::string_t m_IpHash; bool m_IpHashIsSet; @@ -601,17 +575,14 @@ class FComment std::vector> m_HashTags; bool m_HashTagsIsSet; - std::vector> m_Badges; - bool m_BadgesIsSet; + boost::optional>> m_Badges; - utility::string_t m_Domain; - bool m_DomainIsSet; + boost::optional m_Domain; utility::string_t m_VeteranBadgeProcessed; bool m_VeteranBadgeProcessedIsSet; - std::vector m_ModerationGroupIds; - bool m_ModerationGroupIdsIsSet; + boost::optional> m_ModerationGroupIds; bool m_DidProcessBadges; bool m_DidProcessBadgesIsSet; @@ -628,14 +599,11 @@ class FComment std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; - std::vector> m_Logs; - bool m_LogsIsSet; + boost::optional>> m_Logs; - std::vector m_GroupIds; - bool m_GroupIdsIsSet; + boost::optional> m_GroupIds; - int64_t m_ViewCount; - bool m_ViewCountIsSet; + boost::optional m_ViewCount; bool m_RequiresVerification; bool m_RequiresVerificationIsSet; diff --git a/client/include/FastCommentsClient/model/FComment_meta.h b/client/include/FastCommentsClient/model/FComment_meta.h index 057c915..8c956a2 100644 --- a/client/include/FastCommentsClient/model/FComment_meta.h +++ b/client/include/FastCommentsClient/model/FComment_meta.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,11 +18,13 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FComment_meta_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FComment_meta_H_ +#include #include "FastCommentsClient/ModelBase.h" #include #include +#include #include "FastCommentsClient/AnyType.h" namespace org { @@ -71,6 +73,21 @@ class FComment_meta void setWpPostId(const utility::string_t& value); + /// + /// Get additional properties (properties not defined in the schema) + /// + std::map getAdditionalProperties() const; + bool additionalPropertiesIsSet() const; + void unsetAdditionalProperties(); + /// + /// Set additional properties + /// + void setAdditionalProperties(const std::map& value); + /// + /// Add a single additional property + /// + void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); + protected: utility::string_t m_WpId; bool m_WpIdIsSet; @@ -81,6 +98,8 @@ class FComment_meta utility::string_t m_WpPostId; bool m_WpPostIdIsSet; + std::map m_AdditionalProperties; + bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/FeedPost.h b/client/include/FastCommentsClient/model/FeedPost.h index 34a3b29..279d4df 100644 --- a/client/include/FastCommentsClient/model/FeedPost.h +++ b/client/include/FastCommentsClient/model/FeedPost.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPost_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPost_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -156,11 +157,9 @@ class FeedPost utility::string_t m_FromUserId; bool m_FromUserIdIsSet; - utility::string_t m_FromUserDisplayName; - bool m_FromUserDisplayNameIsSet; + boost::optional m_FromUserDisplayName; - utility::string_t m_FromUserAvatar; - bool m_FromUserAvatarIsSet; + boost::optional m_FromUserAvatar; utility::string_t m_FromIpHash; bool m_FromIpHashIsSet; @@ -189,8 +188,7 @@ class FeedPost std::map m_Reacts; bool m_ReactsIsSet; - int32_t m_CommentCount; - bool m_CommentCountIsSet; + boost::optional m_CommentCount; }; diff --git a/client/include/FastCommentsClient/model/FeedPostLink.h b/client/include/FastCommentsClient/model/FeedPostLink.h index d5e43fe..afcc553 100644 --- a/client/include/FastCommentsClient/model/FeedPostLink.h +++ b/client/include/FastCommentsClient/model/FeedPostLink.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostLink_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostLink_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FeedPostMediaItem.h b/client/include/FastCommentsClient/model/FeedPostMediaItem.h index 80087e3..8226384 100644 --- a/client/include/FastCommentsClient/model/FeedPostMediaItem.h +++ b/client/include/FastCommentsClient/model/FeedPostMediaItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostMediaItem_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostMediaItem_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FeedPostMediaItemAsset.h b/client/include/FastCommentsClient/model/FeedPostMediaItemAsset.h index 999fff1..67d702d 100644 --- a/client/include/FastCommentsClient/model/FeedPostMediaItemAsset.h +++ b/client/include/FastCommentsClient/model/FeedPostMediaItemAsset.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostMediaItemAsset_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostMediaItemAsset_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FeedPostStats.h b/client/include/FastCommentsClient/model/FeedPostStats.h index 1c8a253..2646a56 100644 --- a/client/include/FastCommentsClient/model/FeedPostStats.h +++ b/client/include/FastCommentsClient/model/FeedPostStats.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostStats_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostStats_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FeedPostsStatsResponse.h b/client/include/FastCommentsClient/model/FeedPostsStatsResponse.h index 12bd5f3..0b4552c 100644 --- a/client/include/FastCommentsClient/model/FeedPostsStatsResponse.h +++ b/client/include/FastCommentsClient/model/FeedPostsStatsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FeedPostsStatsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FindCommentsByRangeItem.h b/client/include/FastCommentsClient/model/FindCommentsByRangeItem.h index a8d595c..55ffa96 100644 --- a/client/include/FastCommentsClient/model/FindCommentsByRangeItem.h +++ b/client/include/FastCommentsClient/model/FindCommentsByRangeItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FindCommentsByRangeItem_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FindCommentsByRangeItem_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -68,8 +69,7 @@ class FindCommentsByRangeItem protected: - std::shared_ptr m_Comment; - bool m_CommentIsSet; + boost::optional> m_Comment; std::shared_ptr m_Result; bool m_ResultIsSet; diff --git a/client/include/FastCommentsClient/model/FindCommentsByRangeResponse.h b/client/include/FastCommentsClient/model/FindCommentsByRangeResponse.h index 630586b..2e77d6c 100644 --- a/client/include/FastCommentsClient/model/FindCommentsByRangeResponse.h +++ b/client/include/FastCommentsClient/model/FindCommentsByRangeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FindCommentsByRangeResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FindCommentsByRangeResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/FlagCommentResponse.h b/client/include/FastCommentsClient/model/FlagCommentResponse.h index 68030d6..c907207 100644 --- a/client/include/FastCommentsClient/model/FlagCommentResponse.h +++ b/client/include/FastCommentsClient/model/FlagCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetAuditLogsResponse.h b/client/include/FastCommentsClient/model/GetAuditLogsResponse.h index 5800406..55db471 100644 --- a/client/include/FastCommentsClient/model/GetAuditLogsResponse.h +++ b/client/include/FastCommentsClient/model/GetAuditLogsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetAuditLogsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetBannedUsersCountResponse.h b/client/include/FastCommentsClient/model/GetBannedUsersCountResponse.h index ffcdea5..a6f0cf2 100644 --- a/client/include/FastCommentsClient/model/GetBannedUsersCountResponse.h +++ b/client/include/FastCommentsClient/model/GetBannedUsersCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetBannedUsersCountResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetBannedUsersCountResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h b/client/include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h index d114c73..f0a192b 100644 --- a/client/include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h +++ b/client/include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetBannedUsersFromCommentResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse.h b/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse.h index 3128005..6f64291 100644 --- a/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse.h +++ b/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCachedNotificationCountResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetCommentBanStatusResponse.h b/client/include/FastCommentsClient/model/GetCommentBanStatusResponse.h index cabcc2f..ef9a7d6 100644 --- a/client/include/FastCommentsClient/model/GetCommentBanStatusResponse.h +++ b/client/include/FastCommentsClient/model/GetCommentBanStatusResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentBanStatusResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentBanStatusResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -73,11 +74,9 @@ class GetCommentBanStatusResponse utility::string_t m_Status; bool m_StatusIsSet; - utility::string_t m_EmailDomain; - bool m_EmailDomainIsSet; + boost::optional m_EmailDomain; - bool m_CanIPBan; - bool m_CanIPBanIsSet; + boost::optional m_CanIPBan; }; diff --git a/client/include/FastCommentsClient/model/GetCommentTextResponse.h b/client/include/FastCommentsClient/model/GetCommentTextResponse.h index 391c8e9..cb87c78 100644 --- a/client/include/FastCommentsClient/model/GetCommentTextResponse.h +++ b/client/include/FastCommentsClient/model/GetCommentTextResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentTextResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -67,8 +68,7 @@ class GetCommentTextResponse protected: - utility::string_t m_Comment; - bool m_CommentIsSet; + boost::optional m_Comment; std::shared_ptr m_Status; bool m_StatusIsSet; diff --git a/client/include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h b/client/include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h index b65e621..e16131f 100644 --- a/client/include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h +++ b/client/include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentVoteUserNamesSuccessResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetCommentsForUserResponse.h b/client/include/FastCommentsClient/model/GetCommentsForUserResponse.h index 037cd34..bcbe9ca 100644 --- a/client/include/FastCommentsClient/model/GetCommentsForUserResponse.h +++ b/client/include/FastCommentsClient/model/GetCommentsForUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsForUserResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsForUserResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h b/client/include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h index 7490fb1..6dbf7f7 100644 --- a/client/include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h +++ b/client/include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponseWithPresence_PublicComment__H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponseWithPresence_PublicComment__H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -220,14 +221,12 @@ class GetCommentsResponseWithPresence_PublicComment_ std::vector> m_Comments; bool m_CommentsIsSet; - std::shared_ptr m_User; - bool m_UserIsSet; + boost::optional> m_User; utility::string_t m_UrlIdClean; bool m_UrlIdCleanIsSet; - int64_t m_LastGenDate; - bool m_LastGenDateIsSet; + boost::optional m_LastGenDate; bool m_IncludesPastPages; bool m_IncludesPastPagesIsSet; diff --git a/client/include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h b/client/include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h index 976fc31..504ef85 100644 --- a/client/include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h +++ b/client/include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponse_PublicComment__H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponse_PublicComment__H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -205,14 +206,12 @@ class GetCommentsResponse_PublicComment_ std::vector> m_Comments; bool m_CommentsIsSet; - std::shared_ptr m_User; - bool m_UserIsSet; + boost::optional> m_User; utility::string_t m_UrlIdClean; bool m_UrlIdCleanIsSet; - int64_t m_LastGenDate; - bool m_LastGenDateIsSet; + boost::optional m_LastGenDate; bool m_IncludesPastPages; bool m_IncludesPastPagesIsSet; diff --git a/client/include/FastCommentsClient/model/GetDomainConfigResponse.h b/client/include/FastCommentsClient/model/GetDomainConfigResponse.h index 2814890..1b63fb6 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigResponse.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -78,11 +79,9 @@ class GetDomainConfigResponse protected: - std::shared_ptr m_Configuration; - bool m_ConfigurationIsSet; + boost::optional> m_Configuration; - std::shared_ptr m_Status; - bool m_StatusIsSet; + boost::optional> m_Status; utility::string_t m_Reason; bool m_ReasonIsSet; diff --git a/client/include/FastCommentsClient/model/GetDomainConfigsResponse.h b/client/include/FastCommentsClient/model/GetDomainConfigsResponse.h index 1426e30..cacc79d 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigsResponse.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -78,11 +79,9 @@ class GetDomainConfigsResponse protected: - std::shared_ptr m_Configurations; - bool m_ConfigurationsIsSet; + boost::optional> m_Configurations; - std::shared_ptr m_Status; - bool m_StatusIsSet; + boost::optional> m_Status; utility::string_t m_Reason; bool m_ReasonIsSet; diff --git a/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h index 27c32cc..2f9f348 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_anyOf_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_anyOf_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -65,11 +66,9 @@ class GetDomainConfigsResponse_anyOf protected: - std::shared_ptr m_Configurations; - bool m_ConfigurationsIsSet; + boost::optional> m_Configurations; - std::shared_ptr m_Status; - bool m_StatusIsSet; + boost::optional> m_Status; }; diff --git a/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h index 79f62fd..d38a6ef 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_anyOf_1_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetDomainConfigsResponse_anyOf_1_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -77,8 +78,7 @@ class GetDomainConfigsResponse_anyOf_1 utility::string_t m_Code; bool m_CodeIsSet; - std::shared_ptr m_Status; - bool m_StatusIsSet; + boost::optional> m_Status; }; diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h b/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h index 82c1b73..4e8b6cf 100644 --- a/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h +++ b/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateDefinitionsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h b/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h index 0a1c991..b66fce8 100644 --- a/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h +++ b/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateRenderErrorsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateResponse.h b/client/include/FastCommentsClient/model/GetEmailTemplateResponse.h index 1f5a039..7b5336f 100644 --- a/client/include/FastCommentsClient/model/GetEmailTemplateResponse.h +++ b/client/include/FastCommentsClient/model/GetEmailTemplateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetEmailTemplatesResponse.h b/client/include/FastCommentsClient/model/GetEmailTemplatesResponse.h index 65239cd..3fbfb2f 100644 --- a/client/include/FastCommentsClient/model/GetEmailTemplatesResponse.h +++ b/client/include/FastCommentsClient/model/GetEmailTemplatesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplatesResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetEventLogResponse.h b/client/include/FastCommentsClient/model/GetEventLogResponse.h index 7be973b..aba11ce 100644 --- a/client/include/FastCommentsClient/model/GetEventLogResponse.h +++ b/client/include/FastCommentsClient/model/GetEventLogResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEventLogResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetFeedPostsResponse.h b/client/include/FastCommentsClient/model/GetFeedPostsResponse.h index 5b65e62..a4ed080 100644 --- a/client/include/FastCommentsClient/model/GetFeedPostsResponse.h +++ b/client/include/FastCommentsClient/model/GetFeedPostsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetGifsSearchResponse.h b/client/include/FastCommentsClient/model/GetGifsSearchResponse.h index 68363f6..0ebd54f 100644 --- a/client/include/FastCommentsClient/model/GetGifsSearchResponse.h +++ b/client/include/FastCommentsClient/model/GetGifsSearchResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifsSearchResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetGifsTrendingResponse.h b/client/include/FastCommentsClient/model/GetGifsTrendingResponse.h index 19ff91e..7acac7e 100644 --- a/client/include/FastCommentsClient/model/GetGifsTrendingResponse.h +++ b/client/include/FastCommentsClient/model/GetGifsTrendingResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifsTrendingResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetHashTagsResponse.h b/client/include/FastCommentsClient/model/GetHashTagsResponse.h index 6ba3274..0091daf 100644 --- a/client/include/FastCommentsClient/model/GetHashTagsResponse.h +++ b/client/include/FastCommentsClient/model/GetHashTagsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetHashTagsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetModeratorResponse.h b/client/include/FastCommentsClient/model/GetModeratorResponse.h index 972cab3..71cabf1 100644 --- a/client/include/FastCommentsClient/model/GetModeratorResponse.h +++ b/client/include/FastCommentsClient/model/GetModeratorResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetModeratorsResponse.h b/client/include/FastCommentsClient/model/GetModeratorsResponse.h index 48a8aae..1347e93 100644 --- a/client/include/FastCommentsClient/model/GetModeratorsResponse.h +++ b/client/include/FastCommentsClient/model/GetModeratorsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetMyNotificationsResponse.h b/client/include/FastCommentsClient/model/GetMyNotificationsResponse.h index c89f968..355e615 100644 --- a/client/include/FastCommentsClient/model/GetMyNotificationsResponse.h +++ b/client/include/FastCommentsClient/model/GetMyNotificationsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetMyNotificationsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetNotificationCountResponse.h b/client/include/FastCommentsClient/model/GetNotificationCountResponse.h index f1c5a07..19f7d63 100644 --- a/client/include/FastCommentsClient/model/GetNotificationCountResponse.h +++ b/client/include/FastCommentsClient/model/GetNotificationCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationCountResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetNotificationsResponse.h b/client/include/FastCommentsClient/model/GetNotificationsResponse.h index cf13a20..656f081 100644 --- a/client/include/FastCommentsClient/model/GetNotificationsResponse.h +++ b/client/include/FastCommentsClient/model/GetNotificationsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h b/client/include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h index aedfbfd..c35b2b6 100644 --- a/client/include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPageByURLIdAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPageByURLIdAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetPagesAPIResponse.h b/client/include/FastCommentsClient/model/GetPagesAPIResponse.h index 7c6b5b3..f44397d 100644 --- a/client/include/FastCommentsClient/model/GetPagesAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetPagesAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h b/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h index d20c806..33330a7 100644 --- a/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h +++ b/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventCountResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h b/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h index 247914e..55f7a4f 100644 --- a/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h +++ b/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetPublicFeedPostsResponse.h b/client/include/FastCommentsClient/model/GetPublicFeedPostsResponse.h index 598c006..2b9c288 100644 --- a/client/include/FastCommentsClient/model/GetPublicFeedPostsResponse.h +++ b/client/include/FastCommentsClient/model/GetPublicFeedPostsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPublicFeedPostsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -82,8 +83,7 @@ class GetPublicFeedPostsResponse std::vector> m_FeedPosts; bool m_FeedPostsIsSet; - std::shared_ptr m_User; - bool m_UserIsSet; + boost::optional> m_User; }; diff --git a/client/include/FastCommentsClient/model/GetPublicPagesResponse.h b/client/include/FastCommentsClient/model/GetPublicPagesResponse.h index 463f967..18fce68 100644 --- a/client/include/FastCommentsClient/model/GetPublicPagesResponse.h +++ b/client/include/FastCommentsClient/model/GetPublicPagesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPublicPagesResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -75,8 +76,7 @@ class GetPublicPagesResponse protected: - utility::string_t m_NextCursor; - bool m_NextCursorIsSet; + boost::optional m_NextCursor; std::vector> m_Pages; bool m_PagesIsSet; diff --git a/client/include/FastCommentsClient/model/GetQuestionConfigResponse.h b/client/include/FastCommentsClient/model/GetQuestionConfigResponse.h index 8da461a..2b7b484 100644 --- a/client/include/FastCommentsClient/model/GetQuestionConfigResponse.h +++ b/client/include/FastCommentsClient/model/GetQuestionConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetQuestionConfigsResponse.h b/client/include/FastCommentsClient/model/GetQuestionConfigsResponse.h index fdc7513..83b74b1 100644 --- a/client/include/FastCommentsClient/model/GetQuestionConfigsResponse.h +++ b/client/include/FastCommentsClient/model/GetQuestionConfigsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetQuestionResultResponse.h b/client/include/FastCommentsClient/model/GetQuestionResultResponse.h index ebdb426..c2ba326 100644 --- a/client/include/FastCommentsClient/model/GetQuestionResultResponse.h +++ b/client/include/FastCommentsClient/model/GetQuestionResultResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetQuestionResultsResponse.h b/client/include/FastCommentsClient/model/GetQuestionResultsResponse.h index 718d685..76984df 100644 --- a/client/include/FastCommentsClient/model/GetQuestionResultsResponse.h +++ b/client/include/FastCommentsClient/model/GetQuestionResultsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h b/client/include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h index 4d86fee..a56adef 100644 --- a/client/include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUserByEmailAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUserByEmailAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h b/client/include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h index 77d2a1c..4f61b4b 100644 --- a/client/include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUserByIdAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUserByIdAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetSSOUsersResponse.h b/client/include/FastCommentsClient/model/GetSSOUsersResponse.h index 2fbe7b2..54e4d22 100644 --- a/client/include/FastCommentsClient/model/GetSSOUsersResponse.h +++ b/client/include/FastCommentsClient/model/GetSSOUsersResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUsersResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSSOUsersResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h b/client/include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h index f175a48..23ff8e2 100644 --- a/client/include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSubscriptionsAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSubscriptionsAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h b/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h index cbf4199..f5915d3 100644 --- a/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantDailyUsagesResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantManualBadgesResponse.h b/client/include/FastCommentsClient/model/GetTenantManualBadgesResponse.h index f42d367..e96ff2c 100644 --- a/client/include/FastCommentsClient/model/GetTenantManualBadgesResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantManualBadgesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantManualBadgesResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantPackageResponse.h b/client/include/FastCommentsClient/model/GetTenantPackageResponse.h index 01b6a24..2ec259c 100644 --- a/client/include/FastCommentsClient/model/GetTenantPackageResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantPackageResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackageResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantPackagesResponse.h b/client/include/FastCommentsClient/model/GetTenantPackagesResponse.h index 8c1a073..1e5e812 100644 --- a/client/include/FastCommentsClient/model/GetTenantPackagesResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantPackagesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackagesResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantResponse.h b/client/include/FastCommentsClient/model/GetTenantResponse.h index 2dfd973..f58e323 100644 --- a/client/include/FastCommentsClient/model/GetTenantResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantUserResponse.h b/client/include/FastCommentsClient/model/GetTenantUserResponse.h index 1f89507..f7241a8 100644 --- a/client/include/FastCommentsClient/model/GetTenantUserResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUserResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantUsersResponse.h b/client/include/FastCommentsClient/model/GetTenantUsersResponse.h index 46b6792..7bdda03 100644 --- a/client/include/FastCommentsClient/model/GetTenantUsersResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantUsersResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUsersResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTenantsResponse.h b/client/include/FastCommentsClient/model/GetTenantsResponse.h index 8a75884..c72d97b 100644 --- a/client/include/FastCommentsClient/model/GetTenantsResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTicketResponse.h b/client/include/FastCommentsClient/model/GetTicketResponse.h index 89795cb..ee2d47a 100644 --- a/client/include/FastCommentsClient/model/GetTicketResponse.h +++ b/client/include/FastCommentsClient/model/GetTicketResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTicketsResponse.h b/client/include/FastCommentsClient/model/GetTicketsResponse.h index 3fbb991..ed75b68 100644 --- a/client/include/FastCommentsClient/model/GetTicketsResponse.h +++ b/client/include/FastCommentsClient/model/GetTicketsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetTranslationsResponse.h b/client/include/FastCommentsClient/model/GetTranslationsResponse.h index 1628204..5e1e885 100644 --- a/client/include/FastCommentsClient/model/GetTranslationsResponse.h +++ b/client/include/FastCommentsClient/model/GetTranslationsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslationsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetUserInternalProfileResponse.h b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse.h index f01c57f..d8fe849 100644 --- a/client/include/FastCommentsClient/model/GetUserInternalProfileResponse.h +++ b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h index c35b204..c8a763d 100644 --- a/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h +++ b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_profile_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_profile_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -143,8 +144,7 @@ class GetUserInternalProfileResponse_profile utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - utility::datetime m_FirstCommentDate; - bool m_FirstCommentDateIsSet; + boost::optional m_FirstCommentDate; utility::string_t m_IpHash; bool m_IpHashIsSet; @@ -155,8 +155,7 @@ class GetUserInternalProfileResponse_profile utility::string_t m_CountryCode; bool m_CountryCodeIsSet; - utility::string_t m_WebsiteUrl; - bool m_WebsiteUrlIsSet; + boost::optional m_WebsiteUrl; utility::string_t m_Bio; bool m_BioIsSet; @@ -170,8 +169,7 @@ class GetUserInternalProfileResponse_profile bool m_Verified; bool m_VerifiedIsSet; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; utility::string_t m_DisplayName; bool m_DisplayNameIsSet; @@ -179,17 +177,13 @@ class GetUserInternalProfileResponse_profile utility::string_t m_Username; bool m_UsernameIsSet; - utility::string_t m_CommenterEmail; - bool m_CommenterEmailIsSet; + boost::optional m_CommenterEmail; - utility::string_t m_Email; - bool m_EmailIsSet; + boost::optional m_Email; - utility::string_t m_AnonUserId; - bool m_AnonUserIdIsSet; + boost::optional m_AnonUserId; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; }; diff --git a/client/include/FastCommentsClient/model/GetUserManualBadgesResponse.h b/client/include/FastCommentsClient/model/GetUserManualBadgesResponse.h index a680804..2a29b10 100644 --- a/client/include/FastCommentsClient/model/GetUserManualBadgesResponse.h +++ b/client/include/FastCommentsClient/model/GetUserManualBadgesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserManualBadgesResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetUserNotificationCountResponse.h b/client/include/FastCommentsClient/model/GetUserNotificationCountResponse.h index 98ce0ae..9166455 100644 --- a/client/include/FastCommentsClient/model/GetUserNotificationCountResponse.h +++ b/client/include/FastCommentsClient/model/GetUserNotificationCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationCountResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h b/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h index 0e97749..e4f97f0 100644 --- a/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h +++ b/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserPresenceStatusesResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetUserResponse.h b/client/include/FastCommentsClient/model/GetUserResponse.h index 88dfdf8..e4f3e30 100644 --- a/client/include/FastCommentsClient/model/GetUserResponse.h +++ b/client/include/FastCommentsClient/model/GetUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetUserTrustFactorResponse.h b/client/include/FastCommentsClient/model/GetUserTrustFactorResponse.h index 4176066..d3c912d 100644 --- a/client/include/FastCommentsClient/model/GetUserTrustFactorResponse.h +++ b/client/include/FastCommentsClient/model/GetUserTrustFactorResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserTrustFactorResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetV1PageLikes.h b/client/include/FastCommentsClient/model/GetV1PageLikes.h index ed3e476..5c668ec 100644 --- a/client/include/FastCommentsClient/model/GetV1PageLikes.h +++ b/client/include/FastCommentsClient/model/GetV1PageLikes.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetV1PageLikes_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse.h b/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse.h index 70def1f..9c6adde 100644 --- a/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse.h +++ b/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactUsersResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetV2PageReacts.h b/client/include/FastCommentsClient/model/GetV2PageReacts.h index 91dcb0c..e1325c4 100644 --- a/client/include/FastCommentsClient/model/GetV2PageReacts.h +++ b/client/include/FastCommentsClient/model/GetV2PageReacts.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReacts_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetVotesForUserResponse.h b/client/include/FastCommentsClient/model/GetVotesForUserResponse.h index 4748ee2..ae3eb4e 100644 --- a/client/include/FastCommentsClient/model/GetVotesForUserResponse.h +++ b/client/include/FastCommentsClient/model/GetVotesForUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesForUserResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GetVotesResponse.h b/client/include/FastCommentsClient/model/GetVotesResponse.h index b415cb8..488a212 100644 --- a/client/include/FastCommentsClient/model/GetVotesResponse.h +++ b/client/include/FastCommentsClient/model/GetVotesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GifGetLargeResponse.h b/client/include/FastCommentsClient/model/GifGetLargeResponse.h index be20491..ff31e00 100644 --- a/client/include/FastCommentsClient/model/GifGetLargeResponse.h +++ b/client/include/FastCommentsClient/model/GifGetLargeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GifGetLargeResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GifRating.h b/client/include/FastCommentsClient/model/GifRating.h index 8c519c0..8b0c8ad 100644 --- a/client/include/FastCommentsClient/model/GifRating.h +++ b/client/include/FastCommentsClient/model/GifRating.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GifRating_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GifRating_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GifSearchInternalError.h b/client/include/FastCommentsClient/model/GifSearchInternalError.h index 29b642d..034a32b 100644 --- a/client/include/FastCommentsClient/model/GifSearchInternalError.h +++ b/client/include/FastCommentsClient/model/GifSearchInternalError.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GifSearchInternalError_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GifSearchResponse.h b/client/include/FastCommentsClient/model/GifSearchResponse.h index cb55fe3..2fe5de7 100644 --- a/client/include/FastCommentsClient/model/GifSearchResponse.h +++ b/client/include/FastCommentsClient/model/GifSearchResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GifSearchResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h b/client/include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h index dfca007..e01df6f 100644 --- a/client/include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h +++ b/client/include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GifSearchResponse_images_inner_inner_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_GifSearchResponse_images_inner_inner_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/HeaderAccountNotification.h b/client/include/FastCommentsClient/model/HeaderAccountNotification.h index d416b99..0a285af 100644 --- a/client/include/FastCommentsClient/model/HeaderAccountNotification.h +++ b/client/include/FastCommentsClient/model/HeaderAccountNotification.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_HeaderAccountNotification_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_HeaderAccountNotification_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -124,26 +125,21 @@ class HeaderAccountNotification utility::string_t m_Message; bool m_MessageIsSet; - std::map m_MessagesByLocale; - bool m_MessagesByLocaleIsSet; + boost::optional> m_MessagesByLocale; - std::map m_Dates; - bool m_DatesIsSet; + boost::optional> m_Dates; utility::string_t m_Severity; bool m_SeverityIsSet; - utility::string_t m_LinkUrl; - bool m_LinkUrlIsSet; + boost::optional m_LinkUrl; - utility::string_t m_LinkText; - bool m_LinkTextIsSet; + boost::optional m_LinkText; utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; - utility::string_t m_Type; - bool m_TypeIsSet; + boost::optional m_Type; }; diff --git a/client/include/FastCommentsClient/model/HeaderState.h b/client/include/FastCommentsClient/model/HeaderState.h index e88a08d..b71da96 100644 --- a/client/include/FastCommentsClient/model/HeaderState.h +++ b/client/include/FastCommentsClient/model/HeaderState.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_HeaderState_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/IgnoredResponse.h b/client/include/FastCommentsClient/model/IgnoredResponse.h index ab8bcb8..e6801ad 100644 --- a/client/include/FastCommentsClient/model/IgnoredResponse.h +++ b/client/include/FastCommentsClient/model/IgnoredResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_IgnoredResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ImageContentProfanityLevel.h b/client/include/FastCommentsClient/model/ImageContentProfanityLevel.h index 0dd5b65..5343789 100644 --- a/client/include/FastCommentsClient/model/ImageContentProfanityLevel.h +++ b/client/include/FastCommentsClient/model/ImageContentProfanityLevel.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ImageContentProfanityLevel_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ImageContentProfanityLevel_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h b/client/include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h index 17c6b03..febe8c4 100644 --- a/client/include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h +++ b/client/include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ImportedAgentApprovalNotificationFrequency_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ImportedAgentApprovalNotificationFrequency_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ImportedSiteType.h b/client/include/FastCommentsClient/model/ImportedSiteType.h index b78e8c0..5279931 100644 --- a/client/include/FastCommentsClient/model/ImportedSiteType.h +++ b/client/include/FastCommentsClient/model/ImportedSiteType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ImportedSiteType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ImportedSiteType_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/LiveEvent.h b/client/include/FastCommentsClient/model/LiveEvent.h index 9f95ca9..c98ceb5 100644 --- a/client/include/FastCommentsClient/model/LiveEvent.h +++ b/client/include/FastCommentsClient/model/LiveEvent.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_LiveEvent_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/LiveEventType.h b/client/include/FastCommentsClient/model/LiveEventType.h index 56f84f8..34d76eb 100644 --- a/client/include/FastCommentsClient/model/LiveEventType.h +++ b/client/include/FastCommentsClient/model/LiveEventType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_LiveEventType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_LiveEventType_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/LiveEvent_extraInfo.h b/client/include/FastCommentsClient/model/LiveEvent_extraInfo.h index 44fa86a..5dd9273 100644 --- a/client/include/FastCommentsClient/model/LiveEvent_extraInfo.h +++ b/client/include/FastCommentsClient/model/LiveEvent_extraInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_LiveEvent_extraInfo_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_LiveEvent_extraInfo_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/MediaAsset.h b/client/include/FastCommentsClient/model/MediaAsset.h index 9fcc4b6..eb14f55 100644 --- a/client/include/FastCommentsClient/model/MediaAsset.h +++ b/client/include/FastCommentsClient/model/MediaAsset.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_MediaAsset_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_MediaAsset_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/MentionAutoCompleteMode.h b/client/include/FastCommentsClient/model/MentionAutoCompleteMode.h index 8d227b4..2832853 100644 --- a/client/include/FastCommentsClient/model/MentionAutoCompleteMode.h +++ b/client/include/FastCommentsClient/model/MentionAutoCompleteMode.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_MentionAutoCompleteMode_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_MentionAutoCompleteMode_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/MetaItem.h b/client/include/FastCommentsClient/model/MetaItem.h index 791cf13..2385213 100644 --- a/client/include/FastCommentsClient/model/MetaItem.h +++ b/client/include/FastCommentsClient/model/MetaItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_MetaItem_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_MetaItem_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h b/client/include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h index 43d9659..d2c764c 100644 --- a/client/include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h +++ b/client/include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIChildCommentsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationAPIComment.h b/client/include/FastCommentsClient/model/ModerationAPIComment.h index 9f4311b..e4971b6 100644 --- a/client/include/FastCommentsClient/model/ModerationAPIComment.h +++ b/client/include/FastCommentsClient/model/ModerationAPIComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIComment_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIComment_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -298,50 +299,38 @@ class ModerationAPIComment utility::string_t m_Url; bool m_UrlIsSet; - utility::string_t m_PageTitle; - bool m_PageTitleIsSet; + boost::optional m_PageTitle; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; - utility::string_t m_AnonUserId; - bool m_AnonUserIdIsSet; + boost::optional m_AnonUserId; utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - utility::string_t m_CommenterLink; - bool m_CommenterLinkIsSet; + boost::optional m_CommenterLink; utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; - utility::string_t m_ParentId; - bool m_ParentIdIsSet; + boost::optional m_ParentId; - utility::datetime m_date; - bool m_dateIsSet; + boost::optional m_date; - utility::string_t m_LocalDateString; - bool m_LocalDateStringIsSet; + boost::optional m_LocalDateString; - double m_Votes; - bool m_VotesIsSet; + boost::optional m_Votes; - double m_VotesUp; - bool m_VotesUpIsSet; + boost::optional m_VotesUp; - double m_VotesDown; - bool m_VotesDownIsSet; + boost::optional m_VotesDown; - utility::datetime m_ExpireAt; - bool m_ExpireAtIsSet; + boost::optional m_ExpireAt; bool m_Reviewed; bool m_ReviewedIsSet; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; bool m_IsSpam; bool m_IsSpamIsSet; @@ -358,8 +347,7 @@ class ModerationAPIComment bool m_Approved; bool m_ApprovedIsSet; - utility::string_t m_Locale; - bool m_LocaleIsSet; + boost::optional m_Locale; bool m_IsBannedUser; bool m_IsBannedUserIsSet; @@ -370,20 +358,15 @@ class ModerationAPIComment bool m_IsByModerator; bool m_IsByModeratorIsSet; - bool m_IsPinned; - bool m_IsPinnedIsSet; + boost::optional m_IsPinned; - bool m_IsLocked; - bool m_IsLockedIsSet; + boost::optional m_IsLocked; - double m_FlagCount; - bool m_FlagCountIsSet; + boost::optional m_FlagCount; - utility::string_t m_DisplayLabel; - bool m_DisplayLabelIsSet; + boost::optional m_DisplayLabel; - std::vector> m_Badges; - bool m_BadgesIsSet; + boost::optional>> m_Badges; bool m_Verified; bool m_VerifiedIsSet; diff --git a/client/include/FastCommentsClient/model/ModerationAPICommentLog.h b/client/include/FastCommentsClient/model/ModerationAPICommentLog.h index b6bf5b0..b0247be 100644 --- a/client/include/FastCommentsClient/model/ModerationAPICommentLog.h +++ b/client/include/FastCommentsClient/model/ModerationAPICommentLog.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPICommentLog_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPICommentLog_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationAPICommentResponse.h b/client/include/FastCommentsClient/model/ModerationAPICommentResponse.h index f7678a8..cdaae0e 100644 --- a/client/include/FastCommentsClient/model/ModerationAPICommentResponse.h +++ b/client/include/FastCommentsClient/model/ModerationAPICommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPICommentResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h b/client/include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h index 9cc190f..c7528c3 100644 --- a/client/include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h +++ b/client/include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPICountCommentsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h b/client/include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h index 68125f5..9a8bee1 100644 --- a/client/include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h +++ b/client/include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIGetCommentIdsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h b/client/include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h index d84cffb..15283e9 100644 --- a/client/include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h +++ b/client/include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIGetCommentsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h b/client/include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h index a4c832c..58e032c 100644 --- a/client/include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h +++ b/client/include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationAPIGetLogsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationCommentSearchResponse.h b/client/include/FastCommentsClient/model/ModerationCommentSearchResponse.h index a197a56..e00e9c9 100644 --- a/client/include/FastCommentsClient/model/ModerationCommentSearchResponse.h +++ b/client/include/FastCommentsClient/model/ModerationCommentSearchResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationCommentSearchResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationExportResponse.h b/client/include/FastCommentsClient/model/ModerationExportResponse.h index 6435736..69e4257 100644 --- a/client/include/FastCommentsClient/model/ModerationExportResponse.h +++ b/client/include/FastCommentsClient/model/ModerationExportResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationExportResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationExportResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationExportStatusResponse.h b/client/include/FastCommentsClient/model/ModerationExportStatusResponse.h index 3dd5d37..34c8709 100644 --- a/client/include/FastCommentsClient/model/ModerationExportStatusResponse.h +++ b/client/include/FastCommentsClient/model/ModerationExportStatusResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationExportStatusResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationExportStatusResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationFilter.h b/client/include/FastCommentsClient/model/ModerationFilter.h index da65e1a..0fdee91 100644 --- a/client/include/FastCommentsClient/model/ModerationFilter.h +++ b/client/include/FastCommentsClient/model/ModerationFilter.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationFilter_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationFilter_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationPageSearchProjected.h b/client/include/FastCommentsClient/model/ModerationPageSearchProjected.h index 6f9d77b..746c4cc 100644 --- a/client/include/FastCommentsClient/model/ModerationPageSearchProjected.h +++ b/client/include/FastCommentsClient/model/ModerationPageSearchProjected.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationPageSearchProjected_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationPageSearchProjected_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationPageSearchResponse.h b/client/include/FastCommentsClient/model/ModerationPageSearchResponse.h index b1977ad..1c5d447 100644 --- a/client/include/FastCommentsClient/model/ModerationPageSearchResponse.h +++ b/client/include/FastCommentsClient/model/ModerationPageSearchResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationPageSearchResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationSiteSearchProjected.h b/client/include/FastCommentsClient/model/ModerationSiteSearchProjected.h index b9c1a69..ce30f94 100644 --- a/client/include/FastCommentsClient/model/ModerationSiteSearchProjected.h +++ b/client/include/FastCommentsClient/model/ModerationSiteSearchProjected.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSiteSearchProjected_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSiteSearchProjected_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -68,8 +69,7 @@ class ModerationSiteSearchProjected utility::string_t m_Domain; bool m_DomainIsSet; - utility::string_t m_LogoSrc100px; - bool m_LogoSrc100pxIsSet; + boost::optional m_LogoSrc100px; }; diff --git a/client/include/FastCommentsClient/model/ModerationSiteSearchResponse.h b/client/include/FastCommentsClient/model/ModerationSiteSearchResponse.h index 0335e60..aacaa3b 100644 --- a/client/include/FastCommentsClient/model/ModerationSiteSearchResponse.h +++ b/client/include/FastCommentsClient/model/ModerationSiteSearchResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSiteSearchResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationSuggestResponse.h b/client/include/FastCommentsClient/model/ModerationSuggestResponse.h index 83dd1dd..68ef87e 100644 --- a/client/include/FastCommentsClient/model/ModerationSuggestResponse.h +++ b/client/include/FastCommentsClient/model/ModerationSuggestResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSuggestResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationSuggestResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ModerationUserSearchProjected.h b/client/include/FastCommentsClient/model/ModerationUserSearchProjected.h index 6223bb3..bc437ea 100644 --- a/client/include/FastCommentsClient/model/ModerationUserSearchProjected.h +++ b/client/include/FastCommentsClient/model/ModerationUserSearchProjected.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationUserSearchProjected_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationUserSearchProjected_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -81,11 +82,9 @@ class ModerationUserSearchProjected utility::string_t m_Username; bool m_UsernameIsSet; - utility::string_t m_DisplayName; - bool m_DisplayNameIsSet; + boost::optional m_DisplayName; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; }; diff --git a/client/include/FastCommentsClient/model/ModerationUserSearchResponse.h b/client/include/FastCommentsClient/model/ModerationUserSearchResponse.h index 161bf91..d2b2365 100644 --- a/client/include/FastCommentsClient/model/ModerationUserSearchResponse.h +++ b/client/include/FastCommentsClient/model/ModerationUserSearchResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ModerationUserSearchResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/Moderator.h b/client/include/FastCommentsClient/model/Moderator.h index 419d52c..4bef2d6 100644 --- a/client/include/FastCommentsClient/model/Moderator.h +++ b/client/include/FastCommentsClient/model/Moderator.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_Moderator_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_Moderator_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -157,17 +158,14 @@ class Moderator utility::string_t m_TenantId; bool m_TenantIdIsSet; - utility::string_t m_Name; - bool m_NameIsSet; + boost::optional m_Name; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; bool m_AcceptedInvite; bool m_AcceptedInviteIsSet; - utility::string_t m_Email; - bool m_EmailIsSet; + boost::optional m_Email; double m_MarkReviewedCount; bool m_MarkReviewedCountIsSet; @@ -196,14 +194,12 @@ class Moderator double m_UnFlaggedCount; bool m_UnFlaggedCountIsSet; - utility::string_t m_VerificationId; - bool m_VerificationIdIsSet; + boost::optional m_VerificationId; utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; - std::vector m_ModerationGroupIds; - bool m_ModerationGroupIdsIsSet; + boost::optional> m_ModerationGroupIds; bool m_IsEmailSuppressed; bool m_IsEmailSuppressedIsSet; diff --git a/client/include/FastCommentsClient/model/NotificationAndCount.h b/client/include/FastCommentsClient/model/NotificationAndCount.h index a5bc094..a8d586f 100644 --- a/client/include/FastCommentsClient/model/NotificationAndCount.h +++ b/client/include/FastCommentsClient/model/NotificationAndCount.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_NotificationAndCount_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/NotificationObjectType.h b/client/include/FastCommentsClient/model/NotificationObjectType.h index ce1f39a..1d017cc 100644 --- a/client/include/FastCommentsClient/model/NotificationObjectType.h +++ b/client/include/FastCommentsClient/model/NotificationObjectType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_NotificationObjectType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_NotificationObjectType_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/NotificationType.h b/client/include/FastCommentsClient/model/NotificationType.h index 1e5adac..da12ff5 100644 --- a/client/include/FastCommentsClient/model/NotificationType.h +++ b/client/include/FastCommentsClient/model/NotificationType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_NotificationType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_NotificationType_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PageUserEntry.h b/client/include/FastCommentsClient/model/PageUserEntry.h index 304e67c..b54c121 100644 --- a/client/include/FastCommentsClient/model/PageUserEntry.h +++ b/client/include/FastCommentsClient/model/PageUserEntry.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PageUserEntry_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PageUserEntry_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PageUsersInfoResponse.h b/client/include/FastCommentsClient/model/PageUsersInfoResponse.h index 4633952..83490d8 100644 --- a/client/include/FastCommentsClient/model/PageUsersInfoResponse.h +++ b/client/include/FastCommentsClient/model/PageUsersInfoResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PageUsersInfoResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PageUsersOfflineResponse.h b/client/include/FastCommentsClient/model/PageUsersOfflineResponse.h index a25455f..cc7b248 100644 --- a/client/include/FastCommentsClient/model/PageUsersOfflineResponse.h +++ b/client/include/FastCommentsClient/model/PageUsersOfflineResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PageUsersOfflineResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -80,11 +81,9 @@ class PageUsersOfflineResponse protected: - utility::string_t m_NextAfterUserId; - bool m_NextAfterUserIdIsSet; + boost::optional m_NextAfterUserId; - utility::string_t m_NextAfterName; - bool m_NextAfterNameIsSet; + boost::optional m_NextAfterName; std::vector> m_Users; bool m_UsersIsSet; diff --git a/client/include/FastCommentsClient/model/PageUsersOnlineResponse.h b/client/include/FastCommentsClient/model/PageUsersOnlineResponse.h index f436e3b..ee7490d 100644 --- a/client/include/FastCommentsClient/model/PageUsersOnlineResponse.h +++ b/client/include/FastCommentsClient/model/PageUsersOnlineResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PageUsersOnlineResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -90,11 +91,9 @@ class PageUsersOnlineResponse protected: - utility::string_t m_NextAfterUserId; - bool m_NextAfterUserIdIsSet; + boost::optional m_NextAfterUserId; - utility::string_t m_NextAfterName; - bool m_NextAfterNameIsSet; + boost::optional m_NextAfterName; double m_TotalCount; bool m_TotalCountIsSet; diff --git a/client/include/FastCommentsClient/model/PagesSortBy.h b/client/include/FastCommentsClient/model/PagesSortBy.h index b916fa9..7d1abf4 100644 --- a/client/include/FastCommentsClient/model/PagesSortBy.h +++ b/client/include/FastCommentsClient/model/PagesSortBy.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PagesSortBy_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PagesSortBy_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PatchDomainConfigParams.h b/client/include/FastCommentsClient/model/PatchDomainConfigParams.h index b0d5ac2..3b12dc6 100644 --- a/client/include/FastCommentsClient/model/PatchDomainConfigParams.h +++ b/client/include/FastCommentsClient/model/PatchDomainConfigParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PatchDomainConfigParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PatchDomainConfigParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PatchDomainConfigResponse.h b/client/include/FastCommentsClient/model/PatchDomainConfigResponse.h index 9a798fa..81f34ed 100644 --- a/client/include/FastCommentsClient/model/PatchDomainConfigResponse.h +++ b/client/include/FastCommentsClient/model/PatchDomainConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PatchDomainConfigResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PatchDomainConfigResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -78,11 +79,9 @@ class PatchDomainConfigResponse protected: - std::shared_ptr m_Configuration; - bool m_ConfigurationIsSet; + boost::optional> m_Configuration; - std::shared_ptr m_Status; - bool m_StatusIsSet; + boost::optional> m_Status; utility::string_t m_Reason; bool m_ReasonIsSet; diff --git a/client/include/FastCommentsClient/model/PatchPageAPIResponse.h b/client/include/FastCommentsClient/model/PatchPageAPIResponse.h index 87072a0..480446b 100644 --- a/client/include/FastCommentsClient/model/PatchPageAPIResponse.h +++ b/client/include/FastCommentsClient/model/PatchPageAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PatchPageAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PatchPageAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PatchSSOUserAPIResponse.h b/client/include/FastCommentsClient/model/PatchSSOUserAPIResponse.h index c750c3a..802ed35 100644 --- a/client/include/FastCommentsClient/model/PatchSSOUserAPIResponse.h +++ b/client/include/FastCommentsClient/model/PatchSSOUserAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PatchSSOUserAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PatchSSOUserAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PendingCommentToSyncOutbound.h b/client/include/FastCommentsClient/model/PendingCommentToSyncOutbound.h index e011191..8d9d562 100644 --- a/client/include/FastCommentsClient/model/PendingCommentToSyncOutbound.h +++ b/client/include/FastCommentsClient/model/PendingCommentToSyncOutbound.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PendingCommentToSyncOutbound_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PendingCommentToSyncOutbound_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -132,8 +133,7 @@ class PendingCommentToSyncOutbound std::shared_ptr m_Comment; bool m_CommentIsSet; - utility::string_t m_ExternalId; - bool m_ExternalIdIsSet; + boost::optional m_ExternalId; utility::datetime m_CreatedAt; bool m_CreatedAtIsSet; diff --git a/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h b/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h index 573894e..78b03ab 100644 --- a/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h +++ b/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PreBanSummary.h b/client/include/FastCommentsClient/model/PreBanSummary.h index 565756a..71770e0 100644 --- a/client/include/FastCommentsClient/model/PreBanSummary.h +++ b/client/include/FastCommentsClient/model/PreBanSummary.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PreBanSummary_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PubSubComment.h b/client/include/FastCommentsClient/model/PubSubComment.h index 9092745..1090a32 100644 --- a/client/include/FastCommentsClient/model/PubSubComment.h +++ b/client/include/FastCommentsClient/model/PubSubComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PubSubComment_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PubSubComment_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -279,8 +280,7 @@ class PubSubComment utility::string_t m_TenantId; bool m_TenantIdIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; utility::string_t m_UrlId; bool m_UrlIdIsSet; @@ -288,8 +288,7 @@ class PubSubComment utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - utility::string_t m_CommenterLink; - bool m_CommenterLinkIsSet; + boost::optional m_CommenterLink; utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; @@ -297,23 +296,18 @@ class PubSubComment utility::string_t m_Comment; bool m_CommentIsSet; - utility::string_t m_ParentId; - bool m_ParentIdIsSet; + boost::optional m_ParentId; - int32_t m_Votes; - bool m_VotesIsSet; + boost::optional m_Votes; - int32_t m_VotesUp; - bool m_VotesUpIsSet; + boost::optional m_VotesUp; - int32_t m_VotesDown; - bool m_VotesDownIsSet; + boost::optional m_VotesDown; bool m_Verified; bool m_VerifiedIsSet; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; bool m_HasImages; bool m_HasImagesIsSet; @@ -327,23 +321,17 @@ class PubSubComment bool m_IsByModerator; bool m_IsByModeratorIsSet; - bool m_IsPinned; - bool m_IsPinnedIsSet; + boost::optional m_IsPinned; - bool m_IsLocked; - bool m_IsLockedIsSet; + boost::optional m_IsLocked; - utility::string_t m_DisplayLabel; - bool m_DisplayLabelIsSet; + boost::optional m_DisplayLabel; - double m_Rating; - bool m_RatingIsSet; + boost::optional m_Rating; - std::vector> m_Badges; - bool m_BadgesIsSet; + boost::optional>> m_Badges; - int64_t m_ViewCount; - bool m_ViewCountIsSet; + boost::optional m_ViewCount; bool m_IsDeleted; bool m_IsDeletedIsSet; @@ -354,26 +342,21 @@ class PubSubComment bool m_IsSpam; bool m_IsSpamIsSet; - utility::string_t m_AnonUserId; - bool m_AnonUserIdIsSet; + boost::optional m_AnonUserId; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; - int32_t m_FlagCount; - bool m_FlagCountIsSet; + boost::optional m_FlagCount; - utility::string_t m_Domain; - bool m_DomainIsSet; + boost::optional m_Domain; utility::string_t m_Url; bool m_UrlIsSet; - utility::string_t m_PageTitle; - bool m_PageTitleIsSet; + boost::optional m_PageTitle; - utility::datetime m_ExpireAt; - bool m_ExpireAtIsSet; + boost::optional m_ExpireAt; bool m_Reviewed; bool m_ReviewedIsSet; @@ -384,14 +367,12 @@ class PubSubComment bool m_Approved; bool m_ApprovedIsSet; - utility::string_t m_Locale; - bool m_LocaleIsSet; + boost::optional m_Locale; bool m_IsBannedUser; bool m_IsBannedUserIsSet; - std::vector m_GroupIds; - bool m_GroupIdsIsSet; + boost::optional> m_GroupIds; bool m_IsLive; bool m_IsLiveIsSet; diff --git a/client/include/FastCommentsClient/model/PubSubCommentBase.h b/client/include/FastCommentsClient/model/PubSubCommentBase.h index 161a6af..b5b0816 100644 --- a/client/include/FastCommentsClient/model/PubSubCommentBase.h +++ b/client/include/FastCommentsClient/model/PubSubCommentBase.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PubSubCommentBase_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PubSubCommentBase_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -264,8 +265,7 @@ class PubSubCommentBase utility::string_t m_TenantId; bool m_TenantIdIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; utility::string_t m_UrlId; bool m_UrlIdIsSet; @@ -273,8 +273,7 @@ class PubSubCommentBase utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - utility::string_t m_CommenterLink; - bool m_CommenterLinkIsSet; + boost::optional m_CommenterLink; utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; @@ -282,23 +281,18 @@ class PubSubCommentBase utility::string_t m_Comment; bool m_CommentIsSet; - utility::string_t m_ParentId; - bool m_ParentIdIsSet; + boost::optional m_ParentId; - int32_t m_Votes; - bool m_VotesIsSet; + boost::optional m_Votes; - int32_t m_VotesUp; - bool m_VotesUpIsSet; + boost::optional m_VotesUp; - int32_t m_VotesDown; - bool m_VotesDownIsSet; + boost::optional m_VotesDown; bool m_Verified; bool m_VerifiedIsSet; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; bool m_HasImages; bool m_HasImagesIsSet; @@ -312,23 +306,17 @@ class PubSubCommentBase bool m_IsByModerator; bool m_IsByModeratorIsSet; - bool m_IsPinned; - bool m_IsPinnedIsSet; + boost::optional m_IsPinned; - bool m_IsLocked; - bool m_IsLockedIsSet; + boost::optional m_IsLocked; - utility::string_t m_DisplayLabel; - bool m_DisplayLabelIsSet; + boost::optional m_DisplayLabel; - double m_Rating; - bool m_RatingIsSet; + boost::optional m_Rating; - std::vector> m_Badges; - bool m_BadgesIsSet; + boost::optional>> m_Badges; - int64_t m_ViewCount; - bool m_ViewCountIsSet; + boost::optional m_ViewCount; bool m_IsDeleted; bool m_IsDeletedIsSet; @@ -339,26 +327,21 @@ class PubSubCommentBase bool m_IsSpam; bool m_IsSpamIsSet; - utility::string_t m_AnonUserId; - bool m_AnonUserIdIsSet; + boost::optional m_AnonUserId; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; - int32_t m_FlagCount; - bool m_FlagCountIsSet; + boost::optional m_FlagCount; - utility::string_t m_Domain; - bool m_DomainIsSet; + boost::optional m_Domain; utility::string_t m_Url; bool m_UrlIsSet; - utility::string_t m_PageTitle; - bool m_PageTitleIsSet; + boost::optional m_PageTitle; - utility::datetime m_ExpireAt; - bool m_ExpireAtIsSet; + boost::optional m_ExpireAt; bool m_Reviewed; bool m_ReviewedIsSet; @@ -369,14 +352,12 @@ class PubSubCommentBase bool m_Approved; bool m_ApprovedIsSet; - utility::string_t m_Locale; - bool m_LocaleIsSet; + boost::optional m_Locale; bool m_IsBannedUser; bool m_IsBannedUserIsSet; - std::vector m_GroupIds; - bool m_GroupIdsIsSet; + boost::optional> m_GroupIds; }; diff --git a/client/include/FastCommentsClient/model/PubSubVote.h b/client/include/FastCommentsClient/model/PubSubVote.h index 5c60b21..aa7a140 100644 --- a/client/include/FastCommentsClient/model/PubSubVote.h +++ b/client/include/FastCommentsClient/model/PubSubVote.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PubSubVote_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PubSubVote_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -115,8 +116,7 @@ class PubSubVote utility::string_t m_CommentId; bool m_CommentIdIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; int32_t m_Direction; bool m_DirectionIsSet; @@ -124,8 +124,7 @@ class PubSubVote int64_t m_CreatedAt; bool m_CreatedAtIsSet; - utility::string_t m_VerificationId; - bool m_VerificationIdIsSet; + boost::optional m_VerificationId; }; diff --git a/client/include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h b/client/include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h index 8f0fe59..f6e6d5b 100644 --- a/client/include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h +++ b/client/include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicAPIDeleteCommentResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h b/client/include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h index 4da9434..1bdee2e 100644 --- a/client/include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h +++ b/client/include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicAPIGetCommentTextResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h b/client/include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h index 6386a80..84cad15 100644 --- a/client/include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h +++ b/client/include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicAPISetCommentTextResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PublicBlockFromCommentParams.h b/client/include/FastCommentsClient/model/PublicBlockFromCommentParams.h index 009293a..da6f055 100644 --- a/client/include/FastCommentsClient/model/PublicBlockFromCommentParams.h +++ b/client/include/FastCommentsClient/model/PublicBlockFromCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PublicBlockFromCommentParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicBlockFromCommentParams_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -64,8 +65,7 @@ class PublicBlockFromCommentParams protected: - std::vector m_CommentIds; - bool m_CommentIdsIsSet; + boost::optional> m_CommentIds; }; diff --git a/client/include/FastCommentsClient/model/PublicComment.h b/client/include/FastCommentsClient/model/PublicComment.h index d97fd57..a64adc3 100644 --- a/client/include/FastCommentsClient/model/PublicComment.h +++ b/client/include/FastCommentsClient/model/PublicComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PublicComment_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicComment_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -266,38 +267,30 @@ class PublicComment utility::string_t m__id; bool m__idIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - utility::string_t m_CommenterLink; - bool m_CommenterLinkIsSet; + boost::optional m_CommenterLink; utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; - utility::string_t m_ParentId; - bool m_ParentIdIsSet; + boost::optional m_ParentId; - utility::datetime m_date; - bool m_dateIsSet; + boost::optional m_date; - int32_t m_Votes; - bool m_VotesIsSet; + boost::optional m_Votes; - int32_t m_VotesUp; - bool m_VotesUpIsSet; + boost::optional m_VotesUp; - int32_t m_VotesDown; - bool m_VotesDownIsSet; + boost::optional m_VotesDown; bool m_Verified; bool m_VerifiedIsSet; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; bool m_HasImages; bool m_HasImagesIsSet; @@ -308,23 +301,17 @@ class PublicComment bool m_IsByModerator; bool m_IsByModeratorIsSet; - bool m_IsPinned; - bool m_IsPinnedIsSet; + boost::optional m_IsPinned; - bool m_IsLocked; - bool m_IsLockedIsSet; + boost::optional m_IsLocked; - utility::string_t m_DisplayLabel; - bool m_DisplayLabelIsSet; + boost::optional m_DisplayLabel; - double m_Rating; - bool m_RatingIsSet; + boost::optional m_Rating; - std::vector> m_Badges; - bool m_BadgesIsSet; + boost::optional>> m_Badges; - int64_t m_ViewCount; - bool m_ViewCountIsSet; + boost::optional m_ViewCount; bool m_IsDeleted; bool m_IsDeletedIsSet; @@ -335,8 +322,7 @@ class PublicComment bool m_IsSpam; bool m_IsSpamIsSet; - utility::string_t m_AnonUserId; - bool m_AnonUserIdIsSet; + boost::optional m_AnonUserId; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; diff --git a/client/include/FastCommentsClient/model/PublicCommentBase.h b/client/include/FastCommentsClient/model/PublicCommentBase.h index c073a70..4f38d05 100644 --- a/client/include/FastCommentsClient/model/PublicCommentBase.h +++ b/client/include/FastCommentsClient/model/PublicCommentBase.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PublicCommentBase_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicCommentBase_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -206,38 +207,30 @@ class PublicCommentBase utility::string_t m__id; bool m__idIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - utility::string_t m_CommenterLink; - bool m_CommenterLinkIsSet; + boost::optional m_CommenterLink; utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; - utility::string_t m_ParentId; - bool m_ParentIdIsSet; + boost::optional m_ParentId; - utility::datetime m_date; - bool m_dateIsSet; + boost::optional m_date; - int32_t m_Votes; - bool m_VotesIsSet; + boost::optional m_Votes; - int32_t m_VotesUp; - bool m_VotesUpIsSet; + boost::optional m_VotesUp; - int32_t m_VotesDown; - bool m_VotesDownIsSet; + boost::optional m_VotesDown; bool m_Verified; bool m_VerifiedIsSet; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; bool m_HasImages; bool m_HasImagesIsSet; @@ -248,23 +241,17 @@ class PublicCommentBase bool m_IsByModerator; bool m_IsByModeratorIsSet; - bool m_IsPinned; - bool m_IsPinnedIsSet; + boost::optional m_IsPinned; - bool m_IsLocked; - bool m_IsLockedIsSet; + boost::optional m_IsLocked; - utility::string_t m_DisplayLabel; - bool m_DisplayLabelIsSet; + boost::optional m_DisplayLabel; - double m_Rating; - bool m_RatingIsSet; + boost::optional m_Rating; - std::vector> m_Badges; - bool m_BadgesIsSet; + boost::optional>> m_Badges; - int64_t m_ViewCount; - bool m_ViewCountIsSet; + boost::optional m_ViewCount; bool m_IsDeleted; bool m_IsDeletedIsSet; @@ -275,8 +262,7 @@ class PublicCommentBase bool m_IsSpam; bool m_IsSpamIsSet; - utility::string_t m_AnonUserId; - bool m_AnonUserIdIsSet; + boost::optional m_AnonUserId; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; diff --git a/client/include/FastCommentsClient/model/PublicFeedPostsResponse.h b/client/include/FastCommentsClient/model/PublicFeedPostsResponse.h index c2a624a..d641e87 100644 --- a/client/include/FastCommentsClient/model/PublicFeedPostsResponse.h +++ b/client/include/FastCommentsClient/model/PublicFeedPostsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicFeedPostsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -104,8 +105,7 @@ class PublicFeedPostsResponse std::vector> m_FeedPosts; bool m_FeedPostsIsSet; - std::shared_ptr m_User; - bool m_UserIsSet; + boost::optional> m_User; utility::string_t m_UrlIdWS; bool m_UrlIdWSIsSet; diff --git a/client/include/FastCommentsClient/model/PublicPage.h b/client/include/FastCommentsClient/model/PublicPage.h index 0a70f46..2385792 100644 --- a/client/include/FastCommentsClient/model/PublicPage.h +++ b/client/include/FastCommentsClient/model/PublicPage.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PublicPage_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicPage_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PublicVote.h b/client/include/FastCommentsClient/model/PublicVote.h index 71ff140..5cc4f1b 100644 --- a/client/include/FastCommentsClient/model/PublicVote.h +++ b/client/include/FastCommentsClient/model/PublicVote.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PublicVote_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PublicVote_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/PutDomainConfigResponse.h b/client/include/FastCommentsClient/model/PutDomainConfigResponse.h index a86d544..9f55c89 100644 --- a/client/include/FastCommentsClient/model/PutDomainConfigResponse.h +++ b/client/include/FastCommentsClient/model/PutDomainConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PutDomainConfigResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PutDomainConfigResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -78,11 +79,9 @@ class PutDomainConfigResponse protected: - std::shared_ptr m_Configuration; - bool m_ConfigurationIsSet; + boost::optional> m_Configuration; - std::shared_ptr m_Status; - bool m_StatusIsSet; + boost::optional> m_Status; utility::string_t m_Reason; bool m_ReasonIsSet; diff --git a/client/include/FastCommentsClient/model/PutSSOUserAPIResponse.h b/client/include/FastCommentsClient/model/PutSSOUserAPIResponse.h index 238b1f6..cddcac8 100644 --- a/client/include/FastCommentsClient/model/PutSSOUserAPIResponse.h +++ b/client/include/FastCommentsClient/model/PutSSOUserAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PutSSOUserAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PutSSOUserAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -83,8 +84,7 @@ class PutSSOUserAPIResponse utility::string_t m_Code; bool m_CodeIsSet; - std::shared_ptr m_User; - bool m_UserIsSet; + boost::optional> m_User; utility::string_t m_Status; bool m_StatusIsSet; diff --git a/client/include/FastCommentsClient/model/QueryPredicate.h b/client/include/FastCommentsClient/model/QueryPredicate.h index 8403f61..6fb5d30 100644 --- a/client/include/FastCommentsClient/model/QueryPredicate.h +++ b/client/include/FastCommentsClient/model/QueryPredicate.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QueryPredicate_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QueryPredicate_value.h b/client/include/FastCommentsClient/model/QueryPredicate_value.h index 43454f5..e4330c7 100644 --- a/client/include/FastCommentsClient/model/QueryPredicate_value.h +++ b/client/include/FastCommentsClient/model/QueryPredicate_value.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QueryPredicate_value_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QueryPredicate_value_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionConfig.h b/client/include/FastCommentsClient/model/QuestionConfig.h index 4b2da60..4a409d7 100644 --- a/client/include/FastCommentsClient/model/QuestionConfig.h +++ b/client/include/FastCommentsClient/model/QuestionConfig.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionConfig_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionConfig_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionConfig_customOptions_inner.h b/client/include/FastCommentsClient/model/QuestionConfig_customOptions_inner.h index ffafd49..5569149 100644 --- a/client/include/FastCommentsClient/model/QuestionConfig_customOptions_inner.h +++ b/client/include/FastCommentsClient/model/QuestionConfig_customOptions_inner.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionConfig_customOptions_inner_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionConfig_customOptions_inner_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionDatum.h b/client/include/FastCommentsClient/model/QuestionDatum.h index 8aaeba3..5e5f90c 100644 --- a/client/include/FastCommentsClient/model/QuestionDatum.h +++ b/client/include/FastCommentsClient/model/QuestionDatum.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionDatum_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionDatum_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionRenderingType.h b/client/include/FastCommentsClient/model/QuestionRenderingType.h index 149e7a3..fca8175 100644 --- a/client/include/FastCommentsClient/model/QuestionRenderingType.h +++ b/client/include/FastCommentsClient/model/QuestionRenderingType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionRenderingType_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionRenderingType_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionResult.h b/client/include/FastCommentsClient/model/QuestionResult.h index 5f668dd..bd8cd90 100644 --- a/client/include/FastCommentsClient/model/QuestionResult.h +++ b/client/include/FastCommentsClient/model/QuestionResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionResult_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionResult_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -134,14 +135,12 @@ class QuestionResult int32_t m_Value; bool m_ValueIsSet; - utility::string_t m_CommentId; - bool m_CommentIdIsSet; + boost::optional m_CommentId; utility::string_t m_QuestionId; bool m_QuestionIdIsSet; - std::vector> m_Meta; - bool m_MetaIsSet; + boost::optional>> m_Meta; utility::string_t m_IpHash; bool m_IpHashIsSet; diff --git a/client/include/FastCommentsClient/model/QuestionResultAggregationOverall.h b/client/include/FastCommentsClient/model/QuestionResultAggregationOverall.h index e38263e..64e01b2 100644 --- a/client/include/FastCommentsClient/model/QuestionResultAggregationOverall.h +++ b/client/include/FastCommentsClient/model/QuestionResultAggregationOverall.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionResultAggregationOverall_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionResultAggregationOverall_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionSubQuestionVisibility.h b/client/include/FastCommentsClient/model/QuestionSubQuestionVisibility.h index 054c345..9ce959f 100644 --- a/client/include/FastCommentsClient/model/QuestionSubQuestionVisibility.h +++ b/client/include/FastCommentsClient/model/QuestionSubQuestionVisibility.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionSubQuestionVisibility_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionSubQuestionVisibility_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/QuestionWhenSave.h b/client/include/FastCommentsClient/model/QuestionWhenSave.h index b73559b..02f3cc1 100644 --- a/client/include/FastCommentsClient/model/QuestionWhenSave.h +++ b/client/include/FastCommentsClient/model/QuestionWhenSave.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionWhenSave_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_QuestionWhenSave_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ReactBodyParams.h b/client/include/FastCommentsClient/model/ReactBodyParams.h index 3f0d4da..077145e 100644 --- a/client/include/FastCommentsClient/model/ReactBodyParams.h +++ b/client/include/FastCommentsClient/model/ReactBodyParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ReactBodyParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ReactBodyParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ReactFeedPostResponse.h b/client/include/FastCommentsClient/model/ReactFeedPostResponse.h index 6a5681c..185c499 100644 --- a/client/include/FastCommentsClient/model/ReactFeedPostResponse.h +++ b/client/include/FastCommentsClient/model/ReactFeedPostResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ReactFeedPostResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h b/client/include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h index 2f0f1c1..591bcc0 100644 --- a/client/include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h +++ b/client/include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_Record_string__before_string_or_null__after_string_or_null___value_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_Record_string__before_string_or_null__after_string_or_null___value_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -65,11 +66,9 @@ class Record_string__before_string_or_null__after_string_or_null___value protected: - utility::string_t m_After; - bool m_AfterIsSet; + boost::optional m_After; - utility::string_t m_Before; - bool m_BeforeIsSet; + boost::optional m_Before; }; diff --git a/client/include/FastCommentsClient/model/RemoveCommentActionResponse.h b/client/include/FastCommentsClient/model/RemoveCommentActionResponse.h index 1b05a3b..85a475d 100644 --- a/client/include/FastCommentsClient/model/RemoveCommentActionResponse.h +++ b/client/include/FastCommentsClient/model/RemoveCommentActionResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_RemoveCommentActionResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_RemoveCommentActionResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/RemoveUserBadgeResponse.h b/client/include/FastCommentsClient/model/RemoveUserBadgeResponse.h index 68eabf3..0aa03d2 100644 --- a/client/include/FastCommentsClient/model/RemoveUserBadgeResponse.h +++ b/client/include/FastCommentsClient/model/RemoveUserBadgeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_RemoveUserBadgeResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/RenderEmailTemplateBody.h b/client/include/FastCommentsClient/model/RenderEmailTemplateBody.h index 432c2e2..7d99f5e 100644 --- a/client/include/FastCommentsClient/model/RenderEmailTemplateBody.h +++ b/client/include/FastCommentsClient/model/RenderEmailTemplateBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplateBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplateBody_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -76,10 +77,10 @@ class RenderEmailTemplateBody /// /// Construct a type with a set of properties K of type T /// - std::map getTranslationOverridesByLocale() const; + std::map> getTranslationOverridesByLocale() const; bool translationOverridesByLocaleIsSet() const; void unsetTranslationOverridesByLocale(); - void setTranslationOverridesByLocale(const std::map& value); + void setTranslationOverridesByLocale(const std::map>& value); protected: @@ -92,7 +93,7 @@ class RenderEmailTemplateBody std::map> m_TestData; bool m_TestDataIsSet; - std::map m_TranslationOverridesByLocale; + std::map> m_TranslationOverridesByLocale; bool m_TranslationOverridesByLocaleIsSet; }; diff --git a/client/include/FastCommentsClient/model/RenderEmailTemplateResponse.h b/client/include/FastCommentsClient/model/RenderEmailTemplateResponse.h index bda5738..44e4407 100644 --- a/client/include/FastCommentsClient/model/RenderEmailTemplateResponse.h +++ b/client/include/FastCommentsClient/model/RenderEmailTemplateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplateResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/RenderableUserNotification.h b/client/include/FastCommentsClient/model/RenderableUserNotification.h index 8062e67..9ff6aac 100644 --- a/client/include/FastCommentsClient/model/RenderableUserNotification.h +++ b/client/include/FastCommentsClient/model/RenderableUserNotification.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_RenderableUserNotification_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -185,17 +186,13 @@ class RenderableUserNotification bool m_OptedOut; bool m_OptedOutIsSet; - utility::string_t m_FromUserAvatarSrc; - bool m_FromUserAvatarSrcIsSet; + boost::optional m_FromUserAvatarSrc; - utility::string_t m_FromUserId; - bool m_FromUserIdIsSet; + boost::optional m_FromUserId; - utility::string_t m_FromUserName; - bool m_FromUserNameIsSet; + boost::optional m_FromUserName; - utility::string_t m_FromCommentId; - bool m_FromCommentIdIsSet; + boost::optional m_FromCommentId; std::shared_ptr m_Type; bool m_TypeIsSet; @@ -215,8 +212,7 @@ class RenderableUserNotification std::shared_ptr m_RelatedObjectType; bool m_RelatedObjectTypeIsSet; - utility::string_t m_PageTitle; - bool m_PageTitleIsSet; + boost::optional m_PageTitle; utility::string_t m_Url; bool m_UrlIsSet; diff --git a/client/include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h b/client/include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h index e71edc8..fcc1046 100644 --- a/client/include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h +++ b/client/include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_RepeatCommentCheckIgnoredReason_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_RepeatCommentCheckIgnoredReason_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/RepeatCommentHandlingAction.h b/client/include/FastCommentsClient/model/RepeatCommentHandlingAction.h index 94eade8..8efe1b3 100644 --- a/client/include/FastCommentsClient/model/RepeatCommentHandlingAction.h +++ b/client/include/FastCommentsClient/model/RepeatCommentHandlingAction.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_RepeatCommentHandlingAction_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_RepeatCommentHandlingAction_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ReplaceTenantPackageBody.h b/client/include/FastCommentsClient/model/ReplaceTenantPackageBody.h index 4d49f63..51ce490 100644 --- a/client/include/FastCommentsClient/model/ReplaceTenantPackageBody.h +++ b/client/include/FastCommentsClient/model/ReplaceTenantPackageBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantPackageBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantPackageBody_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ReplaceTenantUserBody.h b/client/include/FastCommentsClient/model/ReplaceTenantUserBody.h index 30db8b7..6dabe6c 100644 --- a/client/include/FastCommentsClient/model/ReplaceTenantUserBody.h +++ b/client/include/FastCommentsClient/model/ReplaceTenantUserBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantUserBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantUserBody_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/ResetUserNotificationsResponse.h b/client/include/FastCommentsClient/model/ResetUserNotificationsResponse.h index 1d407ca..718c0f8 100644 --- a/client/include/FastCommentsClient/model/ResetUserNotificationsResponse.h +++ b/client/include/FastCommentsClient/model/ResetUserNotificationsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SORT_DIR.h b/client/include/FastCommentsClient/model/SORT_DIR.h index d694a5c..db1cdf1 100644 --- a/client/include/FastCommentsClient/model/SORT_DIR.h +++ b/client/include/FastCommentsClient/model/SORT_DIR.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SORT_DIR_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SORT_DIR_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SSOSecurityLevel.h b/client/include/FastCommentsClient/model/SSOSecurityLevel.h index 044eb19..451665b 100644 --- a/client/include/FastCommentsClient/model/SSOSecurityLevel.h +++ b/client/include/FastCommentsClient/model/SSOSecurityLevel.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SSOSecurityLevel_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SSOSecurityLevel_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SaveCommentResponseOptimized.h b/client/include/FastCommentsClient/model/SaveCommentResponseOptimized.h index 1d69a79..93b0778 100644 --- a/client/include/FastCommentsClient/model/SaveCommentResponseOptimized.h +++ b/client/include/FastCommentsClient/model/SaveCommentResponseOptimized.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentResponseOptimized_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -91,8 +92,7 @@ class SaveCommentResponseOptimized std::shared_ptr m_Comment; bool m_CommentIsSet; - std::shared_ptr m_User; - bool m_UserIsSet; + boost::optional> m_User; std::map> m_ModuleData; bool m_ModuleDataIsSet; diff --git a/client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h b/client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h index 8609403..e96f0c1 100644 --- a/client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h +++ b/client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentsBulkResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -131,8 +132,7 @@ class SaveCommentsBulkResponse std::shared_ptr m_Comment; bool m_CommentIsSet; - std::shared_ptr m_User; - bool m_UserIsSet; + boost::optional> m_User; std::map> m_ModuleData; bool m_ModuleDataIsSet; diff --git a/client/include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h b/client/include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h index 27090a7..0a929ee 100644 --- a/client/include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h +++ b/client/include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentsResponseWithPresence_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -97,8 +98,7 @@ class SaveCommentsResponseWithPresence std::shared_ptr m_Comment; bool m_CommentIsSet; - std::shared_ptr m_User; - bool m_UserIsSet; + boost::optional> m_User; std::map> m_ModuleData; bool m_ModuleDataIsSet; diff --git a/client/include/FastCommentsClient/model/SearchUsersResponse.h b/client/include/FastCommentsClient/model/SearchUsersResponse.h index f4966de..82e5da0 100644 --- a/client/include/FastCommentsClient/model/SearchUsersResponse.h +++ b/client/include/FastCommentsClient/model/SearchUsersResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SearchUsersResult.h b/client/include/FastCommentsClient/model/SearchUsersResult.h index be08879..66d74a6 100644 --- a/client/include/FastCommentsClient/model/SearchUsersResult.h +++ b/client/include/FastCommentsClient/model/SearchUsersResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersResult_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SearchUsersSectionedResponse.h b/client/include/FastCommentsClient/model/SearchUsersSectionedResponse.h index db63b31..1812236 100644 --- a/client/include/FastCommentsClient/model/SearchUsersSectionedResponse.h +++ b/client/include/FastCommentsClient/model/SearchUsersSectionedResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersSectionedResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SetCommentApprovedResponse.h b/client/include/FastCommentsClient/model/SetCommentApprovedResponse.h index 047a9e9..a31e333 100644 --- a/client/include/FastCommentsClient/model/SetCommentApprovedResponse.h +++ b/client/include/FastCommentsClient/model/SetCommentApprovedResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentApprovedResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SetCommentTextParams.h b/client/include/FastCommentsClient/model/SetCommentTextParams.h index 2c66d46..ddee923 100644 --- a/client/include/FastCommentsClient/model/SetCommentTextParams.h +++ b/client/include/FastCommentsClient/model/SetCommentTextParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SetCommentTextResponse.h b/client/include/FastCommentsClient/model/SetCommentTextResponse.h index 9e18966..46a4e14 100644 --- a/client/include/FastCommentsClient/model/SetCommentTextResponse.h +++ b/client/include/FastCommentsClient/model/SetCommentTextResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SetCommentTextResult.h b/client/include/FastCommentsClient/model/SetCommentTextResult.h index 1ee8b4c..40ad33e 100644 --- a/client/include/FastCommentsClient/model/SetCommentTextResult.h +++ b/client/include/FastCommentsClient/model/SetCommentTextResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResult_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResult_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SetUserTrustFactorResponse.h b/client/include/FastCommentsClient/model/SetUserTrustFactorResponse.h index 32da0e1..9c8f648 100644 --- a/client/include/FastCommentsClient/model/SetUserTrustFactorResponse.h +++ b/client/include/FastCommentsClient/model/SetUserTrustFactorResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SetUserTrustFactorResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SizePreset.h b/client/include/FastCommentsClient/model/SizePreset.h index 809cc10..0d797ab 100644 --- a/client/include/FastCommentsClient/model/SizePreset.h +++ b/client/include/FastCommentsClient/model/SizePreset.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SizePreset_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SizePreset_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SortDirections.h b/client/include/FastCommentsClient/model/SortDirections.h index 8b4a5bd..88f05b9 100644 --- a/client/include/FastCommentsClient/model/SortDirections.h +++ b/client/include/FastCommentsClient/model/SortDirections.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SortDirections_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SortDirections_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/SpamRule.h b/client/include/FastCommentsClient/model/SpamRule.h index adbc694..ed9bb53 100644 --- a/client/include/FastCommentsClient/model/SpamRule.h +++ b/client/include/FastCommentsClient/model/SpamRule.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_SpamRule_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/TOSConfig.h b/client/include/FastCommentsClient/model/TOSConfig.h index 2047554..cea9a50 100644 --- a/client/include/FastCommentsClient/model/TOSConfig.h +++ b/client/include/FastCommentsClient/model/TOSConfig.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_TOSConfig_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_TOSConfig_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/TenantBadge.h b/client/include/FastCommentsClient/model/TenantBadge.h index c592619..63fe2ce 100644 --- a/client/include/FastCommentsClient/model/TenantBadge.h +++ b/client/include/FastCommentsClient/model/TenantBadge.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_TenantBadge_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_TenantBadge_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -175,8 +176,7 @@ class TenantBadge bool m_Enabled; bool m_EnabledIsSet; - utility::string_t m_UrlId; - bool m_UrlIdIsSet; + boost::optional m_UrlId; double m_Type; bool m_TypeIsSet; @@ -196,23 +196,17 @@ class TenantBadge utility::string_t m_DisplayLabel; bool m_DisplayLabelIsSet; - utility::string_t m_DisplaySrc; - bool m_DisplaySrcIsSet; + boost::optional m_DisplaySrc; - utility::string_t m_BackgroundColor; - bool m_BackgroundColorIsSet; + boost::optional m_BackgroundColor; - utility::string_t m_BorderColor; - bool m_BorderColorIsSet; + boost::optional m_BorderColor; - utility::string_t m_TextColor; - bool m_TextColorIsSet; + boost::optional m_TextColor; - utility::string_t m_CssClass; - bool m_CssClassIsSet; + boost::optional m_CssClass; - double m_VeteranUserThresholdMillis; - bool m_VeteranUserThresholdMillisIsSet; + boost::optional m_VeteranUserThresholdMillis; bool m_IsAwaitingReprocess; bool m_IsAwaitingReprocessIsSet; @@ -220,8 +214,7 @@ class TenantBadge bool m_IsAwaitingDeletion; bool m_IsAwaitingDeletionIsSet; - utility::string_t m_ReplacesBadgeId; - bool m_ReplacesBadgeIdIsSet; + boost::optional m_ReplacesBadgeId; }; diff --git a/client/include/FastCommentsClient/model/TenantHashTag.h b/client/include/FastCommentsClient/model/TenantHashTag.h index 2b10c0e..adb6c89 100644 --- a/client/include/FastCommentsClient/model/TenantHashTag.h +++ b/client/include/FastCommentsClient/model/TenantHashTag.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_TenantHashTag_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_TenantHashTag_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/TenantPackage.h b/client/include/FastCommentsClient/model/TenantPackage.h index d182e32..66184c1 100644 --- a/client/include/FastCommentsClient/model/TenantPackage.h +++ b/client/include/FastCommentsClient/model/TenantPackage.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_TenantPackage_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_TenantPackage_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -376,17 +377,13 @@ class TenantPackage utility::string_t m_TemplateId; bool m_TemplateIdIsSet; - double m_MonthlyCostUSD; - bool m_MonthlyCostUSDIsSet; + boost::optional m_MonthlyCostUSD; - double m_YearlyCostUSD; - bool m_YearlyCostUSDIsSet; + boost::optional m_YearlyCostUSD; - utility::string_t m_MonthlyStripePlanId; - bool m_MonthlyStripePlanIdIsSet; + boost::optional m_MonthlyStripePlanId; - utility::string_t m_YearlyStripePlanId; - bool m_YearlyStripePlanIdIsSet; + boost::optional m_YearlyStripePlanId; double m_MaxMonthlyPageLoads; bool m_MaxMonthlyPageLoadsIsSet; diff --git a/client/include/FastCommentsClient/model/UnBlockFromCommentParams.h b/client/include/FastCommentsClient/model/UnBlockFromCommentParams.h index b300581..c28ddce 100644 --- a/client/include/FastCommentsClient/model/UnBlockFromCommentParams.h +++ b/client/include/FastCommentsClient/model/UnBlockFromCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockFromCommentParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockFromCommentParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UnblockSuccess.h b/client/include/FastCommentsClient/model/UnblockSuccess.h index d5d6993..939c6b9 100644 --- a/client/include/FastCommentsClient/model/UnblockSuccess.h +++ b/client/include/FastCommentsClient/model/UnblockSuccess.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UnblockSuccess_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdatableCommentParams.h b/client/include/FastCommentsClient/model/UpdatableCommentParams.h index 7ddf580..65ade18 100644 --- a/client/include/FastCommentsClient/model/UpdatableCommentParams.h +++ b/client/include/FastCommentsClient/model/UpdatableCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdatableCommentParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdatableCommentParams_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -261,20 +262,16 @@ class UpdatableCommentParams utility::string_t m_Url; bool m_UrlIsSet; - utility::string_t m_PageTitle; - bool m_PageTitleIsSet; + boost::optional m_PageTitle; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; - utility::string_t m_CommenterEmail; - bool m_CommenterEmailIsSet; + boost::optional m_CommenterEmail; utility::string_t m_CommenterName; bool m_CommenterNameIsSet; - utility::string_t m_CommenterLink; - bool m_CommenterLinkIsSet; + boost::optional m_CommenterLink; utility::string_t m_Comment; bool m_CommentIsSet; @@ -282,35 +279,26 @@ class UpdatableCommentParams utility::string_t m_CommentHTML; bool m_CommentHTMLIsSet; - utility::string_t m_ParentId; - bool m_ParentIdIsSet; + boost::optional m_ParentId; - double m_date; - bool m_dateIsSet; + boost::optional m_date; - utility::string_t m_LocalDateString; - bool m_LocalDateStringIsSet; + boost::optional m_LocalDateString; - int32_t m_LocalDateHours; - bool m_LocalDateHoursIsSet; + boost::optional m_LocalDateHours; - int32_t m_Votes; - bool m_VotesIsSet; + boost::optional m_Votes; - int32_t m_VotesUp; - bool m_VotesUpIsSet; + boost::optional m_VotesUp; - int32_t m_VotesDown; - bool m_VotesDownIsSet; + boost::optional m_VotesDown; - utility::datetime m_ExpireAt; - bool m_ExpireAtIsSet; + boost::optional m_ExpireAt; bool m_Verified; bool m_VerifiedIsSet; - utility::datetime m_VerifiedDate; - bool m_VerifiedDateIsSet; + boost::optional m_VerifiedDate; bool m_NotificationSentForParent; bool m_NotificationSentForParentIsSet; @@ -324,11 +312,9 @@ class UpdatableCommentParams utility::string_t m_ExternalId; bool m_ExternalIdIsSet; - utility::string_t m_ExternalParentId; - bool m_ExternalParentIdIsSet; + boost::optional m_ExternalParentId; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; bool m_IsSpam; bool m_IsSpamIsSet; @@ -348,23 +334,17 @@ class UpdatableCommentParams bool m_IsByModerator; bool m_IsByModeratorIsSet; - bool m_IsPinned; - bool m_IsPinnedIsSet; + boost::optional m_IsPinned; - bool m_IsLocked; - bool m_IsLockedIsSet; + boost::optional m_IsLocked; - int32_t m_FlagCount; - bool m_FlagCountIsSet; + boost::optional m_FlagCount; - utility::string_t m_DisplayLabel; - bool m_DisplayLabelIsSet; + boost::optional m_DisplayLabel; - std::shared_ptr m_Meta; - bool m_MetaIsSet; + boost::optional> m_Meta; - std::vector m_ModerationGroupIds; - bool m_ModerationGroupIdsIsSet; + boost::optional> m_ModerationGroupIds; std::vector m_FeedbackIds; bool m_FeedbackIdsIsSet; diff --git a/client/include/FastCommentsClient/model/UpdateAPIPageData.h b/client/include/FastCommentsClient/model/UpdateAPIPageData.h index 1fc936d..c76b5c6 100644 --- a/client/include/FastCommentsClient/model/UpdateAPIPageData.h +++ b/client/include/FastCommentsClient/model/UpdateAPIPageData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateAPIPageData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateAPIPageData_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateAPISSOUserData.h b/client/include/FastCommentsClient/model/UpdateAPISSOUserData.h index 014510b..d2ab9b7 100644 --- a/client/include/FastCommentsClient/model/UpdateAPISSOUserData.h +++ b/client/include/FastCommentsClient/model/UpdateAPISSOUserData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateAPISSOUserData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateAPISSOUserData_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateAPIUserSubscriptionData.h b/client/include/FastCommentsClient/model/UpdateAPIUserSubscriptionData.h index 32fb924..c39c0ab 100644 --- a/client/include/FastCommentsClient/model/UpdateAPIUserSubscriptionData.h +++ b/client/include/FastCommentsClient/model/UpdateAPIUserSubscriptionData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateAPIUserSubscriptionData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateAPIUserSubscriptionData_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateDomainConfigParams.h b/client/include/FastCommentsClient/model/UpdateDomainConfigParams.h index b3b8fcf..83fcfba 100644 --- a/client/include/FastCommentsClient/model/UpdateDomainConfigParams.h +++ b/client/include/FastCommentsClient/model/UpdateDomainConfigParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateDomainConfigParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateDomainConfigParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateEmailTemplateBody.h b/client/include/FastCommentsClient/model/UpdateEmailTemplateBody.h index fab7e4b..4391190 100644 --- a/client/include/FastCommentsClient/model/UpdateEmailTemplateBody.h +++ b/client/include/FastCommentsClient/model/UpdateEmailTemplateBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateEmailTemplateBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateEmailTemplateBody_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -78,10 +79,10 @@ class UpdateEmailTemplateBody /// /// Construct a type with a set of properties K of type T /// - std::map getTranslationOverridesByLocale() const; + std::map> getTranslationOverridesByLocale() const; bool translationOverridesByLocaleIsSet() const; void unsetTranslationOverridesByLocale(); - void setTranslationOverridesByLocale(const std::map& value); + void setTranslationOverridesByLocale(const std::map>& value); /// /// Construct a type with a set of properties K of type T @@ -105,7 +106,7 @@ class UpdateEmailTemplateBody utility::string_t m_Domain; bool m_DomainIsSet; - std::map m_TranslationOverridesByLocale; + std::map> m_TranslationOverridesByLocale; bool m_TranslationOverridesByLocaleIsSet; std::map> m_TestData; diff --git a/client/include/FastCommentsClient/model/UpdateFeedPostParams.h b/client/include/FastCommentsClient/model/UpdateFeedPostParams.h index 28e62f8..d5206cb 100644 --- a/client/include/FastCommentsClient/model/UpdateFeedPostParams.h +++ b/client/include/FastCommentsClient/model/UpdateFeedPostParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateHashTagBody.h b/client/include/FastCommentsClient/model/UpdateHashTagBody.h index 0b507de..ce674dd 100644 --- a/client/include/FastCommentsClient/model/UpdateHashTagBody.h +++ b/client/include/FastCommentsClient/model/UpdateHashTagBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateHashTagBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateHashTagBody_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateHashTagResponse.h b/client/include/FastCommentsClient/model/UpdateHashTagResponse.h index 75194ad..2119a2f 100644 --- a/client/include/FastCommentsClient/model/UpdateHashTagResponse.h +++ b/client/include/FastCommentsClient/model/UpdateHashTagResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateHashTagResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateModeratorBody.h b/client/include/FastCommentsClient/model/UpdateModeratorBody.h index f2e81de..1401952 100644 --- a/client/include/FastCommentsClient/model/UpdateModeratorBody.h +++ b/client/include/FastCommentsClient/model/UpdateModeratorBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,11 +18,13 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateModeratorBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateModeratorBody_H_ +#include #include "FastCommentsClient/ModelBase.h" #include #include +#include #include #include "FastCommentsClient/AnyType.h" @@ -77,6 +79,21 @@ class UpdateModeratorBody void setModerationGroupIds(const std::vector& value); + /// + /// Get additional properties (properties not defined in the schema) + /// + std::map getAdditionalProperties() const; + bool additionalPropertiesIsSet() const; + void unsetAdditionalProperties(); + /// + /// Set additional properties + /// + void setAdditionalProperties(const std::map& value); + /// + /// Add a single additional property + /// + void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); + protected: utility::string_t m_Name; bool m_NameIsSet; @@ -90,6 +107,8 @@ class UpdateModeratorBody std::vector m_ModerationGroupIds; bool m_ModerationGroupIdsIsSet; + std::map m_AdditionalProperties; + bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/UpdateNotificationBody.h b/client/include/FastCommentsClient/model/UpdateNotificationBody.h index 57c15ee..22cf17a 100644 --- a/client/include/FastCommentsClient/model/UpdateNotificationBody.h +++ b/client/include/FastCommentsClient/model/UpdateNotificationBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,10 +18,12 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateNotificationBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateNotificationBody_H_ +#include #include "FastCommentsClient/ModelBase.h" #include +#include #include "FastCommentsClient/AnyType.h" namespace org { @@ -65,6 +67,21 @@ class UpdateNotificationBody void setOptedOut(bool value); + /// + /// Get additional properties (properties not defined in the schema) + /// + std::map getAdditionalProperties() const; + bool additionalPropertiesIsSet() const; + void unsetAdditionalProperties(); + /// + /// Set additional properties + /// + void setAdditionalProperties(const std::map& value); + /// + /// Add a single additional property + /// + void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); + protected: bool m_Viewed; bool m_ViewedIsSet; @@ -72,6 +89,8 @@ class UpdateNotificationBody bool m_OptedOut; bool m_OptedOutIsSet; + std::map m_AdditionalProperties; + bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/UpdateQuestionConfigBody.h b/client/include/FastCommentsClient/model/UpdateQuestionConfigBody.h index bf892c3..23710f5 100644 --- a/client/include/FastCommentsClient/model/UpdateQuestionConfigBody.h +++ b/client/include/FastCommentsClient/model/UpdateQuestionConfigBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,12 +18,14 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionConfigBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionConfigBody_H_ +#include #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/QuestionConfig_customOptions_inner.h" #include #include +#include #include #include "FastCommentsClient/AnyType.h" @@ -129,6 +131,21 @@ class UpdateQuestionConfigBody void setReportingOrder(double value); + /// + /// Get additional properties (properties not defined in the schema) + /// + std::map getAdditionalProperties() const; + bool additionalPropertiesIsSet() const; + void unsetAdditionalProperties(); + /// + /// Set additional properties + /// + void setAdditionalProperties(const std::map& value); + /// + /// Add a single additional property + /// + void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); + protected: utility::string_t m_Name; bool m_NameIsSet; @@ -172,6 +189,8 @@ class UpdateQuestionConfigBody double m_ReportingOrder; bool m_ReportingOrderIsSet; + std::map m_AdditionalProperties; + bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/UpdateQuestionResultBody.h b/client/include/FastCommentsClient/model/UpdateQuestionResultBody.h index b9fda3e..2791bbe 100644 --- a/client/include/FastCommentsClient/model/UpdateQuestionResultBody.h +++ b/client/include/FastCommentsClient/model/UpdateQuestionResultBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,11 +18,13 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionResultBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionResultBody_H_ +#include #include "FastCommentsClient/ModelBase.h" #include #include +#include #include #include "FastCommentsClient/AnyType.h" #include "FastCommentsClient/model/MetaItem.h" @@ -94,6 +96,21 @@ class UpdateQuestionResultBody void setMeta(const std::vector>& value); + /// + /// Get additional properties (properties not defined in the schema) + /// + std::map getAdditionalProperties() const; + bool additionalPropertiesIsSet() const; + void unsetAdditionalProperties(); + /// + /// Set additional properties + /// + void setAdditionalProperties(const std::map& value); + /// + /// Add a single additional property + /// + void addAdditionalProperty(const utility::string_t& key, const web::json::value& value); + protected: utility::string_t m_UrlId; bool m_UrlIdIsSet; @@ -113,9 +130,10 @@ class UpdateQuestionResultBody utility::string_t m_QuestionId; bool m_QuestionIdIsSet; - std::vector> m_Meta; - bool m_MetaIsSet; + boost::optional>> m_Meta; + std::map m_AdditionalProperties; + bool m_AdditionalPropertiesIsSet; }; diff --git a/client/include/FastCommentsClient/model/UpdateSubscriptionAPIResponse.h b/client/include/FastCommentsClient/model/UpdateSubscriptionAPIResponse.h index 244c9bc..cc3f1a4 100644 --- a/client/include/FastCommentsClient/model/UpdateSubscriptionAPIResponse.h +++ b/client/include/FastCommentsClient/model/UpdateSubscriptionAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateSubscriptionAPIResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateSubscriptionAPIResponse_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateTenantBody.h b/client/include/FastCommentsClient/model/UpdateTenantBody.h index 1841ca4..aee02ad 100644 --- a/client/include/FastCommentsClient/model/UpdateTenantBody.h +++ b/client/include/FastCommentsClient/model/UpdateTenantBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantBody_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateTenantPackageBody.h b/client/include/FastCommentsClient/model/UpdateTenantPackageBody.h index 44fa379..be4869e 100644 --- a/client/include/FastCommentsClient/model/UpdateTenantPackageBody.h +++ b/client/include/FastCommentsClient/model/UpdateTenantPackageBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantPackageBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantPackageBody_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateTenantUserBody.h b/client/include/FastCommentsClient/model/UpdateTenantUserBody.h index a4801e9..82f1cab 100644 --- a/client/include/FastCommentsClient/model/UpdateTenantUserBody.h +++ b/client/include/FastCommentsClient/model/UpdateTenantUserBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantUserBody_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantUserBody_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateUserBadgeParams.h b/client/include/FastCommentsClient/model/UpdateUserBadgeParams.h index e55c9dc..df32c1a 100644 --- a/client/include/FastCommentsClient/model/UpdateUserBadgeParams.h +++ b/client/include/FastCommentsClient/model/UpdateUserBadgeParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserBadgeParams_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserBadgeParams_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h index 09cfddb..ce298d9 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationCommentSubscriptionStatusResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h index 7544f85..46d52b5 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationPageSubscriptionStatusResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h index 30cf644..51524b4 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserNotificationStatusResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UploadImageResponse.h b/client/include/FastCommentsClient/model/UploadImageResponse.h index 384aa84..633e51a 100644 --- a/client/include/FastCommentsClient/model/UploadImageResponse.h +++ b/client/include/FastCommentsClient/model/UploadImageResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UploadImageResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/User.h b/client/include/FastCommentsClient/model/User.h index 1dfc819..e5240c6 100644 --- a/client/include/FastCommentsClient/model/User.h +++ b/client/include/FastCommentsClient/model/User.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_User_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -362,8 +363,7 @@ class User utility::string_t m__id; bool m__idIsSet; - utility::string_t m_TenantId; - bool m_TenantIdIsSet; + boost::optional m_TenantId; utility::string_t m_Username; bool m_UsernameIsSet; @@ -371,11 +371,9 @@ class User utility::string_t m_DisplayName; bool m_DisplayNameIsSet; - utility::string_t m_WebsiteUrl; - bool m_WebsiteUrlIsSet; + boost::optional m_WebsiteUrl; - utility::string_t m_Email; - bool m_EmailIsSet; + boost::optional m_Email; utility::string_t m_PendingEmail; bool m_PendingEmailIsSet; @@ -389,11 +387,9 @@ class User int64_t m_SignUpDate; bool m_SignUpDateIsSet; - utility::string_t m_CreatedFromUrlId; - bool m_CreatedFromUrlIdIsSet; + boost::optional m_CreatedFromUrlId; - utility::string_t m_CreatedFromTenantId; - bool m_CreatedFromTenantIdIsSet; + boost::optional m_CreatedFromTenantId; utility::string_t m_CreatedFromIpHashed; bool m_CreatedFromIpHashedIsSet; @@ -419,8 +415,7 @@ class User bool m_HideAccountCode; bool m_HideAccountCodeIsSet; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; bool m_IsFastCommentsHelpRequestAdmin; bool m_IsFastCommentsHelpRequestAdminIsSet; @@ -512,8 +507,7 @@ class User utility::string_t m_PasswordHash; bool m_PasswordHashIsSet; - double m_AverageTicketAckTimeMS; - bool m_AverageTicketAckTimeMSIsSet; + boost::optional m_AverageTicketAckTimeMS; bool m_HasBlockedUsers; bool m_HasBlockedUsersIsSet; diff --git a/client/include/FastCommentsClient/model/UserBadge.h b/client/include/FastCommentsClient/model/UserBadge.h index 8e8f22e..be0d96a 100644 --- a/client/include/FastCommentsClient/model/UserBadge.h +++ b/client/include/FastCommentsClient/model/UserBadge.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UserBadge_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserBadge_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -177,20 +178,15 @@ class UserBadge utility::string_t m_DisplayLabel; bool m_DisplayLabelIsSet; - utility::string_t m_DisplaySrc; - bool m_DisplaySrcIsSet; + boost::optional m_DisplaySrc; - utility::string_t m_BackgroundColor; - bool m_BackgroundColorIsSet; + boost::optional m_BackgroundColor; - utility::string_t m_BorderColor; - bool m_BorderColorIsSet; + boost::optional m_BorderColor; - utility::string_t m_TextColor; - bool m_TextColorIsSet; + boost::optional m_TextColor; - utility::string_t m_CssClass; - bool m_CssClassIsSet; + boost::optional m_CssClass; int64_t m_VeteranUserThresholdMillis; bool m_VeteranUserThresholdMillisIsSet; @@ -204,8 +200,7 @@ class UserBadge int32_t m_Order; bool m_OrderIsSet; - utility::string_t m_UrlId; - bool m_UrlIdIsSet; + boost::optional m_UrlId; }; diff --git a/client/include/FastCommentsClient/model/UserBadgeProgress.h b/client/include/FastCommentsClient/model/UserBadgeProgress.h index 38e0fea..3a463a4 100644 --- a/client/include/FastCommentsClient/model/UserBadgeProgress.h +++ b/client/include/FastCommentsClient/model/UserBadgeProgress.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UserBadgeProgress_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserBadgeProgress_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserNotification.h b/client/include/FastCommentsClient/model/UserNotification.h index 6f619a9..5f018f2 100644 --- a/client/include/FastCommentsClient/model/UserNotification.h +++ b/client/include/FastCommentsClient/model/UserNotification.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserNotification_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -185,11 +186,9 @@ class UserNotification utility::string_t m_TenantId; bool m_TenantIdIsSet; - utility::string_t m_UserId; - bool m_UserIdIsSet; + boost::optional m_UserId; - utility::string_t m_AnonUserId; - bool m_AnonUserIdIsSet; + boost::optional m_AnonUserId; utility::string_t m_UrlId; bool m_UrlIdIsSet; @@ -197,8 +196,7 @@ class UserNotification utility::string_t m_Url; bool m_UrlIsSet; - utility::string_t m_PageTitle; - bool m_PageTitleIsSet; + boost::optional m_PageTitle; std::shared_ptr m_RelatedObjectType; bool m_RelatedObjectTypeIsSet; @@ -221,20 +219,15 @@ class UserNotification std::shared_ptr m_Type; bool m_TypeIsSet; - utility::string_t m_FromCommentId; - bool m_FromCommentIdIsSet; + boost::optional m_FromCommentId; - utility::string_t m_FromVoteId; - bool m_FromVoteIdIsSet; + boost::optional m_FromVoteId; - utility::string_t m_FromUserName; - bool m_FromUserNameIsSet; + boost::optional m_FromUserName; - utility::string_t m_FromUserId; - bool m_FromUserIdIsSet; + boost::optional m_FromUserId; - utility::string_t m_FromUserAvatarSrc; - bool m_FromUserAvatarSrcIsSet; + boost::optional m_FromUserAvatarSrc; bool m_OptedOut; bool m_OptedOutIsSet; diff --git a/client/include/FastCommentsClient/model/UserNotificationCount.h b/client/include/FastCommentsClient/model/UserNotificationCount.h index 2b64c29..dce4c05 100644 --- a/client/include/FastCommentsClient/model/UserNotificationCount.h +++ b/client/include/FastCommentsClient/model/UserNotificationCount.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UserNotificationCount_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserNotificationCount_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserNotificationWriteResponse.h b/client/include/FastCommentsClient/model/UserNotificationWriteResponse.h index a882fc1..45b03dc 100644 --- a/client/include/FastCommentsClient/model/UserNotificationWriteResponse.h +++ b/client/include/FastCommentsClient/model/UserNotificationWriteResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserNotificationWriteResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserPresenceData.h b/client/include/FastCommentsClient/model/UserPresenceData.h index 508214b..5c6a78b 100644 --- a/client/include/FastCommentsClient/model/UserPresenceData.h +++ b/client/include/FastCommentsClient/model/UserPresenceData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UserPresenceData_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserPresenceData_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserReactsResponse.h b/client/include/FastCommentsClient/model/UserReactsResponse.h index db80c32..f0ca58a 100644 --- a/client/include/FastCommentsClient/model/UserReactsResponse.h +++ b/client/include/FastCommentsClient/model/UserReactsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserReactsResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserSearchResult.h b/client/include/FastCommentsClient/model/UserSearchResult.h index 554b16e..51a7a78 100644 --- a/client/include/FastCommentsClient/model/UserSearchResult.h +++ b/client/include/FastCommentsClient/model/UserSearchResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserSearchResult_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -99,8 +100,7 @@ class UserSearchResult utility::string_t m_DisplayName; bool m_DisplayNameIsSet; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; TypeEnum m_Type; bool m_TypeIsSet; diff --git a/client/include/FastCommentsClient/model/UserSearchSection.h b/client/include/FastCommentsClient/model/UserSearchSection.h index 0fcb145..b3e1cd2 100644 --- a/client/include/FastCommentsClient/model/UserSearchSection.h +++ b/client/include/FastCommentsClient/model/UserSearchSection.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UserSearchSection_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserSearchSection_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserSearchSectionResult.h b/client/include/FastCommentsClient/model/UserSearchSectionResult.h index 9a9aaef..3c16586 100644 --- a/client/include/FastCommentsClient/model/UserSearchSectionResult.h +++ b/client/include/FastCommentsClient/model/UserSearchSectionResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserSearchSectionResult_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/UserSessionInfo.h b/client/include/FastCommentsClient/model/UserSessionInfo.h index ab75f05..01684b2 100644 --- a/client/include/FastCommentsClient/model/UserSessionInfo.h +++ b/client/include/FastCommentsClient/model/UserSessionInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UserSessionInfo_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UserSessionInfo_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -134,8 +135,7 @@ class UserSessionInfo bool m_Authorized; bool m_AuthorizedIsSet; - utility::string_t m_AvatarSrc; - bool m_AvatarSrcIsSet; + boost::optional m_AvatarSrc; std::vector> m_Badges; bool m_BadgesIsSet; @@ -146,8 +146,7 @@ class UserSessionInfo utility::string_t m_DisplayName; bool m_DisplayNameIsSet; - utility::string_t m_Email; - bool m_EmailIsSet; + boost::optional m_Email; std::vector m_GroupIds; bool m_GroupIdsIsSet; @@ -161,8 +160,7 @@ class UserSessionInfo bool m_NeedsTOS; bool m_NeedsTOSIsSet; - utility::string_t m_SessionId; - bool m_SessionIdIsSet; + boost::optional m_SessionId; utility::string_t m_Username; bool m_UsernameIsSet; diff --git a/client/include/FastCommentsClient/model/UsersListLocation.h b/client/include/FastCommentsClient/model/UsersListLocation.h index 1eff6a2..6f498e9 100644 --- a/client/include/FastCommentsClient/model/UsersListLocation.h +++ b/client/include/FastCommentsClient/model/UsersListLocation.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UsersListLocation_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_UsersListLocation_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/VoteBodyParams.h b/client/include/FastCommentsClient/model/VoteBodyParams.h index 9b9b5cb..3457b83 100644 --- a/client/include/FastCommentsClient/model/VoteBodyParams.h +++ b/client/include/FastCommentsClient/model/VoteBodyParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteBodyParams_H_ #include +#include #include "FastCommentsClient/ModelBase.h" @@ -85,17 +86,14 @@ class VoteBodyParams protected: - utility::string_t m_CommenterEmail; - bool m_CommenterEmailIsSet; + boost::optional m_CommenterEmail; - utility::string_t m_CommenterName; - bool m_CommenterNameIsSet; + boost::optional m_CommenterName; VoteDirEnum m_VoteDir; bool m_VoteDirIsSet; - utility::string_t m_Url; - bool m_UrlIsSet; + boost::optional m_Url; }; diff --git a/client/include/FastCommentsClient/model/VoteDeleteResponse.h b/client/include/FastCommentsClient/model/VoteDeleteResponse.h index b8e9836..7107329 100644 --- a/client/include/FastCommentsClient/model/VoteDeleteResponse.h +++ b/client/include/FastCommentsClient/model/VoteDeleteResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -19,6 +19,7 @@ #define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteDeleteResponse_H_ #include +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/include/FastCommentsClient/model/VoteResponse.h b/client/include/FastCommentsClient/model/VoteResponse.h index dbab0f9..1007d00 100644 --- a/client/include/FastCommentsClient/model/VoteResponse.h +++ b/client/include/FastCommentsClient/model/VoteResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,10 +18,11 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponse_H_ +#include +#include #include "FastCommentsClient/ModelBase.h" -#include "FastCommentsClient/model/VoteResponse_status.h" #include "FastCommentsClient/model/VoteResponseUser.h" #include @@ -55,11 +56,21 @@ class VoteResponse ///////////////////////////////////////////// /// VoteResponse members + enum class StatusEnum + { + SUCCESS, + FAILED, + PENDING_VERIFICATION, + }; - std::shared_ptr getStatus() const; + StatusEnum toStatusEnum(const utility::string_t& value) const; + const utility::string_t fromStatusEnum(const StatusEnum value) const; + + + StatusEnum getStatus() const; bool statusIsSet() const; void unsetStatus(); - void setStatus(const std::shared_ptr& value); + void setStatus(const StatusEnum value); utility::string_t getVoteId() const; bool voteIdIsSet() const; @@ -83,7 +94,7 @@ class VoteResponse protected: - std::shared_ptr m_Status; + StatusEnum m_Status; bool m_StatusIsSet; utility::string_t m_VoteId; diff --git a/client/include/FastCommentsClient/model/VoteResponseUser.h b/client/include/FastCommentsClient/model/VoteResponseUser.h index 790626c..6f4e057 100644 --- a/client/include/FastCommentsClient/model/VoteResponseUser.h +++ b/client/include/FastCommentsClient/model/VoteResponseUser.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponseUser_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponseUser_H_ +#include #include "FastCommentsClient/ModelBase.h" @@ -60,8 +61,7 @@ class VoteResponseUser protected: - utility::string_t m_SessionId; - bool m_SessionIdIsSet; + boost::optional m_SessionId; }; diff --git a/client/include/FastCommentsClient/model/VoteResponse_status.h b/client/include/FastCommentsClient/model/VoteResponse_status.h deleted file mode 100644 index 11b7152..0000000 --- a/client/include/FastCommentsClient/model/VoteResponse_status.h +++ /dev/null @@ -1,66 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * VoteResponse_status.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponse_status_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponse_status_H_ - - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - - - -class VoteResponse_status - : public ModelBase -{ -public: - VoteResponse_status(); - virtual ~VoteResponse_status(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// VoteResponse_status members - - - -protected: -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_VoteResponse_status_H_ */ diff --git a/client/include/FastCommentsClient/model/VoteStyle.h b/client/include/FastCommentsClient/model/VoteStyle.h index d6e34ad..3a21a8c 100644 --- a/client/include/FastCommentsClient/model/VoteStyle.h +++ b/client/include/FastCommentsClient/model/VoteStyle.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,6 +18,7 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_VoteStyle_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteStyle_H_ +#include #include "FastCommentsClient/ModelBase.h" diff --git a/client/src/AnyType.cpp b/client/src/AnyType.cpp index 6c3bad9..72017d0 100644 --- a/client/src/AnyType.cpp +++ b/client/src/AnyType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/ApiClient.cpp b/client/src/ApiClient.cpp index 73f140e..730469f 100644 --- a/client/src/ApiClient.cpp +++ b/client/src/ApiClient.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/ApiConfiguration.cpp b/client/src/ApiConfiguration.cpp index b79249d..3855b28 100644 --- a/client/src/ApiConfiguration.cpp +++ b/client/src/ApiConfiguration.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/ApiException.cpp b/client/src/ApiException.cpp index 040a2f8..921d6a3 100644 --- a/client/src/ApiException.cpp +++ b/client/src/ApiException.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/HttpContent.cpp b/client/src/HttpContent.cpp index b98e8cc..403d665 100644 --- a/client/src/HttpContent.cpp +++ b/client/src/HttpContent.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/JsonBody.cpp b/client/src/JsonBody.cpp index ec87e95..6651bc5 100644 --- a/client/src/JsonBody.cpp +++ b/client/src/JsonBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/ModelBase.cpp b/client/src/ModelBase.cpp index 8337188..6d3e196 100644 --- a/client/src/ModelBase.cpp +++ b/client/src/ModelBase.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/MultipartFormData.cpp b/client/src/MultipartFormData.cpp index bfdfc02..056dc21 100644 --- a/client/src/MultipartFormData.cpp +++ b/client/src/MultipartFormData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/Object.cpp b/client/src/Object.cpp index c29d9f8..46d0e8a 100644 --- a/client/src/Object.cpp +++ b/client/src/Object.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/api/DefaultApi.cpp b/client/src/api/DefaultApi.cpp index 29e2980..c60ca76 100644 --- a/client/src/api/DefaultApi.cpp +++ b/client/src/api/DefaultApi.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -127,7 +127,7 @@ pplx::task> DefaultApi::addDomainConfig // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -278,7 +278,7 @@ pplx::task> DefaultApi::addHashTag(boost: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -429,7 +429,7 @@ pplx::task> DefaultApi::addHashTagsB // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -585,7 +585,7 @@ pplx::task> DefaultApi::addPage(utility::str // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -741,7 +741,7 @@ pplx::task> DefaultApi::addSSOUser(utilit // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -905,7 +905,7 @@ pplx::task> DefaultApi::aggregate(utility::st // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -1062,7 +1062,7 @@ pplx::task> DefaultApi::aggreg // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -1227,7 +1227,7 @@ pplx::task> DefaultApi::blockUserFromComment(utili // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -1387,7 +1387,7 @@ pplx::task> DefaultApi::bu // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -1547,7 +1547,7 @@ pplx::task> DefaultApi::changeTicketS // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -1712,7 +1712,7 @@ pplx::task> DefaultA // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -1868,7 +1868,7 @@ pplx::task> DefaultApi::createEmail // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -2040,7 +2040,7 @@ pplx::task> DefaultApi::createFeedPost( // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -2196,7 +2196,7 @@ pplx::task> DefaultApi::createModerator // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -2352,7 +2352,7 @@ pplx::task> DefaultApi::createQues // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -2508,7 +2508,7 @@ pplx::task> DefaultApi::createQues // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -2664,7 +2664,7 @@ pplx::task> DefaultApi::createSub // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -2820,7 +2820,7 @@ pplx::task> DefaultApi::createTenant(utili // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -2976,7 +2976,7 @@ pplx::task> DefaultApi::createTenan // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -3132,7 +3132,7 @@ pplx::task> DefaultApi::createTenantUs // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -3291,7 +3291,7 @@ pplx::task> DefaultApi::createTicket(utili // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -3447,7 +3447,7 @@ pplx::task> DefaultApi::createUserBa // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -3594,7 +3594,7 @@ pplx::task> DefaultApi::createVote(utility::string // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -3736,7 +3736,7 @@ pplx::task> DefaultApi::deleteComment(utili // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -3870,7 +3870,7 @@ pplx::task> DefaultApi::deleteDomain // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4004,7 +4004,7 @@ pplx::task> DefaultApi::deleteEmailTemplate(ut // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4139,7 +4139,7 @@ pplx::task> DefaultApi::deleteEmailTemplateRen // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4291,7 +4291,7 @@ pplx::task> DefaultApi::deleteHashTag(utility: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4429,7 +4429,7 @@ pplx::task> DefaultApi::deleteModerator(utilit // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4563,7 +4563,7 @@ pplx::task> DefaultApi::deleteNotificationCoun // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4697,7 +4697,7 @@ pplx::task> DefaultApi::deletePage(utilit // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4831,7 +4831,7 @@ pplx::task> DefaultApi::deletePendingWebhookEv // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -4965,7 +4965,7 @@ pplx::task> DefaultApi::deleteQuestionConfig(u // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5099,7 +5099,7 @@ pplx::task> DefaultApi::deleteQuestionResult(u // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5241,7 +5241,7 @@ pplx::task> DefaultApi::deleteSSOUser( // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5379,7 +5379,7 @@ pplx::task> DefaultApi::deleteSub // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5517,7 +5517,7 @@ pplx::task> DefaultApi::deleteTenant(utility:: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5651,7 +5651,7 @@ pplx::task> DefaultApi::deleteTenantPackage(ut // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5793,7 +5793,7 @@ pplx::task> DefaultApi::deleteTenantUser(utili // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -5927,7 +5927,7 @@ pplx::task> DefaultApi::deleteUserBadge // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6065,7 +6065,7 @@ pplx::task> DefaultApi::deleteVote(utility:: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6207,7 +6207,7 @@ pplx::task> DefaultApi::flagComment(utility // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6360,7 +6360,7 @@ pplx::task> DefaultApi::getAuditLogs(utili // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6494,7 +6494,7 @@ pplx::task> DefaultApi::getC // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6628,7 +6628,7 @@ pplx::task> DefaultApi::getComment(utilit // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6825,7 +6825,7 @@ pplx::task> DefaultApi::getComments(util // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -6959,7 +6959,7 @@ pplx::task> DefaultApi::getDomainConfig // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7092,7 +7092,7 @@ pplx::task> DefaultApi::getDomainConfi // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7226,7 +7226,7 @@ pplx::task> DefaultApi::getEmailTempla // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7359,7 +7359,7 @@ pplx::task> DefaultApi::get // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7497,7 +7497,7 @@ pplx::task> DefaultApi::ge // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7634,7 +7634,7 @@ pplx::task> DefaultApi::getEmailTempl // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7779,7 +7779,7 @@ pplx::task> DefaultApi::getFeedPosts(utili // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -7916,7 +7916,7 @@ pplx::task> DefaultApi::getHashTags(utility // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8050,7 +8050,7 @@ pplx::task> DefaultApi::getModerator(utili // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8187,7 +8187,7 @@ pplx::task> DefaultApi::getModerators(uti // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8340,7 +8340,7 @@ pplx::task> DefaultApi::getNotific // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8497,7 +8497,7 @@ pplx::task> DefaultApi::getNotificatio // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8633,7 +8633,7 @@ pplx::task> DefaultApi::getPageByURLI // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8766,7 +8766,7 @@ pplx::task> DefaultApi::getPages(utility::s // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -8923,7 +8923,7 @@ pplx::task> DefaultApi::get // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9084,7 +9084,7 @@ pplx::task> DefaultApi::getPend // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9218,7 +9218,7 @@ pplx::task> DefaultApi::getQuestionCo // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9355,7 +9355,7 @@ pplx::task> DefaultApi::getQuestionC // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9489,7 +9489,7 @@ pplx::task> DefaultApi::getQuestionRe // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9646,7 +9646,7 @@ pplx::task> DefaultApi::getQuestionR // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9780,7 +9780,7 @@ pplx::task> DefaultApi::getSSOUser // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -9914,7 +9914,7 @@ pplx::task> DefaultApi::getSSOUserByI // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10051,7 +10051,7 @@ pplx::task> DefaultApi::getSSOUsers(utility // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10188,7 +10188,7 @@ pplx::task> DefaultApi::getSubscrip // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10322,7 +10322,7 @@ pplx::task> DefaultApi::getTenant(utility::st // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10471,7 +10471,7 @@ pplx::task> DefaultApi::getTenantD // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10605,7 +10605,7 @@ pplx::task> DefaultApi::getTenantPacka // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10742,7 +10742,7 @@ pplx::task> DefaultApi::getTenantPack // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -10876,7 +10876,7 @@ pplx::task> DefaultApi::getTenantUser(uti // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11013,7 +11013,7 @@ pplx::task> DefaultApi::getTenantUsers(u // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11154,7 +11154,7 @@ pplx::task> DefaultApi::getTenants(utility:: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11292,7 +11292,7 @@ pplx::task> DefaultApi::getTicket(utility::st // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11441,7 +11441,7 @@ pplx::task> DefaultApi::getTickets(utility:: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11575,7 +11575,7 @@ pplx::task> DefaultApi::getUser(utility::string // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11709,7 +11709,7 @@ pplx::task> DefaultApi::getUserBadge(ut // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11843,7 +11843,7 @@ pplx::task> DefaultApi::getUser // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -11977,7 +11977,7 @@ pplx::task> DefaultApi::getUser // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -12122,7 +12122,7 @@ pplx::task> DefaultApi::get // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -12279,7 +12279,7 @@ pplx::task> DefaultApi::getUserBadges( // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -12415,7 +12415,7 @@ pplx::task> DefaultApi::getVotes(utility::stri // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -12559,7 +12559,7 @@ pplx::task> DefaultApi::getVotesForUser // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -12716,7 +12716,7 @@ pplx::task> DefaultApi::patchDomainCo // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -12868,7 +12868,7 @@ pplx::task> DefaultApi::patchHashTag(util // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -13025,7 +13025,7 @@ pplx::task> DefaultApi::patchPage(utility: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -13186,7 +13186,7 @@ pplx::task> DefaultApi::patchSSOUser(ut // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -13343,7 +13343,7 @@ pplx::task> DefaultApi::putDomainConfig // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -13504,7 +13504,7 @@ pplx::task> DefaultApi::putSSOUser(utilit // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -13664,7 +13664,7 @@ pplx::task> DefaultApi::renderEmail // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -13821,7 +13821,7 @@ pplx::task> DefaultApi::replaceTenantPackage(u // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -13982,7 +13982,7 @@ pplx::task> DefaultApi::replaceTenantUser(util // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -14154,7 +14154,7 @@ pplx::task> DefaultApi::saveComment(util // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -14331,7 +14331,7 @@ pplx::task>> DefaultApi::s // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -14472,7 +14472,7 @@ pplx::task> DefaultApi::sendInvite(utility::st // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -14610,7 +14610,7 @@ pplx::task> DefaultApi::sendLoginLink(utility: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -14775,7 +14775,7 @@ pplx::task> DefaultApi::unBlockUserFromComment(u // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -14917,7 +14917,7 @@ pplx::task> DefaultApi::unFlagComment(utili // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -15086,7 +15086,7 @@ pplx::task> DefaultApi::updateComment(utility: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -15243,7 +15243,7 @@ pplx::task> DefaultApi::updateEmailTemplate(ut // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -15400,7 +15400,7 @@ pplx::task> DefaultApi::updateFeedPost(utility // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -15557,7 +15557,7 @@ pplx::task> DefaultApi::updateModerator(utilit // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -15718,7 +15718,7 @@ pplx::task> DefaultApi::updateNotification(uti // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -15875,7 +15875,7 @@ pplx::task> DefaultApi::updateQuestionConfig(u // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -16032,7 +16032,7 @@ pplx::task> DefaultApi::updateQuestionResult(u // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -16193,7 +16193,7 @@ pplx::task> DefaultApi::updateSub // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -16350,7 +16350,7 @@ pplx::task> DefaultApi::updateTenant(utility:: // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -16507,7 +16507,7 @@ pplx::task> DefaultApi::updateTenantPackage(ut // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -16668,7 +16668,7 @@ pplx::task> DefaultApi::updateTenantUser(utili // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; @@ -16825,7 +16825,7 @@ pplx::task> DefaultApi::updateUserBadge // authentication (api_key) required { - utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("x-api-key")); + utility::string_t localVarApiKey = localVarApiConfiguration->getApiKey(utility::conversions::to_string_t("api_key")); if ( localVarApiKey.size() > 0 ) { localVarHeaderParams[utility::conversions::to_string_t("x-api-key")] = localVarApiKey; diff --git a/client/src/api/ModerationApi.cpp b/client/src/api/ModerationApi.cpp index 84f0d1e..c8473d7 100644 --- a/client/src/api/ModerationApi.cpp +++ b/client/src/api/ModerationApi.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/api/PublicApi.cpp b/client/src/api/PublicApi.cpp index f2ecb4f..9878be6 100644 --- a/client/src/api/PublicApi.cpp +++ b/client/src/api/PublicApi.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIAuditLog.cpp b/client/src/model/APIAuditLog.cpp index 85718e3..4d754c0 100644 --- a/client/src/model/APIAuditLog.cpp +++ b/client/src/model/APIAuditLog.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,17 +30,12 @@ APIAuditLog::APIAuditLog() m_ResourceNameIsSet = false; m_CrudTypeIsSet = false; m_FromIsSet = false; - m_Url = utility::conversions::to_string_t(""); - m_UrlIsSet = false; - m_Ip = utility::conversions::to_string_t(""); - m_IpIsSet = false; m_When = utility::datetime(); m_WhenIsSet = false; m_Description = utility::conversions::to_string_t(""); m_DescriptionIsSet = false; m_ServerStartDate = utility::datetime(); m_ServerStartDateIsSet = false; - m_ObjectDetailsIsSet = false; } APIAuditLog::~APIAuditLog() @@ -56,68 +51,68 @@ web::json::value APIAuditLog::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_ResourceNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("resourceName"))] = ModelBase::toJson(m_ResourceName); } if(m_CrudTypeIsSet) - { + { utility::string_t refVal = fromCrudTypeEnum(m_CrudType); val[utility::conversions::to_string_t(_XPLATSTR("crudType"))] = ModelBase::toJson(refVal); } if(m_FromIsSet) - { + { utility::string_t refVal = fromFromEnum(m_From); val[utility::conversions::to_string_t(_XPLATSTR("from"))] = ModelBase::toJson(refVal); } - if(m_UrlIsSet) - { + if(m_Url.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); + val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url.get()); } - if(m_IpIsSet) - { + if(m_Ip.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("ip"))] = ModelBase::toJson(m_Ip); + val[utility::conversions::to_string_t(_XPLATSTR("ip"))] = ModelBase::toJson(m_Ip.get()); } if(m_WhenIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("when"))] = ModelBase::toJson(m_When); } if(m_DescriptionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if(m_ServerStartDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("serverStartDate"))] = ModelBase::toJson(m_ServerStartDate); } - if(m_ObjectDetailsIsSet) - { + if(m_ObjectDetails.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("objectDetails"))] = ModelBase::toJson(m_ObjectDetails); + val[utility::conversions::to_string_t(_XPLATSTR("objectDetails"))] = ModelBase::toJson(m_ObjectDetails.get()); } return val; @@ -294,13 +289,13 @@ void APIAuditLog::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("from")), fromFromEnum(m_From))); } - if(m_UrlIsSet) + if(m_Url.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url.get())); } - if(m_IpIsSet) + if(m_Ip.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ip")), m_Ip)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ip")), m_Ip.get())); } if(m_WhenIsSet) { @@ -314,9 +309,9 @@ void APIAuditLog::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("serverStartDate")), m_ServerStartDate)); } - if(m_ObjectDetailsIsSet) + if(m_ObjectDetails.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("objectDetails")), m_ObjectDetails)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("objectDetails")), m_ObjectDetails.get())); } } @@ -611,45 +606,43 @@ void APIAuditLog::unsetFrom() } utility::string_t APIAuditLog::getUrl() const { - return m_Url; + return m_Url.get(); } void APIAuditLog::setUrl(const utility::string_t& value) { m_Url = value; - m_UrlIsSet = true; } bool APIAuditLog::urlIsSet() const { - return m_UrlIsSet; + return m_Url.has_value(); } void APIAuditLog::unsetUrl() { - m_UrlIsSet = false; + m_Url.reset(); } utility::string_t APIAuditLog::getIp() const { - return m_Ip; + return m_Ip.get(); } void APIAuditLog::setIp(const utility::string_t& value) { m_Ip = value; - m_IpIsSet = true; } bool APIAuditLog::ipIsSet() const { - return m_IpIsSet; + return m_Ip.has_value(); } void APIAuditLog::unsetIp() { - m_IpIsSet = false; + m_Ip.reset(); } utility::datetime APIAuditLog::getWhen() const { @@ -716,24 +709,23 @@ void APIAuditLog::unsetServerStartDate() } std::map> APIAuditLog::getObjectDetails() const { - return m_ObjectDetails; + return m_ObjectDetails.get(); } void APIAuditLog::setObjectDetails(const std::map>& value) { m_ObjectDetails = value; - m_ObjectDetailsIsSet = true; } bool APIAuditLog::objectDetailsIsSet() const { - return m_ObjectDetailsIsSet; + return m_ObjectDetails.has_value(); } void APIAuditLog::unsetObjectDetails() { - m_ObjectDetailsIsSet = false; + m_ObjectDetails.reset(); } } diff --git a/client/src/model/APIBanUserChangeLog.cpp b/client/src/model/APIBanUserChangeLog.cpp index f4de9ca..4cfde72 100644 --- a/client/src/model/APIBanUserChangeLog.cpp +++ b/client/src/model/APIBanUserChangeLog.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,22 +41,22 @@ web::json::value APIBanUserChangeLog::toJson() const { web::json::value val = web::json::value::object(); if(m_CreatedBannedUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdBannedUserId"))] = ModelBase::toJson(m_CreatedBannedUserId); } if(m_UpdatedBannedUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("updatedBannedUserId"))] = ModelBase::toJson(m_UpdatedBannedUserId); } if(m_DeletedBannedUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("deletedBannedUsers"))] = ModelBase::toJson(m_DeletedBannedUsers); } if(m_ChangedValuesBeforeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("changedValuesBefore"))] = ModelBase::toJson(m_ChangedValuesBefore); } diff --git a/client/src/model/APIBanUserChangedValues.cpp b/client/src/model/APIBanUserChangedValues.cpp index b763e8b..470f033 100644 --- a/client/src/model/APIBanUserChangedValues.cpp +++ b/client/src/model/APIBanUserChangedValues.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,14 +24,6 @@ APIBanUserChangedValues::APIBanUserChangedValues() m__idIsSet = false; m_TenantId = utility::conversions::to_string_t(""); m_TenantIdIsSet = false; - m_UserId = utility::conversions::to_string_t(""); - m_UserIdIsSet = false; - m_Email = utility::conversions::to_string_t(""); - m_EmailIsSet = false; - m_Username = utility::conversions::to_string_t(""); - m_UsernameIsSet = false; - m_IpHash = utility::conversions::to_string_t(""); - m_IpHashIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; m_BannedByUserId = utility::conversions::to_string_t(""); @@ -40,8 +32,6 @@ APIBanUserChangedValues::APIBanUserChangedValues() m_BannedCommentTextIsSet = false; m_BanType = utility::conversions::to_string_t(""); m_BanTypeIsSet = false; - m_BannedUntil = utility::datetime(); - m_BannedUntilIsSet = false; m_HasEmailWildcard = false; m_HasEmailWildcardIsSet = false; m_BanReason = utility::conversions::to_string_t(""); @@ -61,67 +51,67 @@ web::json::value APIBanUserChangedValues::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } - if(m_EmailIsSet) - { + if(m_Email.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); } - if(m_UsernameIsSet) - { + if(m_Username.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); + val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username.get()); } - if(m_IpHashIsSet) - { + if(m_IpHash.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); + val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash.get()); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_BannedByUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bannedByUserId"))] = ModelBase::toJson(m_BannedByUserId); } if(m_BannedCommentTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bannedCommentText"))] = ModelBase::toJson(m_BannedCommentText); } if(m_BanTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("banType"))] = ModelBase::toJson(m_BanType); } - if(m_BannedUntilIsSet) - { + if(m_BannedUntil.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil.get()); } if(m_HasEmailWildcardIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))] = ModelBase::toJson(m_HasEmailWildcard); } if(m_BanReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("banReason"))] = ModelBase::toJson(m_BanReason); } @@ -293,21 +283,21 @@ void APIBanUserChangedValues::toMultipart(std::shared_ptr mul { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } - if(m_EmailIsSet) + if(m_Email.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); } - if(m_UsernameIsSet) + if(m_Username.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username.get())); } - if(m_IpHashIsSet) + if(m_IpHash.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash.get())); } if(m_CreatedAtIsSet) { @@ -325,9 +315,9 @@ void APIBanUserChangedValues::toMultipart(std::shared_ptr mul { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("banType")), m_BanType)); } - if(m_BannedUntilIsSet) + if(m_BannedUntil.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil.get())); } if(m_HasEmailWildcardIsSet) { @@ -474,87 +464,83 @@ void APIBanUserChangedValues::unsetTenantId() } utility::string_t APIBanUserChangedValues::getUserId() const { - return m_UserId; + return m_UserId.get(); } void APIBanUserChangedValues::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool APIBanUserChangedValues::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void APIBanUserChangedValues::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t APIBanUserChangedValues::getEmail() const { - return m_Email; + return m_Email.get(); } void APIBanUserChangedValues::setEmail(const utility::string_t& value) { m_Email = value; - m_EmailIsSet = true; } bool APIBanUserChangedValues::emailIsSet() const { - return m_EmailIsSet; + return m_Email.has_value(); } void APIBanUserChangedValues::unsetEmail() { - m_EmailIsSet = false; + m_Email.reset(); } utility::string_t APIBanUserChangedValues::getUsername() const { - return m_Username; + return m_Username.get(); } void APIBanUserChangedValues::setUsername(const utility::string_t& value) { m_Username = value; - m_UsernameIsSet = true; } bool APIBanUserChangedValues::usernameIsSet() const { - return m_UsernameIsSet; + return m_Username.has_value(); } void APIBanUserChangedValues::unsetUsername() { - m_UsernameIsSet = false; + m_Username.reset(); } utility::string_t APIBanUserChangedValues::getIpHash() const { - return m_IpHash; + return m_IpHash.get(); } void APIBanUserChangedValues::setIpHash(const utility::string_t& value) { m_IpHash = value; - m_IpHashIsSet = true; } bool APIBanUserChangedValues::ipHashIsSet() const { - return m_IpHashIsSet; + return m_IpHash.has_value(); } void APIBanUserChangedValues::unsetIpHash() { - m_IpHashIsSet = false; + m_IpHash.reset(); } utility::datetime APIBanUserChangedValues::getCreatedAt() const { @@ -642,24 +628,23 @@ void APIBanUserChangedValues::unsetBanType() } utility::datetime APIBanUserChangedValues::getBannedUntil() const { - return m_BannedUntil; + return m_BannedUntil.get(); } void APIBanUserChangedValues::setBannedUntil(const utility::datetime& value) { m_BannedUntil = value; - m_BannedUntilIsSet = true; } bool APIBanUserChangedValues::bannedUntilIsSet() const { - return m_BannedUntilIsSet; + return m_BannedUntil.has_value(); } void APIBanUserChangedValues::unsetBannedUntil() { - m_BannedUntilIsSet = false; + m_BannedUntil.reset(); } bool APIBanUserChangedValues::isHasEmailWildcard() const { diff --git a/client/src/model/APIBannedUser.cpp b/client/src/model/APIBannedUser.cpp index 5158271..7cde5d2 100644 --- a/client/src/model/APIBannedUser.cpp +++ b/client/src/model/APIBannedUser.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,14 +24,6 @@ APIBannedUser::APIBannedUser() m__idIsSet = false; m_TenantId = utility::conversions::to_string_t(""); m_TenantIdIsSet = false; - m_UserId = utility::conversions::to_string_t(""); - m_UserIdIsSet = false; - m_Email = utility::conversions::to_string_t(""); - m_EmailIsSet = false; - m_Username = utility::conversions::to_string_t(""); - m_UsernameIsSet = false; - m_IpHash = utility::conversions::to_string_t(""); - m_IpHashIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; m_BannedByUserId = utility::conversions::to_string_t(""); @@ -40,8 +32,6 @@ APIBannedUser::APIBannedUser() m_BannedCommentTextIsSet = false; m_BanType = utility::conversions::to_string_t(""); m_BanTypeIsSet = false; - m_BannedUntil = utility::datetime(); - m_BannedUntilIsSet = false; m_HasEmailWildcard = false; m_HasEmailWildcardIsSet = false; m_BanReason = utility::conversions::to_string_t(""); @@ -61,67 +51,67 @@ web::json::value APIBannedUser::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } - if(m_EmailIsSet) - { + if(m_Email.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); } - if(m_UsernameIsSet) - { + if(m_Username.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); + val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username.get()); } - if(m_IpHashIsSet) - { + if(m_IpHash.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); + val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash.get()); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_BannedByUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bannedByUserId"))] = ModelBase::toJson(m_BannedByUserId); } if(m_BannedCommentTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bannedCommentText"))] = ModelBase::toJson(m_BannedCommentText); } if(m_BanTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("banType"))] = ModelBase::toJson(m_BanType); } - if(m_BannedUntilIsSet) - { + if(m_BannedUntil.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil.get()); } if(m_HasEmailWildcardIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))] = ModelBase::toJson(m_HasEmailWildcard); } if(m_BanReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("banReason"))] = ModelBase::toJson(m_BanReason); } @@ -293,21 +283,21 @@ void APIBannedUser::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } - if(m_EmailIsSet) + if(m_Email.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); } - if(m_UsernameIsSet) + if(m_Username.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username.get())); } - if(m_IpHashIsSet) + if(m_IpHash.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash.get())); } if(m_CreatedAtIsSet) { @@ -325,9 +315,9 @@ void APIBannedUser::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("banType")), m_BanType)); } - if(m_BannedUntilIsSet) + if(m_BannedUntil.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil.get())); } if(m_HasEmailWildcardIsSet) { @@ -474,87 +464,83 @@ void APIBannedUser::unsetTenantId() } utility::string_t APIBannedUser::getUserId() const { - return m_UserId; + return m_UserId.get(); } void APIBannedUser::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool APIBannedUser::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void APIBannedUser::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t APIBannedUser::getEmail() const { - return m_Email; + return m_Email.get(); } void APIBannedUser::setEmail(const utility::string_t& value) { m_Email = value; - m_EmailIsSet = true; } bool APIBannedUser::emailIsSet() const { - return m_EmailIsSet; + return m_Email.has_value(); } void APIBannedUser::unsetEmail() { - m_EmailIsSet = false; + m_Email.reset(); } utility::string_t APIBannedUser::getUsername() const { - return m_Username; + return m_Username.get(); } void APIBannedUser::setUsername(const utility::string_t& value) { m_Username = value; - m_UsernameIsSet = true; } bool APIBannedUser::usernameIsSet() const { - return m_UsernameIsSet; + return m_Username.has_value(); } void APIBannedUser::unsetUsername() { - m_UsernameIsSet = false; + m_Username.reset(); } utility::string_t APIBannedUser::getIpHash() const { - return m_IpHash; + return m_IpHash.get(); } void APIBannedUser::setIpHash(const utility::string_t& value) { m_IpHash = value; - m_IpHashIsSet = true; } bool APIBannedUser::ipHashIsSet() const { - return m_IpHashIsSet; + return m_IpHash.has_value(); } void APIBannedUser::unsetIpHash() { - m_IpHashIsSet = false; + m_IpHash.reset(); } utility::datetime APIBannedUser::getCreatedAt() const { @@ -642,24 +628,23 @@ void APIBannedUser::unsetBanType() } utility::datetime APIBannedUser::getBannedUntil() const { - return m_BannedUntil; + return m_BannedUntil.get(); } void APIBannedUser::setBannedUntil(const utility::datetime& value) { m_BannedUntil = value; - m_BannedUntilIsSet = true; } bool APIBannedUser::bannedUntilIsSet() const { - return m_BannedUntilIsSet; + return m_BannedUntil.has_value(); } void APIBannedUser::unsetBannedUntil() { - m_BannedUntilIsSet = false; + m_BannedUntil.reset(); } bool APIBannedUser::isHasEmailWildcard() const { diff --git a/client/src/model/APIBannedUserWithMultiMatchInfo.cpp b/client/src/model/APIBannedUserWithMultiMatchInfo.cpp index 900ac7f..2b40e71 100644 --- a/client/src/model/APIBannedUserWithMultiMatchInfo.cpp +++ b/client/src/model/APIBannedUserWithMultiMatchInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,16 +22,8 @@ APIBannedUserWithMultiMatchInfo::APIBannedUserWithMultiMatchInfo() { m__id = utility::conversions::to_string_t(""); m__idIsSet = false; - m_UserId = utility::conversions::to_string_t(""); - m_UserIdIsSet = false; m_BanType = utility::conversions::to_string_t(""); m_BanTypeIsSet = false; - m_Email = utility::conversions::to_string_t(""); - m_EmailIsSet = false; - m_IpHash = utility::conversions::to_string_t(""); - m_IpHashIsSet = false; - m_BannedUntil = utility::datetime(); - m_BannedUntilIsSet = false; m_HasEmailWildcard = false; m_HasEmailWildcardIsSet = false; m_BanReason = utility::conversions::to_string_t(""); @@ -52,47 +44,47 @@ web::json::value APIBannedUserWithMultiMatchInfo::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } if(m_BanTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("banType"))] = ModelBase::toJson(m_BanType); } - if(m_EmailIsSet) - { + if(m_Email.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); } - if(m_IpHashIsSet) - { + if(m_IpHash.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); + val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash.get()); } - if(m_BannedUntilIsSet) - { + if(m_BannedUntil.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil.get()); } if(m_HasEmailWildcardIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))] = ModelBase::toJson(m_HasEmailWildcard); } if(m_BanReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("banReason"))] = ModelBase::toJson(m_BanReason); } if(m_MatchesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("matches"))] = ModelBase::toJson(m_Matches); } @@ -216,25 +208,25 @@ void APIBannedUserWithMultiMatchInfo::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } if(m_BanTypeIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("banType")), m_BanType)); } - if(m_EmailIsSet) + if(m_Email.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); } - if(m_IpHashIsSet) + if(m_IpHash.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash.get())); } - if(m_BannedUntilIsSet) + if(m_BannedUntil.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil.get())); } if(m_HasEmailWildcardIsSet) { @@ -340,24 +332,23 @@ void APIBannedUserWithMultiMatchInfo::unset_id() } utility::string_t APIBannedUserWithMultiMatchInfo::getUserId() const { - return m_UserId; + return m_UserId.get(); } void APIBannedUserWithMultiMatchInfo::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool APIBannedUserWithMultiMatchInfo::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void APIBannedUserWithMultiMatchInfo::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t APIBannedUserWithMultiMatchInfo::getBanType() const { @@ -382,66 +373,63 @@ void APIBannedUserWithMultiMatchInfo::unsetBanType() } utility::string_t APIBannedUserWithMultiMatchInfo::getEmail() const { - return m_Email; + return m_Email.get(); } void APIBannedUserWithMultiMatchInfo::setEmail(const utility::string_t& value) { m_Email = value; - m_EmailIsSet = true; } bool APIBannedUserWithMultiMatchInfo::emailIsSet() const { - return m_EmailIsSet; + return m_Email.has_value(); } void APIBannedUserWithMultiMatchInfo::unsetEmail() { - m_EmailIsSet = false; + m_Email.reset(); } utility::string_t APIBannedUserWithMultiMatchInfo::getIpHash() const { - return m_IpHash; + return m_IpHash.get(); } void APIBannedUserWithMultiMatchInfo::setIpHash(const utility::string_t& value) { m_IpHash = value; - m_IpHashIsSet = true; } bool APIBannedUserWithMultiMatchInfo::ipHashIsSet() const { - return m_IpHashIsSet; + return m_IpHash.has_value(); } void APIBannedUserWithMultiMatchInfo::unsetIpHash() { - m_IpHashIsSet = false; + m_IpHash.reset(); } utility::datetime APIBannedUserWithMultiMatchInfo::getBannedUntil() const { - return m_BannedUntil; + return m_BannedUntil.get(); } void APIBannedUserWithMultiMatchInfo::setBannedUntil(const utility::datetime& value) { m_BannedUntil = value; - m_BannedUntilIsSet = true; } bool APIBannedUserWithMultiMatchInfo::bannedUntilIsSet() const { - return m_BannedUntilIsSet; + return m_BannedUntil.has_value(); } void APIBannedUserWithMultiMatchInfo::unsetBannedUntil() { - m_BannedUntilIsSet = false; + m_BannedUntil.reset(); } bool APIBannedUserWithMultiMatchInfo::isHasEmailWildcard() const { diff --git a/client/src/model/APIComment.cpp b/client/src/model/APIComment.cpp index ae03510..3f21a2f 100644 --- a/client/src/model/APIComment.cpp +++ b/client/src/model/APIComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,38 +24,17 @@ APIComment::APIComment() m_IdIsSet = false; m_AiDeterminedSpam = false; m_AiDeterminedSpamIsSet = false; - m_AnonUserId = utility::conversions::to_string_t(""); - m_AnonUserIdIsSet = false; m_Approved = false; m_ApprovedIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; - m_BadgesIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; - m_CommenterEmail = utility::conversions::to_string_t(""); - m_CommenterEmailIsSet = false; - m_CommenterLink = utility::conversions::to_string_t(""); - m_CommenterLinkIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; - m_date = 0.0; - m_dateIsSet = false; - m_DisplayLabel = utility::conversions::to_string_t(""); - m_DisplayLabelIsSet = false; - m_Domain = nullptr; - m_DomainIsSet = false; m_ExternalId = utility::conversions::to_string_t(""); m_ExternalIdIsSet = false; - m_ExternalParentId = utility::conversions::to_string_t(""); - m_ExternalParentIdIsSet = false; - m_ExpireAt = utility::datetime(); - m_ExpireAtIsSet = false; m_FeedbackIdsIsSet = false; - m_FlagCount = 0; - m_FlagCountIsSet = false; m_FromProductId = 0; m_FromProductIdIsSet = false; m_HasCode = false; @@ -73,31 +52,13 @@ APIComment::APIComment() m_IsDeletedIsSet = false; m_IsDeletedUser = false; m_IsDeletedUserIsSet = false; - m_IsPinned = false; - m_IsPinnedIsSet = false; - m_IsLocked = false; - m_IsLockedIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; - m_LocalDateHours = 0; - m_LocalDateHoursIsSet = false; - m_LocalDateString = utility::conversions::to_string_t(""); - m_LocalDateStringIsSet = false; - m_Locale = utility::conversions::to_string_t(""); - m_LocaleIsSet = false; m_MentionsIsSet = false; - m_MetaIsSet = false; - m_ModerationGroupIdsIsSet = false; m_NotificationSentForParent = false; m_NotificationSentForParentIsSet = false; m_NotificationSentForParentTenant = false; m_NotificationSentForParentTenantIsSet = false; - m_PageTitle = utility::conversions::to_string_t(""); - m_PageTitleIsSet = false; - m_ParentId = utility::conversions::to_string_t(""); - m_ParentIdIsSet = false; - m_Rating = 0.0; - m_RatingIsSet = false; m_Reviewed = false; m_ReviewedIsSet = false; m_TenantId = utility::conversions::to_string_t(""); @@ -108,18 +69,8 @@ APIComment::APIComment() m_UrlIdIsSet = false; m_UrlIdRaw = utility::conversions::to_string_t(""); m_UrlIdRawIsSet = false; - m_UserId = nullptr; - m_UserIdIsSet = false; m_Verified = false; m_VerifiedIsSet = false; - m_VerifiedDate = utility::datetime(); - m_VerifiedDateIsSet = false; - m_Votes = 0; - m_VotesIsSet = false; - m_VotesDown = 0; - m_VotesDownIsSet = false; - m_VotesUp = 0; - m_VotesUpIsSet = false; } APIComment::~APIComment() @@ -135,269 +86,269 @@ web::json::value APIComment::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_AiDeterminedSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("aiDeterminedSpam"))] = ModelBase::toJson(m_AiDeterminedSpam); } - if(m_AnonUserIdIsSet) - { + if(m_AnonUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } - if(m_BadgesIsSet) - { + if(m_Badges.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } - if(m_CommenterEmailIsSet) - { + if(m_CommenterEmail.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); } - if(m_CommenterLinkIsSet) - { + if(m_CommenterLink.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_dateIsSet) - { + if(m_date.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); } - if(m_DisplayLabelIsSet) - { + if(m_DisplayLabel.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); } - if(m_DomainIsSet) - { + if(m_Domain.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain.get()); } if(m_ExternalIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("externalId"))] = ModelBase::toJson(m_ExternalId); } - if(m_ExternalParentIdIsSet) - { + if(m_ExternalParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId); + val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId.get()); } - if(m_ExpireAtIsSet) - { + if(m_ExpireAt.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt.get()); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } - if(m_FlagCountIsSet) - { + if(m_FlagCount.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); } if(m_FromProductIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromProductId"))] = ModelBase::toJson(m_FromProductId); } if(m_HasCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasCode"))] = ModelBase::toJson(m_HasCode); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } if(m_HasLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLinks"))] = ModelBase::toJson(m_HasLinks); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } - if(m_IsPinnedIsSet) - { + if(m_IsPinned.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); } - if(m_IsLockedIsSet) - { + if(m_IsLocked.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } - if(m_LocalDateHoursIsSet) - { + if(m_LocalDateHours.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours); + val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours.get()); } - if(m_LocalDateStringIsSet) - { + if(m_LocalDateString.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); + val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString.get()); } - if(m_LocaleIsSet) - { + if(m_Locale.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale.get()); } if(m_MentionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("mentions"))] = ModelBase::toJson(m_Mentions); } - if(m_MetaIsSet) - { + if(m_Meta.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); } - if(m_ModerationGroupIdsIsSet) - { + if(m_ModerationGroupIds.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); + val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds.get()); } if(m_NotificationSentForParentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParent"))] = ModelBase::toJson(m_NotificationSentForParent); } if(m_NotificationSentForParentTenantIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParentTenant"))] = ModelBase::toJson(m_NotificationSentForParentTenant); } - if(m_PageTitleIsSet) - { + if(m_PageTitle.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); } - if(m_ParentIdIsSet) - { + if(m_ParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); } - if(m_RatingIsSet) - { + if(m_Rating.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIdRawIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdRaw"))] = ModelBase::toJson(m_UrlIdRaw); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_VerifiedDateIsSet) - { + if(m_VerifiedDate.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate); + val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate.get()); } - if(m_VotesIsSet) - { + if(m_Votes.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); } - if(m_VotesDownIsSet) - { + if(m_VotesDown.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); } - if(m_VotesUpIsSet) - { + if(m_VotesUp.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); } return val; @@ -1007,21 +958,21 @@ void APIComment::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("aiDeterminedSpam")), m_AiDeterminedSpam)); } - if(m_AnonUserIdIsSet) + if(m_AnonUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); } if(m_ApprovedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } - if(m_BadgesIsSet) + if(m_Badges.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); } if(m_CommentIsSet) { @@ -1031,49 +982,49 @@ void APIComment::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); } - if(m_CommenterEmailIsSet) + if(m_CommenterEmail.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); } - if(m_CommenterLinkIsSet) + if(m_CommenterLink.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); } if(m_CommenterNameIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_dateIsSet) + if(m_date.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); } - if(m_DisplayLabelIsSet) + if(m_DisplayLabel.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); } - if(m_DomainIsSet) + if(m_Domain.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain.get())); } if(m_ExternalIdIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalId")), m_ExternalId)); } - if(m_ExternalParentIdIsSet) + if(m_ExternalParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId.get())); } - if(m_ExpireAtIsSet) + if(m_ExpireAt.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt.get())); } if(m_FeedbackIdsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedbackIds")), m_FeedbackIds)); } - if(m_FlagCountIsSet) + if(m_FlagCount.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); } if(m_FromProductIdIsSet) { @@ -1111,41 +1062,41 @@ void APIComment::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isDeletedUser")), m_IsDeletedUser)); } - if(m_IsPinnedIsSet) + if(m_IsPinned.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); } - if(m_IsLockedIsSet) + if(m_IsLocked.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); } if(m_IsSpamIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); } - if(m_LocalDateHoursIsSet) + if(m_LocalDateHours.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours.get())); } - if(m_LocalDateStringIsSet) + if(m_LocalDateString.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString.get())); } - if(m_LocaleIsSet) + if(m_Locale.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale.get())); } if(m_MentionsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("mentions")), m_Mentions)); } - if(m_MetaIsSet) + if(m_Meta.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); } - if(m_ModerationGroupIdsIsSet) + if(m_ModerationGroupIds.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds.get())); } if(m_NotificationSentForParentIsSet) { @@ -1155,17 +1106,17 @@ void APIComment::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notificationSentForParentTenant")), m_NotificationSentForParentTenant)); } - if(m_PageTitleIsSet) + if(m_PageTitle.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); } - if(m_ParentIdIsSet) + if(m_ParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); } - if(m_RatingIsSet) + if(m_Rating.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); } if(m_ReviewedIsSet) { @@ -1187,29 +1138,29 @@ void APIComment::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdRaw")), m_UrlIdRaw)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_VerifiedDateIsSet) + if(m_VerifiedDate.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate.get())); } - if(m_VotesIsSet) + if(m_Votes.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); } - if(m_VotesDownIsSet) + if(m_VotesDown.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); } - if(m_VotesUpIsSet) + if(m_VotesUp.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); } } @@ -1587,24 +1538,23 @@ void APIComment::unsetAiDeterminedSpam() } utility::string_t APIComment::getAnonUserId() const { - return m_AnonUserId; + return m_AnonUserId.get(); } void APIComment::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; - m_AnonUserIdIsSet = true; } bool APIComment::anonUserIdIsSet() const { - return m_AnonUserIdIsSet; + return m_AnonUserId.has_value(); } void APIComment::unsetAnonUserId() { - m_AnonUserIdIsSet = false; + m_AnonUserId.reset(); } bool APIComment::isApproved() const { @@ -1628,45 +1578,43 @@ void APIComment::unsetApproved() } utility::string_t APIComment::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void APIComment::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool APIComment::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void APIComment::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } std::vector> APIComment::getBadges() const { - return m_Badges; + return m_Badges.get(); } void APIComment::setBadges(const std::vector>& value) { m_Badges = value; - m_BadgesIsSet = true; } bool APIComment::badgesIsSet() const { - return m_BadgesIsSet; + return m_Badges.has_value(); } void APIComment::unsetBadges() { - m_BadgesIsSet = false; + m_Badges.reset(); } utility::string_t APIComment::getComment() const { @@ -1712,45 +1660,43 @@ void APIComment::unsetCommentHTML() } utility::string_t APIComment::getCommenterEmail() const { - return m_CommenterEmail; + return m_CommenterEmail.get(); } void APIComment::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; - m_CommenterEmailIsSet = true; } bool APIComment::commenterEmailIsSet() const { - return m_CommenterEmailIsSet; + return m_CommenterEmail.has_value(); } void APIComment::unsetCommenterEmail() { - m_CommenterEmailIsSet = false; + m_CommenterEmail.reset(); } utility::string_t APIComment::getCommenterLink() const { - return m_CommenterLink; + return m_CommenterLink.get(); } void APIComment::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; - m_CommenterLinkIsSet = true; } bool APIComment::commenterLinkIsSet() const { - return m_CommenterLinkIsSet; + return m_CommenterLink.has_value(); } void APIComment::unsetCommenterLink() { - m_CommenterLinkIsSet = false; + m_CommenterLink.reset(); } utility::string_t APIComment::getCommenterName() const { @@ -1775,65 +1721,62 @@ void APIComment::unsetCommenterName() } double APIComment::getDate() const { - return m_date; + return m_date.get(); } void APIComment::setDate(double value) { m_date = value; - m_dateIsSet = true; } bool APIComment::dateIsSet() const { - return m_dateIsSet; + return m_date.has_value(); } void APIComment::unsetdate() { - m_dateIsSet = false; + m_date.reset(); } utility::string_t APIComment::getDisplayLabel() const { - return m_DisplayLabel; + return m_DisplayLabel.get(); } void APIComment::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; - m_DisplayLabelIsSet = true; } bool APIComment::displayLabelIsSet() const { - return m_DisplayLabelIsSet; + return m_DisplayLabel.has_value(); } void APIComment::unsetDisplayLabel() { - m_DisplayLabelIsSet = false; + m_DisplayLabel.reset(); } utility::string_t APIComment::getDomain() const { - return m_Domain; + return m_Domain.get(); } void APIComment::setDomain(const utility::string_t& value) { m_Domain = value; - m_DomainIsSet = true; } bool APIComment::domainIsSet() const { - return m_DomainIsSet; + return m_Domain.has_value(); } void APIComment::unsetDomain() { - m_DomainIsSet = false; + m_Domain.reset(); } utility::string_t APIComment::getExternalId() const { @@ -1858,45 +1801,43 @@ void APIComment::unsetExternalId() } utility::string_t APIComment::getExternalParentId() const { - return m_ExternalParentId; + return m_ExternalParentId.get(); } void APIComment::setExternalParentId(const utility::string_t& value) { m_ExternalParentId = value; - m_ExternalParentIdIsSet = true; } bool APIComment::externalParentIdIsSet() const { - return m_ExternalParentIdIsSet; + return m_ExternalParentId.has_value(); } void APIComment::unsetExternalParentId() { - m_ExternalParentIdIsSet = false; + m_ExternalParentId.reset(); } utility::datetime APIComment::getExpireAt() const { - return m_ExpireAt; + return m_ExpireAt.get(); } void APIComment::setExpireAt(const utility::datetime& value) { m_ExpireAt = value; - m_ExpireAtIsSet = true; } bool APIComment::expireAtIsSet() const { - return m_ExpireAtIsSet; + return m_ExpireAt.has_value(); } void APIComment::unsetExpireAt() { - m_ExpireAtIsSet = false; + m_ExpireAt.reset(); } std::vector APIComment::getFeedbackIds() const { @@ -1921,23 +1862,22 @@ void APIComment::unsetFeedbackIds() } int32_t APIComment::getFlagCount() const { - return m_FlagCount; + return m_FlagCount.get(); } void APIComment::setFlagCount(int32_t value) { m_FlagCount = value; - m_FlagCountIsSet = true; } bool APIComment::flagCountIsSet() const { - return m_FlagCountIsSet; + return m_FlagCount.has_value(); } void APIComment::unsetFlagCount() { - m_FlagCountIsSet = false; + m_FlagCount.reset(); } int32_t APIComment::getFromProductId() const { @@ -2122,43 +2062,41 @@ void APIComment::unsetIsDeletedUser() } bool APIComment::isIsPinned() const { - return m_IsPinned; + return m_IsPinned.get(); } void APIComment::setIsPinned(bool value) { m_IsPinned = value; - m_IsPinnedIsSet = true; } bool APIComment::isPinnedIsSet() const { - return m_IsPinnedIsSet; + return m_IsPinned.has_value(); } void APIComment::unsetIsPinned() { - m_IsPinnedIsSet = false; + m_IsPinned.reset(); } bool APIComment::isIsLocked() const { - return m_IsLocked; + return m_IsLocked.get(); } void APIComment::setIsLocked(bool value) { m_IsLocked = value; - m_IsLockedIsSet = true; } bool APIComment::isLockedIsSet() const { - return m_IsLockedIsSet; + return m_IsLocked.has_value(); } void APIComment::unsetIsLocked() { - m_IsLockedIsSet = false; + m_IsLocked.reset(); } bool APIComment::isIsSpam() const { @@ -2182,65 +2120,62 @@ void APIComment::unsetIsSpam() } int32_t APIComment::getLocalDateHours() const { - return m_LocalDateHours; + return m_LocalDateHours.get(); } void APIComment::setLocalDateHours(int32_t value) { m_LocalDateHours = value; - m_LocalDateHoursIsSet = true; } bool APIComment::localDateHoursIsSet() const { - return m_LocalDateHoursIsSet; + return m_LocalDateHours.has_value(); } void APIComment::unsetLocalDateHours() { - m_LocalDateHoursIsSet = false; + m_LocalDateHours.reset(); } utility::string_t APIComment::getLocalDateString() const { - return m_LocalDateString; + return m_LocalDateString.get(); } void APIComment::setLocalDateString(const utility::string_t& value) { m_LocalDateString = value; - m_LocalDateStringIsSet = true; } bool APIComment::localDateStringIsSet() const { - return m_LocalDateStringIsSet; + return m_LocalDateString.has_value(); } void APIComment::unsetLocalDateString() { - m_LocalDateStringIsSet = false; + m_LocalDateString.reset(); } utility::string_t APIComment::getLocale() const { - return m_Locale; + return m_Locale.get(); } void APIComment::setLocale(const utility::string_t& value) { m_Locale = value; - m_LocaleIsSet = true; } bool APIComment::localeIsSet() const { - return m_LocaleIsSet; + return m_Locale.has_value(); } void APIComment::unsetLocale() { - m_LocaleIsSet = false; + m_Locale.reset(); } std::vector> APIComment::getMentions() const { @@ -2265,45 +2200,43 @@ void APIComment::unsetMentions() } std::shared_ptr APIComment::getMeta() const { - return m_Meta; + return m_Meta.get(); } void APIComment::setMeta(const std::shared_ptr& value) { m_Meta = value; - m_MetaIsSet = true; } bool APIComment::metaIsSet() const { - return m_MetaIsSet; + return m_Meta.has_value(); } void APIComment::unsetMeta() { - m_MetaIsSet = false; + m_Meta.reset(); } std::vector APIComment::getModerationGroupIds() const { - return m_ModerationGroupIds; + return m_ModerationGroupIds.get(); } void APIComment::setModerationGroupIds(const std::vector& value) { m_ModerationGroupIds = value; - m_ModerationGroupIdsIsSet = true; } bool APIComment::moderationGroupIdsIsSet() const { - return m_ModerationGroupIdsIsSet; + return m_ModerationGroupIds.has_value(); } void APIComment::unsetModerationGroupIds() { - m_ModerationGroupIdsIsSet = false; + m_ModerationGroupIds.reset(); } bool APIComment::isNotificationSentForParent() const { @@ -2347,65 +2280,62 @@ void APIComment::unsetNotificationSentForParentTenant() } utility::string_t APIComment::getPageTitle() const { - return m_PageTitle; + return m_PageTitle.get(); } void APIComment::setPageTitle(const utility::string_t& value) { m_PageTitle = value; - m_PageTitleIsSet = true; } bool APIComment::pageTitleIsSet() const { - return m_PageTitleIsSet; + return m_PageTitle.has_value(); } void APIComment::unsetPageTitle() { - m_PageTitleIsSet = false; + m_PageTitle.reset(); } utility::string_t APIComment::getParentId() const { - return m_ParentId; + return m_ParentId.get(); } void APIComment::setParentId(const utility::string_t& value) { m_ParentId = value; - m_ParentIdIsSet = true; } bool APIComment::parentIdIsSet() const { - return m_ParentIdIsSet; + return m_ParentId.has_value(); } void APIComment::unsetParentId() { - m_ParentIdIsSet = false; + m_ParentId.reset(); } double APIComment::getRating() const { - return m_Rating; + return m_Rating.get(); } void APIComment::setRating(double value) { m_Rating = value; - m_RatingIsSet = true; } bool APIComment::ratingIsSet() const { - return m_RatingIsSet; + return m_Rating.has_value(); } void APIComment::unsetRating() { - m_RatingIsSet = false; + m_Rating.reset(); } bool APIComment::isReviewed() const { @@ -2513,24 +2443,23 @@ void APIComment::unsetUrlIdRaw() } utility::string_t APIComment::getUserId() const { - return m_UserId; + return m_UserId.get(); } void APIComment::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool APIComment::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void APIComment::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } bool APIComment::isVerified() const { @@ -2554,84 +2483,80 @@ void APIComment::unsetVerified() } utility::datetime APIComment::getVerifiedDate() const { - return m_VerifiedDate; + return m_VerifiedDate.get(); } void APIComment::setVerifiedDate(const utility::datetime& value) { m_VerifiedDate = value; - m_VerifiedDateIsSet = true; } bool APIComment::verifiedDateIsSet() const { - return m_VerifiedDateIsSet; + return m_VerifiedDate.has_value(); } void APIComment::unsetVerifiedDate() { - m_VerifiedDateIsSet = false; + m_VerifiedDate.reset(); } int32_t APIComment::getVotes() const { - return m_Votes; + return m_Votes.get(); } void APIComment::setVotes(int32_t value) { m_Votes = value; - m_VotesIsSet = true; } bool APIComment::votesIsSet() const { - return m_VotesIsSet; + return m_Votes.has_value(); } void APIComment::unsetVotes() { - m_VotesIsSet = false; + m_Votes.reset(); } int32_t APIComment::getVotesDown() const { - return m_VotesDown; + return m_VotesDown.get(); } void APIComment::setVotesDown(int32_t value) { m_VotesDown = value; - m_VotesDownIsSet = true; } bool APIComment::votesDownIsSet() const { - return m_VotesDownIsSet; + return m_VotesDown.has_value(); } void APIComment::unsetVotesDown() { - m_VotesDownIsSet = false; + m_VotesDown.reset(); } int32_t APIComment::getVotesUp() const { - return m_VotesUp; + return m_VotesUp.get(); } void APIComment::setVotesUp(int32_t value) { m_VotesUp = value; - m_VotesUpIsSet = true; } bool APIComment::votesUpIsSet() const { - return m_VotesUpIsSet; + return m_VotesUp.has_value(); } void APIComment::unsetVotesUp() { - m_VotesUpIsSet = false; + m_VotesUp.reset(); } } diff --git a/client/src/model/APICommentBase.cpp b/client/src/model/APICommentBase.cpp index e0c3975..21af956 100644 --- a/client/src/model/APICommentBase.cpp +++ b/client/src/model/APICommentBase.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,38 +24,17 @@ APICommentBase::APICommentBase() m_IdIsSet = false; m_AiDeterminedSpam = false; m_AiDeterminedSpamIsSet = false; - m_AnonUserId = utility::conversions::to_string_t(""); - m_AnonUserIdIsSet = false; m_Approved = false; m_ApprovedIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; - m_BadgesIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; - m_CommenterEmail = utility::conversions::to_string_t(""); - m_CommenterEmailIsSet = false; - m_CommenterLink = utility::conversions::to_string_t(""); - m_CommenterLinkIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; - m_date = utility::datetime(); - m_dateIsSet = false; - m_DisplayLabel = utility::conversions::to_string_t(""); - m_DisplayLabelIsSet = false; - m_Domain = nullptr; - m_DomainIsSet = false; m_ExternalId = utility::conversions::to_string_t(""); m_ExternalIdIsSet = false; - m_ExternalParentId = utility::conversions::to_string_t(""); - m_ExternalParentIdIsSet = false; - m_ExpireAt = utility::datetime(); - m_ExpireAtIsSet = false; m_FeedbackIdsIsSet = false; - m_FlagCount = 0; - m_FlagCountIsSet = false; m_FromProductId = 0; m_FromProductIdIsSet = false; m_HasCode = false; @@ -73,31 +52,13 @@ APICommentBase::APICommentBase() m_IsDeletedIsSet = false; m_IsDeletedUser = false; m_IsDeletedUserIsSet = false; - m_IsPinned = false; - m_IsPinnedIsSet = false; - m_IsLocked = false; - m_IsLockedIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; - m_LocalDateHours = 0; - m_LocalDateHoursIsSet = false; - m_LocalDateString = utility::conversions::to_string_t(""); - m_LocalDateStringIsSet = false; - m_Locale = utility::conversions::to_string_t(""); - m_LocaleIsSet = false; m_MentionsIsSet = false; - m_MetaIsSet = false; - m_ModerationGroupIdsIsSet = false; m_NotificationSentForParent = false; m_NotificationSentForParentIsSet = false; m_NotificationSentForParentTenant = false; m_NotificationSentForParentTenantIsSet = false; - m_PageTitle = utility::conversions::to_string_t(""); - m_PageTitleIsSet = false; - m_ParentId = utility::conversions::to_string_t(""); - m_ParentIdIsSet = false; - m_Rating = 0.0; - m_RatingIsSet = false; m_Reviewed = false; m_ReviewedIsSet = false; m_TenantId = utility::conversions::to_string_t(""); @@ -108,18 +69,8 @@ APICommentBase::APICommentBase() m_UrlIdIsSet = false; m_UrlIdRaw = utility::conversions::to_string_t(""); m_UrlIdRawIsSet = false; - m_UserId = nullptr; - m_UserIdIsSet = false; m_Verified = false; m_VerifiedIsSet = false; - m_VerifiedDate = utility::datetime(); - m_VerifiedDateIsSet = false; - m_Votes = 0; - m_VotesIsSet = false; - m_VotesDown = 0; - m_VotesDownIsSet = false; - m_VotesUp = 0; - m_VotesUpIsSet = false; } APICommentBase::~APICommentBase() @@ -135,269 +86,269 @@ web::json::value APICommentBase::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_AiDeterminedSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("aiDeterminedSpam"))] = ModelBase::toJson(m_AiDeterminedSpam); } - if(m_AnonUserIdIsSet) - { + if(m_AnonUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } - if(m_BadgesIsSet) - { + if(m_Badges.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } - if(m_CommenterEmailIsSet) - { + if(m_CommenterEmail.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); } - if(m_CommenterLinkIsSet) - { + if(m_CommenterLink.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_dateIsSet) - { + if(m_date.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); } - if(m_DisplayLabelIsSet) - { + if(m_DisplayLabel.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); } - if(m_DomainIsSet) - { + if(m_Domain.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain.get()); } if(m_ExternalIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("externalId"))] = ModelBase::toJson(m_ExternalId); } - if(m_ExternalParentIdIsSet) - { + if(m_ExternalParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId); + val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId.get()); } - if(m_ExpireAtIsSet) - { + if(m_ExpireAt.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt.get()); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } - if(m_FlagCountIsSet) - { + if(m_FlagCount.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); } if(m_FromProductIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromProductId"))] = ModelBase::toJson(m_FromProductId); } if(m_HasCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasCode"))] = ModelBase::toJson(m_HasCode); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } if(m_HasLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLinks"))] = ModelBase::toJson(m_HasLinks); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } - if(m_IsPinnedIsSet) - { + if(m_IsPinned.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); } - if(m_IsLockedIsSet) - { + if(m_IsLocked.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } - if(m_LocalDateHoursIsSet) - { + if(m_LocalDateHours.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours); + val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours.get()); } - if(m_LocalDateStringIsSet) - { + if(m_LocalDateString.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); + val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString.get()); } - if(m_LocaleIsSet) - { + if(m_Locale.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale.get()); } if(m_MentionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("mentions"))] = ModelBase::toJson(m_Mentions); } - if(m_MetaIsSet) - { + if(m_Meta.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); } - if(m_ModerationGroupIdsIsSet) - { + if(m_ModerationGroupIds.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); + val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds.get()); } if(m_NotificationSentForParentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParent"))] = ModelBase::toJson(m_NotificationSentForParent); } if(m_NotificationSentForParentTenantIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParentTenant"))] = ModelBase::toJson(m_NotificationSentForParentTenant); } - if(m_PageTitleIsSet) - { + if(m_PageTitle.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); } - if(m_ParentIdIsSet) - { + if(m_ParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); } - if(m_RatingIsSet) - { + if(m_Rating.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIdRawIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdRaw"))] = ModelBase::toJson(m_UrlIdRaw); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_VerifiedDateIsSet) - { + if(m_VerifiedDate.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate); + val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate.get()); } - if(m_VotesIsSet) - { + if(m_Votes.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); } - if(m_VotesDownIsSet) - { + if(m_VotesDown.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); } - if(m_VotesUpIsSet) - { + if(m_VotesUp.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); } return val; @@ -1007,21 +958,21 @@ void APICommentBase::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("aiDeterminedSpam")), m_AiDeterminedSpam)); } - if(m_AnonUserIdIsSet) + if(m_AnonUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); } if(m_ApprovedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } - if(m_BadgesIsSet) + if(m_Badges.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); } if(m_CommentIsSet) { @@ -1031,49 +982,49 @@ void APICommentBase::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); } - if(m_CommenterEmailIsSet) + if(m_CommenterEmail.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); } - if(m_CommenterLinkIsSet) + if(m_CommenterLink.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); } if(m_CommenterNameIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_dateIsSet) + if(m_date.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); } - if(m_DisplayLabelIsSet) + if(m_DisplayLabel.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); } - if(m_DomainIsSet) + if(m_Domain.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain.get())); } if(m_ExternalIdIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalId")), m_ExternalId)); } - if(m_ExternalParentIdIsSet) + if(m_ExternalParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId.get())); } - if(m_ExpireAtIsSet) + if(m_ExpireAt.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt.get())); } if(m_FeedbackIdsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedbackIds")), m_FeedbackIds)); } - if(m_FlagCountIsSet) + if(m_FlagCount.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); } if(m_FromProductIdIsSet) { @@ -1111,41 +1062,41 @@ void APICommentBase::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isDeletedUser")), m_IsDeletedUser)); } - if(m_IsPinnedIsSet) + if(m_IsPinned.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); } - if(m_IsLockedIsSet) + if(m_IsLocked.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); } if(m_IsSpamIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); } - if(m_LocalDateHoursIsSet) + if(m_LocalDateHours.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours.get())); } - if(m_LocalDateStringIsSet) + if(m_LocalDateString.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString.get())); } - if(m_LocaleIsSet) + if(m_Locale.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale.get())); } if(m_MentionsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("mentions")), m_Mentions)); } - if(m_MetaIsSet) + if(m_Meta.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); } - if(m_ModerationGroupIdsIsSet) + if(m_ModerationGroupIds.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds.get())); } if(m_NotificationSentForParentIsSet) { @@ -1155,17 +1106,17 @@ void APICommentBase::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notificationSentForParentTenant")), m_NotificationSentForParentTenant)); } - if(m_PageTitleIsSet) + if(m_PageTitle.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); } - if(m_ParentIdIsSet) + if(m_ParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); } - if(m_RatingIsSet) + if(m_Rating.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); } if(m_ReviewedIsSet) { @@ -1187,29 +1138,29 @@ void APICommentBase::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdRaw")), m_UrlIdRaw)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_VerifiedDateIsSet) + if(m_VerifiedDate.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate.get())); } - if(m_VotesIsSet) + if(m_Votes.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); } - if(m_VotesDownIsSet) + if(m_VotesDown.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); } - if(m_VotesUpIsSet) + if(m_VotesUp.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); } } @@ -1587,24 +1538,23 @@ void APICommentBase::unsetAiDeterminedSpam() } utility::string_t APICommentBase::getAnonUserId() const { - return m_AnonUserId; + return m_AnonUserId.get(); } void APICommentBase::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; - m_AnonUserIdIsSet = true; } bool APICommentBase::anonUserIdIsSet() const { - return m_AnonUserIdIsSet; + return m_AnonUserId.has_value(); } void APICommentBase::unsetAnonUserId() { - m_AnonUserIdIsSet = false; + m_AnonUserId.reset(); } bool APICommentBase::isApproved() const { @@ -1628,45 +1578,43 @@ void APICommentBase::unsetApproved() } utility::string_t APICommentBase::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void APICommentBase::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool APICommentBase::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void APICommentBase::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } std::vector> APICommentBase::getBadges() const { - return m_Badges; + return m_Badges.get(); } void APICommentBase::setBadges(const std::vector>& value) { m_Badges = value; - m_BadgesIsSet = true; } bool APICommentBase::badgesIsSet() const { - return m_BadgesIsSet; + return m_Badges.has_value(); } void APICommentBase::unsetBadges() { - m_BadgesIsSet = false; + m_Badges.reset(); } utility::string_t APICommentBase::getComment() const { @@ -1712,45 +1660,43 @@ void APICommentBase::unsetCommentHTML() } utility::string_t APICommentBase::getCommenterEmail() const { - return m_CommenterEmail; + return m_CommenterEmail.get(); } void APICommentBase::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; - m_CommenterEmailIsSet = true; } bool APICommentBase::commenterEmailIsSet() const { - return m_CommenterEmailIsSet; + return m_CommenterEmail.has_value(); } void APICommentBase::unsetCommenterEmail() { - m_CommenterEmailIsSet = false; + m_CommenterEmail.reset(); } utility::string_t APICommentBase::getCommenterLink() const { - return m_CommenterLink; + return m_CommenterLink.get(); } void APICommentBase::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; - m_CommenterLinkIsSet = true; } bool APICommentBase::commenterLinkIsSet() const { - return m_CommenterLinkIsSet; + return m_CommenterLink.has_value(); } void APICommentBase::unsetCommenterLink() { - m_CommenterLinkIsSet = false; + m_CommenterLink.reset(); } utility::string_t APICommentBase::getCommenterName() const { @@ -1775,66 +1721,63 @@ void APICommentBase::unsetCommenterName() } utility::datetime APICommentBase::getDate() const { - return m_date; + return m_date.get(); } void APICommentBase::setDate(const utility::datetime& value) { m_date = value; - m_dateIsSet = true; } bool APICommentBase::dateIsSet() const { - return m_dateIsSet; + return m_date.has_value(); } void APICommentBase::unsetdate() { - m_dateIsSet = false; + m_date.reset(); } utility::string_t APICommentBase::getDisplayLabel() const { - return m_DisplayLabel; + return m_DisplayLabel.get(); } void APICommentBase::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; - m_DisplayLabelIsSet = true; } bool APICommentBase::displayLabelIsSet() const { - return m_DisplayLabelIsSet; + return m_DisplayLabel.has_value(); } void APICommentBase::unsetDisplayLabel() { - m_DisplayLabelIsSet = false; + m_DisplayLabel.reset(); } utility::string_t APICommentBase::getDomain() const { - return m_Domain; + return m_Domain.get(); } void APICommentBase::setDomain(const utility::string_t& value) { m_Domain = value; - m_DomainIsSet = true; } bool APICommentBase::domainIsSet() const { - return m_DomainIsSet; + return m_Domain.has_value(); } void APICommentBase::unsetDomain() { - m_DomainIsSet = false; + m_Domain.reset(); } utility::string_t APICommentBase::getExternalId() const { @@ -1859,45 +1802,43 @@ void APICommentBase::unsetExternalId() } utility::string_t APICommentBase::getExternalParentId() const { - return m_ExternalParentId; + return m_ExternalParentId.get(); } void APICommentBase::setExternalParentId(const utility::string_t& value) { m_ExternalParentId = value; - m_ExternalParentIdIsSet = true; } bool APICommentBase::externalParentIdIsSet() const { - return m_ExternalParentIdIsSet; + return m_ExternalParentId.has_value(); } void APICommentBase::unsetExternalParentId() { - m_ExternalParentIdIsSet = false; + m_ExternalParentId.reset(); } utility::datetime APICommentBase::getExpireAt() const { - return m_ExpireAt; + return m_ExpireAt.get(); } void APICommentBase::setExpireAt(const utility::datetime& value) { m_ExpireAt = value; - m_ExpireAtIsSet = true; } bool APICommentBase::expireAtIsSet() const { - return m_ExpireAtIsSet; + return m_ExpireAt.has_value(); } void APICommentBase::unsetExpireAt() { - m_ExpireAtIsSet = false; + m_ExpireAt.reset(); } std::vector APICommentBase::getFeedbackIds() const { @@ -1922,23 +1863,22 @@ void APICommentBase::unsetFeedbackIds() } int32_t APICommentBase::getFlagCount() const { - return m_FlagCount; + return m_FlagCount.get(); } void APICommentBase::setFlagCount(int32_t value) { m_FlagCount = value; - m_FlagCountIsSet = true; } bool APICommentBase::flagCountIsSet() const { - return m_FlagCountIsSet; + return m_FlagCount.has_value(); } void APICommentBase::unsetFlagCount() { - m_FlagCountIsSet = false; + m_FlagCount.reset(); } int32_t APICommentBase::getFromProductId() const { @@ -2123,43 +2063,41 @@ void APICommentBase::unsetIsDeletedUser() } bool APICommentBase::isIsPinned() const { - return m_IsPinned; + return m_IsPinned.get(); } void APICommentBase::setIsPinned(bool value) { m_IsPinned = value; - m_IsPinnedIsSet = true; } bool APICommentBase::isPinnedIsSet() const { - return m_IsPinnedIsSet; + return m_IsPinned.has_value(); } void APICommentBase::unsetIsPinned() { - m_IsPinnedIsSet = false; + m_IsPinned.reset(); } bool APICommentBase::isIsLocked() const { - return m_IsLocked; + return m_IsLocked.get(); } void APICommentBase::setIsLocked(bool value) { m_IsLocked = value; - m_IsLockedIsSet = true; } bool APICommentBase::isLockedIsSet() const { - return m_IsLockedIsSet; + return m_IsLocked.has_value(); } void APICommentBase::unsetIsLocked() { - m_IsLockedIsSet = false; + m_IsLocked.reset(); } bool APICommentBase::isIsSpam() const { @@ -2183,65 +2121,62 @@ void APICommentBase::unsetIsSpam() } int32_t APICommentBase::getLocalDateHours() const { - return m_LocalDateHours; + return m_LocalDateHours.get(); } void APICommentBase::setLocalDateHours(int32_t value) { m_LocalDateHours = value; - m_LocalDateHoursIsSet = true; } bool APICommentBase::localDateHoursIsSet() const { - return m_LocalDateHoursIsSet; + return m_LocalDateHours.has_value(); } void APICommentBase::unsetLocalDateHours() { - m_LocalDateHoursIsSet = false; + m_LocalDateHours.reset(); } utility::string_t APICommentBase::getLocalDateString() const { - return m_LocalDateString; + return m_LocalDateString.get(); } void APICommentBase::setLocalDateString(const utility::string_t& value) { m_LocalDateString = value; - m_LocalDateStringIsSet = true; } bool APICommentBase::localDateStringIsSet() const { - return m_LocalDateStringIsSet; + return m_LocalDateString.has_value(); } void APICommentBase::unsetLocalDateString() { - m_LocalDateStringIsSet = false; + m_LocalDateString.reset(); } utility::string_t APICommentBase::getLocale() const { - return m_Locale; + return m_Locale.get(); } void APICommentBase::setLocale(const utility::string_t& value) { m_Locale = value; - m_LocaleIsSet = true; } bool APICommentBase::localeIsSet() const { - return m_LocaleIsSet; + return m_Locale.has_value(); } void APICommentBase::unsetLocale() { - m_LocaleIsSet = false; + m_Locale.reset(); } std::vector> APICommentBase::getMentions() const { @@ -2266,45 +2201,43 @@ void APICommentBase::unsetMentions() } std::shared_ptr APICommentBase::getMeta() const { - return m_Meta; + return m_Meta.get(); } void APICommentBase::setMeta(const std::shared_ptr& value) { m_Meta = value; - m_MetaIsSet = true; } bool APICommentBase::metaIsSet() const { - return m_MetaIsSet; + return m_Meta.has_value(); } void APICommentBase::unsetMeta() { - m_MetaIsSet = false; + m_Meta.reset(); } std::vector APICommentBase::getModerationGroupIds() const { - return m_ModerationGroupIds; + return m_ModerationGroupIds.get(); } void APICommentBase::setModerationGroupIds(const std::vector& value) { m_ModerationGroupIds = value; - m_ModerationGroupIdsIsSet = true; } bool APICommentBase::moderationGroupIdsIsSet() const { - return m_ModerationGroupIdsIsSet; + return m_ModerationGroupIds.has_value(); } void APICommentBase::unsetModerationGroupIds() { - m_ModerationGroupIdsIsSet = false; + m_ModerationGroupIds.reset(); } bool APICommentBase::isNotificationSentForParent() const { @@ -2348,65 +2281,62 @@ void APICommentBase::unsetNotificationSentForParentTenant() } utility::string_t APICommentBase::getPageTitle() const { - return m_PageTitle; + return m_PageTitle.get(); } void APICommentBase::setPageTitle(const utility::string_t& value) { m_PageTitle = value; - m_PageTitleIsSet = true; } bool APICommentBase::pageTitleIsSet() const { - return m_PageTitleIsSet; + return m_PageTitle.has_value(); } void APICommentBase::unsetPageTitle() { - m_PageTitleIsSet = false; + m_PageTitle.reset(); } utility::string_t APICommentBase::getParentId() const { - return m_ParentId; + return m_ParentId.get(); } void APICommentBase::setParentId(const utility::string_t& value) { m_ParentId = value; - m_ParentIdIsSet = true; } bool APICommentBase::parentIdIsSet() const { - return m_ParentIdIsSet; + return m_ParentId.has_value(); } void APICommentBase::unsetParentId() { - m_ParentIdIsSet = false; + m_ParentId.reset(); } double APICommentBase::getRating() const { - return m_Rating; + return m_Rating.get(); } void APICommentBase::setRating(double value) { m_Rating = value; - m_RatingIsSet = true; } bool APICommentBase::ratingIsSet() const { - return m_RatingIsSet; + return m_Rating.has_value(); } void APICommentBase::unsetRating() { - m_RatingIsSet = false; + m_Rating.reset(); } bool APICommentBase::isReviewed() const { @@ -2514,24 +2444,23 @@ void APICommentBase::unsetUrlIdRaw() } utility::string_t APICommentBase::getUserId() const { - return m_UserId; + return m_UserId.get(); } void APICommentBase::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool APICommentBase::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void APICommentBase::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } bool APICommentBase::isVerified() const { @@ -2555,84 +2484,80 @@ void APICommentBase::unsetVerified() } utility::datetime APICommentBase::getVerifiedDate() const { - return m_VerifiedDate; + return m_VerifiedDate.get(); } void APICommentBase::setVerifiedDate(const utility::datetime& value) { m_VerifiedDate = value; - m_VerifiedDateIsSet = true; } bool APICommentBase::verifiedDateIsSet() const { - return m_VerifiedDateIsSet; + return m_VerifiedDate.has_value(); } void APICommentBase::unsetVerifiedDate() { - m_VerifiedDateIsSet = false; + m_VerifiedDate.reset(); } int32_t APICommentBase::getVotes() const { - return m_Votes; + return m_Votes.get(); } void APICommentBase::setVotes(int32_t value) { m_Votes = value; - m_VotesIsSet = true; } bool APICommentBase::votesIsSet() const { - return m_VotesIsSet; + return m_Votes.has_value(); } void APICommentBase::unsetVotes() { - m_VotesIsSet = false; + m_Votes.reset(); } int32_t APICommentBase::getVotesDown() const { - return m_VotesDown; + return m_VotesDown.get(); } void APICommentBase::setVotesDown(int32_t value) { m_VotesDown = value; - m_VotesDownIsSet = true; } bool APICommentBase::votesDownIsSet() const { - return m_VotesDownIsSet; + return m_VotesDown.has_value(); } void APICommentBase::unsetVotesDown() { - m_VotesDownIsSet = false; + m_VotesDown.reset(); } int32_t APICommentBase::getVotesUp() const { - return m_VotesUp; + return m_VotesUp.get(); } void APICommentBase::setVotesUp(int32_t value) { m_VotesUp = value; - m_VotesUpIsSet = true; } bool APICommentBase::votesUpIsSet() const { - return m_VotesUpIsSet; + return m_VotesUp.has_value(); } void APICommentBase::unsetVotesUp() { - m_VotesUpIsSet = false; + m_VotesUp.reset(); } } diff --git a/client/src/model/APICommentBase_meta.cpp b/client/src/model/APICommentBase_meta.cpp index 79f3bdb..208f652 100644 --- a/client/src/model/APICommentBase_meta.cpp +++ b/client/src/model/APICommentBase_meta.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,6 +24,7 @@ APICommentBase_meta::APICommentBase_meta() m_WpUserIdIsSet = false; m_WpPostId = utility::conversions::to_string_t(""); m_WpPostIdIsSet = false; + m_AdditionalPropertiesIsSet = false; } APICommentBase_meta::~APICommentBase_meta() @@ -39,15 +40,23 @@ web::json::value APICommentBase_meta::toJson() const { web::json::value val = web::json::value::object(); if(m_WpUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wpUserId"))] = ModelBase::toJson(m_WpUserId); } if(m_WpPostIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wpPostId"))] = ModelBase::toJson(m_WpPostId); } + // Serialize additional properties + if(m_AdditionalPropertiesIsSet) + { + for(const auto& item : m_AdditionalProperties) + { + val[item.first] = item.second; + } + } return val; } @@ -77,6 +86,19 @@ bool APICommentBase_meta::fromJson(const web::json::value& val) } } + // Capture additional properties (keys not defined in the schema) + if(val.is_object()) + { + for(const auto& item : val.as_object()) + { + // Skip known properties + if(item.first == utility::conversions::to_string_t(_XPLATSTR("wpUserId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("wpPostId"))) continue; + // This is an additional property + m_AdditionalProperties[item.first] = item.second; + m_AdditionalPropertiesIsSet = true; + } + } return ok; } @@ -165,6 +187,34 @@ void APICommentBase_meta::unsetWpPostId() m_WpPostIdIsSet = false; } + +std::map APICommentBase_meta::getAdditionalProperties() const +{ + return m_AdditionalProperties; +} + +void APICommentBase_meta::setAdditionalProperties(const std::map& value) +{ + m_AdditionalProperties = value; + m_AdditionalPropertiesIsSet = true; +} + +void APICommentBase_meta::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) +{ + m_AdditionalProperties[key] = value; + m_AdditionalPropertiesIsSet = true; +} + +bool APICommentBase_meta::additionalPropertiesIsSet() const +{ + return m_AdditionalPropertiesIsSet; +} + +void APICommentBase_meta::unsetAdditionalProperties() +{ + m_AdditionalProperties.clear(); + m_AdditionalPropertiesIsSet = false; +} } } } diff --git a/client/src/model/APICommentCommonBannedUser.cpp b/client/src/model/APICommentCommonBannedUser.cpp index 56c8268..33960a6 100644 --- a/client/src/model/APICommentCommonBannedUser.cpp +++ b/client/src/model/APICommentCommonBannedUser.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,16 +22,8 @@ APICommentCommonBannedUser::APICommentCommonBannedUser() { m__id = utility::conversions::to_string_t(""); m__idIsSet = false; - m_UserId = utility::conversions::to_string_t(""); - m_UserIdIsSet = false; m_BanType = utility::conversions::to_string_t(""); m_BanTypeIsSet = false; - m_Email = utility::conversions::to_string_t(""); - m_EmailIsSet = false; - m_IpHash = utility::conversions::to_string_t(""); - m_IpHashIsSet = false; - m_BannedUntil = utility::datetime(); - m_BannedUntilIsSet = false; m_HasEmailWildcard = false; m_HasEmailWildcardIsSet = false; m_BanReason = utility::conversions::to_string_t(""); @@ -51,42 +43,42 @@ web::json::value APICommentCommonBannedUser::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } if(m_BanTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("banType"))] = ModelBase::toJson(m_BanType); } - if(m_EmailIsSet) - { + if(m_Email.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); } - if(m_IpHashIsSet) - { + if(m_IpHash.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); + val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash.get()); } - if(m_BannedUntilIsSet) - { + if(m_BannedUntil.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil.get()); } if(m_HasEmailWildcardIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasEmailWildcard"))] = ModelBase::toJson(m_HasEmailWildcard); } if(m_BanReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("banReason"))] = ModelBase::toJson(m_BanReason); } @@ -199,25 +191,25 @@ void APICommentCommonBannedUser::toMultipart(std::shared_ptr { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } if(m_BanTypeIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("banType")), m_BanType)); } - if(m_EmailIsSet) + if(m_Email.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); } - if(m_IpHashIsSet) + if(m_IpHash.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHash")), m_IpHash.get())); } - if(m_BannedUntilIsSet) + if(m_BannedUntil.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil.get())); } if(m_HasEmailWildcardIsSet) { @@ -313,24 +305,23 @@ void APICommentCommonBannedUser::unset_id() } utility::string_t APICommentCommonBannedUser::getUserId() const { - return m_UserId; + return m_UserId.get(); } void APICommentCommonBannedUser::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool APICommentCommonBannedUser::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void APICommentCommonBannedUser::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t APICommentCommonBannedUser::getBanType() const { @@ -355,66 +346,63 @@ void APICommentCommonBannedUser::unsetBanType() } utility::string_t APICommentCommonBannedUser::getEmail() const { - return m_Email; + return m_Email.get(); } void APICommentCommonBannedUser::setEmail(const utility::string_t& value) { m_Email = value; - m_EmailIsSet = true; } bool APICommentCommonBannedUser::emailIsSet() const { - return m_EmailIsSet; + return m_Email.has_value(); } void APICommentCommonBannedUser::unsetEmail() { - m_EmailIsSet = false; + m_Email.reset(); } utility::string_t APICommentCommonBannedUser::getIpHash() const { - return m_IpHash; + return m_IpHash.get(); } void APICommentCommonBannedUser::setIpHash(const utility::string_t& value) { m_IpHash = value; - m_IpHashIsSet = true; } bool APICommentCommonBannedUser::ipHashIsSet() const { - return m_IpHashIsSet; + return m_IpHash.has_value(); } void APICommentCommonBannedUser::unsetIpHash() { - m_IpHashIsSet = false; + m_IpHash.reset(); } utility::datetime APICommentCommonBannedUser::getBannedUntil() const { - return m_BannedUntil; + return m_BannedUntil.get(); } void APICommentCommonBannedUser::setBannedUntil(const utility::datetime& value) { m_BannedUntil = value; - m_BannedUntilIsSet = true; } bool APICommentCommonBannedUser::bannedUntilIsSet() const { - return m_BannedUntilIsSet; + return m_BannedUntil.has_value(); } void APICommentCommonBannedUser::unsetBannedUntil() { - m_BannedUntilIsSet = false; + m_BannedUntil.reset(); } bool APICommentCommonBannedUser::isHasEmailWildcard() const { diff --git a/client/src/model/APICreateUserBadgeResponse.cpp b/client/src/model/APICreateUserBadgeResponse.cpp index 9f0c480..0bb9ff2 100644 --- a/client/src/model/APICreateUserBadgeResponse.cpp +++ b/client/src/model/APICreateUserBadgeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,17 +38,17 @@ web::json::value APICreateUserBadgeResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserBadgeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userBadge"))] = ModelBase::toJson(m_UserBadge); } if(m_NotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notes"))] = ModelBase::toJson(m_Notes); } diff --git a/client/src/model/APIDomainConfiguration.cpp b/client/src/model/APIDomainConfiguration.cpp index 3782434..aaf0bba 100644 --- a/client/src/model/APIDomainConfiguration.cpp +++ b/client/src/model/APIDomainConfiguration.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,26 +24,14 @@ APIDomainConfiguration::APIDomainConfiguration() m_IdIsSet = false; m_Domain = utility::conversions::to_string_t(""); m_DomainIsSet = false; - m_EmailFromName = utility::conversions::to_string_t(""); - m_EmailFromNameIsSet = false; - m_EmailFromEmail = utility::conversions::to_string_t(""); - m_EmailFromEmailIsSet = false; m_EmailHeadersIsSet = false; - m_WpSyncToken = utility::conversions::to_string_t(""); - m_WpSyncTokenIsSet = false; m_WpSynced = false; m_WpSyncedIsSet = false; - m_WpURL = utility::conversions::to_string_t(""); - m_WpURLIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; m_AutoAddedDate = utility::datetime(); m_AutoAddedDateIsSet = false; m_SiteTypeIsSet = false; - m_LogoSrc = utility::conversions::to_string_t(""); - m_LogoSrcIsSet = false; - m_LogoSrc100px = utility::conversions::to_string_t(""); - m_LogoSrc100pxIsSet = false; m_FooterUnsubscribeURL = utility::conversions::to_string_t(""); m_FooterUnsubscribeURLIsSet = false; m_DisableUnsubscribeLinks = false; @@ -63,77 +51,77 @@ web::json::value APIDomainConfiguration::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } - if(m_EmailFromNameIsSet) - { + if(m_EmailFromName.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("emailFromName"))] = ModelBase::toJson(m_EmailFromName); + val[utility::conversions::to_string_t(_XPLATSTR("emailFromName"))] = ModelBase::toJson(m_EmailFromName.get()); } - if(m_EmailFromEmailIsSet) - { + if(m_EmailFromEmail.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("emailFromEmail"))] = ModelBase::toJson(m_EmailFromEmail); + val[utility::conversions::to_string_t(_XPLATSTR("emailFromEmail"))] = ModelBase::toJson(m_EmailFromEmail.get()); } if(m_EmailHeadersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailHeaders"))] = ModelBase::toJson(m_EmailHeaders); } - if(m_WpSyncTokenIsSet) - { + if(m_WpSyncToken.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("wpSyncToken"))] = ModelBase::toJson(m_WpSyncToken); + val[utility::conversions::to_string_t(_XPLATSTR("wpSyncToken"))] = ModelBase::toJson(m_WpSyncToken.get()); } if(m_WpSyncedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wpSynced"))] = ModelBase::toJson(m_WpSynced); } - if(m_WpURLIsSet) - { + if(m_WpURL.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("wpURL"))] = ModelBase::toJson(m_WpURL); + val[utility::conversions::to_string_t(_XPLATSTR("wpURL"))] = ModelBase::toJson(m_WpURL.get()); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_AutoAddedDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoAddedDate"))] = ModelBase::toJson(m_AutoAddedDate); } if(m_SiteTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("siteType"))] = ModelBase::toJson(m_SiteType); } - if(m_LogoSrcIsSet) - { + if(m_LogoSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("logoSrc"))] = ModelBase::toJson(m_LogoSrc); + val[utility::conversions::to_string_t(_XPLATSTR("logoSrc"))] = ModelBase::toJson(m_LogoSrc.get()); } - if(m_LogoSrc100pxIsSet) - { + if(m_LogoSrc100px.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px); + val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px.get()); } if(m_FooterUnsubscribeURLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("footerUnsubscribeURL"))] = ModelBase::toJson(m_FooterUnsubscribeURL); } if(m_DisableUnsubscribeLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableUnsubscribeLinks"))] = ModelBase::toJson(m_DisableUnsubscribeLinks); } @@ -327,29 +315,29 @@ void APIDomainConfiguration::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); } - if(m_EmailFromNameIsSet) + if(m_EmailFromName.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailFromName")), m_EmailFromName)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailFromName")), m_EmailFromName.get())); } - if(m_EmailFromEmailIsSet) + if(m_EmailFromEmail.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailFromEmail")), m_EmailFromEmail)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailFromEmail")), m_EmailFromEmail.get())); } if(m_EmailHeadersIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailHeaders")), m_EmailHeaders)); } - if(m_WpSyncTokenIsSet) + if(m_WpSyncToken.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wpSyncToken")), m_WpSyncToken)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wpSyncToken")), m_WpSyncToken.get())); } if(m_WpSyncedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wpSynced")), m_WpSynced)); } - if(m_WpURLIsSet) + if(m_WpURL.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wpURL")), m_WpURL)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wpURL")), m_WpURL.get())); } if(m_CreatedAtIsSet) { @@ -363,13 +351,13 @@ void APIDomainConfiguration::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("siteType")), m_SiteType)); } - if(m_LogoSrcIsSet) + if(m_LogoSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logoSrc")), m_LogoSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logoSrc")), m_LogoSrc.get())); } - if(m_LogoSrc100pxIsSet) + if(m_LogoSrc100px.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logoSrc100px")), m_LogoSrc100px)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logoSrc100px")), m_LogoSrc100px.get())); } if(m_FooterUnsubscribeURLIsSet) { @@ -528,45 +516,43 @@ void APIDomainConfiguration::unsetDomain() } utility::string_t APIDomainConfiguration::getEmailFromName() const { - return m_EmailFromName; + return m_EmailFromName.get(); } void APIDomainConfiguration::setEmailFromName(const utility::string_t& value) { m_EmailFromName = value; - m_EmailFromNameIsSet = true; } bool APIDomainConfiguration::emailFromNameIsSet() const { - return m_EmailFromNameIsSet; + return m_EmailFromName.has_value(); } void APIDomainConfiguration::unsetEmailFromName() { - m_EmailFromNameIsSet = false; + m_EmailFromName.reset(); } utility::string_t APIDomainConfiguration::getEmailFromEmail() const { - return m_EmailFromEmail; + return m_EmailFromEmail.get(); } void APIDomainConfiguration::setEmailFromEmail(const utility::string_t& value) { m_EmailFromEmail = value; - m_EmailFromEmailIsSet = true; } bool APIDomainConfiguration::emailFromEmailIsSet() const { - return m_EmailFromEmailIsSet; + return m_EmailFromEmail.has_value(); } void APIDomainConfiguration::unsetEmailFromEmail() { - m_EmailFromEmailIsSet = false; + m_EmailFromEmail.reset(); } std::map APIDomainConfiguration::getEmailHeaders() const { @@ -591,24 +577,23 @@ void APIDomainConfiguration::unsetEmailHeaders() } utility::string_t APIDomainConfiguration::getWpSyncToken() const { - return m_WpSyncToken; + return m_WpSyncToken.get(); } void APIDomainConfiguration::setWpSyncToken(const utility::string_t& value) { m_WpSyncToken = value; - m_WpSyncTokenIsSet = true; } bool APIDomainConfiguration::wpSyncTokenIsSet() const { - return m_WpSyncTokenIsSet; + return m_WpSyncToken.has_value(); } void APIDomainConfiguration::unsetWpSyncToken() { - m_WpSyncTokenIsSet = false; + m_WpSyncToken.reset(); } bool APIDomainConfiguration::isWpSynced() const { @@ -632,24 +617,23 @@ void APIDomainConfiguration::unsetWpSynced() } utility::string_t APIDomainConfiguration::getWpURL() const { - return m_WpURL; + return m_WpURL.get(); } void APIDomainConfiguration::setWpURL(const utility::string_t& value) { m_WpURL = value; - m_WpURLIsSet = true; } bool APIDomainConfiguration::wpURLIsSet() const { - return m_WpURLIsSet; + return m_WpURL.has_value(); } void APIDomainConfiguration::unsetWpURL() { - m_WpURLIsSet = false; + m_WpURL.reset(); } utility::datetime APIDomainConfiguration::getCreatedAt() const { @@ -716,45 +700,43 @@ void APIDomainConfiguration::unsetSiteType() } utility::string_t APIDomainConfiguration::getLogoSrc() const { - return m_LogoSrc; + return m_LogoSrc.get(); } void APIDomainConfiguration::setLogoSrc(const utility::string_t& value) { m_LogoSrc = value; - m_LogoSrcIsSet = true; } bool APIDomainConfiguration::logoSrcIsSet() const { - return m_LogoSrcIsSet; + return m_LogoSrc.has_value(); } void APIDomainConfiguration::unsetLogoSrc() { - m_LogoSrcIsSet = false; + m_LogoSrc.reset(); } utility::string_t APIDomainConfiguration::getLogoSrc100px() const { - return m_LogoSrc100px; + return m_LogoSrc100px.get(); } void APIDomainConfiguration::setLogoSrc100px(const utility::string_t& value) { m_LogoSrc100px = value; - m_LogoSrc100pxIsSet = true; } bool APIDomainConfiguration::logoSrc100pxIsSet() const { - return m_LogoSrc100pxIsSet; + return m_LogoSrc100px.has_value(); } void APIDomainConfiguration::unsetLogoSrc100px() { - m_LogoSrc100pxIsSet = false; + m_LogoSrc100px.reset(); } utility::string_t APIDomainConfiguration::getFooterUnsubscribeURL() const { diff --git a/client/src/model/APIEmptyResponse.cpp b/client/src/model/APIEmptyResponse.cpp index 1dd5c95..d82c4e7 100644 --- a/client/src/model/APIEmptyResponse.cpp +++ b/client/src/model/APIEmptyResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value APIEmptyResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/APIEmptySuccessResponse.cpp b/client/src/model/APIEmptySuccessResponse.cpp index e69d04d..327f766 100644 --- a/client/src/model/APIEmptySuccessResponse.cpp +++ b/client/src/model/APIEmptySuccessResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value APIEmptySuccessResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/APIError.cpp b/client/src/model/APIError.cpp index 5fa8454..c6c68b6 100644 --- a/client/src/model/APIError.cpp +++ b/client/src/model/APIError.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -49,42 +49,42 @@ web::json::value APIError::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_SecondaryCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); } if(m_BannedUntilIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); } if(m_MaxCharacterLengthIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); } if(m_TranslatedErrorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); } if(m_CustomConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); } diff --git a/client/src/model/APIGetCommentResponse.cpp b/client/src/model/APIGetCommentResponse.cpp index 2b1cc3d..dae82f7 100644 --- a/client/src/model/APIGetCommentResponse.cpp +++ b/client/src/model/APIGetCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value APIGetCommentResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } diff --git a/client/src/model/APIGetCommentsResponse.cpp b/client/src/model/APIGetCommentsResponse.cpp index d275530..f58d78e 100644 --- a/client/src/model/APIGetCommentsResponse.cpp +++ b/client/src/model/APIGetCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value APIGetCommentsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); } diff --git a/client/src/model/APIGetUserBadgeProgressListResponse.cpp b/client/src/model/APIGetUserBadgeProgressListResponse.cpp index d3f5ee7..78cd004 100644 --- a/client/src/model/APIGetUserBadgeProgressListResponse.cpp +++ b/client/src/model/APIGetUserBadgeProgressListResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value APIGetUserBadgeProgressListResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserBadgeProgressesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses"))] = ModelBase::toJson(m_UserBadgeProgresses); } diff --git a/client/src/model/APIGetUserBadgeProgressResponse.cpp b/client/src/model/APIGetUserBadgeProgressResponse.cpp index f60dea0..839146d 100644 --- a/client/src/model/APIGetUserBadgeProgressResponse.cpp +++ b/client/src/model/APIGetUserBadgeProgressResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value APIGetUserBadgeProgressResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserBadgeProgressIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))] = ModelBase::toJson(m_UserBadgeProgress); } diff --git a/client/src/model/APIGetUserBadgeResponse.cpp b/client/src/model/APIGetUserBadgeResponse.cpp index 57823f5..ea6b2de 100644 --- a/client/src/model/APIGetUserBadgeResponse.cpp +++ b/client/src/model/APIGetUserBadgeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value APIGetUserBadgeResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserBadgeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userBadge"))] = ModelBase::toJson(m_UserBadge); } diff --git a/client/src/model/APIGetUserBadgesResponse.cpp b/client/src/model/APIGetUserBadgesResponse.cpp index c873220..1ff9bb3 100644 --- a/client/src/model/APIGetUserBadgesResponse.cpp +++ b/client/src/model/APIGetUserBadgesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value APIGetUserBadgesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserBadgesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userBadges"))] = ModelBase::toJson(m_UserBadges); } diff --git a/client/src/model/APIModerateGetUserBanPreferencesResponse.cpp b/client/src/model/APIModerateGetUserBanPreferencesResponse.cpp index 9c6f67a..d8b5801 100644 --- a/client/src/model/APIModerateGetUserBanPreferencesResponse.cpp +++ b/client/src/model/APIModerateGetUserBanPreferencesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,7 +20,6 @@ namespace model { APIModerateGetUserBanPreferencesResponse::APIModerateGetUserBanPreferencesResponse() { - m_PreferencesIsSet = false; m_StatusIsSet = false; } @@ -36,13 +35,13 @@ void APIModerateGetUserBanPreferencesResponse::validate() web::json::value APIModerateGetUserBanPreferencesResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_PreferencesIsSet) - { + if(m_Preferences.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("preferences"))] = ModelBase::toJson(m_Preferences); + val[utility::conversions::to_string_t(_XPLATSTR("preferences"))] = ModelBase::toJson(m_Preferences.get()); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } @@ -85,9 +84,9 @@ void APIModerateGetUserBanPreferencesResponse::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("preferences")), m_Preferences)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("preferences")), m_Preferences.get())); } if(m_StatusIsSet) { @@ -122,24 +121,23 @@ bool APIModerateGetUserBanPreferencesResponse::fromMultiPart(std::shared_ptr APIModerateGetUserBanPreferencesResponse::getPreferences() const { - return m_Preferences; + return m_Preferences.get(); } void APIModerateGetUserBanPreferencesResponse::setPreferences(const std::shared_ptr& value) { m_Preferences = value; - m_PreferencesIsSet = true; } bool APIModerateGetUserBanPreferencesResponse::preferencesIsSet() const { - return m_PreferencesIsSet; + return m_Preferences.has_value(); } void APIModerateGetUserBanPreferencesResponse::unsetPreferences() { - m_PreferencesIsSet = false; + m_Preferences.reset(); } std::shared_ptr APIModerateGetUserBanPreferencesResponse::getStatus() const { diff --git a/client/src/model/APIModerateUserBanPreferences.cpp b/client/src/model/APIModerateUserBanPreferences.cpp index 4787b16..6849af5 100644 --- a/client/src/model/APIModerateUserBanPreferences.cpp +++ b/client/src/model/APIModerateUserBanPreferences.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,22 +43,22 @@ web::json::value APIModerateUserBanPreferences::toJson() const { web::json::value val = web::json::value::object(); if(m_ShouldBanEmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("shouldBanEmail"))] = ModelBase::toJson(m_ShouldBanEmail); } if(m_ShouldBanByIPIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("shouldBanByIP"))] = ModelBase::toJson(m_ShouldBanByIP); } if(m_LastBanTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastBanType"))] = ModelBase::toJson(m_LastBanType); } if(m_LastBanDurationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastBanDuration"))] = ModelBase::toJson(m_LastBanDuration); } diff --git a/client/src/model/APIPage.cpp b/client/src/model/APIPage.cpp index 9915339..7e0ea03 100644 --- a/client/src/model/APIPage.cpp +++ b/client/src/model/APIPage.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -52,47 +52,47 @@ web::json::value APIPage::toJson() const { web::json::value val = web::json::value::object(); if(m_IsClosedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isClosed"))] = ModelBase::toJson(m_IsClosed); } if(m_AccessibleByGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("accessibleByGroupIds"))] = ModelBase::toJson(m_AccessibleByGroupIds); } if(m_RootCommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("rootCommentCount"))] = ModelBase::toJson(m_RootCommentCount); } if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } diff --git a/client/src/model/APISSOUser.cpp b/client/src/model/APISSOUser.cpp index f2f2231..ac0265c 100644 --- a/client/src/model/APISSOUser.cpp +++ b/client/src/model/APISSOUser.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -74,102 +74,102 @@ web::json::value APISSOUser::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_CreatedFromUrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId"))] = ModelBase::toJson(m_CreatedFromUrlId); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_AvatarSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_OptedInSubscriptionNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInSubscriptionNotifications"))] = ModelBase::toJson(m_OptedInSubscriptionNotifications); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsProfileActivityPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileActivityPrivate"))] = ModelBase::toJson(m_IsProfileActivityPrivate); } if(m_IsProfileCommentsPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileCommentsPrivate"))] = ModelBase::toJson(m_IsProfileCommentsPrivate); } if(m_IsProfileDMDisabledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileDMDisabled"))] = ModelBase::toJson(m_IsProfileDMDisabled); } if(m_HasBlockedUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBlockedUsers"))] = ModelBase::toJson(m_HasBlockedUsers); } if(m_GroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); } diff --git a/client/src/model/APISaveCommentResponse.cpp b/client/src/model/APISaveCommentResponse.cpp index 62dbc06..ede700d 100644 --- a/client/src/model/APISaveCommentResponse.cpp +++ b/client/src/model/APISaveCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,7 +22,6 @@ APISaveCommentResponse::APISaveCommentResponse() { m_StatusIsSet = false; m_CommentIsSet = false; - m_UserIsSet = false; m_ModuleDataIsSet = false; } @@ -39,22 +38,22 @@ web::json::value APISaveCommentResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_UserIsSet) - { + if(m_User.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); } if(m_ModuleDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); } @@ -127,9 +126,9 @@ void APISaveCommentResponse::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_UserIsSet) + if(m_User.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); } if(m_ModuleDataIsSet) { @@ -218,24 +217,23 @@ void APISaveCommentResponse::unsetComment() } std::shared_ptr APISaveCommentResponse::getUser() const { - return m_User; + return m_User.get(); } void APISaveCommentResponse::setUser(const std::shared_ptr& value) { m_User = value; - m_UserIsSet = true; } bool APISaveCommentResponse::userIsSet() const { - return m_UserIsSet; + return m_User.has_value(); } void APISaveCommentResponse::unsetUser() { - m_UserIsSet = false; + m_User.reset(); } std::map> APISaveCommentResponse::getModuleData() const { diff --git a/client/src/model/APIStatus.cpp b/client/src/model/APIStatus.cpp index 9174c3f..334d0b4 100644 --- a/client/src/model/APIStatus.cpp +++ b/client/src/model/APIStatus.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APITenant.cpp b/client/src/model/APITenant.cpp index f39d5b6..a4acff9 100644 --- a/client/src/model/APITenant.cpp +++ b/client/src/model/APITenant.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -56,8 +56,6 @@ APITenant::APITenant() m_LastBillingIssueReminderDateIsSet = false; m_RemoveUnverifiedComments = false; m_RemoveUnverifiedCommentsIsSet = false; - m_UnverifiedCommentsTTLms = 0.0; - m_UnverifiedCommentsTTLmsIsSet = false; m_CommentsRequireApproval = false; m_CommentsRequireApprovalIsSet = false; m_AutoApproveCommentOnVerification = false; @@ -88,142 +86,142 @@ web::json::value APITenant::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_PackageIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("packageId"))] = ModelBase::toJson(m_PackageId); } if(m_PaymentFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("paymentFrequency"))] = ModelBase::toJson(m_PaymentFrequency); } if(m_BillingInfoValidIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingInfoValid"))] = ModelBase::toJson(m_BillingInfoValid); } if(m_BillingHandledExternallyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingHandledExternally"))] = ModelBase::toJson(m_BillingHandledExternally); } if(m_CreatedByIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdBy"))] = ModelBase::toJson(m_CreatedBy); } if(m_IsSetupIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSetup"))] = ModelBase::toJson(m_IsSetup); } if(m_DomainConfigurationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domainConfiguration"))] = ModelBase::toJson(m_DomainConfiguration); } if(m_BillingInfoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingInfo"))] = ModelBase::toJson(m_BillingInfo); } if(m_StripeCustomerIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripeCustomerId"))] = ModelBase::toJson(m_StripeCustomerId); } if(m_StripeSubscriptionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripeSubscriptionId"))] = ModelBase::toJson(m_StripeSubscriptionId); } if(m_StripePlanIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripePlanId"))] = ModelBase::toJson(m_StripePlanId); } if(m_EnableProfanityFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableProfanityFilter"))] = ModelBase::toJson(m_EnableProfanityFilter); } if(m_EnableSpamFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSpamFilter"))] = ModelBase::toJson(m_EnableSpamFilter); } if(m_LastBillingIssueReminderDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastBillingIssueReminderDate"))] = ModelBase::toJson(m_LastBillingIssueReminderDate); } if(m_RemoveUnverifiedCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("removeUnverifiedComments"))] = ModelBase::toJson(m_RemoveUnverifiedComments); } - if(m_UnverifiedCommentsTTLmsIsSet) - { + if(m_UnverifiedCommentsTTLms.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("unverifiedCommentsTTLms"))] = ModelBase::toJson(m_UnverifiedCommentsTTLms); + val[utility::conversions::to_string_t(_XPLATSTR("unverifiedCommentsTTLms"))] = ModelBase::toJson(m_UnverifiedCommentsTTLms.get()); } if(m_CommentsRequireApprovalIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentsRequireApproval"))] = ModelBase::toJson(m_CommentsRequireApproval); } if(m_AutoApproveCommentOnVerificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoApproveCommentOnVerification"))] = ModelBase::toJson(m_AutoApproveCommentOnVerification); } if(m_SendProfaneToSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sendProfaneToSpam"))] = ModelBase::toJson(m_SendProfaneToSpam); } if(m_HasFlexPricingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasFlexPricing"))] = ModelBase::toJson(m_HasFlexPricing); } if(m_HasAuditingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasAuditing"))] = ModelBase::toJson(m_HasAuditing); } if(m_FlexLastBilledAmountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexLastBilledAmount"))] = ModelBase::toJson(m_FlexLastBilledAmount); } if(m_DeAnonIpAddrIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("deAnonIpAddr"))] = ModelBase::toJson(m_DeAnonIpAddr); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } @@ -628,9 +626,9 @@ void APITenant::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("removeUnverifiedComments")), m_RemoveUnverifiedComments)); } - if(m_UnverifiedCommentsTTLmsIsSet) + if(m_UnverifiedCommentsTTLms.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("unverifiedCommentsTTLms")), m_UnverifiedCommentsTTLms)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("unverifiedCommentsTTLms")), m_UnverifiedCommentsTTLms.get())); } if(m_CommentsRequireApprovalIsSet) { @@ -1240,23 +1238,22 @@ void APITenant::unsetRemoveUnverifiedComments() } double APITenant::getUnverifiedCommentsTTLms() const { - return m_UnverifiedCommentsTTLms; + return m_UnverifiedCommentsTTLms.get(); } void APITenant::setUnverifiedCommentsTTLms(double value) { m_UnverifiedCommentsTTLms = value; - m_UnverifiedCommentsTTLmsIsSet = true; } bool APITenant::unverifiedCommentsTTLmsIsSet() const { - return m_UnverifiedCommentsTTLmsIsSet; + return m_UnverifiedCommentsTTLms.has_value(); } void APITenant::unsetUnverifiedCommentsTTLms() { - m_UnverifiedCommentsTTLmsIsSet = false; + m_UnverifiedCommentsTTLms.reset(); } bool APITenant::isCommentsRequireApproval() const { diff --git a/client/src/model/APITenantDailyUsage.cpp b/client/src/model/APITenantDailyUsage.cpp index ae4dd4e..bb926ea 100644 --- a/client/src/model/APITenantDailyUsage.cpp +++ b/client/src/model/APITenantDailyUsage.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -73,97 +73,97 @@ web::json::value APITenantDailyUsage::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_YearNumberIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("yearNumber"))] = ModelBase::toJson(m_YearNumber); } if(m_MonthNumberIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("monthNumber"))] = ModelBase::toJson(m_MonthNumber); } if(m_DayNumberIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("dayNumber"))] = ModelBase::toJson(m_DayNumber); } if(m_CommentFetchCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentFetchCount"))] = ModelBase::toJson(m_CommentFetchCount); } if(m_CommentCreateCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCreateCount"))] = ModelBase::toJson(m_CommentCreateCount); } if(m_ConversationCreateCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("conversationCreateCount"))] = ModelBase::toJson(m_ConversationCreateCount); } if(m_VoteCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("voteCount"))] = ModelBase::toJson(m_VoteCount); } if(m_AccountCreatedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("accountCreatedCount"))] = ModelBase::toJson(m_AccountCreatedCount); } if(m_UserMentionSearchIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userMentionSearch"))] = ModelBase::toJson(m_UserMentionSearch); } if(m_HashTagSearchIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTagSearch"))] = ModelBase::toJson(m_HashTagSearch); } if(m_GifSearchTrendingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("gifSearchTrending"))] = ModelBase::toJson(m_GifSearchTrending); } if(m_GifSearchIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("gifSearch"))] = ModelBase::toJson(m_GifSearch); } if(m_ApiCreditsUsedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("apiCreditsUsed"))] = ModelBase::toJson(m_ApiCreditsUsed); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_BilledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billed"))] = ModelBase::toJson(m_Billed); } if(m_IgnoredIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ignored"))] = ModelBase::toJson(m_Ignored); } if(m_ApiErrorCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("apiErrorCount"))] = ModelBase::toJson(m_ApiErrorCount); } diff --git a/client/src/model/APITicket.cpp b/client/src/model/APITicket.cpp index 58513a1..c4c7650 100644 --- a/client/src/model/APITicket.cpp +++ b/client/src/model/APITicket.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -52,47 +52,47 @@ web::json::value APITicket::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_ManagedByTenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("managedByTenantId"))] = ModelBase::toJson(m_ManagedByTenantId); } if(m_AssignedUserIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("assignedUserIds"))] = ModelBase::toJson(m_AssignedUserIds); } if(m_SubjectIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subject"))] = ModelBase::toJson(m_Subject); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_StateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("state"))] = ModelBase::toJson(m_State); } if(m_FileCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fileCount"))] = ModelBase::toJson(m_FileCount); } diff --git a/client/src/model/APITicketDetail.cpp b/client/src/model/APITicketDetail.cpp index 6087b24..f3ccdbb 100644 --- a/client/src/model/APITicketDetail.cpp +++ b/client/src/model/APITicketDetail.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,6 @@ APITicketDetail::APITicketDetail() m_FileCount = 0; m_FileCountIsSet = false; m_FilesIsSet = false; - m_ReopenedAt = utility::conversions::to_string_t(""); - m_ReopenedAtIsSet = false; - m_ResolvedAt = utility::conversions::to_string_t(""); - m_ResolvedAtIsSet = false; - m_AckAt = utility::conversions::to_string_t(""); - m_AckAtIsSet = false; } APITicketDetail::~APITicketDetail() @@ -59,69 +53,69 @@ web::json::value APITicketDetail::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_ManagedByTenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("managedByTenantId"))] = ModelBase::toJson(m_ManagedByTenantId); } if(m_AssignedUserIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("assignedUserIds"))] = ModelBase::toJson(m_AssignedUserIds); } if(m_SubjectIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subject"))] = ModelBase::toJson(m_Subject); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_StateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("state"))] = ModelBase::toJson(m_State); } if(m_FileCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fileCount"))] = ModelBase::toJson(m_FileCount); } if(m_FilesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("files"))] = ModelBase::toJson(m_Files); } - if(m_ReopenedAtIsSet) - { + if(m_ReopenedAt.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("reopenedAt"))] = ModelBase::toJson(m_ReopenedAt); + val[utility::conversions::to_string_t(_XPLATSTR("reopenedAt"))] = ModelBase::toJson(m_ReopenedAt.get()); } - if(m_ResolvedAtIsSet) - { + if(m_ResolvedAt.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("resolvedAt"))] = ModelBase::toJson(m_ResolvedAt); + val[utility::conversions::to_string_t(_XPLATSTR("resolvedAt"))] = ModelBase::toJson(m_ResolvedAt.get()); } - if(m_AckAtIsSet) - { + if(m_AckAt.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("ackAt"))] = ModelBase::toJson(m_AckAt); + val[utility::conversions::to_string_t(_XPLATSTR("ackAt"))] = ModelBase::toJson(m_AckAt.get()); } return val; @@ -323,17 +317,17 @@ void APITicketDetail::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("files")), m_Files)); } - if(m_ReopenedAtIsSet) + if(m_ReopenedAt.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reopenedAt")), m_ReopenedAt)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reopenedAt")), m_ReopenedAt.get())); } - if(m_ResolvedAtIsSet) + if(m_ResolvedAt.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("resolvedAt")), m_ResolvedAt)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("resolvedAt")), m_ResolvedAt.get())); } - if(m_AckAtIsSet) + if(m_AckAt.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ackAt")), m_AckAt)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ackAt")), m_AckAt.get())); } } @@ -638,66 +632,63 @@ void APITicketDetail::unsetFiles() } utility::string_t APITicketDetail::getReopenedAt() const { - return m_ReopenedAt; + return m_ReopenedAt.get(); } void APITicketDetail::setReopenedAt(const utility::string_t& value) { m_ReopenedAt = value; - m_ReopenedAtIsSet = true; } bool APITicketDetail::reopenedAtIsSet() const { - return m_ReopenedAtIsSet; + return m_ReopenedAt.has_value(); } void APITicketDetail::unsetReopenedAt() { - m_ReopenedAtIsSet = false; + m_ReopenedAt.reset(); } utility::string_t APITicketDetail::getResolvedAt() const { - return m_ResolvedAt; + return m_ResolvedAt.get(); } void APITicketDetail::setResolvedAt(const utility::string_t& value) { m_ResolvedAt = value; - m_ResolvedAtIsSet = true; } bool APITicketDetail::resolvedAtIsSet() const { - return m_ResolvedAtIsSet; + return m_ResolvedAt.has_value(); } void APITicketDetail::unsetResolvedAt() { - m_ResolvedAtIsSet = false; + m_ResolvedAt.reset(); } utility::string_t APITicketDetail::getAckAt() const { - return m_AckAt; + return m_AckAt.get(); } void APITicketDetail::setAckAt(const utility::string_t& value) { m_AckAt = value; - m_AckAtIsSet = true; } bool APITicketDetail::ackAtIsSet() const { - return m_AckAtIsSet; + return m_AckAt.has_value(); } void APITicketDetail::unsetAckAt() { - m_AckAtIsSet = false; + m_AckAt.reset(); } } diff --git a/client/src/model/APITicketFile.cpp b/client/src/model/APITicketFile.cpp index 22e058b..560f6e6 100644 --- a/client/src/model/APITicketFile.cpp +++ b/client/src/model/APITicketFile.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -55,52 +55,52 @@ web::json::value APITicketFile::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_S3KeyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("s3Key"))] = ModelBase::toJson(m_S3Key); } if(m_OriginalFileNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("originalFileName"))] = ModelBase::toJson(m_OriginalFileName); } if(m_SizeBytesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sizeBytes"))] = ModelBase::toJson(m_SizeBytes); } if(m_ContentTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("contentType"))] = ModelBase::toJson(m_ContentType); } if(m_UploadedByUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("uploadedByUserId"))] = ModelBase::toJson(m_UploadedByUserId); } if(m_UploadedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("uploadedAt"))] = ModelBase::toJson(m_UploadedAt); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_ExpiresAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("expiresAt"))] = ModelBase::toJson(m_ExpiresAt); } if(m_ExpiredIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("expired"))] = ModelBase::toJson(m_Expired); } diff --git a/client/src/model/APIUserSubscription.cpp b/client/src/model/APIUserSubscription.cpp index 963203c..fd22364 100644 --- a/client/src/model/APIUserSubscription.cpp +++ b/client/src/model/APIUserSubscription.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -51,42 +51,42 @@ web::json::value APIUserSubscription::toJson() const { web::json::value val = web::json::value::object(); if(m_NotificationFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationFrequency"))] = ModelBase::toJson(m_NotificationFrequency); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_PageTitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_AnonUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } diff --git a/client/src/model/AddDomainConfigParams.cpp b/client/src/model/AddDomainConfigParams.cpp index bffd3c0..be6879e 100644 --- a/client/src/model/AddDomainConfigParams.cpp +++ b/client/src/model/AddDomainConfigParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -48,37 +48,37 @@ web::json::value AddDomainConfigParams::toJson() const { web::json::value val = web::json::value::object(); if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_EmailFromNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailFromName"))] = ModelBase::toJson(m_EmailFromName); } if(m_EmailFromEmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailFromEmail"))] = ModelBase::toJson(m_EmailFromEmail); } if(m_LogoSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("logoSrc"))] = ModelBase::toJson(m_LogoSrc); } if(m_LogoSrc100pxIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px); } if(m_FooterUnsubscribeURLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("footerUnsubscribeURL"))] = ModelBase::toJson(m_FooterUnsubscribeURL); } if(m_EmailHeadersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailHeaders"))] = ModelBase::toJson(m_EmailHeaders); } diff --git a/client/src/model/AddDomainConfigResponse.cpp b/client/src/model/AddDomainConfigResponse.cpp index 1a8598b..5495b4b 100644 --- a/client/src/model/AddDomainConfigResponse.cpp +++ b/client/src/model/AddDomainConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,8 +24,6 @@ AddDomainConfigResponse::AddDomainConfigResponse() m_ReasonIsSet = false; m_Code = utility::conversions::to_string_t(""); m_CodeIsSet = false; - m_StatusIsSet = false; - m_ConfigurationIsSet = false; } AddDomainConfigResponse::~AddDomainConfigResponse() @@ -41,24 +39,24 @@ web::json::value AddDomainConfigResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } - if(m_StatusIsSet) - { + if(m_Status.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); } - if(m_ConfigurationIsSet) - { + if(m_Configuration.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration); + val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration.get()); } return val; @@ -129,13 +127,13 @@ void AddDomainConfigResponse::toMultipart(std::shared_ptr mul { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); } - if(m_StatusIsSet) + if(m_Status.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); } - if(m_ConfigurationIsSet) + if(m_Configuration.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration.get())); } } @@ -220,45 +218,43 @@ void AddDomainConfigResponse::unsetCode() } std::shared_ptr AddDomainConfigResponse::getStatus() const { - return m_Status; + return m_Status.get(); } void AddDomainConfigResponse::setStatus(const std::shared_ptr& value) { m_Status = value; - m_StatusIsSet = true; } bool AddDomainConfigResponse::statusIsSet() const { - return m_StatusIsSet; + return m_Status.has_value(); } void AddDomainConfigResponse::unsetStatus() { - m_StatusIsSet = false; + m_Status.reset(); } std::shared_ptr AddDomainConfigResponse::getConfiguration() const { - return m_Configuration; + return m_Configuration.get(); } void AddDomainConfigResponse::setConfiguration(const std::shared_ptr& value) { m_Configuration = value; - m_ConfigurationIsSet = true; } bool AddDomainConfigResponse::configurationIsSet() const { - return m_ConfigurationIsSet; + return m_Configuration.has_value(); } void AddDomainConfigResponse::unsetConfiguration() { - m_ConfigurationIsSet = false; + m_Configuration.reset(); } } diff --git a/client/src/model/AddDomainConfigResponse_anyOf.cpp b/client/src/model/AddDomainConfigResponse_anyOf.cpp index 6f8c7f1..1ea1ba2 100644 --- a/client/src/model/AddDomainConfigResponse_anyOf.cpp +++ b/client/src/model/AddDomainConfigResponse_anyOf.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,8 +20,6 @@ namespace model { AddDomainConfigResponse_anyOf::AddDomainConfigResponse_anyOf() { - m_ConfigurationIsSet = false; - m_StatusIsSet = false; } AddDomainConfigResponse_anyOf::~AddDomainConfigResponse_anyOf() @@ -36,15 +34,15 @@ void AddDomainConfigResponse_anyOf::validate() web::json::value AddDomainConfigResponse_anyOf::toJson() const { web::json::value val = web::json::value::object(); - if(m_ConfigurationIsSet) - { + if(m_Configuration.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration); + val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration.get()); } - if(m_StatusIsSet) - { + if(m_Status.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); } return val; @@ -85,13 +83,13 @@ void AddDomainConfigResponse_anyOf::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration.get())); } - if(m_StatusIsSet) + if(m_Status.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); } } @@ -122,45 +120,43 @@ bool AddDomainConfigResponse_anyOf::fromMultiPart(std::shared_ptr AddDomainConfigResponse_anyOf::getConfiguration() const { - return m_Configuration; + return m_Configuration.get(); } void AddDomainConfigResponse_anyOf::setConfiguration(const std::shared_ptr& value) { m_Configuration = value; - m_ConfigurationIsSet = true; } bool AddDomainConfigResponse_anyOf::configurationIsSet() const { - return m_ConfigurationIsSet; + return m_Configuration.has_value(); } void AddDomainConfigResponse_anyOf::unsetConfiguration() { - m_ConfigurationIsSet = false; + m_Configuration.reset(); } std::shared_ptr AddDomainConfigResponse_anyOf::getStatus() const { - return m_Status; + return m_Status.get(); } void AddDomainConfigResponse_anyOf::setStatus(const std::shared_ptr& value) { m_Status = value; - m_StatusIsSet = true; } bool AddDomainConfigResponse_anyOf::statusIsSet() const { - return m_StatusIsSet; + return m_Status.has_value(); } void AddDomainConfigResponse_anyOf::unsetStatus() { - m_StatusIsSet = false; + m_Status.reset(); } } diff --git a/client/src/model/AddPageAPIResponse.cpp b/client/src/model/AddPageAPIResponse.cpp index b913289..94ebdb9 100644 --- a/client/src/model/AddPageAPIResponse.cpp +++ b/client/src/model/AddPageAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value AddPageAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_PageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("page"))] = ModelBase::toJson(m_Page); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/AddSSOUserAPIResponse.cpp b/client/src/model/AddSSOUserAPIResponse.cpp index 1bca4b3..8a9377d 100644 --- a/client/src/model/AddSSOUserAPIResponse.cpp +++ b/client/src/model/AddSSOUserAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value AddSSOUserAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/AdjustCommentVotesParams.cpp b/client/src/model/AdjustCommentVotesParams.cpp index b8a4b4d..8c406fa 100644 --- a/client/src/model/AdjustCommentVotesParams.cpp +++ b/client/src/model/AdjustCommentVotesParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,7 @@ web::json::value AdjustCommentVotesParams::toJson() const { web::json::value val = web::json::value::object(); if(m_AdjustVoteAmountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("adjustVoteAmount"))] = ModelBase::toJson(m_AdjustVoteAmount); } diff --git a/client/src/model/AdjustVotesResponse.cpp b/client/src/model/AdjustVotesResponse.cpp index 29a7981..1b312b1 100644 --- a/client/src/model/AdjustVotesResponse.cpp +++ b/client/src/model/AdjustVotesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value AdjustVotesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_NewCommentVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("newCommentVotes"))] = ModelBase::toJson(m_NewCommentVotes); } diff --git a/client/src/model/AggregateQuestionResultsResponse.cpp b/client/src/model/AggregateQuestionResultsResponse.cpp index e501bbc..4d72935 100644 --- a/client/src/model/AggregateQuestionResultsResponse.cpp +++ b/client/src/model/AggregateQuestionResultsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value AggregateQuestionResultsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_DataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); } diff --git a/client/src/model/AggregateResponse.cpp b/client/src/model/AggregateResponse.cpp index 6bd6bb1..42b5dcd 100644 --- a/client/src/model/AggregateResponse.cpp +++ b/client/src/model/AggregateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,32 +43,32 @@ web::json::value AggregateResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_DataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); } if(m_StatsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stats"))] = ModelBase::toJson(m_Stats); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_ValidResourceNamesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("validResourceNames"))] = ModelBase::toJson(m_ValidResourceNames); } diff --git a/client/src/model/AggregateTimeBucket.cpp b/client/src/model/AggregateTimeBucket.cpp index e53638b..c8d0bf6 100644 --- a/client/src/model/AggregateTimeBucket.cpp +++ b/client/src/model/AggregateTimeBucket.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregationAPIError.cpp b/client/src/model/AggregationAPIError.cpp index 048f3a2..887b3c3 100644 --- a/client/src/model/AggregationAPIError.cpp +++ b/client/src/model/AggregationAPIError.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,22 +41,22 @@ web::json::value AggregationAPIError::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_ValidResourceNamesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("validResourceNames"))] = ModelBase::toJson(m_ValidResourceNames); } diff --git a/client/src/model/AggregationItem.cpp b/client/src/model/AggregationItem.cpp index 14223a6..c4b37b8 100644 --- a/client/src/model/AggregationItem.cpp +++ b/client/src/model/AggregationItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value AggregationItem::toJson() const { web::json::value val = web::json::value::object(); if(m_GroupsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groups"))] = ModelBase::toJson(m_Groups); } diff --git a/client/src/model/AggregationOpType.cpp b/client/src/model/AggregationOpType.cpp index a30782f..e9a0c6b 100644 --- a/client/src/model/AggregationOpType.cpp +++ b/client/src/model/AggregationOpType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregationOperation.cpp b/client/src/model/AggregationOperation.cpp index 40263ff..3e2cc22 100644 --- a/client/src/model/AggregationOperation.cpp +++ b/client/src/model/AggregationOperation.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value AggregationOperation::toJson() const { web::json::value val = web::json::value::object(); if(m_FieldIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("field"))] = ModelBase::toJson(m_Field); } if(m_OpIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("op"))] = ModelBase::toJson(m_Op); } if(m_AliasIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("alias"))] = ModelBase::toJson(m_Alias); } if(m_ExpandArrayIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("expandArray"))] = ModelBase::toJson(m_ExpandArray); } diff --git a/client/src/model/AggregationRequest.cpp b/client/src/model/AggregationRequest.cpp index e241a11..4a7a760 100644 --- a/client/src/model/AggregationRequest.cpp +++ b/client/src/model/AggregationRequest.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,27 +41,27 @@ web::json::value AggregationRequest::toJson() const { web::json::value val = web::json::value::object(); if(m_QueryIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("query"))] = ModelBase::toJson(m_Query); } if(m_ResourceNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("resourceName"))] = ModelBase::toJson(m_ResourceName); } if(m_GroupByIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groupBy"))] = ModelBase::toJson(m_GroupBy); } if(m_OperationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("operations"))] = ModelBase::toJson(m_Operations); } if(m_SortIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sort"))] = ModelBase::toJson(m_Sort); } diff --git a/client/src/model/AggregationRequest_sort.cpp b/client/src/model/AggregationRequest_sort.cpp index 448645d..a951b8a 100644 --- a/client/src/model/AggregationRequest_sort.cpp +++ b/client/src/model/AggregationRequest_sort.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,14 +38,14 @@ web::json::value AggregationRequest_sort::toJson() const { web::json::value val = web::json::value::object(); if(m_DirIsSet) - { + { utility::string_t refVal = fromDirEnum(m_Dir); val[utility::conversions::to_string_t(_XPLATSTR("dir"))] = ModelBase::toJson(refVal); } if(m_FieldIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("field"))] = ModelBase::toJson(m_Field); } diff --git a/client/src/model/AggregationResponse.cpp b/client/src/model/AggregationResponse.cpp index 7eba019..a4b07e2 100644 --- a/client/src/model/AggregationResponse.cpp +++ b/client/src/model/AggregationResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,17 +38,17 @@ web::json::value AggregationResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_DataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); } if(m_StatsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stats"))] = ModelBase::toJson(m_Stats); } diff --git a/client/src/model/AggregationResponse_stats.cpp b/client/src/model/AggregationResponse_stats.cpp index ce3367e..2113ce4 100644 --- a/client/src/model/AggregationResponse_stats.cpp +++ b/client/src/model/AggregationResponse_stats.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value AggregationResponse_stats::toJson() const { web::json::value val = web::json::value::object(); if(m_TimeMSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("timeMS"))] = ModelBase::toJson(m_TimeMS); } if(m_ScannedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("scanned"))] = ModelBase::toJson(m_Scanned); } diff --git a/client/src/model/AggregationValue.cpp b/client/src/model/AggregationValue.cpp index 5bf2881..c7762a7 100644 --- a/client/src/model/AggregationValue.cpp +++ b/client/src/model/AggregationValue.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,27 +43,27 @@ web::json::value AggregationValue::toJson() const { web::json::value val = web::json::value::object(); if(m_GroupsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groups"))] = ModelBase::toJson(m_Groups); } if(m_StringValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stringValue"))] = ModelBase::toJson(m_StringValue); } if(m_NumericValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("numericValue"))] = ModelBase::toJson(m_NumericValue); } if(m_DistinctCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("distinctCount"))] = ModelBase::toJson(m_DistinctCount); } if(m_DistinctCountsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("distinctCounts"))] = ModelBase::toJson(m_DistinctCounts); } diff --git a/client/src/model/AwardUserBadgeResponse.cpp b/client/src/model/AwardUserBadgeResponse.cpp index 2623a44..c915c9a 100644 --- a/client/src/model/AwardUserBadgeResponse.cpp +++ b/client/src/model/AwardUserBadgeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,17 +38,17 @@ web::json::value AwardUserBadgeResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_NotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notes"))] = ModelBase::toJson(m_Notes); } if(m_BadgesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/BanUserFromCommentResult.cpp b/client/src/model/BanUserFromCommentResult.cpp index 0af735d..959051e 100644 --- a/client/src/model/BanUserFromCommentResult.cpp +++ b/client/src/model/BanUserFromCommentResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value BanUserFromCommentResult::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ChangelogIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("changelog"))] = ModelBase::toJson(m_Changelog); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } diff --git a/client/src/model/BanUserUndoParams.cpp b/client/src/model/BanUserUndoParams.cpp index bf99fcc..91201d4 100644 --- a/client/src/model/BanUserUndoParams.cpp +++ b/client/src/model/BanUserUndoParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value BanUserUndoParams::toJson() const { web::json::value val = web::json::value::object(); if(m_ChangelogIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("changelog"))] = ModelBase::toJson(m_Changelog); } diff --git a/client/src/model/BannedUserMatch.cpp b/client/src/model/BannedUserMatch.cpp index 9a31b54..bfce3af 100644 --- a/client/src/model/BannedUserMatch.cpp +++ b/client/src/model/BannedUserMatch.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -21,7 +21,6 @@ namespace model { BannedUserMatch::BannedUserMatch() { m_MatchedOnIsSet = false; - m_MatchedOnValueIsSet = false; } BannedUserMatch::~BannedUserMatch() @@ -37,14 +36,14 @@ web::json::value BannedUserMatch::toJson() const { web::json::value val = web::json::value::object(); if(m_MatchedOnIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("matchedOn"))] = ModelBase::toJson(m_MatchedOn); } - if(m_MatchedOnValueIsSet) - { + if(m_MatchedOnValue.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("matchedOnValue"))] = ModelBase::toJson(m_MatchedOnValue); + val[utility::conversions::to_string_t(_XPLATSTR("matchedOnValue"))] = ModelBase::toJson(m_MatchedOnValue.get()); } return val; @@ -89,9 +88,9 @@ void BannedUserMatch::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("matchedOn")), m_MatchedOn)); } - if(m_MatchedOnValueIsSet) + if(m_MatchedOnValue.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("matchedOnValue")), m_MatchedOnValue)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("matchedOnValue")), m_MatchedOnValue.get())); } } @@ -143,24 +142,23 @@ void BannedUserMatch::unsetMatchedOn() } std::shared_ptr BannedUserMatch::getMatchedOnValue() const { - return m_MatchedOnValue; + return m_MatchedOnValue.get(); } void BannedUserMatch::setMatchedOnValue(const std::shared_ptr& value) { m_MatchedOnValue = value; - m_MatchedOnValueIsSet = true; } bool BannedUserMatch::matchedOnValueIsSet() const { - return m_MatchedOnValueIsSet; + return m_MatchedOnValue.has_value(); } void BannedUserMatch::unsetMatchedOnValue() { - m_MatchedOnValueIsSet = false; + m_MatchedOnValue.reset(); } } diff --git a/client/src/model/BannedUserMatchType.cpp b/client/src/model/BannedUserMatchType.cpp index f7bcc3a..f905940 100644 --- a/client/src/model/BannedUserMatchType.cpp +++ b/client/src/model/BannedUserMatchType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BannedUserMatch_matchedOnValue.cpp b/client/src/model/BannedUserMatch_matchedOnValue.cpp index c529b53..1b6e881 100644 --- a/client/src/model/BannedUserMatch_matchedOnValue.cpp +++ b/client/src/model/BannedUserMatch_matchedOnValue.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BillingInfo.cpp b/client/src/model/BillingInfo.cpp index 4417415..572c4b7 100644 --- a/client/src/model/BillingInfo.cpp +++ b/client/src/model/BillingInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -32,8 +32,6 @@ BillingInfo::BillingInfo() m_ZipIsSet = false; m_Country = utility::conversions::to_string_t(""); m_CountryIsSet = false; - m_Currency = utility::conversions::to_string_t(""); - m_CurrencyIsSet = false; m_Email = utility::conversions::to_string_t(""); m_EmailIsSet = false; } @@ -51,42 +49,42 @@ web::json::value BillingInfo::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_AddressIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("address"))] = ModelBase::toJson(m_Address); } if(m_CityIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("city"))] = ModelBase::toJson(m_City); } if(m_StateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("state"))] = ModelBase::toJson(m_State); } if(m_ZipIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("zip"))] = ModelBase::toJson(m_Zip); } if(m_CountryIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("country"))] = ModelBase::toJson(m_Country); } - if(m_CurrencyIsSet) - { + if(m_Currency.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("currency"))] = ModelBase::toJson(m_Currency); + val[utility::conversions::to_string_t(_XPLATSTR("currency"))] = ModelBase::toJson(m_Currency.get()); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } @@ -219,9 +217,9 @@ void BillingInfo::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("country")), m_Country)); } - if(m_CurrencyIsSet) + if(m_Currency.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("currency")), m_Currency)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("currency")), m_Currency.get())); } if(m_EmailIsSet) { @@ -418,24 +416,23 @@ void BillingInfo::unsetCountry() } utility::string_t BillingInfo::getCurrency() const { - return m_Currency; + return m_Currency.get(); } void BillingInfo::setCurrency(const utility::string_t& value) { m_Currency = value; - m_CurrencyIsSet = true; } bool BillingInfo::currencyIsSet() const { - return m_CurrencyIsSet; + return m_Currency.has_value(); } void BillingInfo::unsetCurrency() { - m_CurrencyIsSet = false; + m_Currency.reset(); } utility::string_t BillingInfo::getEmail() const { diff --git a/client/src/model/BlockFromCommentParams.cpp b/client/src/model/BlockFromCommentParams.cpp index 97434e8..53660b5 100644 --- a/client/src/model/BlockFromCommentParams.cpp +++ b/client/src/model/BlockFromCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value BlockFromCommentParams::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentIdsToCheckIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentIdsToCheck"))] = ModelBase::toJson(m_CommentIdsToCheck); } diff --git a/client/src/model/BlockSuccess.cpp b/client/src/model/BlockSuccess.cpp index 652a403..93267ca 100644 --- a/client/src/model/BlockSuccess.cpp +++ b/client/src/model/BlockSuccess.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value BlockSuccess::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentStatusesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); } diff --git a/client/src/model/BuildModerationFilterParams.cpp b/client/src/model/BuildModerationFilterParams.cpp index 28577a0..b58e2f9 100644 --- a/client/src/model/BuildModerationFilterParams.cpp +++ b/client/src/model/BuildModerationFilterParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,6 +30,7 @@ BuildModerationFilterParams::BuildModerationFilterParams() m_SearchFiltersIsSet = false; m_TextSearch = utility::conversions::to_string_t(""); m_TextSearchIsSet = false; + m_AdditionalPropertiesIsSet = false; } BuildModerationFilterParams::~BuildModerationFilterParams() @@ -45,30 +46,38 @@ web::json::value BuildModerationFilterParams::toJson() const { web::json::value val = web::json::value::object(); if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_FiltersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("filters"))] = ModelBase::toJson(m_Filters); } if(m_SearchFiltersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("searchFilters"))] = ModelBase::toJson(m_SearchFilters); } if(m_TextSearchIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("textSearch"))] = ModelBase::toJson(m_TextSearch); } + // Serialize additional properties + if(m_AdditionalPropertiesIsSet) + { + for(const auto& item : m_AdditionalProperties) + { + val[item.first] = item.second; + } + } return val; } @@ -131,6 +140,22 @@ bool BuildModerationFilterParams::fromJson(const web::json::value& val) } } + // Capture additional properties (keys not defined in the schema) + if(val.is_object()) + { + for(const auto& item : val.as_object()) + { + // Skip known properties + if(item.first == utility::conversions::to_string_t(_XPLATSTR("userId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("tenantId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("filters"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("searchFilters"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("textSearch"))) continue; + // This is an additional property + m_AdditionalProperties[item.first] = item.second; + m_AdditionalPropertiesIsSet = true; + } + } return ok; } @@ -312,6 +337,34 @@ void BuildModerationFilterParams::unsetTextSearch() m_TextSearchIsSet = false; } + +std::map BuildModerationFilterParams::getAdditionalProperties() const +{ + return m_AdditionalProperties; +} + +void BuildModerationFilterParams::setAdditionalProperties(const std::map& value) +{ + m_AdditionalProperties = value; + m_AdditionalPropertiesIsSet = true; +} + +void BuildModerationFilterParams::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) +{ + m_AdditionalProperties[key] = value; + m_AdditionalPropertiesIsSet = true; +} + +bool BuildModerationFilterParams::additionalPropertiesIsSet() const +{ + return m_AdditionalPropertiesIsSet; +} + +void BuildModerationFilterParams::unsetAdditionalProperties() +{ + m_AdditionalProperties.clear(); + m_AdditionalPropertiesIsSet = false; +} } } } diff --git a/client/src/model/BuildModerationFilterResponse.cpp b/client/src/model/BuildModerationFilterResponse.cpp index fe23118..509a899 100644 --- a/client/src/model/BuildModerationFilterResponse.cpp +++ b/client/src/model/BuildModerationFilterResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value BuildModerationFilterResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ModerationFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))] = ModelBase::toJson(m_ModerationFilter); } diff --git a/client/src/model/BulkAggregateQuestionItem.cpp b/client/src/model/BulkAggregateQuestionItem.cpp index 944b4fe..3d5413a 100644 --- a/client/src/model/BulkAggregateQuestionItem.cpp +++ b/client/src/model/BulkAggregateQuestionItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -45,32 +45,32 @@ web::json::value BulkAggregateQuestionItem::toJson() const { web::json::value val = web::json::value::object(); if(m_AggIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("aggId"))] = ModelBase::toJson(m_AggId); } if(m_QuestionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionId"))] = ModelBase::toJson(m_QuestionId); } if(m_QuestionIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionIds"))] = ModelBase::toJson(m_QuestionIds); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_TimeBucketIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("timeBucket"))] = ModelBase::toJson(m_TimeBucket); } if(m_StartDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("startDate"))] = ModelBase::toJson(m_StartDate); } diff --git a/client/src/model/BulkAggregateQuestionResultsRequest.cpp b/client/src/model/BulkAggregateQuestionResultsRequest.cpp index aabebf8..dec6370 100644 --- a/client/src/model/BulkAggregateQuestionResultsRequest.cpp +++ b/client/src/model/BulkAggregateQuestionResultsRequest.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value BulkAggregateQuestionResultsRequest::toJson() const { web::json::value val = web::json::value::object(); if(m_AggregationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("aggregations"))] = ModelBase::toJson(m_Aggregations); } diff --git a/client/src/model/BulkAggregateQuestionResultsResponse.cpp b/client/src/model/BulkAggregateQuestionResultsResponse.cpp index 3fa4aed..b9cddef 100644 --- a/client/src/model/BulkAggregateQuestionResultsResponse.cpp +++ b/client/src/model/BulkAggregateQuestionResultsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value BulkAggregateQuestionResultsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_DataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); } diff --git a/client/src/model/BulkCreateHashTagsBody.cpp b/client/src/model/BulkCreateHashTagsBody.cpp index 3b0fd68..89ac4ad 100644 --- a/client/src/model/BulkCreateHashTagsBody.cpp +++ b/client/src/model/BulkCreateHashTagsBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value BulkCreateHashTagsBody::toJson() const { web::json::value val = web::json::value::object(); if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_TagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tags"))] = ModelBase::toJson(m_Tags); } diff --git a/client/src/model/BulkCreateHashTagsBody_tags_inner.cpp b/client/src/model/BulkCreateHashTagsBody_tags_inner.cpp index b35e122..0699819 100644 --- a/client/src/model/BulkCreateHashTagsBody_tags_inner.cpp +++ b/client/src/model/BulkCreateHashTagsBody_tags_inner.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value BulkCreateHashTagsBody_tags_inner::toJson() const { web::json::value val = web::json::value::object(); if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_TagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } diff --git a/client/src/model/BulkCreateHashTagsResponse.cpp b/client/src/model/BulkCreateHashTagsResponse.cpp index 3547720..dd44c62 100644 --- a/client/src/model/BulkCreateHashTagsResponse.cpp +++ b/client/src/model/BulkCreateHashTagsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value BulkCreateHashTagsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ResultsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("results"))] = ModelBase::toJson(m_Results); } diff --git a/client/src/model/BulkCreateHashTagsResponse_results_inner.cpp b/client/src/model/BulkCreateHashTagsResponse_results_inner.cpp index fcb205d..04606c2 100644 --- a/client/src/model/BulkCreateHashTagsResponse_results_inner.cpp +++ b/client/src/model/BulkCreateHashTagsResponse_results_inner.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -50,47 +50,47 @@ web::json::value BulkCreateHashTagsResponse_results_inner::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_HashTagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTag"))] = ModelBase::toJson(m_HashTag); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_SecondaryCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); } if(m_BannedUntilIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); } if(m_MaxCharacterLengthIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); } if(m_TranslatedErrorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); } if(m_CustomConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); } diff --git a/client/src/model/BulkPreBanParams.cpp b/client/src/model/BulkPreBanParams.cpp index 5adfbfd..b76c1d5 100644 --- a/client/src/model/BulkPreBanParams.cpp +++ b/client/src/model/BulkPreBanParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value BulkPreBanParams::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentIds"))] = ModelBase::toJson(m_CommentIds); } diff --git a/client/src/model/BulkPreBanSummary.cpp b/client/src/model/BulkPreBanSummary.cpp index 1fefcc4..12c2591 100644 --- a/client/src/model/BulkPreBanSummary.cpp +++ b/client/src/model/BulkPreBanSummary.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,32 +43,32 @@ web::json::value BulkPreBanSummary::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TotalRelatedCommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount"))] = ModelBase::toJson(m_TotalRelatedCommentCount); } if(m_EmailDomainsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailDomains"))] = ModelBase::toJson(m_EmailDomains); } if(m_EmailsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emails"))] = ModelBase::toJson(m_Emails); } if(m_UserIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userIds"))] = ModelBase::toJson(m_UserIds); } if(m_IpHashesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ipHashes"))] = ModelBase::toJson(m_IpHashes); } diff --git a/client/src/model/ChangeCommentPinStatusResponse.cpp b/client/src/model/ChangeCommentPinStatusResponse.cpp index 2e9e3c2..84bad0a 100644 --- a/client/src/model/ChangeCommentPinStatusResponse.cpp +++ b/client/src/model/ChangeCommentPinStatusResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value ChangeCommentPinStatusResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentPositionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentPositions"))] = ModelBase::toJson(m_CommentPositions); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/ChangeTicketStateBody.cpp b/client/src/model/ChangeTicketStateBody.cpp index f208d46..7772341 100644 --- a/client/src/model/ChangeTicketStateBody.cpp +++ b/client/src/model/ChangeTicketStateBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,7 @@ web::json::value ChangeTicketStateBody::toJson() const { web::json::value val = web::json::value::object(); if(m_StateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("state"))] = ModelBase::toJson(m_State); } diff --git a/client/src/model/ChangeTicketStateResponse.cpp b/client/src/model/ChangeTicketStateResponse.cpp index 8a446bd..036d3fb 100644 --- a/client/src/model/ChangeTicketStateResponse.cpp +++ b/client/src/model/ChangeTicketStateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value ChangeTicketStateResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TicketIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); } diff --git a/client/src/model/CheckBlockedCommentsResponse.cpp b/client/src/model/CheckBlockedCommentsResponse.cpp index da4b525..3598c1d 100644 --- a/client/src/model/CheckBlockedCommentsResponse.cpp +++ b/client/src/model/CheckBlockedCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CheckBlockedCommentsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentStatusesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/CombineQuestionResultsWithCommentsResponse.cpp b/client/src/model/CombineQuestionResultsWithCommentsResponse.cpp index 2579751..f645336 100644 --- a/client/src/model/CombineQuestionResultsWithCommentsResponse.cpp +++ b/client/src/model/CombineQuestionResultsWithCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CombineQuestionResultsWithCommentsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_DataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); } diff --git a/client/src/model/CommentData.cpp b/client/src/model/CommentData.cpp index c7ca081..0b7e86a 100644 --- a/client/src/model/CommentData.cpp +++ b/client/src/model/CommentData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -28,20 +28,10 @@ CommentData::CommentData() m_LocalDateHoursIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; - m_CommenterEmail = utility::conversions::to_string_t(""); - m_CommenterEmailIsSet = false; - m_CommenterLink = utility::conversions::to_string_t(""); - m_CommenterLinkIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; m_ProductId = 0; m_ProductIdIsSet = false; - m_UserId = utility::conversions::to_string_t(""); - m_UserIdIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; - m_ParentId = utility::conversions::to_string_t(""); - m_ParentIdIsSet = false; m_MentionsIsSet = false; m_HashTagsIsSet = false; m_PageTitle = utility::conversions::to_string_t(""); @@ -81,132 +71,132 @@ web::json::value CommentData::toJson() const { web::json::value val = web::json::value::object(); if(m_dateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); } if(m_LocalDateStringIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); } if(m_LocalDateHoursIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterEmailIsSet) - { + if(m_CommenterEmail.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); } - if(m_CommenterLinkIsSet) - { + if(m_CommenterLink.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_ProductIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("productId"))] = ModelBase::toJson(m_ProductId); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } - if(m_ParentIdIsSet) - { + if(m_ParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); } if(m_MentionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("mentions"))] = ModelBase::toJson(m_Mentions); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } if(m_PageTitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } if(m_IsFromMyAccountPageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isFromMyAccountPage"))] = ModelBase::toJson(m_IsFromMyAccountPage); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } if(m_ModerationGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } if(m_RatingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); } if(m_FromOfflineRestoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromOfflineRestore"))] = ModelBase::toJson(m_FromOfflineRestore); } if(m_AutoplayDelayMSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoplayDelayMS"))] = ModelBase::toJson(m_AutoplayDelayMS); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } if(m_QuestionValuesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionValues"))] = ModelBase::toJson(m_QuestionValues); } if(m_TosIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tos"))] = ModelBase::toJson(m_Tos); } if(m_BotIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("botId"))] = ModelBase::toJson(m_BotId); } @@ -529,13 +519,13 @@ void CommentData::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterEmailIsSet) + if(m_CommenterEmail.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); } - if(m_CommenterLinkIsSet) + if(m_CommenterLink.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); } if(m_CommentIsSet) { @@ -545,17 +535,17 @@ void CommentData::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("productId")), m_ProductId)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } - if(m_ParentIdIsSet) + if(m_ParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); } if(m_MentionsIsSet) { @@ -872,45 +862,43 @@ void CommentData::unsetCommenterName() } utility::string_t CommentData::getCommenterEmail() const { - return m_CommenterEmail; + return m_CommenterEmail.get(); } void CommentData::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; - m_CommenterEmailIsSet = true; } bool CommentData::commenterEmailIsSet() const { - return m_CommenterEmailIsSet; + return m_CommenterEmail.has_value(); } void CommentData::unsetCommenterEmail() { - m_CommenterEmailIsSet = false; + m_CommenterEmail.reset(); } utility::string_t CommentData::getCommenterLink() const { - return m_CommenterLink; + return m_CommenterLink.get(); } void CommentData::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; - m_CommenterLinkIsSet = true; } bool CommentData::commenterLinkIsSet() const { - return m_CommenterLinkIsSet; + return m_CommenterLink.has_value(); } void CommentData::unsetCommenterLink() { - m_CommenterLinkIsSet = false; + m_CommenterLink.reset(); } utility::string_t CommentData::getComment() const { @@ -955,66 +943,63 @@ void CommentData::unsetProductId() } utility::string_t CommentData::getUserId() const { - return m_UserId; + return m_UserId.get(); } void CommentData::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool CommentData::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void CommentData::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t CommentData::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void CommentData::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool CommentData::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void CommentData::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } utility::string_t CommentData::getParentId() const { - return m_ParentId; + return m_ParentId.get(); } void CommentData::setParentId(const utility::string_t& value) { m_ParentId = value; - m_ParentIdIsSet = true; } bool CommentData::parentIdIsSet() const { - return m_ParentIdIsSet; + return m_ParentId.has_value(); } void CommentData::unsetParentId() { - m_ParentIdIsSet = false; + m_ParentId.reset(); } std::vector> CommentData::getMentions() const { diff --git a/client/src/model/CommentHTMLRenderingMode.cpp b/client/src/model/CommentHTMLRenderingMode.cpp index 97746c2..a3e57b8 100644 --- a/client/src/model/CommentHTMLRenderingMode.cpp +++ b/client/src/model/CommentHTMLRenderingMode.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentLogData.cpp b/client/src/model/CommentLogData.cpp index cb4f377..4c2f248 100644 --- a/client/src/model/CommentLogData.cpp +++ b/client/src/model/CommentLogData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -59,21 +59,8 @@ CommentLogData::CommentLogData() m_SubscribersIsSet = false; m_NotificationCount = 0.0; m_NotificationCountIsSet = false; - m_VotesBefore = 0.0; - m_VotesBeforeIsSet = false; - m_VotesUpBefore = 0.0; - m_VotesUpBeforeIsSet = false; - m_VotesDownBefore = 0.0; - m_VotesDownBeforeIsSet = false; - m_VotesAfter = 0.0; - m_VotesAfterIsSet = false; - m_VotesUpAfter = 0.0; - m_VotesUpAfterIsSet = false; - m_VotesDownAfter = 0.0; - m_VotesDownAfterIsSet = false; m_RepeatActionIsSet = false; m_ReasonIsSet = false; - m_OtherDataIsSet = false; m_SpamBefore = false; m_SpamBeforeIsSet = false; m_SpamAfter = false; @@ -91,12 +78,6 @@ CommentLogData::CommentLogData() m_TextBeforeIsSet = false; m_TextAfter = utility::conversions::to_string_t(""); m_TextAfterIsSet = false; - m_ExpireBefore = utility::datetime(); - m_ExpireBeforeIsSet = false; - m_ExpireAfter = utility::datetime(); - m_ExpireAfterIsSet = false; - m_FlagCountBefore = 0.0; - m_FlagCountBeforeIsSet = false; m_TrustFactorBefore = 0.0; m_TrustFactorBeforeIsSet = false; m_TrustFactorAfter = 0.0; @@ -124,239 +105,239 @@ web::json::value CommentLogData::toJson() const { web::json::value val = web::json::value::object(); if(m_ClearContentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("clearContent"))] = ModelBase::toJson(m_ClearContent); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_PhraseIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("phrase"))] = ModelBase::toJson(m_Phrase); } if(m_BadWordIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badWord"))] = ModelBase::toJson(m_BadWord); } if(m_WordIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("word"))] = ModelBase::toJson(m_Word); } if(m_LocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_TenantBadgeIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantBadgeId"))] = ModelBase::toJson(m_TenantBadgeId); } if(m_BadgeIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badgeId"))] = ModelBase::toJson(m_BadgeId); } if(m_WasLoggedInIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wasLoggedIn"))] = ModelBase::toJson(m_WasLoggedIn); } if(m_FoundUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("foundUser"))] = ModelBase::toJson(m_FoundUser); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if(m_EngineIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("engine"))] = ModelBase::toJson(m_Engine); } if(m_EngineResponseIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("engineResponse"))] = ModelBase::toJson(m_EngineResponse); } if(m_EngineTokensIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("engineTokens"))] = ModelBase::toJson(m_EngineTokens); } if(m_TrustFactorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("trustFactor"))] = ModelBase::toJson(m_TrustFactor); } if(m_SourceIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("source"))] = ModelBase::toJson(m_Source); } if(m_RuleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("rule"))] = ModelBase::toJson(m_Rule); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_SubscribersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subscribers"))] = ModelBase::toJson(m_Subscribers); } if(m_NotificationCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationCount"))] = ModelBase::toJson(m_NotificationCount); } - if(m_VotesBeforeIsSet) - { + if(m_VotesBefore.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesBefore"))] = ModelBase::toJson(m_VotesBefore); + val[utility::conversions::to_string_t(_XPLATSTR("votesBefore"))] = ModelBase::toJson(m_VotesBefore.get()); } - if(m_VotesUpBeforeIsSet) - { + if(m_VotesUpBefore.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUpBefore"))] = ModelBase::toJson(m_VotesUpBefore); + val[utility::conversions::to_string_t(_XPLATSTR("votesUpBefore"))] = ModelBase::toJson(m_VotesUpBefore.get()); } - if(m_VotesDownBeforeIsSet) - { + if(m_VotesDownBefore.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDownBefore"))] = ModelBase::toJson(m_VotesDownBefore); + val[utility::conversions::to_string_t(_XPLATSTR("votesDownBefore"))] = ModelBase::toJson(m_VotesDownBefore.get()); } - if(m_VotesAfterIsSet) - { + if(m_VotesAfter.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesAfter"))] = ModelBase::toJson(m_VotesAfter); + val[utility::conversions::to_string_t(_XPLATSTR("votesAfter"))] = ModelBase::toJson(m_VotesAfter.get()); } - if(m_VotesUpAfterIsSet) - { + if(m_VotesUpAfter.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUpAfter"))] = ModelBase::toJson(m_VotesUpAfter); + val[utility::conversions::to_string_t(_XPLATSTR("votesUpAfter"))] = ModelBase::toJson(m_VotesUpAfter.get()); } - if(m_VotesDownAfterIsSet) - { + if(m_VotesDownAfter.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDownAfter"))] = ModelBase::toJson(m_VotesDownAfter); + val[utility::conversions::to_string_t(_XPLATSTR("votesDownAfter"))] = ModelBase::toJson(m_VotesDownAfter.get()); } if(m_RepeatActionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("repeatAction"))] = ModelBase::toJson(m_RepeatAction); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } - if(m_OtherDataIsSet) - { + if(m_OtherData.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("otherData"))] = ModelBase::toJson(m_OtherData); + val[utility::conversions::to_string_t(_XPLATSTR("otherData"))] = ModelBase::toJson(m_OtherData.get()); } if(m_SpamBeforeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("spamBefore"))] = ModelBase::toJson(m_SpamBefore); } if(m_SpamAfterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("spamAfter"))] = ModelBase::toJson(m_SpamAfter); } if(m_PermanentFlagIsSet) - { + { utility::string_t refVal = fromPermanentFlagEnum(m_PermanentFlag); val[utility::conversions::to_string_t(_XPLATSTR("permanentFlag"))] = ModelBase::toJson(refVal); } if(m_ApprovedBeforeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approvedBefore"))] = ModelBase::toJson(m_ApprovedBefore); } if(m_ApprovedAfterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approvedAfter"))] = ModelBase::toJson(m_ApprovedAfter); } if(m_ReviewedBeforeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewedBefore"))] = ModelBase::toJson(m_ReviewedBefore); } if(m_ReviewedAfterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewedAfter"))] = ModelBase::toJson(m_ReviewedAfter); } if(m_TextBeforeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("textBefore"))] = ModelBase::toJson(m_TextBefore); } if(m_TextAfterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("textAfter"))] = ModelBase::toJson(m_TextAfter); } - if(m_ExpireBeforeIsSet) - { + if(m_ExpireBefore.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireBefore"))] = ModelBase::toJson(m_ExpireBefore); + val[utility::conversions::to_string_t(_XPLATSTR("expireBefore"))] = ModelBase::toJson(m_ExpireBefore.get()); } - if(m_ExpireAfterIsSet) - { + if(m_ExpireAfter.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAfter"))] = ModelBase::toJson(m_ExpireAfter); + val[utility::conversions::to_string_t(_XPLATSTR("expireAfter"))] = ModelBase::toJson(m_ExpireAfter.get()); } - if(m_FlagCountBeforeIsSet) - { + if(m_FlagCountBefore.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCountBefore"))] = ModelBase::toJson(m_FlagCountBefore); + val[utility::conversions::to_string_t(_XPLATSTR("flagCountBefore"))] = ModelBase::toJson(m_FlagCountBefore.get()); } if(m_TrustFactorBeforeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("trustFactorBefore"))] = ModelBase::toJson(m_TrustFactorBefore); } if(m_TrustFactorAfterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("trustFactorAfter"))] = ModelBase::toJson(m_TrustFactorAfter); } if(m_ReferencedCommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("referencedCommentId"))] = ModelBase::toJson(m_ReferencedCommentId); } if(m_InvalidLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("invalidLocale"))] = ModelBase::toJson(m_InvalidLocale); } if(m_DetectedLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("detectedLocale"))] = ModelBase::toJson(m_DetectedLocale); } if(m_DetectedLanguageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("detectedLanguage"))] = ModelBase::toJson(m_DetectedLanguage); } @@ -975,29 +956,29 @@ void CommentLogData::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notificationCount")), m_NotificationCount)); } - if(m_VotesBeforeIsSet) + if(m_VotesBefore.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesBefore")), m_VotesBefore)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesBefore")), m_VotesBefore.get())); } - if(m_VotesUpBeforeIsSet) + if(m_VotesUpBefore.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUpBefore")), m_VotesUpBefore)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUpBefore")), m_VotesUpBefore.get())); } - if(m_VotesDownBeforeIsSet) + if(m_VotesDownBefore.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDownBefore")), m_VotesDownBefore)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDownBefore")), m_VotesDownBefore.get())); } - if(m_VotesAfterIsSet) + if(m_VotesAfter.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesAfter")), m_VotesAfter)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesAfter")), m_VotesAfter.get())); } - if(m_VotesUpAfterIsSet) + if(m_VotesUpAfter.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUpAfter")), m_VotesUpAfter)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUpAfter")), m_VotesUpAfter.get())); } - if(m_VotesDownAfterIsSet) + if(m_VotesDownAfter.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDownAfter")), m_VotesDownAfter)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDownAfter")), m_VotesDownAfter.get())); } if(m_RepeatActionIsSet) { @@ -1007,9 +988,9 @@ void CommentLogData::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); } - if(m_OtherDataIsSet) + if(m_OtherData.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("otherData")), m_OtherData)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("otherData")), m_OtherData.get())); } if(m_SpamBeforeIsSet) { @@ -1047,17 +1028,17 @@ void CommentLogData::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textAfter")), m_TextAfter)); } - if(m_ExpireBeforeIsSet) + if(m_ExpireBefore.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireBefore")), m_ExpireBefore)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireBefore")), m_ExpireBefore.get())); } - if(m_ExpireAfterIsSet) + if(m_ExpireAfter.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAfter")), m_ExpireAfter)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAfter")), m_ExpireAfter.get())); } - if(m_FlagCountBeforeIsSet) + if(m_FlagCountBefore.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCountBefore")), m_FlagCountBefore)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCountBefore")), m_FlagCountBefore.get())); } if(m_TrustFactorBeforeIsSet) { @@ -1814,123 +1795,117 @@ void CommentLogData::unsetNotificationCount() } double CommentLogData::getVotesBefore() const { - return m_VotesBefore; + return m_VotesBefore.get(); } void CommentLogData::setVotesBefore(double value) { m_VotesBefore = value; - m_VotesBeforeIsSet = true; } bool CommentLogData::votesBeforeIsSet() const { - return m_VotesBeforeIsSet; + return m_VotesBefore.has_value(); } void CommentLogData::unsetVotesBefore() { - m_VotesBeforeIsSet = false; + m_VotesBefore.reset(); } double CommentLogData::getVotesUpBefore() const { - return m_VotesUpBefore; + return m_VotesUpBefore.get(); } void CommentLogData::setVotesUpBefore(double value) { m_VotesUpBefore = value; - m_VotesUpBeforeIsSet = true; } bool CommentLogData::votesUpBeforeIsSet() const { - return m_VotesUpBeforeIsSet; + return m_VotesUpBefore.has_value(); } void CommentLogData::unsetVotesUpBefore() { - m_VotesUpBeforeIsSet = false; + m_VotesUpBefore.reset(); } double CommentLogData::getVotesDownBefore() const { - return m_VotesDownBefore; + return m_VotesDownBefore.get(); } void CommentLogData::setVotesDownBefore(double value) { m_VotesDownBefore = value; - m_VotesDownBeforeIsSet = true; } bool CommentLogData::votesDownBeforeIsSet() const { - return m_VotesDownBeforeIsSet; + return m_VotesDownBefore.has_value(); } void CommentLogData::unsetVotesDownBefore() { - m_VotesDownBeforeIsSet = false; + m_VotesDownBefore.reset(); } double CommentLogData::getVotesAfter() const { - return m_VotesAfter; + return m_VotesAfter.get(); } void CommentLogData::setVotesAfter(double value) { m_VotesAfter = value; - m_VotesAfterIsSet = true; } bool CommentLogData::votesAfterIsSet() const { - return m_VotesAfterIsSet; + return m_VotesAfter.has_value(); } void CommentLogData::unsetVotesAfter() { - m_VotesAfterIsSet = false; + m_VotesAfter.reset(); } double CommentLogData::getVotesUpAfter() const { - return m_VotesUpAfter; + return m_VotesUpAfter.get(); } void CommentLogData::setVotesUpAfter(double value) { m_VotesUpAfter = value; - m_VotesUpAfterIsSet = true; } bool CommentLogData::votesUpAfterIsSet() const { - return m_VotesUpAfterIsSet; + return m_VotesUpAfter.has_value(); } void CommentLogData::unsetVotesUpAfter() { - m_VotesUpAfterIsSet = false; + m_VotesUpAfter.reset(); } double CommentLogData::getVotesDownAfter() const { - return m_VotesDownAfter; + return m_VotesDownAfter.get(); } void CommentLogData::setVotesDownAfter(double value) { m_VotesDownAfter = value; - m_VotesDownAfterIsSet = true; } bool CommentLogData::votesDownAfterIsSet() const { - return m_VotesDownAfterIsSet; + return m_VotesDownAfter.has_value(); } void CommentLogData::unsetVotesDownAfter() { - m_VotesDownAfterIsSet = false; + m_VotesDownAfter.reset(); } std::shared_ptr CommentLogData::getRepeatAction() const { @@ -1976,24 +1951,23 @@ void CommentLogData::unsetReason() } std::shared_ptr CommentLogData::getOtherData() const { - return m_OtherData; + return m_OtherData.get(); } void CommentLogData::setOtherData(const std::shared_ptr& value) { m_OtherData = value; - m_OtherDataIsSet = true; } bool CommentLogData::otherDataIsSet() const { - return m_OtherDataIsSet; + return m_OtherData.has_value(); } void CommentLogData::unsetOtherData() { - m_OtherDataIsSet = false; + m_OtherData.reset(); } bool CommentLogData::isSpamBefore() const { @@ -2180,65 +2154,62 @@ void CommentLogData::unsetTextAfter() } utility::datetime CommentLogData::getExpireBefore() const { - return m_ExpireBefore; + return m_ExpireBefore.get(); } void CommentLogData::setExpireBefore(const utility::datetime& value) { m_ExpireBefore = value; - m_ExpireBeforeIsSet = true; } bool CommentLogData::expireBeforeIsSet() const { - return m_ExpireBeforeIsSet; + return m_ExpireBefore.has_value(); } void CommentLogData::unsetExpireBefore() { - m_ExpireBeforeIsSet = false; + m_ExpireBefore.reset(); } utility::datetime CommentLogData::getExpireAfter() const { - return m_ExpireAfter; + return m_ExpireAfter.get(); } void CommentLogData::setExpireAfter(const utility::datetime& value) { m_ExpireAfter = value; - m_ExpireAfterIsSet = true; } bool CommentLogData::expireAfterIsSet() const { - return m_ExpireAfterIsSet; + return m_ExpireAfter.has_value(); } void CommentLogData::unsetExpireAfter() { - m_ExpireAfterIsSet = false; + m_ExpireAfter.reset(); } double CommentLogData::getFlagCountBefore() const { - return m_FlagCountBefore; + return m_FlagCountBefore.get(); } void CommentLogData::setFlagCountBefore(double value) { m_FlagCountBefore = value; - m_FlagCountBeforeIsSet = true; } bool CommentLogData::flagCountBeforeIsSet() const { - return m_FlagCountBeforeIsSet; + return m_FlagCountBefore.has_value(); } void CommentLogData::unsetFlagCountBefore() { - m_FlagCountBeforeIsSet = false; + m_FlagCountBefore.reset(); } double CommentLogData::getTrustFactorBefore() const { diff --git a/client/src/model/CommentLogEntry.cpp b/client/src/model/CommentLogEntry.cpp index dee3d61..4dfc35a 100644 --- a/client/src/model/CommentLogEntry.cpp +++ b/client/src/model/CommentLogEntry.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value CommentLogEntry::toJson() const { web::json::value val = web::json::value::object(); if(m_dIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("d"))] = ModelBase::toJson(m_d); } if(m_tIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("t"))] = ModelBase::toJson(m_t); } if(m_DaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("da"))] = ModelBase::toJson(m_Da); } diff --git a/client/src/model/CommentLogType.cpp b/client/src/model/CommentLogType.cpp index 3f0a92b..f84791a 100644 --- a/client/src/model/CommentLogType.cpp +++ b/client/src/model/CommentLogType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentQuestionResultsRenderingType.cpp b/client/src/model/CommentQuestionResultsRenderingType.cpp index 8b8a85a..58f8279 100644 --- a/client/src/model/CommentQuestionResultsRenderingType.cpp +++ b/client/src/model/CommentQuestionResultsRenderingType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentQuestionsRequired.cpp b/client/src/model/CommentQuestionsRequired.cpp index 9eabef9..55eea48 100644 --- a/client/src/model/CommentQuestionsRequired.cpp +++ b/client/src/model/CommentQuestionsRequired.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentTextUpdateRequest.cpp b/client/src/model/CommentTextUpdateRequest.cpp index 6ad779c..26fee3a 100644 --- a/client/src/model/CommentTextUpdateRequest.cpp +++ b/client/src/model/CommentTextUpdateRequest.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value CommentTextUpdateRequest::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_MentionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("mentions"))] = ModelBase::toJson(m_Mentions); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } diff --git a/client/src/model/CommentThreadDeletionMode.cpp b/client/src/model/CommentThreadDeletionMode.cpp index 125c87c..eb6fd00 100644 --- a/client/src/model/CommentThreadDeletionMode.cpp +++ b/client/src/model/CommentThreadDeletionMode.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentUserBadgeInfo.cpp b/client/src/model/CommentUserBadgeInfo.cpp index bc0ac26..1301945 100644 --- a/client/src/model/CommentUserBadgeInfo.cpp +++ b/client/src/model/CommentUserBadgeInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -26,18 +26,6 @@ CommentUserBadgeInfo::CommentUserBadgeInfo() m_TypeIsSet = false; m_Description = utility::conversions::to_string_t(""); m_DescriptionIsSet = false; - m_DisplayLabel = utility::conversions::to_string_t(""); - m_DisplayLabelIsSet = false; - m_DisplaySrc = utility::conversions::to_string_t(""); - m_DisplaySrcIsSet = false; - m_BackgroundColor = utility::conversions::to_string_t(""); - m_BackgroundColorIsSet = false; - m_BorderColor = utility::conversions::to_string_t(""); - m_BorderColorIsSet = false; - m_TextColor = utility::conversions::to_string_t(""); - m_TextColorIsSet = false; - m_CssClass = utility::conversions::to_string_t(""); - m_CssClassIsSet = false; } CommentUserBadgeInfo::~CommentUserBadgeInfo() @@ -53,49 +41,49 @@ web::json::value CommentUserBadgeInfo::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_DescriptionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } - if(m_DisplayLabelIsSet) - { + if(m_DisplayLabel.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); } - if(m_DisplaySrcIsSet) - { + if(m_DisplaySrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displaySrc"))] = ModelBase::toJson(m_DisplaySrc); + val[utility::conversions::to_string_t(_XPLATSTR("displaySrc"))] = ModelBase::toJson(m_DisplaySrc.get()); } - if(m_BackgroundColorIsSet) - { + if(m_BackgroundColor.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))] = ModelBase::toJson(m_BackgroundColor); + val[utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))] = ModelBase::toJson(m_BackgroundColor.get()); } - if(m_BorderColorIsSet) - { + if(m_BorderColor.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("borderColor"))] = ModelBase::toJson(m_BorderColor); + val[utility::conversions::to_string_t(_XPLATSTR("borderColor"))] = ModelBase::toJson(m_BorderColor.get()); } - if(m_TextColorIsSet) - { + if(m_TextColor.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("textColor"))] = ModelBase::toJson(m_TextColor); + val[utility::conversions::to_string_t(_XPLATSTR("textColor"))] = ModelBase::toJson(m_TextColor.get()); } - if(m_CssClassIsSet) - { + if(m_CssClass.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("cssClass"))] = ModelBase::toJson(m_CssClass); + val[utility::conversions::to_string_t(_XPLATSTR("cssClass"))] = ModelBase::toJson(m_CssClass.get()); } return val; @@ -225,29 +213,29 @@ void CommentUserBadgeInfo::toMultipart(std::shared_ptr multip { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("description")), m_Description)); } - if(m_DisplayLabelIsSet) + if(m_DisplayLabel.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); } - if(m_DisplaySrcIsSet) + if(m_DisplaySrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displaySrc")), m_DisplaySrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displaySrc")), m_DisplaySrc.get())); } - if(m_BackgroundColorIsSet) + if(m_BackgroundColor.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("backgroundColor")), m_BackgroundColor)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("backgroundColor")), m_BackgroundColor.get())); } - if(m_BorderColorIsSet) + if(m_BorderColor.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("borderColor")), m_BorderColor)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("borderColor")), m_BorderColor.get())); } - if(m_TextColorIsSet) + if(m_TextColor.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textColor")), m_TextColor)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textColor")), m_TextColor.get())); } - if(m_CssClassIsSet) + if(m_CssClass.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("cssClass")), m_CssClass)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("cssClass")), m_CssClass.get())); } } @@ -382,129 +370,123 @@ void CommentUserBadgeInfo::unsetDescription() } utility::string_t CommentUserBadgeInfo::getDisplayLabel() const { - return m_DisplayLabel; + return m_DisplayLabel.get(); } void CommentUserBadgeInfo::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; - m_DisplayLabelIsSet = true; } bool CommentUserBadgeInfo::displayLabelIsSet() const { - return m_DisplayLabelIsSet; + return m_DisplayLabel.has_value(); } void CommentUserBadgeInfo::unsetDisplayLabel() { - m_DisplayLabelIsSet = false; + m_DisplayLabel.reset(); } utility::string_t CommentUserBadgeInfo::getDisplaySrc() const { - return m_DisplaySrc; + return m_DisplaySrc.get(); } void CommentUserBadgeInfo::setDisplaySrc(const utility::string_t& value) { m_DisplaySrc = value; - m_DisplaySrcIsSet = true; } bool CommentUserBadgeInfo::displaySrcIsSet() const { - return m_DisplaySrcIsSet; + return m_DisplaySrc.has_value(); } void CommentUserBadgeInfo::unsetDisplaySrc() { - m_DisplaySrcIsSet = false; + m_DisplaySrc.reset(); } utility::string_t CommentUserBadgeInfo::getBackgroundColor() const { - return m_BackgroundColor; + return m_BackgroundColor.get(); } void CommentUserBadgeInfo::setBackgroundColor(const utility::string_t& value) { m_BackgroundColor = value; - m_BackgroundColorIsSet = true; } bool CommentUserBadgeInfo::backgroundColorIsSet() const { - return m_BackgroundColorIsSet; + return m_BackgroundColor.has_value(); } void CommentUserBadgeInfo::unsetBackgroundColor() { - m_BackgroundColorIsSet = false; + m_BackgroundColor.reset(); } utility::string_t CommentUserBadgeInfo::getBorderColor() const { - return m_BorderColor; + return m_BorderColor.get(); } void CommentUserBadgeInfo::setBorderColor(const utility::string_t& value) { m_BorderColor = value; - m_BorderColorIsSet = true; } bool CommentUserBadgeInfo::borderColorIsSet() const { - return m_BorderColorIsSet; + return m_BorderColor.has_value(); } void CommentUserBadgeInfo::unsetBorderColor() { - m_BorderColorIsSet = false; + m_BorderColor.reset(); } utility::string_t CommentUserBadgeInfo::getTextColor() const { - return m_TextColor; + return m_TextColor.get(); } void CommentUserBadgeInfo::setTextColor(const utility::string_t& value) { m_TextColor = value; - m_TextColorIsSet = true; } bool CommentUserBadgeInfo::textColorIsSet() const { - return m_TextColorIsSet; + return m_TextColor.has_value(); } void CommentUserBadgeInfo::unsetTextColor() { - m_TextColorIsSet = false; + m_TextColor.reset(); } utility::string_t CommentUserBadgeInfo::getCssClass() const { - return m_CssClass; + return m_CssClass.get(); } void CommentUserBadgeInfo::setCssClass(const utility::string_t& value) { m_CssClass = value; - m_CssClassIsSet = true; } bool CommentUserBadgeInfo::cssClassIsSet() const { - return m_CssClassIsSet; + return m_CssClass.has_value(); } void CommentUserBadgeInfo::unsetCssClass() { - m_CssClassIsSet = false; + m_CssClass.reset(); } } diff --git a/client/src/model/CommentUserHashTagInfo.cpp b/client/src/model/CommentUserHashTagInfo.cpp index aee61ae..fb93e96 100644 --- a/client/src/model/CommentUserHashTagInfo.cpp +++ b/client/src/model/CommentUserHashTagInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,8 +24,6 @@ CommentUserHashTagInfo::CommentUserHashTagInfo() m_IdIsSet = false; m_Tag = utility::conversions::to_string_t(""); m_TagIsSet = false; - m_Url = utility::conversions::to_string_t(""); - m_UrlIsSet = false; m_Retain = false; m_RetainIsSet = false; } @@ -43,22 +41,22 @@ web::json::value CommentUserHashTagInfo::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_TagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } - if(m_UrlIsSet) - { + if(m_Url.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); + val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url.get()); } if(m_RetainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("retain"))] = ModelBase::toJson(m_Retain); } @@ -131,9 +129,9 @@ void CommentUserHashTagInfo::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tag")), m_Tag)); } - if(m_UrlIsSet) + if(m_Url.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url.get())); } if(m_RetainIsSet) { @@ -222,24 +220,23 @@ void CommentUserHashTagInfo::unsetTag() } utility::string_t CommentUserHashTagInfo::getUrl() const { - return m_Url; + return m_Url.get(); } void CommentUserHashTagInfo::setUrl(const utility::string_t& value) { m_Url = value; - m_UrlIsSet = true; } bool CommentUserHashTagInfo::urlIsSet() const { - return m_UrlIsSet; + return m_Url.has_value(); } void CommentUserHashTagInfo::unsetUrl() { - m_UrlIsSet = false; + m_Url.reset(); } bool CommentUserHashTagInfo::isRetain() const { diff --git a/client/src/model/CommentUserMentionInfo.cpp b/client/src/model/CommentUserMentionInfo.cpp index 9bde718..86cbd15 100644 --- a/client/src/model/CommentUserMentionInfo.cpp +++ b/client/src/model/CommentUserMentionInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -44,29 +44,29 @@ web::json::value CommentUserMentionInfo::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_TagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } if(m_RawTagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("rawTag"))] = ModelBase::toJson(m_RawTag); } if(m_TypeIsSet) - { + { utility::string_t refVal = fromTypeEnum(m_Type); val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(refVal); } if(m_SentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sent"))] = ModelBase::toJson(m_Sent); } diff --git a/client/src/model/CommenterNameFormats.cpp b/client/src/model/CommenterNameFormats.cpp index 1418e0b..f3d4725 100644 --- a/client/src/model/CommenterNameFormats.cpp +++ b/client/src/model/CommenterNameFormats.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentsByIdsParams.cpp b/client/src/model/CommentsByIdsParams.cpp index 8f9903c..899795b 100644 --- a/client/src/model/CommentsByIdsParams.cpp +++ b/client/src/model/CommentsByIdsParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value CommentsByIdsParams::toJson() const { web::json::value val = web::json::value::object(); if(m_IdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ids"))] = ModelBase::toJson(m_Ids); } diff --git a/client/src/model/CreateAPIPageData.cpp b/client/src/model/CreateAPIPageData.cpp index 7e18c8e..57064e6 100644 --- a/client/src/model/CreateAPIPageData.cpp +++ b/client/src/model/CreateAPIPageData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -46,32 +46,32 @@ web::json::value CreateAPIPageData::toJson() const { web::json::value val = web::json::value::object(); if(m_AccessibleByGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("accessibleByGroupIds"))] = ModelBase::toJson(m_AccessibleByGroupIds); } if(m_RootCommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("rootCommentCount"))] = ModelBase::toJson(m_RootCommentCount); } if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } diff --git a/client/src/model/CreateAPISSOUserData.cpp b/client/src/model/CreateAPISSOUserData.cpp index 2771175..c38bef2 100644 --- a/client/src/model/CreateAPISSOUserData.cpp +++ b/client/src/model/CreateAPISSOUserData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -74,102 +74,102 @@ web::json::value CreateAPISSOUserData::toJson() const { web::json::value val = web::json::value::object(); if(m_GroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); } if(m_HasBlockedUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBlockedUsers"))] = ModelBase::toJson(m_HasBlockedUsers); } if(m_IsProfileDMDisabledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileDMDisabled"))] = ModelBase::toJson(m_IsProfileDMDisabled); } if(m_IsProfileCommentsPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileCommentsPrivate"))] = ModelBase::toJson(m_IsProfileCommentsPrivate); } if(m_IsProfileActivityPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileActivityPrivate"))] = ModelBase::toJson(m_IsProfileActivityPrivate); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } if(m_OptedInSubscriptionNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInSubscriptionNotifications"))] = ModelBase::toJson(m_OptedInSubscriptionNotifications); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_AvatarSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_CreatedFromUrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId"))] = ModelBase::toJson(m_CreatedFromUrlId); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } diff --git a/client/src/model/CreateAPIUserSubscriptionData.cpp b/client/src/model/CreateAPIUserSubscriptionData.cpp index e29960d..2883aeb 100644 --- a/client/src/model/CreateAPIUserSubscriptionData.cpp +++ b/client/src/model/CreateAPIUserSubscriptionData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -47,32 +47,32 @@ web::json::value CreateAPIUserSubscriptionData::toJson() const { web::json::value val = web::json::value::object(); if(m_NotificationFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationFrequency"))] = ModelBase::toJson(m_NotificationFrequency); } if(m_PageTitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_AnonUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } diff --git a/client/src/model/CreateCommentParams.cpp b/client/src/model/CreateCommentParams.cpp index b613162..13a62c6 100644 --- a/client/src/model/CreateCommentParams.cpp +++ b/client/src/model/CreateCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -28,20 +28,10 @@ CreateCommentParams::CreateCommentParams() m_LocalDateHoursIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; - m_CommenterEmail = utility::conversions::to_string_t(""); - m_CommenterEmailIsSet = false; - m_CommenterLink = utility::conversions::to_string_t(""); - m_CommenterLinkIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; m_ProductId = 0; m_ProductIdIsSet = false; - m_UserId = utility::conversions::to_string_t(""); - m_UserIdIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; - m_ParentId = utility::conversions::to_string_t(""); - m_ParentIdIsSet = false; m_MentionsIsSet = false; m_HashTagsIsSet = false; m_PageTitle = utility::conversions::to_string_t(""); @@ -101,182 +91,182 @@ web::json::value CreateCommentParams::toJson() const { web::json::value val = web::json::value::object(); if(m_dateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); } if(m_LocalDateStringIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); } if(m_LocalDateHoursIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterEmailIsSet) - { + if(m_CommenterEmail.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); } - if(m_CommenterLinkIsSet) - { + if(m_CommenterLink.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_ProductIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("productId"))] = ModelBase::toJson(m_ProductId); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } - if(m_ParentIdIsSet) - { + if(m_ParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); } if(m_MentionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("mentions"))] = ModelBase::toJson(m_Mentions); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } if(m_PageTitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); } if(m_IsFromMyAccountPageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isFromMyAccountPage"))] = ModelBase::toJson(m_IsFromMyAccountPage); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } if(m_ModerationGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } if(m_RatingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); } if(m_FromOfflineRestoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromOfflineRestore"))] = ModelBase::toJson(m_FromOfflineRestore); } if(m_AutoplayDelayMSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoplayDelayMS"))] = ModelBase::toJson(m_AutoplayDelayMS); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } if(m_QuestionValuesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionValues"))] = ModelBase::toJson(m_QuestionValues); } if(m_TosIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tos"))] = ModelBase::toJson(m_Tos); } if(m_BotIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("botId"))] = ModelBase::toJson(m_BotId); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_IpIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ip"))] = ModelBase::toJson(m_Ip); } if(m_IsPinnedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); } if(m_LocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if(m_VotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); } if(m_VotesDownIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); } if(m_VotesUpIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); } @@ -709,13 +699,13 @@ void CreateCommentParams::toMultipart(std::shared_ptr multipa { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterEmailIsSet) + if(m_CommenterEmail.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); } - if(m_CommenterLinkIsSet) + if(m_CommenterLink.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); } if(m_CommentIsSet) { @@ -725,17 +715,17 @@ void CreateCommentParams::toMultipart(std::shared_ptr multipa { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("productId")), m_ProductId)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } - if(m_ParentIdIsSet) + if(m_ParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); } if(m_MentionsIsSet) { @@ -1152,45 +1142,43 @@ void CreateCommentParams::unsetCommenterName() } utility::string_t CreateCommentParams::getCommenterEmail() const { - return m_CommenterEmail; + return m_CommenterEmail.get(); } void CreateCommentParams::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; - m_CommenterEmailIsSet = true; } bool CreateCommentParams::commenterEmailIsSet() const { - return m_CommenterEmailIsSet; + return m_CommenterEmail.has_value(); } void CreateCommentParams::unsetCommenterEmail() { - m_CommenterEmailIsSet = false; + m_CommenterEmail.reset(); } utility::string_t CreateCommentParams::getCommenterLink() const { - return m_CommenterLink; + return m_CommenterLink.get(); } void CreateCommentParams::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; - m_CommenterLinkIsSet = true; } bool CreateCommentParams::commenterLinkIsSet() const { - return m_CommenterLinkIsSet; + return m_CommenterLink.has_value(); } void CreateCommentParams::unsetCommenterLink() { - m_CommenterLinkIsSet = false; + m_CommenterLink.reset(); } utility::string_t CreateCommentParams::getComment() const { @@ -1235,66 +1223,63 @@ void CreateCommentParams::unsetProductId() } utility::string_t CreateCommentParams::getUserId() const { - return m_UserId; + return m_UserId.get(); } void CreateCommentParams::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool CreateCommentParams::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void CreateCommentParams::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t CreateCommentParams::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void CreateCommentParams::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool CreateCommentParams::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void CreateCommentParams::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } utility::string_t CreateCommentParams::getParentId() const { - return m_ParentId; + return m_ParentId.get(); } void CreateCommentParams::setParentId(const utility::string_t& value) { m_ParentId = value; - m_ParentIdIsSet = true; } bool CreateCommentParams::parentIdIsSet() const { - return m_ParentIdIsSet; + return m_ParentId.has_value(); } void CreateCommentParams::unsetParentId() { - m_ParentIdIsSet = false; + m_ParentId.reset(); } std::vector> CreateCommentParams::getMentions() const { diff --git a/client/src/model/CreateEmailTemplateBody.cpp b/client/src/model/CreateEmailTemplateBody.cpp index 27f45bc..ee2b365 100644 --- a/client/src/model/CreateEmailTemplateBody.cpp +++ b/client/src/model/CreateEmailTemplateBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -45,32 +45,32 @@ web::json::value CreateEmailTemplateBody::toJson() const { web::json::value val = web::json::value::object(); if(m_EmailTemplateIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplateId"))] = ModelBase::toJson(m_EmailTemplateId); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_EjsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ejs"))] = ModelBase::toJson(m_Ejs); } if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_TranslationOverridesByLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))] = ModelBase::toJson(m_TranslationOverridesByLocale); } if(m_TestDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("testData"))] = ModelBase::toJson(m_TestData); } @@ -130,7 +130,7 @@ bool CreateEmailTemplateBody::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))); if(!fieldValue.is_null()) { - std::map refVal_setTranslationOverridesByLocale; + std::map> refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromJson(fieldValue, refVal_setTranslationOverridesByLocale); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); @@ -218,7 +218,7 @@ bool CreateEmailTemplateBody::fromMultiPart(std::shared_ptr m } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale")))) { - std::map refVal_setTranslationOverridesByLocale; + std::map> refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))), refVal_setTranslationOverridesByLocale ); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); } @@ -316,13 +316,13 @@ void CreateEmailTemplateBody::unsetDomain() { m_DomainIsSet = false; } -std::map CreateEmailTemplateBody::getTranslationOverridesByLocale() const +std::map> CreateEmailTemplateBody::getTranslationOverridesByLocale() const { return m_TranslationOverridesByLocale; } -void CreateEmailTemplateBody::setTranslationOverridesByLocale(const std::map& value) +void CreateEmailTemplateBody::setTranslationOverridesByLocale(const std::map>& value) { m_TranslationOverridesByLocale = value; m_TranslationOverridesByLocaleIsSet = true; diff --git a/client/src/model/CreateEmailTemplateResponse.cpp b/client/src/model/CreateEmailTemplateResponse.cpp index 0cb110d..9a74872 100644 --- a/client/src/model/CreateEmailTemplateResponse.cpp +++ b/client/src/model/CreateEmailTemplateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateEmailTemplateResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_EmailTemplateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))] = ModelBase::toJson(m_EmailTemplate); } diff --git a/client/src/model/CreateFeedPostParams.cpp b/client/src/model/CreateFeedPostParams.cpp index 22adbf7..f16bf4a 100644 --- a/client/src/model/CreateFeedPostParams.cpp +++ b/client/src/model/CreateFeedPostParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -47,42 +47,42 @@ web::json::value CreateFeedPostParams::toJson() const { web::json::value val = web::json::value::object(); if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_ContentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("contentHTML"))] = ModelBase::toJson(m_ContentHTML); } if(m_MediaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("media"))] = ModelBase::toJson(m_Media); } if(m_LinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("links"))] = ModelBase::toJson(m_Links); } if(m_FromUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserId"))] = ModelBase::toJson(m_FromUserId); } if(m_FromUserDisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserDisplayName"))] = ModelBase::toJson(m_FromUserDisplayName); } if(m_TagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tags"))] = ModelBase::toJson(m_Tags); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } diff --git a/client/src/model/CreateFeedPostResponse.cpp b/client/src/model/CreateFeedPostResponse.cpp index 2f71d06..31ca55b 100644 --- a/client/src/model/CreateFeedPostResponse.cpp +++ b/client/src/model/CreateFeedPostResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateFeedPostResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_FeedPostIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); } diff --git a/client/src/model/CreateFeedPostsResponse.cpp b/client/src/model/CreateFeedPostsResponse.cpp index d1714b6..d2a24b6 100644 --- a/client/src/model/CreateFeedPostsResponse.cpp +++ b/client/src/model/CreateFeedPostsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateFeedPostsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_FeedPostIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); } diff --git a/client/src/model/CreateHashTagBody.cpp b/client/src/model/CreateHashTagBody.cpp index dff281c..1500a1c 100644 --- a/client/src/model/CreateHashTagBody.cpp +++ b/client/src/model/CreateHashTagBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value CreateHashTagBody::toJson() const { web::json::value val = web::json::value::object(); if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_TagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } diff --git a/client/src/model/CreateHashTagResponse.cpp b/client/src/model/CreateHashTagResponse.cpp index 0d78a81..7a8827e 100644 --- a/client/src/model/CreateHashTagResponse.cpp +++ b/client/src/model/CreateHashTagResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateHashTagResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_HashTagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTag"))] = ModelBase::toJson(m_HashTag); } diff --git a/client/src/model/CreateModeratorBody.cpp b/client/src/model/CreateModeratorBody.cpp index a341183..15e77d7 100644 --- a/client/src/model/CreateModeratorBody.cpp +++ b/client/src/model/CreateModeratorBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -27,6 +27,7 @@ CreateModeratorBody::CreateModeratorBody() m_UserId = utility::conversions::to_string_t(""); m_UserIdIsSet = false; m_ModerationGroupIdsIsSet = false; + m_AdditionalPropertiesIsSet = false; } CreateModeratorBody::~CreateModeratorBody() @@ -42,25 +43,33 @@ web::json::value CreateModeratorBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_ModerationGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } + // Serialize additional properties + if(m_AdditionalPropertiesIsSet) + { + for(const auto& item : m_AdditionalProperties) + { + val[item.first] = item.second; + } + } return val; } @@ -112,6 +121,21 @@ bool CreateModeratorBody::fromJson(const web::json::value& val) } } + // Capture additional properties (keys not defined in the schema) + if(val.is_object()) + { + for(const auto& item : val.as_object()) + { + // Skip known properties + if(item.first == utility::conversions::to_string_t(_XPLATSTR("name"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("email"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("userId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))) continue; + // This is an additional property + m_AdditionalProperties[item.first] = item.second; + m_AdditionalPropertiesIsSet = true; + } + } return ok; } @@ -262,6 +286,34 @@ void CreateModeratorBody::unsetModerationGroupIds() m_ModerationGroupIdsIsSet = false; } + +std::map CreateModeratorBody::getAdditionalProperties() const +{ + return m_AdditionalProperties; +} + +void CreateModeratorBody::setAdditionalProperties(const std::map& value) +{ + m_AdditionalProperties = value; + m_AdditionalPropertiesIsSet = true; +} + +void CreateModeratorBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) +{ + m_AdditionalProperties[key] = value; + m_AdditionalPropertiesIsSet = true; +} + +bool CreateModeratorBody::additionalPropertiesIsSet() const +{ + return m_AdditionalPropertiesIsSet; +} + +void CreateModeratorBody::unsetAdditionalProperties() +{ + m_AdditionalProperties.clear(); + m_AdditionalPropertiesIsSet = false; +} } } } diff --git a/client/src/model/CreateModeratorResponse.cpp b/client/src/model/CreateModeratorResponse.cpp index a0a51f2..91a751f 100644 --- a/client/src/model/CreateModeratorResponse.cpp +++ b/client/src/model/CreateModeratorResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateModeratorResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderator"))] = ModelBase::toJson(m_Moderator); } diff --git a/client/src/model/CreateQuestionConfigBody.cpp b/client/src/model/CreateQuestionConfigBody.cpp index 3af241e..868556f 100644 --- a/client/src/model/CreateQuestionConfigBody.cpp +++ b/client/src/model/CreateQuestionConfigBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -46,6 +46,7 @@ CreateQuestionConfigBody::CreateQuestionConfigBody() m_AlwaysShowSubQuestionsIsSet = false; m_ReportingOrder = 0.0; m_ReportingOrderIsSet = false; + m_AdditionalPropertiesIsSet = false; } CreateQuestionConfigBody::~CreateQuestionConfigBody() @@ -61,75 +62,83 @@ web::json::value CreateQuestionConfigBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_QuestionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("question"))] = ModelBase::toJson(m_Question); } if(m_HelpTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("helpText"))] = ModelBase::toJson(m_HelpText); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_NumStarsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("numStars"))] = ModelBase::toJson(m_NumStars); } if(m_MinIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("min"))] = ModelBase::toJson(m_Min); } if(m_MaxIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("max"))] = ModelBase::toJson(m_Max); } if(m_DefaultValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("defaultValue"))] = ModelBase::toJson(m_DefaultValue); } if(m_LabelNegativeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("labelNegative"))] = ModelBase::toJson(m_LabelNegative); } if(m_LabelPositiveIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("labelPositive"))] = ModelBase::toJson(m_LabelPositive); } if(m_CustomOptionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customOptions"))] = ModelBase::toJson(m_CustomOptions); } if(m_SubQuestionIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subQuestionIds"))] = ModelBase::toJson(m_SubQuestionIds); } if(m_AlwaysShowSubQuestionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("alwaysShowSubQuestions"))] = ModelBase::toJson(m_AlwaysShowSubQuestions); } if(m_ReportingOrderIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reportingOrder"))] = ModelBase::toJson(m_ReportingOrder); } + // Serialize additional properties + if(m_AdditionalPropertiesIsSet) + { + for(const auto& item : m_AdditionalProperties) + { + val[item.first] = item.second; + } + } return val; } @@ -291,6 +300,31 @@ bool CreateQuestionConfigBody::fromJson(const web::json::value& val) } } + // Capture additional properties (keys not defined in the schema) + if(val.is_object()) + { + for(const auto& item : val.as_object()) + { + // Skip known properties + if(item.first == utility::conversions::to_string_t(_XPLATSTR("name"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("question"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("helpText"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("type"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("numStars"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("min"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("max"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("defaultValue"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("labelNegative"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("labelPositive"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("customOptions"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("subQuestionIds"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("alwaysShowSubQuestions"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("reportingOrder"))) continue; + // This is an additional property + m_AdditionalProperties[item.first] = item.second; + m_AdditionalPropertiesIsSet = true; + } + } return ok; } @@ -745,6 +779,34 @@ void CreateQuestionConfigBody::unsetReportingOrder() m_ReportingOrderIsSet = false; } + +std::map CreateQuestionConfigBody::getAdditionalProperties() const +{ + return m_AdditionalProperties; +} + +void CreateQuestionConfigBody::setAdditionalProperties(const std::map& value) +{ + m_AdditionalProperties = value; + m_AdditionalPropertiesIsSet = true; +} + +void CreateQuestionConfigBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) +{ + m_AdditionalProperties[key] = value; + m_AdditionalPropertiesIsSet = true; +} + +bool CreateQuestionConfigBody::additionalPropertiesIsSet() const +{ + return m_AdditionalPropertiesIsSet; +} + +void CreateQuestionConfigBody::unsetAdditionalProperties() +{ + m_AdditionalProperties.clear(); + m_AdditionalPropertiesIsSet = false; +} } } } diff --git a/client/src/model/CreateQuestionConfigResponse.cpp b/client/src/model/CreateQuestionConfigResponse.cpp index 786b1cb..8fc4505 100644 --- a/client/src/model/CreateQuestionConfigResponse.cpp +++ b/client/src/model/CreateQuestionConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateQuestionConfigResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_QuestionConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionConfig"))] = ModelBase::toJson(m_QuestionConfig); } diff --git a/client/src/model/CreateQuestionResultBody.cpp b/client/src/model/CreateQuestionResultBody.cpp index f601d6b..0fedf7a 100644 --- a/client/src/model/CreateQuestionResultBody.cpp +++ b/client/src/model/CreateQuestionResultBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -32,7 +32,7 @@ CreateQuestionResultBody::CreateQuestionResultBody() m_UserIdIsSet = false; m_CommentId = utility::conversions::to_string_t(""); m_CommentIdIsSet = false; - m_MetaIsSet = false; + m_AdditionalPropertiesIsSet = false; } CreateQuestionResultBody::~CreateQuestionResultBody() @@ -48,39 +48,47 @@ web::json::value CreateQuestionResultBody::toJson() const { web::json::value val = web::json::value::object(); if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_ValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("value"))] = ModelBase::toJson(m_Value); } if(m_QuestionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionId"))] = ModelBase::toJson(m_QuestionId); } if(m_AnonUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_CommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId); } - if(m_MetaIsSet) - { + if(m_Meta.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); + } + // Serialize additional properties + if(m_AdditionalPropertiesIsSet) + { + for(const auto& item : m_AdditionalProperties) + { + val[item.first] = item.second; + } } return val; @@ -166,6 +174,24 @@ bool CreateQuestionResultBody::fromJson(const web::json::value& val) } } + // Capture additional properties (keys not defined in the schema) + if(val.is_object()) + { + for(const auto& item : val.as_object()) + { + // Skip known properties + if(item.first == utility::conversions::to_string_t(_XPLATSTR("urlId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("value"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("questionId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("anonUserId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("userId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("commentId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("meta"))) continue; + // This is an additional property + m_AdditionalProperties[item.first] = item.second; + m_AdditionalPropertiesIsSet = true; + } + } return ok; } @@ -200,9 +226,9 @@ void CreateQuestionResultBody::toMultipart(std::shared_ptr mu { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentId")), m_CommentId)); } - if(m_MetaIsSet) + if(m_Meta.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); } } @@ -388,26 +414,53 @@ void CreateQuestionResultBody::unsetCommentId() } std::vector> CreateQuestionResultBody::getMeta() const { - return m_Meta; + return m_Meta.get(); } void CreateQuestionResultBody::setMeta(const std::vector>& value) { m_Meta = value; - m_MetaIsSet = true; } bool CreateQuestionResultBody::metaIsSet() const { - return m_MetaIsSet; + return m_Meta.has_value(); } void CreateQuestionResultBody::unsetMeta() { - m_MetaIsSet = false; + m_Meta.reset(); } + +std::map CreateQuestionResultBody::getAdditionalProperties() const +{ + return m_AdditionalProperties; +} + +void CreateQuestionResultBody::setAdditionalProperties(const std::map& value) +{ + m_AdditionalProperties = value; + m_AdditionalPropertiesIsSet = true; +} + +void CreateQuestionResultBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) +{ + m_AdditionalProperties[key] = value; + m_AdditionalPropertiesIsSet = true; +} + +bool CreateQuestionResultBody::additionalPropertiesIsSet() const +{ + return m_AdditionalPropertiesIsSet; +} + +void CreateQuestionResultBody::unsetAdditionalProperties() +{ + m_AdditionalProperties.clear(); + m_AdditionalPropertiesIsSet = false; +} } } } diff --git a/client/src/model/CreateQuestionResultResponse.cpp b/client/src/model/CreateQuestionResultResponse.cpp index 3aa2bb9..7ba964a 100644 --- a/client/src/model/CreateQuestionResultResponse.cpp +++ b/client/src/model/CreateQuestionResultResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateQuestionResultResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_QuestionResultIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionResult"))] = ModelBase::toJson(m_QuestionResult); } diff --git a/client/src/model/CreateSubscriptionAPIResponse.cpp b/client/src/model/CreateSubscriptionAPIResponse.cpp index d0f2cd3..72faaf3 100644 --- a/client/src/model/CreateSubscriptionAPIResponse.cpp +++ b/client/src/model/CreateSubscriptionAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value CreateSubscriptionAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_SubscriptionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subscription"))] = ModelBase::toJson(m_Subscription); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/CreateTenantBody.cpp b/client/src/model/CreateTenantBody.cpp index 77c35cc..fece73d 100644 --- a/client/src/model/CreateTenantBody.cpp +++ b/client/src/model/CreateTenantBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -78,117 +78,117 @@ web::json::value CreateTenantBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_DomainConfigurationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domainConfiguration"))] = ModelBase::toJson(m_DomainConfiguration); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_PackageIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("packageId"))] = ModelBase::toJson(m_PackageId); } if(m_PaymentFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("paymentFrequency"))] = ModelBase::toJson(m_PaymentFrequency); } if(m_BillingInfoValidIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingInfoValid"))] = ModelBase::toJson(m_BillingInfoValid); } if(m_BillingHandledExternallyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingHandledExternally"))] = ModelBase::toJson(m_BillingHandledExternally); } if(m_CreatedByIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdBy"))] = ModelBase::toJson(m_CreatedBy); } if(m_IsSetupIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSetup"))] = ModelBase::toJson(m_IsSetup); } if(m_BillingInfoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingInfo"))] = ModelBase::toJson(m_BillingInfo); } if(m_StripeCustomerIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripeCustomerId"))] = ModelBase::toJson(m_StripeCustomerId); } if(m_StripeSubscriptionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripeSubscriptionId"))] = ModelBase::toJson(m_StripeSubscriptionId); } if(m_StripePlanIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripePlanId"))] = ModelBase::toJson(m_StripePlanId); } if(m_EnableProfanityFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableProfanityFilter"))] = ModelBase::toJson(m_EnableProfanityFilter); } if(m_EnableSpamFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSpamFilter"))] = ModelBase::toJson(m_EnableSpamFilter); } if(m_RemoveUnverifiedCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("removeUnverifiedComments"))] = ModelBase::toJson(m_RemoveUnverifiedComments); } if(m_UnverifiedCommentsTTLmsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("unverifiedCommentsTTLms"))] = ModelBase::toJson(m_UnverifiedCommentsTTLms); } if(m_CommentsRequireApprovalIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentsRequireApproval"))] = ModelBase::toJson(m_CommentsRequireApproval); } if(m_AutoApproveCommentOnVerificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoApproveCommentOnVerification"))] = ModelBase::toJson(m_AutoApproveCommentOnVerification); } if(m_SendProfaneToSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sendProfaneToSpam"))] = ModelBase::toJson(m_SendProfaneToSpam); } if(m_DeAnonIpAddrIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("deAnonIpAddr"))] = ModelBase::toJson(m_DeAnonIpAddr); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } diff --git a/client/src/model/CreateTenantPackageBody.cpp b/client/src/model/CreateTenantPackageBody.cpp index fa919be..d552ab4 100644 --- a/client/src/model/CreateTenantPackageBody.cpp +++ b/client/src/model/CreateTenantPackageBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,14 +22,6 @@ CreateTenantPackageBody::CreateTenantPackageBody() { m_Name = utility::conversions::to_string_t(""); m_NameIsSet = false; - m_MonthlyCostUSD = 0.0; - m_MonthlyCostUSDIsSet = false; - m_YearlyCostUSD = 0.0; - m_YearlyCostUSDIsSet = false; - m_MonthlyStripePlanId = utility::conversions::to_string_t(""); - m_MonthlyStripePlanIdIsSet = false; - m_YearlyStripePlanId = utility::conversions::to_string_t(""); - m_YearlyStripePlanIdIsSet = false; m_MaxMonthlyPageLoads = 0.0; m_MaxMonthlyPageLoadsIsSet = false; m_MaxMonthlyAPICredits = 0.0; @@ -132,247 +124,247 @@ web::json::value CreateTenantPackageBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } - if(m_MonthlyCostUSDIsSet) - { + if(m_MonthlyCostUSD.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD"))] = ModelBase::toJson(m_MonthlyCostUSD); + val[utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD"))] = ModelBase::toJson(m_MonthlyCostUSD.get()); } - if(m_YearlyCostUSDIsSet) - { + if(m_YearlyCostUSD.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD"))] = ModelBase::toJson(m_YearlyCostUSD); + val[utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD"))] = ModelBase::toJson(m_YearlyCostUSD.get()); } - if(m_MonthlyStripePlanIdIsSet) - { + if(m_MonthlyStripePlanId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId"))] = ModelBase::toJson(m_MonthlyStripePlanId); + val[utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId"))] = ModelBase::toJson(m_MonthlyStripePlanId.get()); } - if(m_YearlyStripePlanIdIsSet) - { + if(m_YearlyStripePlanId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId"))] = ModelBase::toJson(m_YearlyStripePlanId); + val[utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId"))] = ModelBase::toJson(m_YearlyStripePlanId.get()); } if(m_MaxMonthlyPageLoadsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyPageLoads"))] = ModelBase::toJson(m_MaxMonthlyPageLoads); } if(m_MaxMonthlyAPICreditsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyAPICredits"))] = ModelBase::toJson(m_MaxMonthlyAPICredits); } if(m_MaxMonthlySmallWidgetsCreditsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlySmallWidgetsCredits"))] = ModelBase::toJson(m_MaxMonthlySmallWidgetsCredits); } if(m_MaxMonthlyCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyComments"))] = ModelBase::toJson(m_MaxMonthlyComments); } if(m_MaxConcurrentUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxConcurrentUsers"))] = ModelBase::toJson(m_MaxConcurrentUsers); } if(m_MaxTenantUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxTenantUsers"))] = ModelBase::toJson(m_MaxTenantUsers); } if(m_MaxSSOUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxSSOUsers"))] = ModelBase::toJson(m_MaxSSOUsers); } if(m_MaxModeratorsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxModerators"))] = ModelBase::toJson(m_MaxModerators); } if(m_MaxDomainsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxDomains"))] = ModelBase::toJson(m_MaxDomains); } if(m_MaxWhiteLabeledTenantsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxWhiteLabeledTenants"))] = ModelBase::toJson(m_MaxWhiteLabeledTenants); } if(m_MaxMonthlyEventLogRequestsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyEventLogRequests"))] = ModelBase::toJson(m_MaxMonthlyEventLogRequests); } if(m_MaxCustomCollectionSizeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCustomCollectionSize"))] = ModelBase::toJson(m_MaxCustomCollectionSize); } if(m_HasWhiteLabelingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasWhiteLabeling"))] = ModelBase::toJson(m_HasWhiteLabeling); } if(m_HasDebrandingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasDebranding"))] = ModelBase::toJson(m_HasDebranding); } if(m_HasLLMSpamDetectionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLLMSpamDetection"))] = ModelBase::toJson(m_HasLLMSpamDetection); } if(m_ForWhoTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("forWhoText"))] = ModelBase::toJson(m_ForWhoText); } if(m_FeatureTaglinesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("featureTaglines"))] = ModelBase::toJson(m_FeatureTaglines); } if(m_HasAuditingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasAuditing"))] = ModelBase::toJson(m_HasAuditing); } if(m_HasFlexPricingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasFlexPricing"))] = ModelBase::toJson(m_HasFlexPricing); } if(m_EnableSAMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSAML"))] = ModelBase::toJson(m_EnableSAML); } if(m_FlexPageLoadCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadCostCents"))] = ModelBase::toJson(m_FlexPageLoadCostCents); } if(m_FlexPageLoadUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadUnit"))] = ModelBase::toJson(m_FlexPageLoadUnit); } if(m_FlexCommentCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentCostCents"))] = ModelBase::toJson(m_FlexCommentCostCents); } if(m_FlexCommentUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentUnit"))] = ModelBase::toJson(m_FlexCommentUnit); } if(m_FlexSSOUserCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserCostCents"))] = ModelBase::toJson(m_FlexSSOUserCostCents); } if(m_FlexSSOUserUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserUnit"))] = ModelBase::toJson(m_FlexSSOUserUnit); } if(m_FlexAPICreditCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditCostCents"))] = ModelBase::toJson(m_FlexAPICreditCostCents); } if(m_FlexAPICreditUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditUnit"))] = ModelBase::toJson(m_FlexAPICreditUnit); } if(m_FlexSmallWidgetsCreditCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSmallWidgetsCreditCostCents"))] = ModelBase::toJson(m_FlexSmallWidgetsCreditCostCents); } if(m_FlexSmallWidgetsCreditUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSmallWidgetsCreditUnit"))] = ModelBase::toJson(m_FlexSmallWidgetsCreditUnit); } if(m_FlexModeratorCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorCostCents"))] = ModelBase::toJson(m_FlexModeratorCostCents); } if(m_FlexModeratorUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorUnit"))] = ModelBase::toJson(m_FlexModeratorUnit); } if(m_FlexAdminCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminCostCents"))] = ModelBase::toJson(m_FlexAdminCostCents); } if(m_FlexAdminUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminUnit"))] = ModelBase::toJson(m_FlexAdminUnit); } if(m_FlexDomainCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainCostCents"))] = ModelBase::toJson(m_FlexDomainCostCents); } if(m_FlexDomainUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainUnit"))] = ModelBase::toJson(m_FlexDomainUnit); } if(m_FlexLLMCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents"))] = ModelBase::toJson(m_FlexLLMCostCents); } if(m_FlexLLMUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit"))] = ModelBase::toJson(m_FlexLLMUnit); } if(m_FlexMinimumCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexMinimumCostCents"))] = ModelBase::toJson(m_FlexMinimumCostCents); } if(m_FlexManagedTenantCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexManagedTenantCostCents"))] = ModelBase::toJson(m_FlexManagedTenantCostCents); } if(m_FlexSSOAdminCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOAdminCostCents"))] = ModelBase::toJson(m_FlexSSOAdminCostCents); } if(m_FlexSSOAdminUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOAdminUnit"))] = ModelBase::toJson(m_FlexSSOAdminUnit); } if(m_FlexSSOModeratorCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOModeratorCostCents"))] = ModelBase::toJson(m_FlexSSOModeratorCostCents); } if(m_FlexSSOModeratorUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOModeratorUnit"))] = ModelBase::toJson(m_FlexSSOModeratorUnit); } @@ -936,21 +928,21 @@ void CreateTenantPackageBody::toMultipart(std::shared_ptr mul { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } - if(m_MonthlyCostUSDIsSet) + if(m_MonthlyCostUSD.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD")), m_MonthlyCostUSD)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD")), m_MonthlyCostUSD.get())); } - if(m_YearlyCostUSDIsSet) + if(m_YearlyCostUSD.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD")), m_YearlyCostUSD)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD")), m_YearlyCostUSD.get())); } - if(m_MonthlyStripePlanIdIsSet) + if(m_MonthlyStripePlanId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId")), m_MonthlyStripePlanId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId")), m_MonthlyStripePlanId.get())); } - if(m_YearlyStripePlanIdIsSet) + if(m_YearlyStripePlanId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId")), m_YearlyStripePlanId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId")), m_YearlyStripePlanId.get())); } if(m_MaxMonthlyPageLoadsIsSet) { @@ -1460,85 +1452,81 @@ void CreateTenantPackageBody::unsetName() } double CreateTenantPackageBody::getMonthlyCostUSD() const { - return m_MonthlyCostUSD; + return m_MonthlyCostUSD.get(); } void CreateTenantPackageBody::setMonthlyCostUSD(double value) { m_MonthlyCostUSD = value; - m_MonthlyCostUSDIsSet = true; } bool CreateTenantPackageBody::monthlyCostUSDIsSet() const { - return m_MonthlyCostUSDIsSet; + return m_MonthlyCostUSD.has_value(); } void CreateTenantPackageBody::unsetMonthlyCostUSD() { - m_MonthlyCostUSDIsSet = false; + m_MonthlyCostUSD.reset(); } double CreateTenantPackageBody::getYearlyCostUSD() const { - return m_YearlyCostUSD; + return m_YearlyCostUSD.get(); } void CreateTenantPackageBody::setYearlyCostUSD(double value) { m_YearlyCostUSD = value; - m_YearlyCostUSDIsSet = true; } bool CreateTenantPackageBody::yearlyCostUSDIsSet() const { - return m_YearlyCostUSDIsSet; + return m_YearlyCostUSD.has_value(); } void CreateTenantPackageBody::unsetYearlyCostUSD() { - m_YearlyCostUSDIsSet = false; + m_YearlyCostUSD.reset(); } utility::string_t CreateTenantPackageBody::getMonthlyStripePlanId() const { - return m_MonthlyStripePlanId; + return m_MonthlyStripePlanId.get(); } void CreateTenantPackageBody::setMonthlyStripePlanId(const utility::string_t& value) { m_MonthlyStripePlanId = value; - m_MonthlyStripePlanIdIsSet = true; } bool CreateTenantPackageBody::monthlyStripePlanIdIsSet() const { - return m_MonthlyStripePlanIdIsSet; + return m_MonthlyStripePlanId.has_value(); } void CreateTenantPackageBody::unsetMonthlyStripePlanId() { - m_MonthlyStripePlanIdIsSet = false; + m_MonthlyStripePlanId.reset(); } utility::string_t CreateTenantPackageBody::getYearlyStripePlanId() const { - return m_YearlyStripePlanId; + return m_YearlyStripePlanId.get(); } void CreateTenantPackageBody::setYearlyStripePlanId(const utility::string_t& value) { m_YearlyStripePlanId = value; - m_YearlyStripePlanIdIsSet = true; } bool CreateTenantPackageBody::yearlyStripePlanIdIsSet() const { - return m_YearlyStripePlanIdIsSet; + return m_YearlyStripePlanId.has_value(); } void CreateTenantPackageBody::unsetYearlyStripePlanId() { - m_YearlyStripePlanIdIsSet = false; + m_YearlyStripePlanId.reset(); } double CreateTenantPackageBody::getMaxMonthlyPageLoads() const { diff --git a/client/src/model/CreateTenantPackageResponse.cpp b/client/src/model/CreateTenantPackageResponse.cpp index 92d8a95..46e435d 100644 --- a/client/src/model/CreateTenantPackageResponse.cpp +++ b/client/src/model/CreateTenantPackageResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateTenantPackageResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantPackageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))] = ModelBase::toJson(m_TenantPackage); } diff --git a/client/src/model/CreateTenantResponse.cpp b/client/src/model/CreateTenantResponse.cpp index 750987a..82ef119 100644 --- a/client/src/model/CreateTenantResponse.cpp +++ b/client/src/model/CreateTenantResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateTenantResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenant"))] = ModelBase::toJson(m_Tenant); } diff --git a/client/src/model/CreateTenantUserBody.cpp b/client/src/model/CreateTenantUserBody.cpp index 9ec82f4..bd2e0f7 100644 --- a/client/src/model/CreateTenantUserBody.cpp +++ b/client/src/model/CreateTenantUserBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -82,122 +82,122 @@ web::json::value CreateTenantUserBody::toJson() const { web::json::value val = web::json::value::object(); if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_LocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_OptedInTenantNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInTenantNotifications"))] = ModelBase::toJson(m_OptedInTenantNotifications); } if(m_HideAccountCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hideAccountCode"))] = ModelBase::toJson(m_HideAccountCode); } if(m_AvatarSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_IsHelpRequestAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isHelpRequestAdmin"))] = ModelBase::toJson(m_IsHelpRequestAdmin); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsBillingAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBillingAdmin"))] = ModelBase::toJson(m_IsBillingAdmin); } if(m_IsAnalyticsAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAnalyticsAdmin"))] = ModelBase::toJson(m_IsAnalyticsAdmin); } if(m_IsCustomizationAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCustomizationAdmin"))] = ModelBase::toJson(m_IsCustomizationAdmin); } if(m_IsManageDataAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isManageDataAdmin"))] = ModelBase::toJson(m_IsManageDataAdmin); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsAPIAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAPIAdmin"))] = ModelBase::toJson(m_IsAPIAdmin); } if(m_ModeratorIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderatorIds"))] = ModelBase::toJson(m_ModeratorIds); } if(m_DigestEmailFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("digestEmailFrequency"))] = ModelBase::toJson(m_DigestEmailFrequency); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } diff --git a/client/src/model/CreateTenantUserResponse.cpp b/client/src/model/CreateTenantUserResponse.cpp index 1d400bf..0e57b85 100644 --- a/client/src/model/CreateTenantUserResponse.cpp +++ b/client/src/model/CreateTenantUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateTenantUserResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantUser"))] = ModelBase::toJson(m_TenantUser); } diff --git a/client/src/model/CreateTicketBody.cpp b/client/src/model/CreateTicketBody.cpp index 1d2f7d4..c2e6547 100644 --- a/client/src/model/CreateTicketBody.cpp +++ b/client/src/model/CreateTicketBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,7 @@ web::json::value CreateTicketBody::toJson() const { web::json::value val = web::json::value::object(); if(m_SubjectIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subject"))] = ModelBase::toJson(m_Subject); } diff --git a/client/src/model/CreateTicketResponse.cpp b/client/src/model/CreateTicketResponse.cpp index ffbf709..df15854 100644 --- a/client/src/model/CreateTicketResponse.cpp +++ b/client/src/model/CreateTicketResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value CreateTicketResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TicketIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); } diff --git a/client/src/model/CreateUserBadgeParams.cpp b/client/src/model/CreateUserBadgeParams.cpp index e513310..a243824 100644 --- a/client/src/model/CreateUserBadgeParams.cpp +++ b/client/src/model/CreateUserBadgeParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value CreateUserBadgeParams::toJson() const { web::json::value val = web::json::value::object(); if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_BadgeIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badgeId"))] = ModelBase::toJson(m_BadgeId); } if(m_DisplayedOnCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayedOnComments"))] = ModelBase::toJson(m_DisplayedOnComments); } diff --git a/client/src/model/CreateV1PageReact.cpp b/client/src/model/CreateV1PageReact.cpp index 05d7a96..0824871 100644 --- a/client/src/model/CreateV1PageReact.cpp +++ b/client/src/model/CreateV1PageReact.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value CreateV1PageReact::toJson() const { web::json::value val = web::json::value::object(); if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/CustomConfigParameters.cpp b/client/src/model/CustomConfigParameters.cpp index d22cff5..f1771d2 100644 --- a/client/src/model/CustomConfigParameters.cpp +++ b/client/src/model/CustomConfigParameters.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,23 +30,11 @@ CustomConfigParameters::CustomConfigParameters() m_AllowAnonFlagIsSet = false; m_AllowAnonVotes = false; m_AllowAnonVotesIsSet = false; - m_AllowedLanguagesIsSet = false; m_CollapseReplies = false; m_CollapseRepliesIsSet = false; - m_CommentCountFormat = utility::conversions::to_string_t(""); - m_CommentCountFormatIsSet = false; m_CommentHTMLRenderingModeIsSet = false; - m_CommentThreadDeleteModeIsSet = false; - m_CommenterNameFormatIsSet = false; m_CountAboveToggle = 0; m_CountAboveToggleIsSet = false; - m_CustomCSS = utility::conversions::to_string_t(""); - m_CustomCSSIsSet = false; - m_DefaultAvatarSrc = utility::conversions::to_string_t(""); - m_DefaultAvatarSrcIsSet = false; - m_DefaultSortDirectionIsSet = false; - m_DefaultUsername = utility::conversions::to_string_t(""); - m_DefaultUsernameIsSet = false; m_DisableAutoAdminMigration = false; m_DisableAutoAdminMigrationIsSet = false; m_DisableAutoHashTagCreation = false; @@ -94,35 +82,21 @@ CustomConfigParameters::CustomConfigParameters() m_GifRatingIsSet = false; m_HasDarkBackground = false; m_HasDarkBackgroundIsSet = false; - m_HeaderHTML = utility::conversions::to_string_t(""); - m_HeaderHTMLIsSet = false; m_HideAvatars = false; m_HideAvatarsIsSet = false; - m_HideCommentsUnderCountTextFormat = utility::conversions::to_string_t(""); - m_HideCommentsUnderCountTextFormatIsSet = false; m_ImageContentProfanityLevelIsSet = false; m_InputAfterComments = false; m_InputAfterCommentsIsSet = false; m_LimitCommentsByGroups = false; m_LimitCommentsByGroupsIsSet = false; - m_Locale = utility::conversions::to_string_t(""); - m_LocaleIsSet = false; - m_MaxCommentCharacterLength = 0; - m_MaxCommentCharacterLengthIsSet = false; - m_MaxCommentCreatedCountPUPM = 0; - m_MaxCommentCreatedCountPUPMIsSet = false; m_NoCustomConfig = false; m_NoCustomConfigIsSet = false; - m_MentionAutoCompleteModeIsSet = false; m_NoImageUploads = false; m_NoImageUploadsIsSet = false; m_AllowEmbeds = false; m_AllowEmbedsIsSet = false; - m_AllowedEmbedDomainsIsSet = false; m_NoStyles = false; m_NoStylesIsSet = false; - m_PageSize = 0; - m_PageSizeIsSet = false; m_Readonly = false; m_ReadonlyIsSet = false; m_NoNewRootComments = false; @@ -133,7 +107,6 @@ CustomConfigParameters::CustomConfigParameters() m_EnableFChatIsSet = false; m_EnableResizeHandle = false; m_EnableResizeHandleIsSet = false; - m_RestrictedLinkDomainsIsSet = false; m_ShowBadgesInTopBar = false; m_ShowBadgesInTopBarIsSet = false; m_ShowCommentSaveSuccess = false; @@ -144,7 +117,6 @@ CustomConfigParameters::CustomConfigParameters() m_ShowQuestionIsSet = false; m_SpamRulesIsSet = false; m_SsoSecLvlIsSet = false; - m_TranslationsIsSet = false; m_UseShowCommentsToggle = false; m_UseShowCommentsToggleIsSet = false; m_UseSingleLineCommentInput = false; @@ -189,442 +161,442 @@ web::json::value CustomConfigParameters::toJson() const { web::json::value val = web::json::value::object(); if(m_AbsoluteAndRelativeDatesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("absoluteAndRelativeDates"))] = ModelBase::toJson(m_AbsoluteAndRelativeDates); } if(m_AbsoluteDatesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("absoluteDates"))] = ModelBase::toJson(m_AbsoluteDates); } if(m_AllowAnonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("allowAnon"))] = ModelBase::toJson(m_AllowAnon); } if(m_AllowAnonFlagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("allowAnonFlag"))] = ModelBase::toJson(m_AllowAnonFlag); } if(m_AllowAnonVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("allowAnonVotes"))] = ModelBase::toJson(m_AllowAnonVotes); } - if(m_AllowedLanguagesIsSet) - { + if(m_AllowedLanguages.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("allowedLanguages"))] = ModelBase::toJson(m_AllowedLanguages); + val[utility::conversions::to_string_t(_XPLATSTR("allowedLanguages"))] = ModelBase::toJson(m_AllowedLanguages.get()); } if(m_CollapseRepliesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("collapseReplies"))] = ModelBase::toJson(m_CollapseReplies); } - if(m_CommentCountFormatIsSet) - { + if(m_CommentCountFormat.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commentCountFormat"))] = ModelBase::toJson(m_CommentCountFormat); + val[utility::conversions::to_string_t(_XPLATSTR("commentCountFormat"))] = ModelBase::toJson(m_CommentCountFormat.get()); } if(m_CommentHTMLRenderingModeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTMLRenderingMode"))] = ModelBase::toJson(m_CommentHTMLRenderingMode); } - if(m_CommentThreadDeleteModeIsSet) - { + if(m_CommentThreadDeleteMode.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commentThreadDeleteMode"))] = ModelBase::toJson(m_CommentThreadDeleteMode); + val[utility::conversions::to_string_t(_XPLATSTR("commentThreadDeleteMode"))] = ModelBase::toJson(m_CommentThreadDeleteMode.get()); } - if(m_CommenterNameFormatIsSet) - { + if(m_CommenterNameFormat.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterNameFormat"))] = ModelBase::toJson(m_CommenterNameFormat); + val[utility::conversions::to_string_t(_XPLATSTR("commenterNameFormat"))] = ModelBase::toJson(m_CommenterNameFormat.get()); } if(m_CountAboveToggleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("countAboveToggle"))] = ModelBase::toJson(m_CountAboveToggle); } - if(m_CustomCSSIsSet) - { + if(m_CustomCSS.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("customCSS"))] = ModelBase::toJson(m_CustomCSS); + val[utility::conversions::to_string_t(_XPLATSTR("customCSS"))] = ModelBase::toJson(m_CustomCSS.get()); } - if(m_DefaultAvatarSrcIsSet) - { + if(m_DefaultAvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("defaultAvatarSrc"))] = ModelBase::toJson(m_DefaultAvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("defaultAvatarSrc"))] = ModelBase::toJson(m_DefaultAvatarSrc.get()); } - if(m_DefaultSortDirectionIsSet) - { + if(m_DefaultSortDirection.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("defaultSortDirection"))] = ModelBase::toJson(m_DefaultSortDirection); + val[utility::conversions::to_string_t(_XPLATSTR("defaultSortDirection"))] = ModelBase::toJson(m_DefaultSortDirection.get()); } - if(m_DefaultUsernameIsSet) - { + if(m_DefaultUsername.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("defaultUsername"))] = ModelBase::toJson(m_DefaultUsername); + val[utility::conversions::to_string_t(_XPLATSTR("defaultUsername"))] = ModelBase::toJson(m_DefaultUsername.get()); } if(m_DisableAutoAdminMigrationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableAutoAdminMigration"))] = ModelBase::toJson(m_DisableAutoAdminMigration); } if(m_DisableAutoHashTagCreationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableAutoHashTagCreation"))] = ModelBase::toJson(m_DisableAutoHashTagCreation); } if(m_DisableBlockingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableBlocking"))] = ModelBase::toJson(m_DisableBlocking); } if(m_DisableCommenterCommentDeleteIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableCommenterCommentDelete"))] = ModelBase::toJson(m_DisableCommenterCommentDelete); } if(m_DisableCommenterCommentEditIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableCommenterCommentEdit"))] = ModelBase::toJson(m_DisableCommenterCommentEdit); } if(m_DisableEmailInputsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableEmailInputs"))] = ModelBase::toJson(m_DisableEmailInputs); } if(m_DisableLiveCommentingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableLiveCommenting"))] = ModelBase::toJson(m_DisableLiveCommenting); } if(m_DisableNotificationBellIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableNotificationBell"))] = ModelBase::toJson(m_DisableNotificationBell); } if(m_DisableProfileCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableProfileComments"))] = ModelBase::toJson(m_DisableProfileComments); } if(m_DisableProfileDirectMessagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableProfileDirectMessages"))] = ModelBase::toJson(m_DisableProfileDirectMessages); } if(m_DisableProfilesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableProfiles"))] = ModelBase::toJson(m_DisableProfiles); } if(m_DisableSuccessMessageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableSuccessMessage"))] = ModelBase::toJson(m_DisableSuccessMessage); } if(m_DisableToolbarIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableToolbar"))] = ModelBase::toJson(m_DisableToolbar); } if(m_DisableUnverifiedLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableUnverifiedLabel"))] = ModelBase::toJson(m_DisableUnverifiedLabel); } if(m_DisableVotingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("disableVoting"))] = ModelBase::toJson(m_DisableVoting); } if(m_EnableCommenterLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableCommenterLinks"))] = ModelBase::toJson(m_EnableCommenterLinks); } if(m_EnableSearchIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSearch"))] = ModelBase::toJson(m_EnableSearch); } if(m_EnableSpoilersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSpoilers"))] = ModelBase::toJson(m_EnableSpoilers); } if(m_EnableThirdPartyCookieBypassIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableThirdPartyCookieBypass"))] = ModelBase::toJson(m_EnableThirdPartyCookieBypass); } if(m_EnableViewCountsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableViewCounts"))] = ModelBase::toJson(m_EnableViewCounts); } if(m_EnableVoteListIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableVoteList"))] = ModelBase::toJson(m_EnableVoteList); } if(m_EnableWYSIWYGIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableWYSIWYG"))] = ModelBase::toJson(m_EnableWYSIWYG); } if(m_GifRatingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("gifRating"))] = ModelBase::toJson(m_GifRating); } if(m_HasDarkBackgroundIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasDarkBackground"))] = ModelBase::toJson(m_HasDarkBackground); } - if(m_HeaderHTMLIsSet) - { + if(m_HeaderHTML.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("headerHTML"))] = ModelBase::toJson(m_HeaderHTML); + val[utility::conversions::to_string_t(_XPLATSTR("headerHTML"))] = ModelBase::toJson(m_HeaderHTML.get()); } if(m_HideAvatarsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hideAvatars"))] = ModelBase::toJson(m_HideAvatars); } - if(m_HideCommentsUnderCountTextFormatIsSet) - { + if(m_HideCommentsUnderCountTextFormat.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("hideCommentsUnderCountTextFormat"))] = ModelBase::toJson(m_HideCommentsUnderCountTextFormat); + val[utility::conversions::to_string_t(_XPLATSTR("hideCommentsUnderCountTextFormat"))] = ModelBase::toJson(m_HideCommentsUnderCountTextFormat.get()); } if(m_ImageContentProfanityLevelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("imageContentProfanityLevel"))] = ModelBase::toJson(m_ImageContentProfanityLevel); } if(m_InputAfterCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("inputAfterComments"))] = ModelBase::toJson(m_InputAfterComments); } if(m_LimitCommentsByGroupsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("limitCommentsByGroups"))] = ModelBase::toJson(m_LimitCommentsByGroups); } - if(m_LocaleIsSet) - { + if(m_Locale.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale.get()); } - if(m_MaxCommentCharacterLengthIsSet) - { + if(m_MaxCommentCharacterLength.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("maxCommentCharacterLength"))] = ModelBase::toJson(m_MaxCommentCharacterLength); + val[utility::conversions::to_string_t(_XPLATSTR("maxCommentCharacterLength"))] = ModelBase::toJson(m_MaxCommentCharacterLength.get()); } - if(m_MaxCommentCreatedCountPUPMIsSet) - { + if(m_MaxCommentCreatedCountPUPM.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("maxCommentCreatedCountPUPM"))] = ModelBase::toJson(m_MaxCommentCreatedCountPUPM); + val[utility::conversions::to_string_t(_XPLATSTR("maxCommentCreatedCountPUPM"))] = ModelBase::toJson(m_MaxCommentCreatedCountPUPM.get()); } if(m_NoCustomConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("noCustomConfig"))] = ModelBase::toJson(m_NoCustomConfig); } - if(m_MentionAutoCompleteModeIsSet) - { + if(m_MentionAutoCompleteMode.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("mentionAutoCompleteMode"))] = ModelBase::toJson(m_MentionAutoCompleteMode); + val[utility::conversions::to_string_t(_XPLATSTR("mentionAutoCompleteMode"))] = ModelBase::toJson(m_MentionAutoCompleteMode.get()); } if(m_NoImageUploadsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("noImageUploads"))] = ModelBase::toJson(m_NoImageUploads); } if(m_AllowEmbedsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("allowEmbeds"))] = ModelBase::toJson(m_AllowEmbeds); } - if(m_AllowedEmbedDomainsIsSet) - { + if(m_AllowedEmbedDomains.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("allowedEmbedDomains"))] = ModelBase::toJson(m_AllowedEmbedDomains); + val[utility::conversions::to_string_t(_XPLATSTR("allowedEmbedDomains"))] = ModelBase::toJson(m_AllowedEmbedDomains.get()); } if(m_NoStylesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("noStyles"))] = ModelBase::toJson(m_NoStyles); } - if(m_PageSizeIsSet) - { + if(m_PageSize.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageSize"))] = ModelBase::toJson(m_PageSize); + val[utility::conversions::to_string_t(_XPLATSTR("pageSize"))] = ModelBase::toJson(m_PageSize.get()); } if(m_ReadonlyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("readonly"))] = ModelBase::toJson(m_Readonly); } if(m_NoNewRootCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("noNewRootComments"))] = ModelBase::toJson(m_NoNewRootComments); } if(m_RequireSSOIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("requireSSO"))] = ModelBase::toJson(m_RequireSSO); } if(m_EnableFChatIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableFChat"))] = ModelBase::toJson(m_EnableFChat); } if(m_EnableResizeHandleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableResizeHandle"))] = ModelBase::toJson(m_EnableResizeHandle); } - if(m_RestrictedLinkDomainsIsSet) - { + if(m_RestrictedLinkDomains.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("restrictedLinkDomains"))] = ModelBase::toJson(m_RestrictedLinkDomains); + val[utility::conversions::to_string_t(_XPLATSTR("restrictedLinkDomains"))] = ModelBase::toJson(m_RestrictedLinkDomains.get()); } if(m_ShowBadgesInTopBarIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("showBadgesInTopBar"))] = ModelBase::toJson(m_ShowBadgesInTopBar); } if(m_ShowCommentSaveSuccessIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("showCommentSaveSuccess"))] = ModelBase::toJson(m_ShowCommentSaveSuccess); } if(m_ShowLiveRightAwayIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("showLiveRightAway"))] = ModelBase::toJson(m_ShowLiveRightAway); } if(m_ShowQuestionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("showQuestion"))] = ModelBase::toJson(m_ShowQuestion); } if(m_SpamRulesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("spamRules"))] = ModelBase::toJson(m_SpamRules); } if(m_SsoSecLvlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ssoSecLvl"))] = ModelBase::toJson(m_SsoSecLvl); } - if(m_TranslationsIsSet) - { + if(m_Translations.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); + val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations.get()); } if(m_UseShowCommentsToggleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("useShowCommentsToggle"))] = ModelBase::toJson(m_UseShowCommentsToggle); } if(m_UseSingleLineCommentInputIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("useSingleLineCommentInput"))] = ModelBase::toJson(m_UseSingleLineCommentInput); } if(m_VoteStyleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("voteStyle"))] = ModelBase::toJson(m_VoteStyle); } if(m_WidgetQuestionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetQuestionId"))] = ModelBase::toJson(m_WidgetQuestionId); } if(m_WidgetQuestionResultsStyleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetQuestionResultsStyle"))] = ModelBase::toJson(m_WidgetQuestionResultsStyle); } if(m_WidgetQuestionShowBreakdownIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetQuestionShowBreakdown"))] = ModelBase::toJson(m_WidgetQuestionShowBreakdown); } if(m_WidgetQuestionStyleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetQuestionStyle"))] = ModelBase::toJson(m_WidgetQuestionStyle); } if(m_WidgetQuestionWhenToSaveIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetQuestionWhenToSave"))] = ModelBase::toJson(m_WidgetQuestionWhenToSave); } if(m_WidgetQuestionsRequiredIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetQuestionsRequired"))] = ModelBase::toJson(m_WidgetQuestionsRequired); } if(m_WidgetSubQuestionVisibilityIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("widgetSubQuestionVisibility"))] = ModelBase::toJson(m_WidgetSubQuestionVisibility); } if(m_WrapIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wrap"))] = ModelBase::toJson(m_Wrap); } if(m_UsersListLocationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("usersListLocation"))] = ModelBase::toJson(m_UsersListLocation); } if(m_UsersListIncludeOfflineIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("usersListIncludeOffline"))] = ModelBase::toJson(m_UsersListIncludeOffline); } if(m_TicketBaseUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticketBaseUrl"))] = ModelBase::toJson(m_TicketBaseUrl); } if(m_TicketKBSearchEndpointIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticketKBSearchEndpoint"))] = ModelBase::toJson(m_TicketKBSearchEndpoint); } if(m_TicketFileUploadsEnabledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticketFileUploadsEnabled"))] = ModelBase::toJson(m_TicketFileUploadsEnabled); } if(m_TicketMaxFileSizeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticketMaxFileSize"))] = ModelBase::toJson(m_TicketMaxFileSize); } if(m_TicketAutoAssignUserIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticketAutoAssignUserIds"))] = ModelBase::toJson(m_TicketAutoAssignUserIds); } if(m_TosIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tos"))] = ModelBase::toJson(m_Tos); } @@ -1633,49 +1605,49 @@ void CustomConfigParameters::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("allowAnonVotes")), m_AllowAnonVotes)); } - if(m_AllowedLanguagesIsSet) + if(m_AllowedLanguages.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("allowedLanguages")), m_AllowedLanguages)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("allowedLanguages")), m_AllowedLanguages.get())); } if(m_CollapseRepliesIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("collapseReplies")), m_CollapseReplies)); } - if(m_CommentCountFormatIsSet) + if(m_CommentCountFormat.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCountFormat")), m_CommentCountFormat)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCountFormat")), m_CommentCountFormat.get())); } if(m_CommentHTMLRenderingModeIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTMLRenderingMode")), m_CommentHTMLRenderingMode)); } - if(m_CommentThreadDeleteModeIsSet) + if(m_CommentThreadDeleteMode.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentThreadDeleteMode")), m_CommentThreadDeleteMode)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentThreadDeleteMode")), m_CommentThreadDeleteMode.get())); } - if(m_CommenterNameFormatIsSet) + if(m_CommenterNameFormat.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterNameFormat")), m_CommenterNameFormat)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterNameFormat")), m_CommenterNameFormat.get())); } if(m_CountAboveToggleIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("countAboveToggle")), m_CountAboveToggle)); } - if(m_CustomCSSIsSet) + if(m_CustomCSS.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customCSS")), m_CustomCSS)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customCSS")), m_CustomCSS.get())); } - if(m_DefaultAvatarSrcIsSet) + if(m_DefaultAvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("defaultAvatarSrc")), m_DefaultAvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("defaultAvatarSrc")), m_DefaultAvatarSrc.get())); } - if(m_DefaultSortDirectionIsSet) + if(m_DefaultSortDirection.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("defaultSortDirection")), m_DefaultSortDirection)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("defaultSortDirection")), m_DefaultSortDirection.get())); } - if(m_DefaultUsernameIsSet) + if(m_DefaultUsername.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("defaultUsername")), m_DefaultUsername)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("defaultUsername")), m_DefaultUsername.get())); } if(m_DisableAutoAdminMigrationIsSet) { @@ -1773,17 +1745,17 @@ void CustomConfigParameters::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasDarkBackground")), m_HasDarkBackground)); } - if(m_HeaderHTMLIsSet) + if(m_HeaderHTML.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("headerHTML")), m_HeaderHTML)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("headerHTML")), m_HeaderHTML.get())); } if(m_HideAvatarsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hideAvatars")), m_HideAvatars)); } - if(m_HideCommentsUnderCountTextFormatIsSet) + if(m_HideCommentsUnderCountTextFormat.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hideCommentsUnderCountTextFormat")), m_HideCommentsUnderCountTextFormat)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hideCommentsUnderCountTextFormat")), m_HideCommentsUnderCountTextFormat.get())); } if(m_ImageContentProfanityLevelIsSet) { @@ -1797,25 +1769,25 @@ void CustomConfigParameters::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("limitCommentsByGroups")), m_LimitCommentsByGroups)); } - if(m_LocaleIsSet) + if(m_Locale.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale.get())); } - if(m_MaxCommentCharacterLengthIsSet) + if(m_MaxCommentCharacterLength.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCommentCharacterLength")), m_MaxCommentCharacterLength)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCommentCharacterLength")), m_MaxCommentCharacterLength.get())); } - if(m_MaxCommentCreatedCountPUPMIsSet) + if(m_MaxCommentCreatedCountPUPM.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCommentCreatedCountPUPM")), m_MaxCommentCreatedCountPUPM)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCommentCreatedCountPUPM")), m_MaxCommentCreatedCountPUPM.get())); } if(m_NoCustomConfigIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("noCustomConfig")), m_NoCustomConfig)); } - if(m_MentionAutoCompleteModeIsSet) + if(m_MentionAutoCompleteMode.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("mentionAutoCompleteMode")), m_MentionAutoCompleteMode)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("mentionAutoCompleteMode")), m_MentionAutoCompleteMode.get())); } if(m_NoImageUploadsIsSet) { @@ -1825,17 +1797,17 @@ void CustomConfigParameters::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("allowEmbeds")), m_AllowEmbeds)); } - if(m_AllowedEmbedDomainsIsSet) + if(m_AllowedEmbedDomains.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("allowedEmbedDomains")), m_AllowedEmbedDomains)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("allowedEmbedDomains")), m_AllowedEmbedDomains.get())); } if(m_NoStylesIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("noStyles")), m_NoStyles)); } - if(m_PageSizeIsSet) + if(m_PageSize.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageSize")), m_PageSize)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageSize")), m_PageSize.get())); } if(m_ReadonlyIsSet) { @@ -1857,9 +1829,9 @@ void CustomConfigParameters::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("enableResizeHandle")), m_EnableResizeHandle)); } - if(m_RestrictedLinkDomainsIsSet) + if(m_RestrictedLinkDomains.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("restrictedLinkDomains")), m_RestrictedLinkDomains)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("restrictedLinkDomains")), m_RestrictedLinkDomains.get())); } if(m_ShowBadgesInTopBarIsSet) { @@ -1885,9 +1857,9 @@ void CustomConfigParameters::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ssoSecLvl")), m_SsoSecLvl)); } - if(m_TranslationsIsSet) + if(m_Translations.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translations")), m_Translations)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translations")), m_Translations.get())); } if(m_UseShowCommentsToggleIsSet) { @@ -2610,24 +2582,23 @@ void CustomConfigParameters::unsetAllowAnonVotes() } std::vector CustomConfigParameters::getAllowedLanguages() const { - return m_AllowedLanguages; + return m_AllowedLanguages.get(); } void CustomConfigParameters::setAllowedLanguages(const std::vector& value) { m_AllowedLanguages = value; - m_AllowedLanguagesIsSet = true; } bool CustomConfigParameters::allowedLanguagesIsSet() const { - return m_AllowedLanguagesIsSet; + return m_AllowedLanguages.has_value(); } void CustomConfigParameters::unsetAllowedLanguages() { - m_AllowedLanguagesIsSet = false; + m_AllowedLanguages.reset(); } bool CustomConfigParameters::isCollapseReplies() const { @@ -2651,24 +2622,23 @@ void CustomConfigParameters::unsetCollapseReplies() } utility::string_t CustomConfigParameters::getCommentCountFormat() const { - return m_CommentCountFormat; + return m_CommentCountFormat.get(); } void CustomConfigParameters::setCommentCountFormat(const utility::string_t& value) { m_CommentCountFormat = value; - m_CommentCountFormatIsSet = true; } bool CustomConfigParameters::commentCountFormatIsSet() const { - return m_CommentCountFormatIsSet; + return m_CommentCountFormat.has_value(); } void CustomConfigParameters::unsetCommentCountFormat() { - m_CommentCountFormatIsSet = false; + m_CommentCountFormat.reset(); } std::shared_ptr CustomConfigParameters::getCommentHTMLRenderingMode() const { @@ -2693,45 +2663,43 @@ void CustomConfigParameters::unsetCommentHTMLRenderingMode() } std::shared_ptr CustomConfigParameters::getCommentThreadDeleteMode() const { - return m_CommentThreadDeleteMode; + return m_CommentThreadDeleteMode.get(); } void CustomConfigParameters::setCommentThreadDeleteMode(const std::shared_ptr& value) { m_CommentThreadDeleteMode = value; - m_CommentThreadDeleteModeIsSet = true; } bool CustomConfigParameters::commentThreadDeleteModeIsSet() const { - return m_CommentThreadDeleteModeIsSet; + return m_CommentThreadDeleteMode.has_value(); } void CustomConfigParameters::unsetCommentThreadDeleteMode() { - m_CommentThreadDeleteModeIsSet = false; + m_CommentThreadDeleteMode.reset(); } std::shared_ptr CustomConfigParameters::getCommenterNameFormat() const { - return m_CommenterNameFormat; + return m_CommenterNameFormat.get(); } void CustomConfigParameters::setCommenterNameFormat(const std::shared_ptr& value) { m_CommenterNameFormat = value; - m_CommenterNameFormatIsSet = true; } bool CustomConfigParameters::commenterNameFormatIsSet() const { - return m_CommenterNameFormatIsSet; + return m_CommenterNameFormat.has_value(); } void CustomConfigParameters::unsetCommenterNameFormat() { - m_CommenterNameFormatIsSet = false; + m_CommenterNameFormat.reset(); } int32_t CustomConfigParameters::getCountAboveToggle() const { @@ -2755,87 +2723,83 @@ void CustomConfigParameters::unsetCountAboveToggle() } utility::string_t CustomConfigParameters::getCustomCSS() const { - return m_CustomCSS; + return m_CustomCSS.get(); } void CustomConfigParameters::setCustomCSS(const utility::string_t& value) { m_CustomCSS = value; - m_CustomCSSIsSet = true; } bool CustomConfigParameters::customCSSIsSet() const { - return m_CustomCSSIsSet; + return m_CustomCSS.has_value(); } void CustomConfigParameters::unsetCustomCSS() { - m_CustomCSSIsSet = false; + m_CustomCSS.reset(); } utility::string_t CustomConfigParameters::getDefaultAvatarSrc() const { - return m_DefaultAvatarSrc; + return m_DefaultAvatarSrc.get(); } void CustomConfigParameters::setDefaultAvatarSrc(const utility::string_t& value) { m_DefaultAvatarSrc = value; - m_DefaultAvatarSrcIsSet = true; } bool CustomConfigParameters::defaultAvatarSrcIsSet() const { - return m_DefaultAvatarSrcIsSet; + return m_DefaultAvatarSrc.has_value(); } void CustomConfigParameters::unsetDefaultAvatarSrc() { - m_DefaultAvatarSrcIsSet = false; + m_DefaultAvatarSrc.reset(); } std::shared_ptr CustomConfigParameters::getDefaultSortDirection() const { - return m_DefaultSortDirection; + return m_DefaultSortDirection.get(); } void CustomConfigParameters::setDefaultSortDirection(const std::shared_ptr& value) { m_DefaultSortDirection = value; - m_DefaultSortDirectionIsSet = true; } bool CustomConfigParameters::defaultSortDirectionIsSet() const { - return m_DefaultSortDirectionIsSet; + return m_DefaultSortDirection.has_value(); } void CustomConfigParameters::unsetDefaultSortDirection() { - m_DefaultSortDirectionIsSet = false; + m_DefaultSortDirection.reset(); } utility::string_t CustomConfigParameters::getDefaultUsername() const { - return m_DefaultUsername; + return m_DefaultUsername.get(); } void CustomConfigParameters::setDefaultUsername(const utility::string_t& value) { m_DefaultUsername = value; - m_DefaultUsernameIsSet = true; } bool CustomConfigParameters::defaultUsernameIsSet() const { - return m_DefaultUsernameIsSet; + return m_DefaultUsername.has_value(); } void CustomConfigParameters::unsetDefaultUsername() { - m_DefaultUsernameIsSet = false; + m_DefaultUsername.reset(); } bool CustomConfigParameters::isDisableAutoAdminMigration() const { @@ -3320,24 +3284,23 @@ void CustomConfigParameters::unsetHasDarkBackground() } utility::string_t CustomConfigParameters::getHeaderHTML() const { - return m_HeaderHTML; + return m_HeaderHTML.get(); } void CustomConfigParameters::setHeaderHTML(const utility::string_t& value) { m_HeaderHTML = value; - m_HeaderHTMLIsSet = true; } bool CustomConfigParameters::headerHTMLIsSet() const { - return m_HeaderHTMLIsSet; + return m_HeaderHTML.has_value(); } void CustomConfigParameters::unsetHeaderHTML() { - m_HeaderHTMLIsSet = false; + m_HeaderHTML.reset(); } bool CustomConfigParameters::isHideAvatars() const { @@ -3361,24 +3324,23 @@ void CustomConfigParameters::unsetHideAvatars() } utility::string_t CustomConfigParameters::getHideCommentsUnderCountTextFormat() const { - return m_HideCommentsUnderCountTextFormat; + return m_HideCommentsUnderCountTextFormat.get(); } void CustomConfigParameters::setHideCommentsUnderCountTextFormat(const utility::string_t& value) { m_HideCommentsUnderCountTextFormat = value; - m_HideCommentsUnderCountTextFormatIsSet = true; } bool CustomConfigParameters::hideCommentsUnderCountTextFormatIsSet() const { - return m_HideCommentsUnderCountTextFormatIsSet; + return m_HideCommentsUnderCountTextFormat.has_value(); } void CustomConfigParameters::unsetHideCommentsUnderCountTextFormat() { - m_HideCommentsUnderCountTextFormatIsSet = false; + m_HideCommentsUnderCountTextFormat.reset(); } std::shared_ptr CustomConfigParameters::getImageContentProfanityLevel() const { @@ -3443,64 +3405,61 @@ void CustomConfigParameters::unsetLimitCommentsByGroups() } utility::string_t CustomConfigParameters::getLocale() const { - return m_Locale; + return m_Locale.get(); } void CustomConfigParameters::setLocale(const utility::string_t& value) { m_Locale = value; - m_LocaleIsSet = true; } bool CustomConfigParameters::localeIsSet() const { - return m_LocaleIsSet; + return m_Locale.has_value(); } void CustomConfigParameters::unsetLocale() { - m_LocaleIsSet = false; + m_Locale.reset(); } int32_t CustomConfigParameters::getMaxCommentCharacterLength() const { - return m_MaxCommentCharacterLength; + return m_MaxCommentCharacterLength.get(); } void CustomConfigParameters::setMaxCommentCharacterLength(int32_t value) { m_MaxCommentCharacterLength = value; - m_MaxCommentCharacterLengthIsSet = true; } bool CustomConfigParameters::maxCommentCharacterLengthIsSet() const { - return m_MaxCommentCharacterLengthIsSet; + return m_MaxCommentCharacterLength.has_value(); } void CustomConfigParameters::unsetMaxCommentCharacterLength() { - m_MaxCommentCharacterLengthIsSet = false; + m_MaxCommentCharacterLength.reset(); } int32_t CustomConfigParameters::getMaxCommentCreatedCountPUPM() const { - return m_MaxCommentCreatedCountPUPM; + return m_MaxCommentCreatedCountPUPM.get(); } void CustomConfigParameters::setMaxCommentCreatedCountPUPM(int32_t value) { m_MaxCommentCreatedCountPUPM = value; - m_MaxCommentCreatedCountPUPMIsSet = true; } bool CustomConfigParameters::maxCommentCreatedCountPUPMIsSet() const { - return m_MaxCommentCreatedCountPUPMIsSet; + return m_MaxCommentCreatedCountPUPM.has_value(); } void CustomConfigParameters::unsetMaxCommentCreatedCountPUPM() { - m_MaxCommentCreatedCountPUPMIsSet = false; + m_MaxCommentCreatedCountPUPM.reset(); } bool CustomConfigParameters::isNoCustomConfig() const { @@ -3524,24 +3483,23 @@ void CustomConfigParameters::unsetNoCustomConfig() } std::shared_ptr CustomConfigParameters::getMentionAutoCompleteMode() const { - return m_MentionAutoCompleteMode; + return m_MentionAutoCompleteMode.get(); } void CustomConfigParameters::setMentionAutoCompleteMode(const std::shared_ptr& value) { m_MentionAutoCompleteMode = value; - m_MentionAutoCompleteModeIsSet = true; } bool CustomConfigParameters::mentionAutoCompleteModeIsSet() const { - return m_MentionAutoCompleteModeIsSet; + return m_MentionAutoCompleteMode.has_value(); } void CustomConfigParameters::unsetMentionAutoCompleteMode() { - m_MentionAutoCompleteModeIsSet = false; + m_MentionAutoCompleteMode.reset(); } bool CustomConfigParameters::isNoImageUploads() const { @@ -3585,24 +3543,23 @@ void CustomConfigParameters::unsetAllowEmbeds() } std::vector CustomConfigParameters::getAllowedEmbedDomains() const { - return m_AllowedEmbedDomains; + return m_AllowedEmbedDomains.get(); } void CustomConfigParameters::setAllowedEmbedDomains(const std::vector& value) { m_AllowedEmbedDomains = value; - m_AllowedEmbedDomainsIsSet = true; } bool CustomConfigParameters::allowedEmbedDomainsIsSet() const { - return m_AllowedEmbedDomainsIsSet; + return m_AllowedEmbedDomains.has_value(); } void CustomConfigParameters::unsetAllowedEmbedDomains() { - m_AllowedEmbedDomainsIsSet = false; + m_AllowedEmbedDomains.reset(); } bool CustomConfigParameters::isNoStyles() const { @@ -3626,23 +3583,22 @@ void CustomConfigParameters::unsetNoStyles() } int32_t CustomConfigParameters::getPageSize() const { - return m_PageSize; + return m_PageSize.get(); } void CustomConfigParameters::setPageSize(int32_t value) { m_PageSize = value; - m_PageSizeIsSet = true; } bool CustomConfigParameters::pageSizeIsSet() const { - return m_PageSizeIsSet; + return m_PageSize.has_value(); } void CustomConfigParameters::unsetPageSize() { - m_PageSizeIsSet = false; + m_PageSize.reset(); } bool CustomConfigParameters::isReadonly() const { @@ -3746,24 +3702,23 @@ void CustomConfigParameters::unsetEnableResizeHandle() } std::vector CustomConfigParameters::getRestrictedLinkDomains() const { - return m_RestrictedLinkDomains; + return m_RestrictedLinkDomains.get(); } void CustomConfigParameters::setRestrictedLinkDomains(const std::vector& value) { m_RestrictedLinkDomains = value; - m_RestrictedLinkDomainsIsSet = true; } bool CustomConfigParameters::restrictedLinkDomainsIsSet() const { - return m_RestrictedLinkDomainsIsSet; + return m_RestrictedLinkDomains.has_value(); } void CustomConfigParameters::unsetRestrictedLinkDomains() { - m_RestrictedLinkDomainsIsSet = false; + m_RestrictedLinkDomains.reset(); } bool CustomConfigParameters::isShowBadgesInTopBar() const { @@ -3889,24 +3844,23 @@ void CustomConfigParameters::unsetSsoSecLvl() } std::map CustomConfigParameters::getTranslations() const { - return m_Translations; + return m_Translations.get(); } void CustomConfigParameters::setTranslations(const std::map& value) { m_Translations = value; - m_TranslationsIsSet = true; } bool CustomConfigParameters::translationsIsSet() const { - return m_TranslationsIsSet; + return m_Translations.has_value(); } void CustomConfigParameters::unsetTranslations() { - m_TranslationsIsSet = false; + m_Translations.reset(); } bool CustomConfigParameters::isUseShowCommentsToggle() const { diff --git a/client/src/model/CustomEmailTemplate.cpp b/client/src/model/CustomEmailTemplate.cpp index 8499818..24efecf 100644 --- a/client/src/model/CustomEmailTemplate.cpp +++ b/client/src/model/CustomEmailTemplate.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,16 +30,9 @@ CustomEmailTemplate::CustomEmailTemplate() m_DisplayNameIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; - m_UpdatedAt = utility::datetime(); - m_UpdatedAtIsSet = false; - m_UpdatedByUserId = utility::conversions::to_string_t(""); - m_UpdatedByUserIdIsSet = false; - m_Domain = utility::conversions::to_string_t(""); - m_DomainIsSet = false; m_Ejs = utility::conversions::to_string_t(""); m_EjsIsSet = false; m_TranslationOverridesByLocaleIsSet = false; - m_TestDataIsSet = false; } CustomEmailTemplate::~CustomEmailTemplate() @@ -55,59 +48,59 @@ web::json::value CustomEmailTemplate::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_EmailTemplateIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplateId"))] = ModelBase::toJson(m_EmailTemplateId); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } - if(m_UpdatedAtIsSet) - { + if(m_UpdatedAt.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("updatedAt"))] = ModelBase::toJson(m_UpdatedAt); + val[utility::conversions::to_string_t(_XPLATSTR("updatedAt"))] = ModelBase::toJson(m_UpdatedAt.get()); } - if(m_UpdatedByUserIdIsSet) - { + if(m_UpdatedByUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("updatedByUserId"))] = ModelBase::toJson(m_UpdatedByUserId); + val[utility::conversions::to_string_t(_XPLATSTR("updatedByUserId"))] = ModelBase::toJson(m_UpdatedByUserId.get()); } - if(m_DomainIsSet) - { + if(m_Domain.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain.get()); } if(m_EjsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ejs"))] = ModelBase::toJson(m_Ejs); } if(m_TranslationOverridesByLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))] = ModelBase::toJson(m_TranslationOverridesByLocale); } - if(m_TestDataIsSet) - { + if(m_TestData.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("testData"))] = ModelBase::toJson(m_TestData); + val[utility::conversions::to_string_t(_XPLATSTR("testData"))] = ModelBase::toJson(m_TestData.get()); } return val; @@ -220,7 +213,7 @@ bool CustomEmailTemplate::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))); if(!fieldValue.is_null()) { - std::map refVal_setTranslationOverridesByLocale; + std::map> refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromJson(fieldValue, refVal_setTranslationOverridesByLocale); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); @@ -267,17 +260,17 @@ void CustomEmailTemplate::toMultipart(std::shared_ptr multipa { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); } - if(m_UpdatedAtIsSet) + if(m_UpdatedAt.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("updatedAt")), m_UpdatedAt)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("updatedAt")), m_UpdatedAt.get())); } - if(m_UpdatedByUserIdIsSet) + if(m_UpdatedByUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("updatedByUserId")), m_UpdatedByUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("updatedByUserId")), m_UpdatedByUserId.get())); } - if(m_DomainIsSet) + if(m_Domain.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain.get())); } if(m_EjsIsSet) { @@ -287,9 +280,9 @@ void CustomEmailTemplate::toMultipart(std::shared_ptr multipa { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale")), m_TranslationOverridesByLocale)); } - if(m_TestDataIsSet) + if(m_TestData.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("testData")), m_TestData)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("testData")), m_TestData.get())); } } @@ -358,7 +351,7 @@ bool CustomEmailTemplate::fromMultiPart(std::shared_ptr multi } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale")))) { - std::map refVal_setTranslationOverridesByLocale; + std::map> refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))), refVal_setTranslationOverridesByLocale ); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); } @@ -479,66 +472,63 @@ void CustomEmailTemplate::unsetCreatedAt() } utility::datetime CustomEmailTemplate::getUpdatedAt() const { - return m_UpdatedAt; + return m_UpdatedAt.get(); } void CustomEmailTemplate::setUpdatedAt(const utility::datetime& value) { m_UpdatedAt = value; - m_UpdatedAtIsSet = true; } bool CustomEmailTemplate::updatedAtIsSet() const { - return m_UpdatedAtIsSet; + return m_UpdatedAt.has_value(); } void CustomEmailTemplate::unsetUpdatedAt() { - m_UpdatedAtIsSet = false; + m_UpdatedAt.reset(); } utility::string_t CustomEmailTemplate::getUpdatedByUserId() const { - return m_UpdatedByUserId; + return m_UpdatedByUserId.get(); } void CustomEmailTemplate::setUpdatedByUserId(const utility::string_t& value) { m_UpdatedByUserId = value; - m_UpdatedByUserIdIsSet = true; } bool CustomEmailTemplate::updatedByUserIdIsSet() const { - return m_UpdatedByUserIdIsSet; + return m_UpdatedByUserId.has_value(); } void CustomEmailTemplate::unsetUpdatedByUserId() { - m_UpdatedByUserIdIsSet = false; + m_UpdatedByUserId.reset(); } utility::string_t CustomEmailTemplate::getDomain() const { - return m_Domain; + return m_Domain.get(); } void CustomEmailTemplate::setDomain(const utility::string_t& value) { m_Domain = value; - m_DomainIsSet = true; } bool CustomEmailTemplate::domainIsSet() const { - return m_DomainIsSet; + return m_Domain.has_value(); } void CustomEmailTemplate::unsetDomain() { - m_DomainIsSet = false; + m_Domain.reset(); } utility::string_t CustomEmailTemplate::getEjs() const { @@ -561,13 +551,13 @@ void CustomEmailTemplate::unsetEjs() { m_EjsIsSet = false; } -std::map CustomEmailTemplate::getTranslationOverridesByLocale() const +std::map> CustomEmailTemplate::getTranslationOverridesByLocale() const { return m_TranslationOverridesByLocale; } -void CustomEmailTemplate::setTranslationOverridesByLocale(const std::map& value) +void CustomEmailTemplate::setTranslationOverridesByLocale(const std::map>& value) { m_TranslationOverridesByLocale = value; m_TranslationOverridesByLocaleIsSet = true; @@ -584,24 +574,23 @@ void CustomEmailTemplate::unsetTranslationOverridesByLocale() } std::shared_ptr CustomEmailTemplate::getTestData() const { - return m_TestData; + return m_TestData.get(); } void CustomEmailTemplate::setTestData(const std::shared_ptr& value) { m_TestData = value; - m_TestDataIsSet = true; } bool CustomEmailTemplate::testDataIsSet() const { - return m_TestDataIsSet; + return m_TestData.has_value(); } void CustomEmailTemplate::unsetTestData() { - m_TestDataIsSet = false; + m_TestData.reset(); } } diff --git a/client/src/model/DeleteCommentAction.cpp b/client/src/model/DeleteCommentAction.cpp index 721b6b2..34b18ba 100644 --- a/client/src/model/DeleteCommentAction.cpp +++ b/client/src/model/DeleteCommentAction.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/DeleteCommentResult.cpp b/client/src/model/DeleteCommentResult.cpp index 87df03e..d307906 100644 --- a/client/src/model/DeleteCommentResult.cpp +++ b/client/src/model/DeleteCommentResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value DeleteCommentResult::toJson() const { web::json::value val = web::json::value::object(); if(m_ActionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("action"))] = ModelBase::toJson(m_Action); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/DeleteDomainConfigResponse.cpp b/client/src/model/DeleteDomainConfigResponse.cpp index d15a8a3..087f66b 100644 --- a/client/src/model/DeleteDomainConfigResponse.cpp +++ b/client/src/model/DeleteDomainConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,7 +20,6 @@ namespace model { DeleteDomainConfigResponse::DeleteDomainConfigResponse() { - m_StatusIsSet = false; } DeleteDomainConfigResponse::~DeleteDomainConfigResponse() @@ -35,10 +34,10 @@ void DeleteDomainConfigResponse::validate() web::json::value DeleteDomainConfigResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { + if(m_Status.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); } return val; @@ -68,9 +67,9 @@ void DeleteDomainConfigResponse::toMultipart(std::shared_ptr { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_StatusIsSet) + if(m_Status.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); } } @@ -95,24 +94,23 @@ bool DeleteDomainConfigResponse::fromMultiPart(std::shared_ptr DeleteDomainConfigResponse::getStatus() const { - return m_Status; + return m_Status.get(); } void DeleteDomainConfigResponse::setStatus(const std::shared_ptr& value) { m_Status = value; - m_StatusIsSet = true; } bool DeleteDomainConfigResponse::statusIsSet() const { - return m_StatusIsSet; + return m_Status.has_value(); } void DeleteDomainConfigResponse::unsetStatus() { - m_StatusIsSet = false; + m_Status.reset(); } } diff --git a/client/src/model/DeleteFeedPostPublicResponse.cpp b/client/src/model/DeleteFeedPostPublicResponse.cpp index a5327bf..df003f8 100644 --- a/client/src/model/DeleteFeedPostPublicResponse.cpp +++ b/client/src/model/DeleteFeedPostPublicResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value DeleteFeedPostPublicResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/DeleteHashTagRequestBody.cpp b/client/src/model/DeleteHashTagRequestBody.cpp index 6a5dd2c..653dd50 100644 --- a/client/src/model/DeleteHashTagRequestBody.cpp +++ b/client/src/model/DeleteHashTagRequestBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,7 @@ web::json::value DeleteHashTagRequestBody::toJson() const { web::json::value val = web::json::value::object(); if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } diff --git a/client/src/model/DeletePageAPIResponse.cpp b/client/src/model/DeletePageAPIResponse.cpp index 86701eb..088e36d 100644 --- a/client/src/model/DeletePageAPIResponse.cpp +++ b/client/src/model/DeletePageAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value DeletePageAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/DeleteSSOUserAPIResponse.cpp b/client/src/model/DeleteSSOUserAPIResponse.cpp index 76a9e6e..62e5ec1 100644 --- a/client/src/model/DeleteSSOUserAPIResponse.cpp +++ b/client/src/model/DeleteSSOUserAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value DeleteSSOUserAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/DeleteSubscriptionAPIResponse.cpp b/client/src/model/DeleteSubscriptionAPIResponse.cpp index 4ed87cf..b75b2b0 100644 --- a/client/src/model/DeleteSubscriptionAPIResponse.cpp +++ b/client/src/model/DeleteSubscriptionAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value DeleteSubscriptionAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/DeletedCommentResultComment.cpp b/client/src/model/DeletedCommentResultComment.cpp index e8f106b..9b8b81b 100644 --- a/client/src/model/DeletedCommentResultComment.cpp +++ b/client/src/model/DeletedCommentResultComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -26,8 +26,6 @@ DeletedCommentResultComment::DeletedCommentResultComment() m_CommentHTMLIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; - m_UserId = utility::conversions::to_string_t(""); - m_UserIdIsSet = false; } DeletedCommentResultComment::~DeletedCommentResultComment() @@ -43,24 +41,24 @@ web::json::value DeletedCommentResultComment::toJson() const { web::json::value val = web::json::value::object(); if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } return val; @@ -135,9 +133,9 @@ void DeletedCommentResultComment::toMultipart(std::shared_ptr { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } } @@ -242,24 +240,23 @@ void DeletedCommentResultComment::unsetCommenterName() } utility::string_t DeletedCommentResultComment::getUserId() const { - return m_UserId; + return m_UserId.get(); } void DeletedCommentResultComment::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool DeletedCommentResultComment::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void DeletedCommentResultComment::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } } diff --git a/client/src/model/DigestEmailFrequency.cpp b/client/src/model/DigestEmailFrequency.cpp index 53d74c9..658aa70 100644 --- a/client/src/model/DigestEmailFrequency.cpp +++ b/client/src/model/DigestEmailFrequency.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/EmailTemplateDefinition.cpp b/client/src/model/EmailTemplateDefinition.cpp index 9c2c941..7ef7a83 100644 --- a/client/src/model/EmailTemplateDefinition.cpp +++ b/client/src/model/EmailTemplateDefinition.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,22 +41,22 @@ web::json::value EmailTemplateDefinition::toJson() const { web::json::value val = web::json::value::object(); if(m_EmailTemplateIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplateId"))] = ModelBase::toJson(m_EmailTemplateId); } if(m_DefaultTestDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("defaultTestData"))] = ModelBase::toJson(m_DefaultTestData); } if(m_DefaultTranslationsByLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("defaultTranslationsByLocale"))] = ModelBase::toJson(m_DefaultTranslationsByLocale); } if(m_DefaultEJSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("defaultEJS"))] = ModelBase::toJson(m_DefaultEJS); } @@ -94,7 +94,7 @@ bool EmailTemplateDefinition::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("defaultTranslationsByLocale"))); if(!fieldValue.is_null()) { - std::map refVal_setDefaultTranslationsByLocale; + std::map> refVal_setDefaultTranslationsByLocale; ok &= ModelBase::fromJson(fieldValue, refVal_setDefaultTranslationsByLocale); setDefaultTranslationsByLocale(refVal_setDefaultTranslationsByLocale); @@ -162,7 +162,7 @@ bool EmailTemplateDefinition::fromMultiPart(std::shared_ptr m } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("defaultTranslationsByLocale")))) { - std::map refVal_setDefaultTranslationsByLocale; + std::map> refVal_setDefaultTranslationsByLocale; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("defaultTranslationsByLocale"))), refVal_setDefaultTranslationsByLocale ); setDefaultTranslationsByLocale(refVal_setDefaultTranslationsByLocale); } @@ -218,13 +218,13 @@ void EmailTemplateDefinition::unsetDefaultTestData() { m_DefaultTestDataIsSet = false; } -std::map EmailTemplateDefinition::getDefaultTranslationsByLocale() const +std::map> EmailTemplateDefinition::getDefaultTranslationsByLocale() const { return m_DefaultTranslationsByLocale; } -void EmailTemplateDefinition::setDefaultTranslationsByLocale(const std::map& value) +void EmailTemplateDefinition::setDefaultTranslationsByLocale(const std::map>& value) { m_DefaultTranslationsByLocale = value; m_DefaultTranslationsByLocaleIsSet = true; diff --git a/client/src/model/EmailTemplateRenderErrorResponse.cpp b/client/src/model/EmailTemplateRenderErrorResponse.cpp index bca581d..53992e3 100644 --- a/client/src/model/EmailTemplateRenderErrorResponse.cpp +++ b/client/src/model/EmailTemplateRenderErrorResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -49,37 +49,37 @@ web::json::value EmailTemplateRenderErrorResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_CustomTemplateIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customTemplateId"))] = ModelBase::toJson(m_CustomTemplateId); } if(m_ErrorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("error"))] = ModelBase::toJson(m_Error); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_LastOccurredAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastOccurredAt"))] = ModelBase::toJson(m_LastOccurredAt); } diff --git a/client/src/model/EventLogEntry.cpp b/client/src/model/EventLogEntry.cpp index 07cbc97..e2cc571 100644 --- a/client/src/model/EventLogEntry.cpp +++ b/client/src/model/EventLogEntry.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -47,32 +47,32 @@ web::json::value EventLogEntry::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_BroadcastIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("broadcastId"))] = ModelBase::toJson(m_BroadcastId); } if(m_DataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); } diff --git a/client/src/model/FComment.cpp b/client/src/model/FComment.cpp index 28ee17f..5952847 100644 --- a/client/src/model/FComment.cpp +++ b/client/src/model/FComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,44 +30,14 @@ FComment::FComment() m_UrlIdRawIsSet = false; m_Url = utility::conversions::to_string_t(""); m_UrlIsSet = false; - m_PageTitle = utility::conversions::to_string_t(""); - m_PageTitleIsSet = false; - m_UserId = nullptr; - m_UserIdIsSet = false; - m_AnonUserId = utility::conversions::to_string_t(""); - m_AnonUserIdIsSet = false; - m_CommenterEmail = utility::conversions::to_string_t(""); - m_CommenterEmailIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; - m_CommenterLink = utility::conversions::to_string_t(""); - m_CommenterLinkIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; - m_ParentId = utility::conversions::to_string_t(""); - m_ParentIdIsSet = false; - m_date = utility::datetime(); - m_dateIsSet = false; - m_LocalDateString = utility::conversions::to_string_t(""); - m_LocalDateStringIsSet = false; - m_LocalDateHours = 0; - m_LocalDateHoursIsSet = false; - m_Votes = 0; - m_VotesIsSet = false; - m_VotesUp = 0; - m_VotesUpIsSet = false; - m_VotesDown = 0; - m_VotesDownIsSet = false; - m_ExpireAt = utility::datetime(); - m_ExpireAtIsSet = false; m_Verified = false; m_VerifiedIsSet = false; - m_VerifiedDate = utility::datetime(); - m_VerifiedDateIsSet = false; - m_VerificationId = utility::conversions::to_string_t(""); - m_VerificationIdIsSet = false; m_NotificationSentForParent = false; m_NotificationSentForParentIsSet = false; m_NotificationSentForParentTenant = false; @@ -78,10 +48,6 @@ FComment::FComment() m_ImportedIsSet = false; m_ExternalId = utility::conversions::to_string_t(""); m_ExternalIdIsSet = false; - m_ExternalParentId = utility::conversions::to_string_t(""); - m_ExternalParentIdIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; m_PermNotSpam = false; @@ -90,20 +56,12 @@ FComment::FComment() m_AiDeterminedSpamIsSet = false; m_HasImages = false; m_HasImagesIsSet = false; - m_PageNumber = 0; - m_PageNumberIsSet = false; - m_PageNumberOF = 0; - m_PageNumberOFIsSet = false; - m_PageNumberNF = 0; - m_PageNumberNFIsSet = false; m_HasLinks = false; m_HasLinksIsSet = false; m_HasCode = false; m_HasCodeIsSet = false; m_Approved = false; m_ApprovedIsSet = false; - m_Locale = utility::conversions::to_string_t(""); - m_LocaleIsSet = false; m_IsDeleted = false; m_IsDeletedIsSet = false; m_IsDeletedUser = false; @@ -114,29 +72,14 @@ FComment::FComment() m_IsByAdminIsSet = false; m_IsByModerator = false; m_IsByModeratorIsSet = false; - m_IsPinned = false; - m_IsPinnedIsSet = false; - m_IsLocked = false; - m_IsLockedIsSet = false; - m_FlagCount = 0; - m_FlagCountIsSet = false; - m_Rating = 0.0; - m_RatingIsSet = false; - m_DisplayLabel = utility::conversions::to_string_t(""); - m_DisplayLabelIsSet = false; m_FromProductId = 0; m_FromProductIdIsSet = false; - m_MetaIsSet = false; m_IpHash = utility::conversions::to_string_t(""); m_IpHashIsSet = false; m_MentionsIsSet = false; m_HashTagsIsSet = false; - m_BadgesIsSet = false; - m_Domain = nullptr; - m_DomainIsSet = false; m_VeteranBadgeProcessed = utility::conversions::to_string_t(""); m_VeteranBadgeProcessedIsSet = false; - m_ModerationGroupIdsIsSet = false; m_DidProcessBadges = false; m_DidProcessBadgesIsSet = false; m_FromOfflineRestore = false; @@ -146,10 +89,6 @@ FComment::FComment() m_AutoplayDelayMS = 0L; m_AutoplayDelayMSIsSet = false; m_FeedbackIdsIsSet = false; - m_LogsIsSet = false; - m_GroupIdsIsSet = false; - m_ViewCount = 0L; - m_ViewCountIsSet = false; m_RequiresVerification = false; m_RequiresVerificationIsSet = false; m_EditKey = utility::conversions::to_string_t(""); @@ -173,367 +112,367 @@ web::json::value FComment::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIdRawIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdRaw"))] = ModelBase::toJson(m_UrlIdRaw); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } - if(m_PageTitleIsSet) - { + if(m_PageTitle.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } - if(m_AnonUserIdIsSet) - { + if(m_AnonUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); } - if(m_CommenterEmailIsSet) - { + if(m_CommenterEmail.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterLinkIsSet) - { + if(m_CommenterLink.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } - if(m_ParentIdIsSet) - { + if(m_ParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); } - if(m_dateIsSet) - { + if(m_date.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); } - if(m_LocalDateStringIsSet) - { + if(m_LocalDateString.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); + val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString.get()); } - if(m_LocalDateHoursIsSet) - { + if(m_LocalDateHours.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours); + val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours.get()); } - if(m_VotesIsSet) - { + if(m_Votes.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); } - if(m_VotesUpIsSet) - { + if(m_VotesUp.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); } - if(m_VotesDownIsSet) - { + if(m_VotesDown.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); } - if(m_ExpireAtIsSet) - { + if(m_ExpireAt.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt.get()); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_VerifiedDateIsSet) - { + if(m_VerifiedDate.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate); + val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate.get()); } - if(m_VerificationIdIsSet) - { + if(m_VerificationId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("verificationId"))] = ModelBase::toJson(m_VerificationId); + val[utility::conversions::to_string_t(_XPLATSTR("verificationId"))] = ModelBase::toJson(m_VerificationId.get()); } if(m_NotificationSentForParentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParent"))] = ModelBase::toJson(m_NotificationSentForParent); } if(m_NotificationSentForParentTenantIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParentTenant"))] = ModelBase::toJson(m_NotificationSentForParentTenant); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_ImportedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("imported"))] = ModelBase::toJson(m_Imported); } if(m_ExternalIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("externalId"))] = ModelBase::toJson(m_ExternalId); } - if(m_ExternalParentIdIsSet) - { + if(m_ExternalParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId); + val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId.get()); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } if(m_PermNotSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("permNotSpam"))] = ModelBase::toJson(m_PermNotSpam); } if(m_AiDeterminedSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("aiDeterminedSpam"))] = ModelBase::toJson(m_AiDeterminedSpam); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } - if(m_PageNumberIsSet) - { + if(m_PageNumber.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageNumber"))] = ModelBase::toJson(m_PageNumber); + val[utility::conversions::to_string_t(_XPLATSTR("pageNumber"))] = ModelBase::toJson(m_PageNumber.get()); } - if(m_PageNumberOFIsSet) - { + if(m_PageNumberOF.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageNumberOF"))] = ModelBase::toJson(m_PageNumberOF); + val[utility::conversions::to_string_t(_XPLATSTR("pageNumberOF"))] = ModelBase::toJson(m_PageNumberOF.get()); } - if(m_PageNumberNFIsSet) - { + if(m_PageNumberNF.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageNumberNF"))] = ModelBase::toJson(m_PageNumberNF); + val[utility::conversions::to_string_t(_XPLATSTR("pageNumberNF"))] = ModelBase::toJson(m_PageNumberNF.get()); } if(m_HasLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLinks"))] = ModelBase::toJson(m_HasLinks); } if(m_HasCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasCode"))] = ModelBase::toJson(m_HasCode); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } - if(m_LocaleIsSet) - { + if(m_Locale.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale.get()); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_IsBannedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))] = ModelBase::toJson(m_IsBannedUser); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } - if(m_IsPinnedIsSet) - { + if(m_IsPinned.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); } - if(m_IsLockedIsSet) - { + if(m_IsLocked.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); } - if(m_FlagCountIsSet) - { + if(m_FlagCount.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); } - if(m_RatingIsSet) - { + if(m_Rating.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); } - if(m_DisplayLabelIsSet) - { + if(m_DisplayLabel.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); } if(m_FromProductIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromProductId"))] = ModelBase::toJson(m_FromProductId); } - if(m_MetaIsSet) - { + if(m_Meta.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); } if(m_IpHashIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); } if(m_MentionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("mentions"))] = ModelBase::toJson(m_Mentions); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } - if(m_BadgesIsSet) - { + if(m_Badges.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); } - if(m_DomainIsSet) - { + if(m_Domain.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain.get()); } if(m_VeteranBadgeProcessedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("veteranBadgeProcessed"))] = ModelBase::toJson(m_VeteranBadgeProcessed); } - if(m_ModerationGroupIdsIsSet) - { + if(m_ModerationGroupIds.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); + val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds.get()); } if(m_DidProcessBadgesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("didProcessBadges"))] = ModelBase::toJson(m_DidProcessBadges); } if(m_FromOfflineRestoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromOfflineRestore"))] = ModelBase::toJson(m_FromOfflineRestore); } if(m_AutoplayJobIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoplayJobId"))] = ModelBase::toJson(m_AutoplayJobId); } if(m_AutoplayDelayMSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoplayDelayMS"))] = ModelBase::toJson(m_AutoplayDelayMS); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } - if(m_LogsIsSet) - { + if(m_Logs.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("logs"))] = ModelBase::toJson(m_Logs); + val[utility::conversions::to_string_t(_XPLATSTR("logs"))] = ModelBase::toJson(m_Logs.get()); } - if(m_GroupIdsIsSet) - { + if(m_GroupIds.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); + val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds.get()); } - if(m_ViewCountIsSet) - { + if(m_ViewCount.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount); + val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount.get()); } if(m_RequiresVerificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("requiresVerification"))] = ModelBase::toJson(m_RequiresVerification); } if(m_EditKeyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); } if(m_TosAcceptedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tosAcceptedAt"))] = ModelBase::toJson(m_TosAcceptedAt); } if(m_BotIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("botId"))] = ModelBase::toJson(m_BotId); } @@ -1377,29 +1316,29 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } - if(m_PageTitleIsSet) + if(m_PageTitle.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } - if(m_AnonUserIdIsSet) + if(m_AnonUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); } - if(m_CommenterEmailIsSet) + if(m_CommenterEmail.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); } if(m_CommenterNameIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterLinkIsSet) + if(m_CommenterLink.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); } if(m_CommentIsSet) { @@ -1409,49 +1348,49 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); } - if(m_ParentIdIsSet) + if(m_ParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); } - if(m_dateIsSet) + if(m_date.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); } - if(m_LocalDateStringIsSet) + if(m_LocalDateString.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString.get())); } - if(m_LocalDateHoursIsSet) + if(m_LocalDateHours.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours.get())); } - if(m_VotesIsSet) + if(m_Votes.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); } - if(m_VotesUpIsSet) + if(m_VotesUp.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); } - if(m_VotesDownIsSet) + if(m_VotesDown.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); } - if(m_ExpireAtIsSet) + if(m_ExpireAt.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt.get())); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_VerifiedDateIsSet) + if(m_VerifiedDate.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate.get())); } - if(m_VerificationIdIsSet) + if(m_VerificationId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verificationId")), m_VerificationId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verificationId")), m_VerificationId.get())); } if(m_NotificationSentForParentIsSet) { @@ -1473,13 +1412,13 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalId")), m_ExternalId)); } - if(m_ExternalParentIdIsSet) + if(m_ExternalParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId.get())); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } if(m_IsSpamIsSet) { @@ -1497,17 +1436,17 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasImages")), m_HasImages)); } - if(m_PageNumberIsSet) + if(m_PageNumber.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumber")), m_PageNumber)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumber")), m_PageNumber.get())); } - if(m_PageNumberOFIsSet) + if(m_PageNumberOF.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumberOF")), m_PageNumberOF)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumberOF")), m_PageNumberOF.get())); } - if(m_PageNumberNFIsSet) + if(m_PageNumberNF.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumberNF")), m_PageNumberNF)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumberNF")), m_PageNumberNF.get())); } if(m_HasLinksIsSet) { @@ -1521,9 +1460,9 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); } - if(m_LocaleIsSet) + if(m_Locale.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale.get())); } if(m_IsDeletedIsSet) { @@ -1545,33 +1484,33 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); } - if(m_IsPinnedIsSet) + if(m_IsPinned.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); } - if(m_IsLockedIsSet) + if(m_IsLocked.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); } - if(m_FlagCountIsSet) + if(m_FlagCount.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); } - if(m_RatingIsSet) + if(m_Rating.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); } - if(m_DisplayLabelIsSet) + if(m_DisplayLabel.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); } if(m_FromProductIdIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromProductId")), m_FromProductId)); } - if(m_MetaIsSet) + if(m_Meta.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); } if(m_IpHashIsSet) { @@ -1585,21 +1524,21 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hashTags")), m_HashTags)); } - if(m_BadgesIsSet) + if(m_Badges.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); } - if(m_DomainIsSet) + if(m_Domain.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain.get())); } if(m_VeteranBadgeProcessedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("veteranBadgeProcessed")), m_VeteranBadgeProcessed)); } - if(m_ModerationGroupIdsIsSet) + if(m_ModerationGroupIds.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds.get())); } if(m_DidProcessBadgesIsSet) { @@ -1621,17 +1560,17 @@ void FComment::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedbackIds")), m_FeedbackIds)); } - if(m_LogsIsSet) + if(m_Logs.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logs")), m_Logs)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logs")), m_Logs.get())); } - if(m_GroupIdsIsSet) + if(m_GroupIds.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("groupIds")), m_GroupIds)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("groupIds")), m_GroupIds.get())); } - if(m_ViewCountIsSet) + if(m_ViewCount.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount.get())); } if(m_RequiresVerificationIsSet) { @@ -2209,87 +2148,83 @@ void FComment::unsetUrl() } utility::string_t FComment::getPageTitle() const { - return m_PageTitle; + return m_PageTitle.get(); } void FComment::setPageTitle(const utility::string_t& value) { m_PageTitle = value; - m_PageTitleIsSet = true; } bool FComment::pageTitleIsSet() const { - return m_PageTitleIsSet; + return m_PageTitle.has_value(); } void FComment::unsetPageTitle() { - m_PageTitleIsSet = false; + m_PageTitle.reset(); } utility::string_t FComment::getUserId() const { - return m_UserId; + return m_UserId.get(); } void FComment::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool FComment::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void FComment::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t FComment::getAnonUserId() const { - return m_AnonUserId; + return m_AnonUserId.get(); } void FComment::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; - m_AnonUserIdIsSet = true; } bool FComment::anonUserIdIsSet() const { - return m_AnonUserIdIsSet; + return m_AnonUserId.has_value(); } void FComment::unsetAnonUserId() { - m_AnonUserIdIsSet = false; + m_AnonUserId.reset(); } utility::string_t FComment::getCommenterEmail() const { - return m_CommenterEmail; + return m_CommenterEmail.get(); } void FComment::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; - m_CommenterEmailIsSet = true; } bool FComment::commenterEmailIsSet() const { - return m_CommenterEmailIsSet; + return m_CommenterEmail.has_value(); } void FComment::unsetCommenterEmail() { - m_CommenterEmailIsSet = false; + m_CommenterEmail.reset(); } utility::string_t FComment::getCommenterName() const { @@ -2314,24 +2249,23 @@ void FComment::unsetCommenterName() } utility::string_t FComment::getCommenterLink() const { - return m_CommenterLink; + return m_CommenterLink.get(); } void FComment::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; - m_CommenterLinkIsSet = true; } bool FComment::commenterLinkIsSet() const { - return m_CommenterLinkIsSet; + return m_CommenterLink.has_value(); } void FComment::unsetCommenterLink() { - m_CommenterLinkIsSet = false; + m_CommenterLink.reset(); } utility::string_t FComment::getComment() const { @@ -2377,167 +2311,159 @@ void FComment::unsetCommentHTML() } utility::string_t FComment::getParentId() const { - return m_ParentId; + return m_ParentId.get(); } void FComment::setParentId(const utility::string_t& value) { m_ParentId = value; - m_ParentIdIsSet = true; } bool FComment::parentIdIsSet() const { - return m_ParentIdIsSet; + return m_ParentId.has_value(); } void FComment::unsetParentId() { - m_ParentIdIsSet = false; + m_ParentId.reset(); } utility::datetime FComment::getDate() const { - return m_date; + return m_date.get(); } void FComment::setDate(const utility::datetime& value) { m_date = value; - m_dateIsSet = true; } bool FComment::dateIsSet() const { - return m_dateIsSet; + return m_date.has_value(); } void FComment::unsetdate() { - m_dateIsSet = false; + m_date.reset(); } utility::string_t FComment::getLocalDateString() const { - return m_LocalDateString; + return m_LocalDateString.get(); } void FComment::setLocalDateString(const utility::string_t& value) { m_LocalDateString = value; - m_LocalDateStringIsSet = true; } bool FComment::localDateStringIsSet() const { - return m_LocalDateStringIsSet; + return m_LocalDateString.has_value(); } void FComment::unsetLocalDateString() { - m_LocalDateStringIsSet = false; + m_LocalDateString.reset(); } int32_t FComment::getLocalDateHours() const { - return m_LocalDateHours; + return m_LocalDateHours.get(); } void FComment::setLocalDateHours(int32_t value) { m_LocalDateHours = value; - m_LocalDateHoursIsSet = true; } bool FComment::localDateHoursIsSet() const { - return m_LocalDateHoursIsSet; + return m_LocalDateHours.has_value(); } void FComment::unsetLocalDateHours() { - m_LocalDateHoursIsSet = false; + m_LocalDateHours.reset(); } int32_t FComment::getVotes() const { - return m_Votes; + return m_Votes.get(); } void FComment::setVotes(int32_t value) { m_Votes = value; - m_VotesIsSet = true; } bool FComment::votesIsSet() const { - return m_VotesIsSet; + return m_Votes.has_value(); } void FComment::unsetVotes() { - m_VotesIsSet = false; + m_Votes.reset(); } int32_t FComment::getVotesUp() const { - return m_VotesUp; + return m_VotesUp.get(); } void FComment::setVotesUp(int32_t value) { m_VotesUp = value; - m_VotesUpIsSet = true; } bool FComment::votesUpIsSet() const { - return m_VotesUpIsSet; + return m_VotesUp.has_value(); } void FComment::unsetVotesUp() { - m_VotesUpIsSet = false; + m_VotesUp.reset(); } int32_t FComment::getVotesDown() const { - return m_VotesDown; + return m_VotesDown.get(); } void FComment::setVotesDown(int32_t value) { m_VotesDown = value; - m_VotesDownIsSet = true; } bool FComment::votesDownIsSet() const { - return m_VotesDownIsSet; + return m_VotesDown.has_value(); } void FComment::unsetVotesDown() { - m_VotesDownIsSet = false; + m_VotesDown.reset(); } utility::datetime FComment::getExpireAt() const { - return m_ExpireAt; + return m_ExpireAt.get(); } void FComment::setExpireAt(const utility::datetime& value) { m_ExpireAt = value; - m_ExpireAtIsSet = true; } bool FComment::expireAtIsSet() const { - return m_ExpireAtIsSet; + return m_ExpireAt.has_value(); } void FComment::unsetExpireAt() { - m_ExpireAtIsSet = false; + m_ExpireAt.reset(); } bool FComment::isVerified() const { @@ -2561,45 +2487,43 @@ void FComment::unsetVerified() } utility::datetime FComment::getVerifiedDate() const { - return m_VerifiedDate; + return m_VerifiedDate.get(); } void FComment::setVerifiedDate(const utility::datetime& value) { m_VerifiedDate = value; - m_VerifiedDateIsSet = true; } bool FComment::verifiedDateIsSet() const { - return m_VerifiedDateIsSet; + return m_VerifiedDate.has_value(); } void FComment::unsetVerifiedDate() { - m_VerifiedDateIsSet = false; + m_VerifiedDate.reset(); } utility::string_t FComment::getVerificationId() const { - return m_VerificationId; + return m_VerificationId.get(); } void FComment::setVerificationId(const utility::string_t& value) { m_VerificationId = value; - m_VerificationIdIsSet = true; } bool FComment::verificationIdIsSet() const { - return m_VerificationIdIsSet; + return m_VerificationId.has_value(); } void FComment::unsetVerificationId() { - m_VerificationIdIsSet = false; + m_VerificationId.reset(); } bool FComment::isNotificationSentForParent() const { @@ -2704,45 +2628,43 @@ void FComment::unsetExternalId() } utility::string_t FComment::getExternalParentId() const { - return m_ExternalParentId; + return m_ExternalParentId.get(); } void FComment::setExternalParentId(const utility::string_t& value) { m_ExternalParentId = value; - m_ExternalParentIdIsSet = true; } bool FComment::externalParentIdIsSet() const { - return m_ExternalParentIdIsSet; + return m_ExternalParentId.has_value(); } void FComment::unsetExternalParentId() { - m_ExternalParentIdIsSet = false; + m_ExternalParentId.reset(); } utility::string_t FComment::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void FComment::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool FComment::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void FComment::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } bool FComment::isIsSpam() const { @@ -2826,63 +2748,60 @@ void FComment::unsetHasImages() } int32_t FComment::getPageNumber() const { - return m_PageNumber; + return m_PageNumber.get(); } void FComment::setPageNumber(int32_t value) { m_PageNumber = value; - m_PageNumberIsSet = true; } bool FComment::pageNumberIsSet() const { - return m_PageNumberIsSet; + return m_PageNumber.has_value(); } void FComment::unsetPageNumber() { - m_PageNumberIsSet = false; + m_PageNumber.reset(); } int32_t FComment::getPageNumberOF() const { - return m_PageNumberOF; + return m_PageNumberOF.get(); } void FComment::setPageNumberOF(int32_t value) { m_PageNumberOF = value; - m_PageNumberOFIsSet = true; } bool FComment::pageNumberOFIsSet() const { - return m_PageNumberOFIsSet; + return m_PageNumberOF.has_value(); } void FComment::unsetPageNumberOF() { - m_PageNumberOFIsSet = false; + m_PageNumberOF.reset(); } int32_t FComment::getPageNumberNF() const { - return m_PageNumberNF; + return m_PageNumberNF.get(); } void FComment::setPageNumberNF(int32_t value) { m_PageNumberNF = value; - m_PageNumberNFIsSet = true; } bool FComment::pageNumberNFIsSet() const { - return m_PageNumberNFIsSet; + return m_PageNumberNF.has_value(); } void FComment::unsetPageNumberNF() { - m_PageNumberNFIsSet = false; + m_PageNumberNF.reset(); } bool FComment::isHasLinks() const { @@ -2946,24 +2865,23 @@ void FComment::unsetApproved() } utility::string_t FComment::getLocale() const { - return m_Locale; + return m_Locale.get(); } void FComment::setLocale(const utility::string_t& value) { m_Locale = value; - m_LocaleIsSet = true; } bool FComment::localeIsSet() const { - return m_LocaleIsSet; + return m_Locale.has_value(); } void FComment::unsetLocale() { - m_LocaleIsSet = false; + m_Locale.reset(); } bool FComment::isIsDeleted() const { @@ -3067,104 +2985,99 @@ void FComment::unsetIsByModerator() } bool FComment::isIsPinned() const { - return m_IsPinned; + return m_IsPinned.get(); } void FComment::setIsPinned(bool value) { m_IsPinned = value; - m_IsPinnedIsSet = true; } bool FComment::isPinnedIsSet() const { - return m_IsPinnedIsSet; + return m_IsPinned.has_value(); } void FComment::unsetIsPinned() { - m_IsPinnedIsSet = false; + m_IsPinned.reset(); } bool FComment::isIsLocked() const { - return m_IsLocked; + return m_IsLocked.get(); } void FComment::setIsLocked(bool value) { m_IsLocked = value; - m_IsLockedIsSet = true; } bool FComment::isLockedIsSet() const { - return m_IsLockedIsSet; + return m_IsLocked.has_value(); } void FComment::unsetIsLocked() { - m_IsLockedIsSet = false; + m_IsLocked.reset(); } int32_t FComment::getFlagCount() const { - return m_FlagCount; + return m_FlagCount.get(); } void FComment::setFlagCount(int32_t value) { m_FlagCount = value; - m_FlagCountIsSet = true; } bool FComment::flagCountIsSet() const { - return m_FlagCountIsSet; + return m_FlagCount.has_value(); } void FComment::unsetFlagCount() { - m_FlagCountIsSet = false; + m_FlagCount.reset(); } double FComment::getRating() const { - return m_Rating; + return m_Rating.get(); } void FComment::setRating(double value) { m_Rating = value; - m_RatingIsSet = true; } bool FComment::ratingIsSet() const { - return m_RatingIsSet; + return m_Rating.has_value(); } void FComment::unsetRating() { - m_RatingIsSet = false; + m_Rating.reset(); } utility::string_t FComment::getDisplayLabel() const { - return m_DisplayLabel; + return m_DisplayLabel.get(); } void FComment::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; - m_DisplayLabelIsSet = true; } bool FComment::displayLabelIsSet() const { - return m_DisplayLabelIsSet; + return m_DisplayLabel.has_value(); } void FComment::unsetDisplayLabel() { - m_DisplayLabelIsSet = false; + m_DisplayLabel.reset(); } int32_t FComment::getFromProductId() const { @@ -3188,24 +3101,23 @@ void FComment::unsetFromProductId() } std::shared_ptr FComment::getMeta() const { - return m_Meta; + return m_Meta.get(); } void FComment::setMeta(const std::shared_ptr& value) { m_Meta = value; - m_MetaIsSet = true; } bool FComment::metaIsSet() const { - return m_MetaIsSet; + return m_Meta.has_value(); } void FComment::unsetMeta() { - m_MetaIsSet = false; + m_Meta.reset(); } utility::string_t FComment::getIpHash() const { @@ -3272,45 +3184,43 @@ void FComment::unsetHashTags() } std::vector> FComment::getBadges() const { - return m_Badges; + return m_Badges.get(); } void FComment::setBadges(const std::vector>& value) { m_Badges = value; - m_BadgesIsSet = true; } bool FComment::badgesIsSet() const { - return m_BadgesIsSet; + return m_Badges.has_value(); } void FComment::unsetBadges() { - m_BadgesIsSet = false; + m_Badges.reset(); } utility::string_t FComment::getDomain() const { - return m_Domain; + return m_Domain.get(); } void FComment::setDomain(const utility::string_t& value) { m_Domain = value; - m_DomainIsSet = true; } bool FComment::domainIsSet() const { - return m_DomainIsSet; + return m_Domain.has_value(); } void FComment::unsetDomain() { - m_DomainIsSet = false; + m_Domain.reset(); } utility::string_t FComment::getVeteranBadgeProcessed() const { @@ -3335,24 +3245,23 @@ void FComment::unsetVeteranBadgeProcessed() } std::vector FComment::getModerationGroupIds() const { - return m_ModerationGroupIds; + return m_ModerationGroupIds.get(); } void FComment::setModerationGroupIds(const std::vector& value) { m_ModerationGroupIds = value; - m_ModerationGroupIdsIsSet = true; } bool FComment::moderationGroupIdsIsSet() const { - return m_ModerationGroupIdsIsSet; + return m_ModerationGroupIds.has_value(); } void FComment::unsetModerationGroupIds() { - m_ModerationGroupIdsIsSet = false; + m_ModerationGroupIds.reset(); } bool FComment::isDidProcessBadges() const { @@ -3458,65 +3367,62 @@ void FComment::unsetFeedbackIds() } std::vector> FComment::getLogs() const { - return m_Logs; + return m_Logs.get(); } void FComment::setLogs(const std::vector>& value) { m_Logs = value; - m_LogsIsSet = true; } bool FComment::logsIsSet() const { - return m_LogsIsSet; + return m_Logs.has_value(); } void FComment::unsetLogs() { - m_LogsIsSet = false; + m_Logs.reset(); } std::vector FComment::getGroupIds() const { - return m_GroupIds; + return m_GroupIds.get(); } void FComment::setGroupIds(const std::vector& value) { m_GroupIds = value; - m_GroupIdsIsSet = true; } bool FComment::groupIdsIsSet() const { - return m_GroupIdsIsSet; + return m_GroupIds.has_value(); } void FComment::unsetGroupIds() { - m_GroupIdsIsSet = false; + m_GroupIds.reset(); } int64_t FComment::getViewCount() const { - return m_ViewCount; + return m_ViewCount.get(); } void FComment::setViewCount(int64_t value) { m_ViewCount = value; - m_ViewCountIsSet = true; } bool FComment::viewCountIsSet() const { - return m_ViewCountIsSet; + return m_ViewCount.has_value(); } void FComment::unsetViewCount() { - m_ViewCountIsSet = false; + m_ViewCount.reset(); } bool FComment::isRequiresVerification() const { diff --git a/client/src/model/FComment_meta.cpp b/client/src/model/FComment_meta.cpp index 314b1ad..2d77cae 100644 --- a/client/src/model/FComment_meta.cpp +++ b/client/src/model/FComment_meta.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -26,6 +26,7 @@ FComment_meta::FComment_meta() m_WpUserIdIsSet = false; m_WpPostId = utility::conversions::to_string_t(""); m_WpPostIdIsSet = false; + m_AdditionalPropertiesIsSet = false; } FComment_meta::~FComment_meta() @@ -41,20 +42,28 @@ web::json::value FComment_meta::toJson() const { web::json::value val = web::json::value::object(); if(m_WpIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wpId"))] = ModelBase::toJson(m_WpId); } if(m_WpUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wpUserId"))] = ModelBase::toJson(m_WpUserId); } if(m_WpPostIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wpPostId"))] = ModelBase::toJson(m_WpPostId); } + // Serialize additional properties + if(m_AdditionalPropertiesIsSet) + { + for(const auto& item : m_AdditionalProperties) + { + val[item.first] = item.second; + } + } return val; } @@ -95,6 +104,20 @@ bool FComment_meta::fromJson(const web::json::value& val) } } + // Capture additional properties (keys not defined in the schema) + if(val.is_object()) + { + for(const auto& item : val.as_object()) + { + // Skip known properties + if(item.first == utility::conversions::to_string_t(_XPLATSTR("wpId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("wpUserId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("wpPostId"))) continue; + // This is an additional property + m_AdditionalProperties[item.first] = item.second; + m_AdditionalPropertiesIsSet = true; + } + } return ok; } @@ -214,6 +237,34 @@ void FComment_meta::unsetWpPostId() m_WpPostIdIsSet = false; } + +std::map FComment_meta::getAdditionalProperties() const +{ + return m_AdditionalProperties; +} + +void FComment_meta::setAdditionalProperties(const std::map& value) +{ + m_AdditionalProperties = value; + m_AdditionalPropertiesIsSet = true; +} + +void FComment_meta::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) +{ + m_AdditionalProperties[key] = value; + m_AdditionalPropertiesIsSet = true; +} + +bool FComment_meta::additionalPropertiesIsSet() const +{ + return m_AdditionalPropertiesIsSet; +} + +void FComment_meta::unsetAdditionalProperties() +{ + m_AdditionalProperties.clear(); + m_AdditionalPropertiesIsSet = false; +} } } } diff --git a/client/src/model/FeedPost.cpp b/client/src/model/FeedPost.cpp index 9957fd2..1c438ac 100644 --- a/client/src/model/FeedPost.cpp +++ b/client/src/model/FeedPost.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -28,10 +28,6 @@ FeedPost::FeedPost() m_TitleIsSet = false; m_FromUserId = utility::conversions::to_string_t(""); m_FromUserIdIsSet = false; - m_FromUserDisplayName = utility::conversions::to_string_t(""); - m_FromUserDisplayNameIsSet = false; - m_FromUserAvatar = utility::conversions::to_string_t(""); - m_FromUserAvatarIsSet = false; m_FromIpHash = utility::conversions::to_string_t(""); m_FromIpHashIsSet = false; m_TagsIsSet = false; @@ -45,8 +41,6 @@ FeedPost::FeedPost() m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; m_ReactsIsSet = false; - m_CommentCount = 0; - m_CommentCountIsSet = false; } FeedPost::~FeedPost() @@ -62,84 +56,84 @@ web::json::value FeedPost::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_FromUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserId"))] = ModelBase::toJson(m_FromUserId); } - if(m_FromUserDisplayNameIsSet) - { + if(m_FromUserDisplayName.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserDisplayName"))] = ModelBase::toJson(m_FromUserDisplayName); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserDisplayName"))] = ModelBase::toJson(m_FromUserDisplayName.get()); } - if(m_FromUserAvatarIsSet) - { + if(m_FromUserAvatar.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserAvatar"))] = ModelBase::toJson(m_FromUserAvatar); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserAvatar"))] = ModelBase::toJson(m_FromUserAvatar.get()); } if(m_FromIpHashIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromIpHash"))] = ModelBase::toJson(m_FromIpHash); } if(m_TagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tags"))] = ModelBase::toJson(m_Tags); } if(m_WeightIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("weight"))] = ModelBase::toJson(m_Weight); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } if(m_ContentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("contentHTML"))] = ModelBase::toJson(m_ContentHTML); } if(m_MediaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("media"))] = ModelBase::toJson(m_Media); } if(m_LinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("links"))] = ModelBase::toJson(m_Links); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_ReactsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reacts"))] = ModelBase::toJson(m_Reacts); } - if(m_CommentCountIsSet) - { + if(m_CommentCount.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); + val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount.get()); } return val; @@ -350,13 +344,13 @@ void FeedPost::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserId")), m_FromUserId)); } - if(m_FromUserDisplayNameIsSet) + if(m_FromUserDisplayName.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserDisplayName")), m_FromUserDisplayName)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserDisplayName")), m_FromUserDisplayName.get())); } - if(m_FromUserAvatarIsSet) + if(m_FromUserAvatar.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserAvatar")), m_FromUserAvatar)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserAvatar")), m_FromUserAvatar.get())); } if(m_FromIpHashIsSet) { @@ -394,9 +388,9 @@ void FeedPost::toMultipart(std::shared_ptr multipart, const u { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reacts")), m_Reacts)); } - if(m_CommentCountIsSet) + if(m_CommentCount.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount.get())); } } @@ -595,45 +589,43 @@ void FeedPost::unsetFromUserId() } utility::string_t FeedPost::getFromUserDisplayName() const { - return m_FromUserDisplayName; + return m_FromUserDisplayName.get(); } void FeedPost::setFromUserDisplayName(const utility::string_t& value) { m_FromUserDisplayName = value; - m_FromUserDisplayNameIsSet = true; } bool FeedPost::fromUserDisplayNameIsSet() const { - return m_FromUserDisplayNameIsSet; + return m_FromUserDisplayName.has_value(); } void FeedPost::unsetFromUserDisplayName() { - m_FromUserDisplayNameIsSet = false; + m_FromUserDisplayName.reset(); } utility::string_t FeedPost::getFromUserAvatar() const { - return m_FromUserAvatar; + return m_FromUserAvatar.get(); } void FeedPost::setFromUserAvatar(const utility::string_t& value) { m_FromUserAvatar = value; - m_FromUserAvatarIsSet = true; } bool FeedPost::fromUserAvatarIsSet() const { - return m_FromUserAvatarIsSet; + return m_FromUserAvatar.has_value(); } void FeedPost::unsetFromUserAvatar() { - m_FromUserAvatarIsSet = false; + m_FromUserAvatar.reset(); } utility::string_t FeedPost::getFromIpHash() const { @@ -824,23 +816,22 @@ void FeedPost::unsetReacts() } int32_t FeedPost::getCommentCount() const { - return m_CommentCount; + return m_CommentCount.get(); } void FeedPost::setCommentCount(int32_t value) { m_CommentCount = value; - m_CommentCountIsSet = true; } bool FeedPost::commentCountIsSet() const { - return m_CommentCountIsSet; + return m_CommentCount.has_value(); } void FeedPost::unsetCommentCount() { - m_CommentCountIsSet = false; + m_CommentCount.reset(); } } diff --git a/client/src/model/FeedPostLink.cpp b/client/src/model/FeedPostLink.cpp index fef9d4c..c8cc5c7 100644 --- a/client/src/model/FeedPostLink.cpp +++ b/client/src/model/FeedPostLink.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,22 +43,22 @@ web::json::value FeedPostLink::toJson() const { web::json::value val = web::json::value::object(); if(m_TextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("text"))] = ModelBase::toJson(m_Text); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_DescriptionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } diff --git a/client/src/model/FeedPostMediaItem.cpp b/client/src/model/FeedPostMediaItem.cpp index 4234d09..0596eff 100644 --- a/client/src/model/FeedPostMediaItem.cpp +++ b/client/src/model/FeedPostMediaItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,17 +40,17 @@ web::json::value FeedPostMediaItem::toJson() const { web::json::value val = web::json::value::object(); if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_LinkUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("linkUrl"))] = ModelBase::toJson(m_LinkUrl); } if(m_SizesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sizes"))] = ModelBase::toJson(m_Sizes); } diff --git a/client/src/model/FeedPostMediaItemAsset.cpp b/client/src/model/FeedPostMediaItemAsset.cpp index 0b58173..5164d53 100644 --- a/client/src/model/FeedPostMediaItemAsset.cpp +++ b/client/src/model/FeedPostMediaItemAsset.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value FeedPostMediaItemAsset::toJson() const { web::json::value val = web::json::value::object(); if(m_wIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("w"))] = ModelBase::toJson(m_w); } if(m_hIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("h"))] = ModelBase::toJson(m_h); } if(m_SrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("src"))] = ModelBase::toJson(m_Src); } diff --git a/client/src/model/FeedPostStats.cpp b/client/src/model/FeedPostStats.cpp index 24c04b1..af0b779 100644 --- a/client/src/model/FeedPostStats.cpp +++ b/client/src/model/FeedPostStats.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value FeedPostStats::toJson() const { web::json::value val = web::json::value::object(); if(m_ReactsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reacts"))] = ModelBase::toJson(m_Reacts); } if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } diff --git a/client/src/model/FeedPostsStatsResponse.cpp b/client/src/model/FeedPostsStatsResponse.cpp index 8f0d88b..006aed5 100644 --- a/client/src/model/FeedPostsStatsResponse.cpp +++ b/client/src/model/FeedPostsStatsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value FeedPostsStatsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_StatsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stats"))] = ModelBase::toJson(m_Stats); } diff --git a/client/src/model/FindCommentsByRangeItem.cpp b/client/src/model/FindCommentsByRangeItem.cpp index b8099b8..e1b2165 100644 --- a/client/src/model/FindCommentsByRangeItem.cpp +++ b/client/src/model/FindCommentsByRangeItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,7 +20,6 @@ namespace model { FindCommentsByRangeItem::FindCommentsByRangeItem() { - m_CommentIsSet = false; m_ResultIsSet = false; } @@ -36,13 +35,13 @@ void FindCommentsByRangeItem::validate() web::json::value FindCommentsByRangeItem::toJson() const { web::json::value val = web::json::value::object(); - if(m_CommentIsSet) - { + if(m_Comment.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); + val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment.get()); } if(m_ResultIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("result"))] = ModelBase::toJson(m_Result); } @@ -85,9 +84,9 @@ void FindCommentsByRangeItem::toMultipart(std::shared_ptr mul { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_CommentIsSet) + if(m_Comment.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment.get())); } if(m_ResultIsSet) { @@ -122,24 +121,23 @@ bool FindCommentsByRangeItem::fromMultiPart(std::shared_ptr m std::shared_ptr FindCommentsByRangeItem::getComment() const { - return m_Comment; + return m_Comment.get(); } void FindCommentsByRangeItem::setComment(const std::shared_ptr& value) { m_Comment = value; - m_CommentIsSet = true; } bool FindCommentsByRangeItem::commentIsSet() const { - return m_CommentIsSet; + return m_Comment.has_value(); } void FindCommentsByRangeItem::unsetComment() { - m_CommentIsSet = false; + m_Comment.reset(); } std::shared_ptr FindCommentsByRangeItem::getResult() const { diff --git a/client/src/model/FindCommentsByRangeResponse.cpp b/client/src/model/FindCommentsByRangeResponse.cpp index 3f2a270..d5453ad 100644 --- a/client/src/model/FindCommentsByRangeResponse.cpp +++ b/client/src/model/FindCommentsByRangeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value FindCommentsByRangeResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ResultsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("results"))] = ModelBase::toJson(m_Results); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } diff --git a/client/src/model/FlagCommentResponse.cpp b/client/src/model/FlagCommentResponse.cpp index 67439e6..56b4d42 100644 --- a/client/src/model/FlagCommentResponse.cpp +++ b/client/src/model/FlagCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -44,27 +44,27 @@ web::json::value FlagCommentResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_WasUnapprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))] = ModelBase::toJson(m_WasUnapproved); } diff --git a/client/src/model/GetAuditLogsResponse.cpp b/client/src/model/GetAuditLogsResponse.cpp index d65ac37..5736bc5 100644 --- a/client/src/model/GetAuditLogsResponse.cpp +++ b/client/src/model/GetAuditLogsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetAuditLogsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_AuditLogsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("auditLogs"))] = ModelBase::toJson(m_AuditLogs); } diff --git a/client/src/model/GetBannedUsersCountResponse.cpp b/client/src/model/GetBannedUsersCountResponse.cpp index 5213a30..7799bcc 100644 --- a/client/src/model/GetBannedUsersCountResponse.cpp +++ b/client/src/model/GetBannedUsersCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value GetBannedUsersCountResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_TotalCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("totalCount"))] = ModelBase::toJson(m_TotalCount); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetBannedUsersFromCommentResponse.cpp b/client/src/model/GetBannedUsersFromCommentResponse.cpp index f83e1d3..3df4bdc 100644 --- a/client/src/model/GetBannedUsersFromCommentResponse.cpp +++ b/client/src/model/GetBannedUsersFromCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,19 +38,19 @@ web::json::value GetBannedUsersFromCommentResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_BannedUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bannedUsers"))] = ModelBase::toJson(m_BannedUsers); } if(m_CodeIsSet) - { + { utility::string_t refVal = fromCodeEnum(m_Code); val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(refVal); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetCachedNotificationCountResponse.cpp b/client/src/model/GetCachedNotificationCountResponse.cpp index f6626c7..605c3c3 100644 --- a/client/src/model/GetCachedNotificationCountResponse.cpp +++ b/client/src/model/GetCachedNotificationCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetCachedNotificationCountResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_DataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); } diff --git a/client/src/model/GetCommentBanStatusResponse.cpp b/client/src/model/GetCommentBanStatusResponse.cpp index 9337190..3a33f16 100644 --- a/client/src/model/GetCommentBanStatusResponse.cpp +++ b/client/src/model/GetCommentBanStatusResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,10 +22,6 @@ GetCommentBanStatusResponse::GetCommentBanStatusResponse() { m_Status = utility::conversions::to_string_t(""); m_StatusIsSet = false; - m_EmailDomain = utility::conversions::to_string_t(""); - m_EmailDomainIsSet = false; - m_CanIPBan = false; - m_CanIPBanIsSet = false; } GetCommentBanStatusResponse::~GetCommentBanStatusResponse() @@ -41,19 +37,19 @@ web::json::value GetCommentBanStatusResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } - if(m_EmailDomainIsSet) - { + if(m_EmailDomain.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("emailDomain"))] = ModelBase::toJson(m_EmailDomain); + val[utility::conversions::to_string_t(_XPLATSTR("emailDomain"))] = ModelBase::toJson(m_EmailDomain.get()); } - if(m_CanIPBanIsSet) - { + if(m_CanIPBan.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("canIPBan"))] = ModelBase::toJson(m_CanIPBan); + val[utility::conversions::to_string_t(_XPLATSTR("canIPBan"))] = ModelBase::toJson(m_CanIPBan.get()); } return val; @@ -109,13 +105,13 @@ void GetCommentBanStatusResponse::toMultipart(std::shared_ptr { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } - if(m_EmailDomainIsSet) + if(m_EmailDomain.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailDomain")), m_EmailDomain)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailDomain")), m_EmailDomain.get())); } - if(m_CanIPBanIsSet) + if(m_CanIPBan.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("canIPBan")), m_CanIPBan)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("canIPBan")), m_CanIPBan.get())); } } @@ -173,44 +169,42 @@ void GetCommentBanStatusResponse::unsetStatus() } utility::string_t GetCommentBanStatusResponse::getEmailDomain() const { - return m_EmailDomain; + return m_EmailDomain.get(); } void GetCommentBanStatusResponse::setEmailDomain(const utility::string_t& value) { m_EmailDomain = value; - m_EmailDomainIsSet = true; } bool GetCommentBanStatusResponse::emailDomainIsSet() const { - return m_EmailDomainIsSet; + return m_EmailDomain.has_value(); } void GetCommentBanStatusResponse::unsetEmailDomain() { - m_EmailDomainIsSet = false; + m_EmailDomain.reset(); } bool GetCommentBanStatusResponse::isCanIPBan() const { - return m_CanIPBan; + return m_CanIPBan.get(); } void GetCommentBanStatusResponse::setCanIPBan(bool value) { m_CanIPBan = value; - m_CanIPBanIsSet = true; } bool GetCommentBanStatusResponse::canIPBanIsSet() const { - return m_CanIPBanIsSet; + return m_CanIPBan.has_value(); } void GetCommentBanStatusResponse::unsetCanIPBan() { - m_CanIPBanIsSet = false; + m_CanIPBan.reset(); } } diff --git a/client/src/model/GetCommentTextResponse.cpp b/client/src/model/GetCommentTextResponse.cpp index 6d16aee..df02428 100644 --- a/client/src/model/GetCommentTextResponse.cpp +++ b/client/src/model/GetCommentTextResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,8 +20,6 @@ namespace model { GetCommentTextResponse::GetCommentTextResponse() { - m_Comment = utility::conversions::to_string_t(""); - m_CommentIsSet = false; m_StatusIsSet = false; } @@ -37,13 +35,13 @@ void GetCommentTextResponse::validate() web::json::value GetCommentTextResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_CommentIsSet) - { + if(m_Comment.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); + val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment.get()); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } @@ -86,9 +84,9 @@ void GetCommentTextResponse::toMultipart(std::shared_ptr mult { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_CommentIsSet) + if(m_Comment.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment.get())); } if(m_StatusIsSet) { @@ -123,24 +121,23 @@ bool GetCommentTextResponse::fromMultiPart(std::shared_ptr mu utility::string_t GetCommentTextResponse::getComment() const { - return m_Comment; + return m_Comment.get(); } void GetCommentTextResponse::setComment(const utility::string_t& value) { m_Comment = value; - m_CommentIsSet = true; } bool GetCommentTextResponse::commentIsSet() const { - return m_CommentIsSet; + return m_Comment.has_value(); } void GetCommentTextResponse::unsetComment() { - m_CommentIsSet = false; + m_Comment.reset(); } std::shared_ptr GetCommentTextResponse::getStatus() const { diff --git a/client/src/model/GetCommentVoteUserNamesSuccessResponse.cpp b/client/src/model/GetCommentVoteUserNamesSuccessResponse.cpp index 5732204..5dd1cb5 100644 --- a/client/src/model/GetCommentVoteUserNamesSuccessResponse.cpp +++ b/client/src/model/GetCommentVoteUserNamesSuccessResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value GetCommentVoteUserNamesSuccessResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_VoteUserNamesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("voteUserNames"))] = ModelBase::toJson(m_VoteUserNames); } if(m_HasMoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); } diff --git a/client/src/model/GetCommentsForUserResponse.cpp b/client/src/model/GetCommentsForUserResponse.cpp index cbdce94..064f47c 100644 --- a/client/src/model/GetCommentsForUserResponse.cpp +++ b/client/src/model/GetCommentsForUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value GetCommentsForUserResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ModeratingTenantIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds"))] = ModelBase::toJson(m_ModeratingTenantIds); } diff --git a/client/src/model/GetCommentsResponseWithPresence_PublicComment_.cpp b/client/src/model/GetCommentsResponseWithPresence_PublicComment_.cpp index 1b9a7fd..b05b386 100644 --- a/client/src/model/GetCommentsResponseWithPresence_PublicComment_.cpp +++ b/client/src/model/GetCommentsResponseWithPresence_PublicComment_.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,11 +31,8 @@ GetCommentsResponseWithPresence_PublicComment_::GetCommentsResponseWithPresence_ m_TranslatedWarning = utility::conversions::to_string_t(""); m_TranslatedWarningIsSet = false; m_CommentsIsSet = false; - m_UserIsSet = false; m_UrlIdClean = utility::conversions::to_string_t(""); m_UrlIdCleanIsSet = false; - m_LastGenDate = 0L; - m_LastGenDateIsSet = false; m_IncludesPastPages = false; m_IncludesPastPagesIsSet = false; m_IsDemo = false; @@ -85,137 +82,137 @@ web::json::value GetCommentsResponseWithPresence_PublicComment_::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_TranslatedWarningIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translatedWarning"))] = ModelBase::toJson(m_TranslatedWarning); } if(m_CommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); } - if(m_UserIsSet) - { + if(m_User.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); } if(m_UrlIdCleanIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdClean"))] = ModelBase::toJson(m_UrlIdClean); } - if(m_LastGenDateIsSet) - { + if(m_LastGenDate.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))] = ModelBase::toJson(m_LastGenDate); + val[utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))] = ModelBase::toJson(m_LastGenDate.get()); } if(m_IncludesPastPagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("includesPastPages"))] = ModelBase::toJson(m_IncludesPastPages); } if(m_IsDemoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDemo"))] = ModelBase::toJson(m_IsDemo); } if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } if(m_IsSiteAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))] = ModelBase::toJson(m_IsSiteAdmin); } if(m_HasBillingIssueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue"))] = ModelBase::toJson(m_HasBillingIssue); } if(m_ModuleDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); } if(m_PageNumberIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pageNumber"))] = ModelBase::toJson(m_PageNumber); } if(m_IsWhiteLabeledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled"))] = ModelBase::toJson(m_IsWhiteLabeled); } if(m_IsProdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProd"))] = ModelBase::toJson(m_IsProd); } if(m_IsCrawlerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCrawler"))] = ModelBase::toJson(m_IsCrawler); } if(m_NotificationCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationCount"))] = ModelBase::toJson(m_NotificationCount); } if(m_HasMoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); } if(m_IsClosedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isClosed"))] = ModelBase::toJson(m_IsClosed); } if(m_PresencePollStateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("presencePollState"))] = ModelBase::toJson(m_PresencePollState); } if(m_CustomConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); } if(m_UrlIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); } if(m_UserIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); } if(m_TenantIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))] = ModelBase::toJson(m_TenantIdWS); } @@ -557,17 +554,17 @@ void GetCommentsResponseWithPresence_PublicComment_::toMultipart(std::shared_ptr { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); } - if(m_UserIsSet) + if(m_User.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); } if(m_UrlIdCleanIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdClean")), m_UrlIdClean)); } - if(m_LastGenDateIsSet) + if(m_LastGenDate.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastGenDate")), m_LastGenDate)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastGenDate")), m_LastGenDate.get())); } if(m_IncludesPastPagesIsSet) { @@ -945,24 +942,23 @@ void GetCommentsResponseWithPresence_PublicComment_::unsetComments() } std::shared_ptr GetCommentsResponseWithPresence_PublicComment_::getUser() const { - return m_User; + return m_User.get(); } void GetCommentsResponseWithPresence_PublicComment_::setUser(const std::shared_ptr& value) { m_User = value; - m_UserIsSet = true; } bool GetCommentsResponseWithPresence_PublicComment_::userIsSet() const { - return m_UserIsSet; + return m_User.has_value(); } void GetCommentsResponseWithPresence_PublicComment_::unsetUser() { - m_UserIsSet = false; + m_User.reset(); } utility::string_t GetCommentsResponseWithPresence_PublicComment_::getUrlIdClean() const { @@ -987,23 +983,22 @@ void GetCommentsResponseWithPresence_PublicComment_::unsetUrlIdClean() } int64_t GetCommentsResponseWithPresence_PublicComment_::getLastGenDate() const { - return m_LastGenDate; + return m_LastGenDate.get(); } void GetCommentsResponseWithPresence_PublicComment_::setLastGenDate(int64_t value) { m_LastGenDate = value; - m_LastGenDateIsSet = true; } bool GetCommentsResponseWithPresence_PublicComment_::lastGenDateIsSet() const { - return m_LastGenDateIsSet; + return m_LastGenDate.has_value(); } void GetCommentsResponseWithPresence_PublicComment_::unsetLastGenDate() { - m_LastGenDateIsSet = false; + m_LastGenDate.reset(); } bool GetCommentsResponseWithPresence_PublicComment_::isIncludesPastPages() const { diff --git a/client/src/model/GetCommentsResponse_PublicComment_.cpp b/client/src/model/GetCommentsResponse_PublicComment_.cpp index fb99a17..dbe0b77 100644 --- a/client/src/model/GetCommentsResponse_PublicComment_.cpp +++ b/client/src/model/GetCommentsResponse_PublicComment_.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,11 +31,8 @@ GetCommentsResponse_PublicComment_::GetCommentsResponse_PublicComment_() m_TranslatedWarning = utility::conversions::to_string_t(""); m_TranslatedWarningIsSet = false; m_CommentsIsSet = false; - m_UserIsSet = false; m_UrlIdClean = utility::conversions::to_string_t(""); m_UrlIdCleanIsSet = false; - m_LastGenDate = 0L; - m_LastGenDateIsSet = false; m_IncludesPastPages = false; m_IncludesPastPagesIsSet = false; m_IsDemo = false; @@ -79,122 +76,122 @@ web::json::value GetCommentsResponse_PublicComment_::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_TranslatedWarningIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translatedWarning"))] = ModelBase::toJson(m_TranslatedWarning); } if(m_CommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); } - if(m_UserIsSet) - { + if(m_User.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); } if(m_UrlIdCleanIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdClean"))] = ModelBase::toJson(m_UrlIdClean); } - if(m_LastGenDateIsSet) - { + if(m_LastGenDate.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))] = ModelBase::toJson(m_LastGenDate); + val[utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))] = ModelBase::toJson(m_LastGenDate.get()); } if(m_IncludesPastPagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("includesPastPages"))] = ModelBase::toJson(m_IncludesPastPages); } if(m_IsDemoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDemo"))] = ModelBase::toJson(m_IsDemo); } if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } if(m_IsSiteAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))] = ModelBase::toJson(m_IsSiteAdmin); } if(m_HasBillingIssueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue"))] = ModelBase::toJson(m_HasBillingIssue); } if(m_ModuleDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); } if(m_PageNumberIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pageNumber"))] = ModelBase::toJson(m_PageNumber); } if(m_IsWhiteLabeledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled"))] = ModelBase::toJson(m_IsWhiteLabeled); } if(m_IsProdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProd"))] = ModelBase::toJson(m_IsProd); } if(m_IsCrawlerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCrawler"))] = ModelBase::toJson(m_IsCrawler); } if(m_NotificationCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationCount"))] = ModelBase::toJson(m_NotificationCount); } if(m_HasMoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); } if(m_IsClosedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isClosed"))] = ModelBase::toJson(m_IsClosed); } if(m_PresencePollStateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("presencePollState"))] = ModelBase::toJson(m_PresencePollState); } if(m_CustomConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); } @@ -503,17 +500,17 @@ void GetCommentsResponse_PublicComment_::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); } - if(m_UserIsSet) + if(m_User.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); } if(m_UrlIdCleanIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdClean")), m_UrlIdClean)); } - if(m_LastGenDateIsSet) + if(m_LastGenDate.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastGenDate")), m_LastGenDate)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastGenDate")), m_LastGenDate.get())); } if(m_IncludesPastPagesIsSet) { @@ -861,24 +858,23 @@ void GetCommentsResponse_PublicComment_::unsetComments() } std::shared_ptr GetCommentsResponse_PublicComment_::getUser() const { - return m_User; + return m_User.get(); } void GetCommentsResponse_PublicComment_::setUser(const std::shared_ptr& value) { m_User = value; - m_UserIsSet = true; } bool GetCommentsResponse_PublicComment_::userIsSet() const { - return m_UserIsSet; + return m_User.has_value(); } void GetCommentsResponse_PublicComment_::unsetUser() { - m_UserIsSet = false; + m_User.reset(); } utility::string_t GetCommentsResponse_PublicComment_::getUrlIdClean() const { @@ -903,23 +899,22 @@ void GetCommentsResponse_PublicComment_::unsetUrlIdClean() } int64_t GetCommentsResponse_PublicComment_::getLastGenDate() const { - return m_LastGenDate; + return m_LastGenDate.get(); } void GetCommentsResponse_PublicComment_::setLastGenDate(int64_t value) { m_LastGenDate = value; - m_LastGenDateIsSet = true; } bool GetCommentsResponse_PublicComment_::lastGenDateIsSet() const { - return m_LastGenDateIsSet; + return m_LastGenDate.has_value(); } void GetCommentsResponse_PublicComment_::unsetLastGenDate() { - m_LastGenDateIsSet = false; + m_LastGenDate.reset(); } bool GetCommentsResponse_PublicComment_::isIncludesPastPages() const { diff --git a/client/src/model/GetDomainConfigResponse.cpp b/client/src/model/GetDomainConfigResponse.cpp index 2bb57c4..76a10b2 100644 --- a/client/src/model/GetDomainConfigResponse.cpp +++ b/client/src/model/GetDomainConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,8 +20,6 @@ namespace model { GetDomainConfigResponse::GetDomainConfigResponse() { - m_ConfigurationIsSet = false; - m_StatusIsSet = false; m_Reason = utility::conversions::to_string_t(""); m_ReasonIsSet = false; m_Code = utility::conversions::to_string_t(""); @@ -40,23 +38,23 @@ void GetDomainConfigResponse::validate() web::json::value GetDomainConfigResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_ConfigurationIsSet) - { + if(m_Configuration.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration); + val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration.get()); } - if(m_StatusIsSet) - { + if(m_Status.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } @@ -121,13 +119,13 @@ void GetDomainConfigResponse::toMultipart(std::shared_ptr mul { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_ConfigurationIsSet) + if(m_Configuration.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration.get())); } - if(m_StatusIsSet) + if(m_Status.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); } if(m_ReasonIsSet) { @@ -178,45 +176,43 @@ bool GetDomainConfigResponse::fromMultiPart(std::shared_ptr m std::shared_ptr GetDomainConfigResponse::getConfiguration() const { - return m_Configuration; + return m_Configuration.get(); } void GetDomainConfigResponse::setConfiguration(const std::shared_ptr& value) { m_Configuration = value; - m_ConfigurationIsSet = true; } bool GetDomainConfigResponse::configurationIsSet() const { - return m_ConfigurationIsSet; + return m_Configuration.has_value(); } void GetDomainConfigResponse::unsetConfiguration() { - m_ConfigurationIsSet = false; + m_Configuration.reset(); } std::shared_ptr GetDomainConfigResponse::getStatus() const { - return m_Status; + return m_Status.get(); } void GetDomainConfigResponse::setStatus(const std::shared_ptr& value) { m_Status = value; - m_StatusIsSet = true; } bool GetDomainConfigResponse::statusIsSet() const { - return m_StatusIsSet; + return m_Status.has_value(); } void GetDomainConfigResponse::unsetStatus() { - m_StatusIsSet = false; + m_Status.reset(); } utility::string_t GetDomainConfigResponse::getReason() const { diff --git a/client/src/model/GetDomainConfigsResponse.cpp b/client/src/model/GetDomainConfigsResponse.cpp index 14f8fea..5dee026 100644 --- a/client/src/model/GetDomainConfigsResponse.cpp +++ b/client/src/model/GetDomainConfigsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,8 +20,6 @@ namespace model { GetDomainConfigsResponse::GetDomainConfigsResponse() { - m_ConfigurationsIsSet = false; - m_StatusIsSet = false; m_Reason = utility::conversions::to_string_t(""); m_ReasonIsSet = false; m_Code = utility::conversions::to_string_t(""); @@ -40,23 +38,23 @@ void GetDomainConfigsResponse::validate() web::json::value GetDomainConfigsResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_ConfigurationsIsSet) - { + if(m_Configurations.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("configurations"))] = ModelBase::toJson(m_Configurations); + val[utility::conversions::to_string_t(_XPLATSTR("configurations"))] = ModelBase::toJson(m_Configurations.get()); } - if(m_StatusIsSet) - { + if(m_Status.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } @@ -121,13 +119,13 @@ void GetDomainConfigsResponse::toMultipart(std::shared_ptr mu { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_ConfigurationsIsSet) + if(m_Configurations.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configurations")), m_Configurations)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configurations")), m_Configurations.get())); } - if(m_StatusIsSet) + if(m_Status.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); } if(m_ReasonIsSet) { @@ -178,45 +176,43 @@ bool GetDomainConfigsResponse::fromMultiPart(std::shared_ptr std::shared_ptr GetDomainConfigsResponse::getConfigurations() const { - return m_Configurations; + return m_Configurations.get(); } void GetDomainConfigsResponse::setConfigurations(const std::shared_ptr& value) { m_Configurations = value; - m_ConfigurationsIsSet = true; } bool GetDomainConfigsResponse::configurationsIsSet() const { - return m_ConfigurationsIsSet; + return m_Configurations.has_value(); } void GetDomainConfigsResponse::unsetConfigurations() { - m_ConfigurationsIsSet = false; + m_Configurations.reset(); } std::shared_ptr GetDomainConfigsResponse::getStatus() const { - return m_Status; + return m_Status.get(); } void GetDomainConfigsResponse::setStatus(const std::shared_ptr& value) { m_Status = value; - m_StatusIsSet = true; } bool GetDomainConfigsResponse::statusIsSet() const { - return m_StatusIsSet; + return m_Status.has_value(); } void GetDomainConfigsResponse::unsetStatus() { - m_StatusIsSet = false; + m_Status.reset(); } utility::string_t GetDomainConfigsResponse::getReason() const { diff --git a/client/src/model/GetDomainConfigsResponse_anyOf.cpp b/client/src/model/GetDomainConfigsResponse_anyOf.cpp index d8ae5fc..33adb8b 100644 --- a/client/src/model/GetDomainConfigsResponse_anyOf.cpp +++ b/client/src/model/GetDomainConfigsResponse_anyOf.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,8 +20,6 @@ namespace model { GetDomainConfigsResponse_anyOf::GetDomainConfigsResponse_anyOf() { - m_ConfigurationsIsSet = false; - m_StatusIsSet = false; } GetDomainConfigsResponse_anyOf::~GetDomainConfigsResponse_anyOf() @@ -36,15 +34,15 @@ void GetDomainConfigsResponse_anyOf::validate() web::json::value GetDomainConfigsResponse_anyOf::toJson() const { web::json::value val = web::json::value::object(); - if(m_ConfigurationsIsSet) - { + if(m_Configurations.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("configurations"))] = ModelBase::toJson(m_Configurations); + val[utility::conversions::to_string_t(_XPLATSTR("configurations"))] = ModelBase::toJson(m_Configurations.get()); } - if(m_StatusIsSet) - { + if(m_Status.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); } return val; @@ -85,13 +83,13 @@ void GetDomainConfigsResponse_anyOf::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configurations")), m_Configurations)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configurations")), m_Configurations.get())); } - if(m_StatusIsSet) + if(m_Status.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); } } @@ -122,45 +120,43 @@ bool GetDomainConfigsResponse_anyOf::fromMultiPart(std::shared_ptr GetDomainConfigsResponse_anyOf::getConfigurations() const { - return m_Configurations; + return m_Configurations.get(); } void GetDomainConfigsResponse_anyOf::setConfigurations(const std::shared_ptr& value) { m_Configurations = value; - m_ConfigurationsIsSet = true; } bool GetDomainConfigsResponse_anyOf::configurationsIsSet() const { - return m_ConfigurationsIsSet; + return m_Configurations.has_value(); } void GetDomainConfigsResponse_anyOf::unsetConfigurations() { - m_ConfigurationsIsSet = false; + m_Configurations.reset(); } std::shared_ptr GetDomainConfigsResponse_anyOf::getStatus() const { - return m_Status; + return m_Status.get(); } void GetDomainConfigsResponse_anyOf::setStatus(const std::shared_ptr& value) { m_Status = value; - m_StatusIsSet = true; } bool GetDomainConfigsResponse_anyOf::statusIsSet() const { - return m_StatusIsSet; + return m_Status.has_value(); } void GetDomainConfigsResponse_anyOf::unsetStatus() { - m_StatusIsSet = false; + m_Status.reset(); } } diff --git a/client/src/model/GetDomainConfigsResponse_anyOf_1.cpp b/client/src/model/GetDomainConfigsResponse_anyOf_1.cpp index ccddbf5..4393df4 100644 --- a/client/src/model/GetDomainConfigsResponse_anyOf_1.cpp +++ b/client/src/model/GetDomainConfigsResponse_anyOf_1.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,7 +24,6 @@ GetDomainConfigsResponse_anyOf_1::GetDomainConfigsResponse_anyOf_1() m_ReasonIsSet = false; m_Code = utility::conversions::to_string_t(""); m_CodeIsSet = false; - m_StatusIsSet = false; } GetDomainConfigsResponse_anyOf_1::~GetDomainConfigsResponse_anyOf_1() @@ -40,19 +39,19 @@ web::json::value GetDomainConfigsResponse_anyOf_1::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } - if(m_StatusIsSet) - { + if(m_Status.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); } return val; @@ -112,9 +111,9 @@ void GetDomainConfigsResponse_anyOf_1::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); } - if(m_StatusIsSet) + if(m_Status.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); } } @@ -193,24 +192,23 @@ void GetDomainConfigsResponse_anyOf_1::unsetCode() } std::shared_ptr GetDomainConfigsResponse_anyOf_1::getStatus() const { - return m_Status; + return m_Status.get(); } void GetDomainConfigsResponse_anyOf_1::setStatus(const std::shared_ptr& value) { m_Status = value; - m_StatusIsSet = true; } bool GetDomainConfigsResponse_anyOf_1::statusIsSet() const { - return m_StatusIsSet; + return m_Status.has_value(); } void GetDomainConfigsResponse_anyOf_1::unsetStatus() { - m_StatusIsSet = false; + m_Status.reset(); } } diff --git a/client/src/model/GetEmailTemplateDefinitionsResponse.cpp b/client/src/model/GetEmailTemplateDefinitionsResponse.cpp index 3675853..e42e459 100644 --- a/client/src/model/GetEmailTemplateDefinitionsResponse.cpp +++ b/client/src/model/GetEmailTemplateDefinitionsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetEmailTemplateDefinitionsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_DefinitionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("definitions"))] = ModelBase::toJson(m_Definitions); } diff --git a/client/src/model/GetEmailTemplateRenderErrorsResponse.cpp b/client/src/model/GetEmailTemplateRenderErrorsResponse.cpp index a368cc4..e3b18bb 100644 --- a/client/src/model/GetEmailTemplateRenderErrorsResponse.cpp +++ b/client/src/model/GetEmailTemplateRenderErrorsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetEmailTemplateRenderErrorsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_RenderErrorsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("renderErrors"))] = ModelBase::toJson(m_RenderErrors); } diff --git a/client/src/model/GetEmailTemplateResponse.cpp b/client/src/model/GetEmailTemplateResponse.cpp index c95ede5..4634b4d 100644 --- a/client/src/model/GetEmailTemplateResponse.cpp +++ b/client/src/model/GetEmailTemplateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetEmailTemplateResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_EmailTemplateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))] = ModelBase::toJson(m_EmailTemplate); } diff --git a/client/src/model/GetEmailTemplatesResponse.cpp b/client/src/model/GetEmailTemplatesResponse.cpp index 268abde..e5b1921 100644 --- a/client/src/model/GetEmailTemplatesResponse.cpp +++ b/client/src/model/GetEmailTemplatesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetEmailTemplatesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_EmailTemplatesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplates"))] = ModelBase::toJson(m_EmailTemplates); } diff --git a/client/src/model/GetEventLogResponse.cpp b/client/src/model/GetEventLogResponse.cpp index 12138c6..f6999f9 100644 --- a/client/src/model/GetEventLogResponse.cpp +++ b/client/src/model/GetEventLogResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetEventLogResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_EventsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("events"))] = ModelBase::toJson(m_Events); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetFeedPostsResponse.cpp b/client/src/model/GetFeedPostsResponse.cpp index 7159ad5..ceed365 100644 --- a/client/src/model/GetFeedPostsResponse.cpp +++ b/client/src/model/GetFeedPostsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetFeedPostsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_FeedPostsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedPosts"))] = ModelBase::toJson(m_FeedPosts); } diff --git a/client/src/model/GetGifsSearchResponse.cpp b/client/src/model/GetGifsSearchResponse.cpp index c2bb01d..bc74084 100644 --- a/client/src/model/GetGifsSearchResponse.cpp +++ b/client/src/model/GetGifsSearchResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value GetGifsSearchResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("images"))] = ModelBase::toJson(m_Images); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } diff --git a/client/src/model/GetGifsTrendingResponse.cpp b/client/src/model/GetGifsTrendingResponse.cpp index 25e2225..3c8f7cf 100644 --- a/client/src/model/GetGifsTrendingResponse.cpp +++ b/client/src/model/GetGifsTrendingResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value GetGifsTrendingResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("images"))] = ModelBase::toJson(m_Images); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } diff --git a/client/src/model/GetHashTagsResponse.cpp b/client/src/model/GetHashTagsResponse.cpp index 003dd81..8f95ca0 100644 --- a/client/src/model/GetHashTagsResponse.cpp +++ b/client/src/model/GetHashTagsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetHashTagsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_HashTagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); } diff --git a/client/src/model/GetModeratorResponse.cpp b/client/src/model/GetModeratorResponse.cpp index 8e0da03..c6beb73 100644 --- a/client/src/model/GetModeratorResponse.cpp +++ b/client/src/model/GetModeratorResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetModeratorResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderator"))] = ModelBase::toJson(m_Moderator); } diff --git a/client/src/model/GetModeratorsResponse.cpp b/client/src/model/GetModeratorsResponse.cpp index d54f898..6cd0a7c 100644 --- a/client/src/model/GetModeratorsResponse.cpp +++ b/client/src/model/GetModeratorsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetModeratorsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ModeratorsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderators"))] = ModelBase::toJson(m_Moderators); } diff --git a/client/src/model/GetMyNotificationsResponse.cpp b/client/src/model/GetMyNotificationsResponse.cpp index f67385e..7e71a46 100644 --- a/client/src/model/GetMyNotificationsResponse.cpp +++ b/client/src/model/GetMyNotificationsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,27 +42,27 @@ web::json::value GetMyNotificationsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_TranslationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); } if(m_IsSubscribedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSubscribed"))] = ModelBase::toJson(m_IsSubscribed); } if(m_HasMoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); } if(m_NotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notifications"))] = ModelBase::toJson(m_Notifications); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetNotificationCountResponse.cpp b/client/src/model/GetNotificationCountResponse.cpp index 40278a3..bf73b7f 100644 --- a/client/src/model/GetNotificationCountResponse.cpp +++ b/client/src/model/GetNotificationCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value GetNotificationCountResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } diff --git a/client/src/model/GetNotificationsResponse.cpp b/client/src/model/GetNotificationsResponse.cpp index ce220e9..5933b94 100644 --- a/client/src/model/GetNotificationsResponse.cpp +++ b/client/src/model/GetNotificationsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetNotificationsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_NotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notifications"))] = ModelBase::toJson(m_Notifications); } diff --git a/client/src/model/GetPageByURLIdAPIResponse.cpp b/client/src/model/GetPageByURLIdAPIResponse.cpp index 4f03cd2..34b5769 100644 --- a/client/src/model/GetPageByURLIdAPIResponse.cpp +++ b/client/src/model/GetPageByURLIdAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value GetPageByURLIdAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_PageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("page"))] = ModelBase::toJson(m_Page); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetPagesAPIResponse.cpp b/client/src/model/GetPagesAPIResponse.cpp index e32a6fe..72ff1d6 100644 --- a/client/src/model/GetPagesAPIResponse.cpp +++ b/client/src/model/GetPagesAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value GetPagesAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_PagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pages"))] = ModelBase::toJson(m_Pages); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetPendingWebhookEventCountResponse.cpp b/client/src/model/GetPendingWebhookEventCountResponse.cpp index ec4e835..03a3d1f 100644 --- a/client/src/model/GetPendingWebhookEventCountResponse.cpp +++ b/client/src/model/GetPendingWebhookEventCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value GetPendingWebhookEventCountResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } diff --git a/client/src/model/GetPendingWebhookEventsResponse.cpp b/client/src/model/GetPendingWebhookEventsResponse.cpp index 06f18f0..523f8b1 100644 --- a/client/src/model/GetPendingWebhookEventsResponse.cpp +++ b/client/src/model/GetPendingWebhookEventsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetPendingWebhookEventsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_PendingWebhookEventsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents"))] = ModelBase::toJson(m_PendingWebhookEvents); } diff --git a/client/src/model/GetPublicFeedPostsResponse.cpp b/client/src/model/GetPublicFeedPostsResponse.cpp index 9b7b3c0..2fa3012 100644 --- a/client/src/model/GetPublicFeedPostsResponse.cpp +++ b/client/src/model/GetPublicFeedPostsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,7 +22,6 @@ GetPublicFeedPostsResponse::GetPublicFeedPostsResponse() { m_StatusIsSet = false; m_FeedPostsIsSet = false; - m_UserIsSet = false; } GetPublicFeedPostsResponse::~GetPublicFeedPostsResponse() @@ -38,19 +37,19 @@ web::json::value GetPublicFeedPostsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_FeedPostsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedPosts"))] = ModelBase::toJson(m_FeedPosts); } - if(m_UserIsSet) - { + if(m_User.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); } return val; @@ -110,9 +109,9 @@ void GetPublicFeedPostsResponse::toMultipart(std::shared_ptr { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPosts")), m_FeedPosts)); } - if(m_UserIsSet) + if(m_User.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); } } @@ -191,24 +190,23 @@ void GetPublicFeedPostsResponse::unsetFeedPosts() } std::shared_ptr GetPublicFeedPostsResponse::getUser() const { - return m_User; + return m_User.get(); } void GetPublicFeedPostsResponse::setUser(const std::shared_ptr& value) { m_User = value; - m_UserIsSet = true; } bool GetPublicFeedPostsResponse::userIsSet() const { - return m_UserIsSet; + return m_User.has_value(); } void GetPublicFeedPostsResponse::unsetUser() { - m_UserIsSet = false; + m_User.reset(); } } diff --git a/client/src/model/GetPublicPagesResponse.cpp b/client/src/model/GetPublicPagesResponse.cpp index 63e9608..ae90666 100644 --- a/client/src/model/GetPublicPagesResponse.cpp +++ b/client/src/model/GetPublicPagesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,8 +20,6 @@ namespace model { GetPublicPagesResponse::GetPublicPagesResponse() { - m_NextCursor = utility::conversions::to_string_t(""); - m_NextCursorIsSet = false; m_PagesIsSet = false; m_StatusIsSet = false; } @@ -38,18 +36,18 @@ void GetPublicPagesResponse::validate() web::json::value GetPublicPagesResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_NextCursorIsSet) - { + if(m_NextCursor.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("nextCursor"))] = ModelBase::toJson(m_NextCursor); + val[utility::conversions::to_string_t(_XPLATSTR("nextCursor"))] = ModelBase::toJson(m_NextCursor.get()); } if(m_PagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pages"))] = ModelBase::toJson(m_Pages); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } @@ -103,9 +101,9 @@ void GetPublicPagesResponse::toMultipart(std::shared_ptr mult { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_NextCursorIsSet) + if(m_NextCursor.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextCursor")), m_NextCursor)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextCursor")), m_NextCursor.get())); } if(m_PagesIsSet) { @@ -150,24 +148,23 @@ bool GetPublicPagesResponse::fromMultiPart(std::shared_ptr mu utility::string_t GetPublicPagesResponse::getNextCursor() const { - return m_NextCursor; + return m_NextCursor.get(); } void GetPublicPagesResponse::setNextCursor(const utility::string_t& value) { m_NextCursor = value; - m_NextCursorIsSet = true; } bool GetPublicPagesResponse::nextCursorIsSet() const { - return m_NextCursorIsSet; + return m_NextCursor.has_value(); } void GetPublicPagesResponse::unsetNextCursor() { - m_NextCursorIsSet = false; + m_NextCursor.reset(); } std::vector> GetPublicPagesResponse::getPages() const { diff --git a/client/src/model/GetQuestionConfigResponse.cpp b/client/src/model/GetQuestionConfigResponse.cpp index e85ce0d..6b0c356 100644 --- a/client/src/model/GetQuestionConfigResponse.cpp +++ b/client/src/model/GetQuestionConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetQuestionConfigResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_QuestionConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionConfig"))] = ModelBase::toJson(m_QuestionConfig); } diff --git a/client/src/model/GetQuestionConfigsResponse.cpp b/client/src/model/GetQuestionConfigsResponse.cpp index 12bf169..b89c029 100644 --- a/client/src/model/GetQuestionConfigsResponse.cpp +++ b/client/src/model/GetQuestionConfigsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetQuestionConfigsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_QuestionConfigsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionConfigs"))] = ModelBase::toJson(m_QuestionConfigs); } diff --git a/client/src/model/GetQuestionResultResponse.cpp b/client/src/model/GetQuestionResultResponse.cpp index 0606e29..7081061 100644 --- a/client/src/model/GetQuestionResultResponse.cpp +++ b/client/src/model/GetQuestionResultResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetQuestionResultResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_QuestionResultIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionResult"))] = ModelBase::toJson(m_QuestionResult); } diff --git a/client/src/model/GetQuestionResultsResponse.cpp b/client/src/model/GetQuestionResultsResponse.cpp index 166df00..3345d9f 100644 --- a/client/src/model/GetQuestionResultsResponse.cpp +++ b/client/src/model/GetQuestionResultsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetQuestionResultsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_QuestionResultsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionResults"))] = ModelBase::toJson(m_QuestionResults); } diff --git a/client/src/model/GetSSOUserByEmailAPIResponse.cpp b/client/src/model/GetSSOUserByEmailAPIResponse.cpp index 930ae61..2a05664 100644 --- a/client/src/model/GetSSOUserByEmailAPIResponse.cpp +++ b/client/src/model/GetSSOUserByEmailAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value GetSSOUserByEmailAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetSSOUserByIdAPIResponse.cpp b/client/src/model/GetSSOUserByIdAPIResponse.cpp index 3efae99..c9bba13 100644 --- a/client/src/model/GetSSOUserByIdAPIResponse.cpp +++ b/client/src/model/GetSSOUserByIdAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value GetSSOUserByIdAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetSSOUsersResponse.cpp b/client/src/model/GetSSOUsersResponse.cpp index 87c9520..4fc9ba1 100644 --- a/client/src/model/GetSSOUsersResponse.cpp +++ b/client/src/model/GetSSOUsersResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value GetSSOUsersResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_UsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetSubscriptionsAPIResponse.cpp b/client/src/model/GetSubscriptionsAPIResponse.cpp index 76a7b20..02a9367 100644 --- a/client/src/model/GetSubscriptionsAPIResponse.cpp +++ b/client/src/model/GetSubscriptionsAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value GetSubscriptionsAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_SubscriptionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subscriptions"))] = ModelBase::toJson(m_Subscriptions); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetTenantDailyUsagesResponse.cpp b/client/src/model/GetTenantDailyUsagesResponse.cpp index 56286b3..bf2409f 100644 --- a/client/src/model/GetTenantDailyUsagesResponse.cpp +++ b/client/src/model/GetTenantDailyUsagesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantDailyUsagesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantDailyUsagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages"))] = ModelBase::toJson(m_TenantDailyUsages); } diff --git a/client/src/model/GetTenantManualBadgesResponse.cpp b/client/src/model/GetTenantManualBadgesResponse.cpp index 7673b78..bce1c72 100644 --- a/client/src/model/GetTenantManualBadgesResponse.cpp +++ b/client/src/model/GetTenantManualBadgesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantManualBadgesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_BadgesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetTenantPackageResponse.cpp b/client/src/model/GetTenantPackageResponse.cpp index 7c1dabb..0208744 100644 --- a/client/src/model/GetTenantPackageResponse.cpp +++ b/client/src/model/GetTenantPackageResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantPackageResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantPackageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))] = ModelBase::toJson(m_TenantPackage); } diff --git a/client/src/model/GetTenantPackagesResponse.cpp b/client/src/model/GetTenantPackagesResponse.cpp index dff3ca3..9e329f1 100644 --- a/client/src/model/GetTenantPackagesResponse.cpp +++ b/client/src/model/GetTenantPackagesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantPackagesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantPackagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantPackages"))] = ModelBase::toJson(m_TenantPackages); } diff --git a/client/src/model/GetTenantResponse.cpp b/client/src/model/GetTenantResponse.cpp index eb30325..3f50037 100644 --- a/client/src/model/GetTenantResponse.cpp +++ b/client/src/model/GetTenantResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenant"))] = ModelBase::toJson(m_Tenant); } diff --git a/client/src/model/GetTenantUserResponse.cpp b/client/src/model/GetTenantUserResponse.cpp index 3e48ac9..32b5fd9 100644 --- a/client/src/model/GetTenantUserResponse.cpp +++ b/client/src/model/GetTenantUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantUserResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantUser"))] = ModelBase::toJson(m_TenantUser); } diff --git a/client/src/model/GetTenantUsersResponse.cpp b/client/src/model/GetTenantUsersResponse.cpp index bd50638..a145094 100644 --- a/client/src/model/GetTenantUsersResponse.cpp +++ b/client/src/model/GetTenantUsersResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantUsersResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantUsers"))] = ModelBase::toJson(m_TenantUsers); } diff --git a/client/src/model/GetTenantsResponse.cpp b/client/src/model/GetTenantsResponse.cpp index 4714c5c..791613f 100644 --- a/client/src/model/GetTenantsResponse.cpp +++ b/client/src/model/GetTenantsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTenantsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TenantsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenants"))] = ModelBase::toJson(m_Tenants); } diff --git a/client/src/model/GetTicketResponse.cpp b/client/src/model/GetTicketResponse.cpp index cbb23d1..e6a4cc3 100644 --- a/client/src/model/GetTicketResponse.cpp +++ b/client/src/model/GetTicketResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,17 +38,17 @@ web::json::value GetTicketResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TicketIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); } if(m_AvailableStatesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("availableStates"))] = ModelBase::toJson(m_AvailableStates); } diff --git a/client/src/model/GetTicketsResponse.cpp b/client/src/model/GetTicketsResponse.cpp index 131c8c0..7d13412 100644 --- a/client/src/model/GetTicketsResponse.cpp +++ b/client/src/model/GetTicketsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTicketsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TicketsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tickets"))] = ModelBase::toJson(m_Tickets); } diff --git a/client/src/model/GetTranslationsResponse.cpp b/client/src/model/GetTranslationsResponse.cpp index 2bca002..238bd57 100644 --- a/client/src/model/GetTranslationsResponse.cpp +++ b/client/src/model/GetTranslationsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetTranslationsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_TranslationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetUserInternalProfileResponse.cpp b/client/src/model/GetUserInternalProfileResponse.cpp index 16a8abc..e3b4f73 100644 --- a/client/src/model/GetUserInternalProfileResponse.cpp +++ b/client/src/model/GetUserInternalProfileResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetUserInternalProfileResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ProfileIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("profile"))] = ModelBase::toJson(m_Profile); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetUserInternalProfileResponse_profile.cpp b/client/src/model/GetUserInternalProfileResponse_profile.cpp index d9de228..50df23b 100644 --- a/client/src/model/GetUserInternalProfileResponse_profile.cpp +++ b/client/src/model/GetUserInternalProfileResponse_profile.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,16 +22,12 @@ GetUserInternalProfileResponse_profile::GetUserInternalProfileResponse_profile() { m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; - m_FirstCommentDate = utility::datetime(); - m_FirstCommentDateIsSet = false; m_IpHash = utility::conversions::to_string_t(""); m_IpHashIsSet = false; m_CountryFlag = utility::conversions::to_string_t(""); m_CountryFlagIsSet = false; m_CountryCode = utility::conversions::to_string_t(""); m_CountryCodeIsSet = false; - m_WebsiteUrl = utility::conversions::to_string_t(""); - m_WebsiteUrlIsSet = false; m_Bio = utility::conversions::to_string_t(""); m_BioIsSet = false; m_Karma = 0.0; @@ -40,20 +36,10 @@ GetUserInternalProfileResponse_profile::GetUserInternalProfileResponse_profile() m_LocaleIsSet = false; m_Verified = false; m_VerifiedIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; m_DisplayName = utility::conversions::to_string_t(""); m_DisplayNameIsSet = false; m_Username = utility::conversions::to_string_t(""); m_UsernameIsSet = false; - m_CommenterEmail = utility::conversions::to_string_t(""); - m_CommenterEmailIsSet = false; - m_Email = utility::conversions::to_string_t(""); - m_EmailIsSet = false; - m_AnonUserId = utility::conversions::to_string_t(""); - m_AnonUserIdIsSet = false; - m_UserId = utility::conversions::to_string_t(""); - m_UserIdIsSet = false; } GetUserInternalProfileResponse_profile::~GetUserInternalProfileResponse_profile() @@ -69,89 +55,89 @@ web::json::value GetUserInternalProfileResponse_profile::toJson() const { web::json::value val = web::json::value::object(); if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_FirstCommentDateIsSet) - { + if(m_FirstCommentDate.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("firstCommentDate"))] = ModelBase::toJson(m_FirstCommentDate); + val[utility::conversions::to_string_t(_XPLATSTR("firstCommentDate"))] = ModelBase::toJson(m_FirstCommentDate.get()); } if(m_IpHashIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); } if(m_CountryFlagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("countryFlag"))] = ModelBase::toJson(m_CountryFlag); } if(m_CountryCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("countryCode"))] = ModelBase::toJson(m_CountryCode); } - if(m_WebsiteUrlIsSet) - { + if(m_WebsiteUrl.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); + val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl.get()); } if(m_BioIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bio"))] = ModelBase::toJson(m_Bio); } if(m_KarmaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("karma"))] = ModelBase::toJson(m_Karma); } if(m_LocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } - if(m_CommenterEmailIsSet) - { + if(m_CommenterEmail.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); } - if(m_EmailIsSet) - { + if(m_Email.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); } - if(m_AnonUserIdIsSet) - { + if(m_AnonUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } return val; @@ -361,9 +347,9 @@ void GetUserInternalProfileResponse_profile::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_FirstCommentDateIsSet) + if(m_FirstCommentDate.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("firstCommentDate")), m_FirstCommentDate)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("firstCommentDate")), m_FirstCommentDate.get())); } if(m_IpHashIsSet) { @@ -377,9 +363,9 @@ void GetUserInternalProfileResponse_profile::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("countryCode")), m_CountryCode)); } - if(m_WebsiteUrlIsSet) + if(m_WebsiteUrl.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("websiteUrl")), m_WebsiteUrl)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("websiteUrl")), m_WebsiteUrl.get())); } if(m_BioIsSet) { @@ -397,9 +383,9 @@ void GetUserInternalProfileResponse_profile::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } if(m_DisplayNameIsSet) { @@ -409,21 +395,21 @@ void GetUserInternalProfileResponse_profile::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username)); } - if(m_CommenterEmailIsSet) + if(m_CommenterEmail.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); } - if(m_EmailIsSet) + if(m_Email.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); } - if(m_AnonUserIdIsSet) + if(m_AnonUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } } @@ -565,24 +551,23 @@ void GetUserInternalProfileResponse_profile::unsetCommenterName() } utility::datetime GetUserInternalProfileResponse_profile::getFirstCommentDate() const { - return m_FirstCommentDate; + return m_FirstCommentDate.get(); } void GetUserInternalProfileResponse_profile::setFirstCommentDate(const utility::datetime& value) { m_FirstCommentDate = value; - m_FirstCommentDateIsSet = true; } bool GetUserInternalProfileResponse_profile::firstCommentDateIsSet() const { - return m_FirstCommentDateIsSet; + return m_FirstCommentDate.has_value(); } void GetUserInternalProfileResponse_profile::unsetFirstCommentDate() { - m_FirstCommentDateIsSet = false; + m_FirstCommentDate.reset(); } utility::string_t GetUserInternalProfileResponse_profile::getIpHash() const { @@ -649,24 +634,23 @@ void GetUserInternalProfileResponse_profile::unsetCountryCode() } utility::string_t GetUserInternalProfileResponse_profile::getWebsiteUrl() const { - return m_WebsiteUrl; + return m_WebsiteUrl.get(); } void GetUserInternalProfileResponse_profile::setWebsiteUrl(const utility::string_t& value) { m_WebsiteUrl = value; - m_WebsiteUrlIsSet = true; } bool GetUserInternalProfileResponse_profile::websiteUrlIsSet() const { - return m_WebsiteUrlIsSet; + return m_WebsiteUrl.has_value(); } void GetUserInternalProfileResponse_profile::unsetWebsiteUrl() { - m_WebsiteUrlIsSet = false; + m_WebsiteUrl.reset(); } utility::string_t GetUserInternalProfileResponse_profile::getBio() const { @@ -752,24 +736,23 @@ void GetUserInternalProfileResponse_profile::unsetVerified() } utility::string_t GetUserInternalProfileResponse_profile::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void GetUserInternalProfileResponse_profile::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool GetUserInternalProfileResponse_profile::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void GetUserInternalProfileResponse_profile::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } utility::string_t GetUserInternalProfileResponse_profile::getDisplayName() const { @@ -815,87 +798,83 @@ void GetUserInternalProfileResponse_profile::unsetUsername() } utility::string_t GetUserInternalProfileResponse_profile::getCommenterEmail() const { - return m_CommenterEmail; + return m_CommenterEmail.get(); } void GetUserInternalProfileResponse_profile::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; - m_CommenterEmailIsSet = true; } bool GetUserInternalProfileResponse_profile::commenterEmailIsSet() const { - return m_CommenterEmailIsSet; + return m_CommenterEmail.has_value(); } void GetUserInternalProfileResponse_profile::unsetCommenterEmail() { - m_CommenterEmailIsSet = false; + m_CommenterEmail.reset(); } utility::string_t GetUserInternalProfileResponse_profile::getEmail() const { - return m_Email; + return m_Email.get(); } void GetUserInternalProfileResponse_profile::setEmail(const utility::string_t& value) { m_Email = value; - m_EmailIsSet = true; } bool GetUserInternalProfileResponse_profile::emailIsSet() const { - return m_EmailIsSet; + return m_Email.has_value(); } void GetUserInternalProfileResponse_profile::unsetEmail() { - m_EmailIsSet = false; + m_Email.reset(); } utility::string_t GetUserInternalProfileResponse_profile::getAnonUserId() const { - return m_AnonUserId; + return m_AnonUserId.get(); } void GetUserInternalProfileResponse_profile::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; - m_AnonUserIdIsSet = true; } bool GetUserInternalProfileResponse_profile::anonUserIdIsSet() const { - return m_AnonUserIdIsSet; + return m_AnonUserId.has_value(); } void GetUserInternalProfileResponse_profile::unsetAnonUserId() { - m_AnonUserIdIsSet = false; + m_AnonUserId.reset(); } utility::string_t GetUserInternalProfileResponse_profile::getUserId() const { - return m_UserId; + return m_UserId.get(); } void GetUserInternalProfileResponse_profile::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool GetUserInternalProfileResponse_profile::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void GetUserInternalProfileResponse_profile::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } } diff --git a/client/src/model/GetUserManualBadgesResponse.cpp b/client/src/model/GetUserManualBadgesResponse.cpp index cd5376a..8ce889c 100644 --- a/client/src/model/GetUserManualBadgesResponse.cpp +++ b/client/src/model/GetUserManualBadgesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetUserManualBadgesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_BadgesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetUserNotificationCountResponse.cpp b/client/src/model/GetUserNotificationCountResponse.cpp index 83357e9..5884a2c 100644 --- a/client/src/model/GetUserNotificationCountResponse.cpp +++ b/client/src/model/GetUserNotificationCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value GetUserNotificationCountResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } diff --git a/client/src/model/GetUserPresenceStatusesResponse.cpp b/client/src/model/GetUserPresenceStatusesResponse.cpp index a83e64e..7aaec97 100644 --- a/client/src/model/GetUserPresenceStatusesResponse.cpp +++ b/client/src/model/GetUserPresenceStatusesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetUserPresenceStatusesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserIdsOnlineIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userIdsOnline"))] = ModelBase::toJson(m_UserIdsOnline); } diff --git a/client/src/model/GetUserResponse.cpp b/client/src/model/GetUserResponse.cpp index 4791610..d94ef3f 100644 --- a/client/src/model/GetUserResponse.cpp +++ b/client/src/model/GetUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetUserResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } diff --git a/client/src/model/GetUserTrustFactorResponse.cpp b/client/src/model/GetUserTrustFactorResponse.cpp index fb70966..0358e29 100644 --- a/client/src/model/GetUserTrustFactorResponse.cpp +++ b/client/src/model/GetUserTrustFactorResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,17 +40,17 @@ web::json::value GetUserTrustFactorResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ManualTrustFactorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor"))] = ModelBase::toJson(m_ManualTrustFactor); } if(m_AutoTrustFactorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor"))] = ModelBase::toJson(m_AutoTrustFactor); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetV1PageLikes.cpp b/client/src/model/GetV1PageLikes.cpp index 1b7541b..ea69ef6 100644 --- a/client/src/model/GetV1PageLikes.cpp +++ b/client/src/model/GetV1PageLikes.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -44,27 +44,27 @@ web::json::value GetV1PageLikes::toJson() const { web::json::value val = web::json::value::object(); if(m_UrlIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); } if(m_DidLikeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("didLike"))] = ModelBase::toJson(m_DidLike); } if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } if(m_LikeCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("likeCount"))] = ModelBase::toJson(m_LikeCount); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetV2PageReactUsersResponse.cpp b/client/src/model/GetV2PageReactUsersResponse.cpp index 7e497e3..533d098 100644 --- a/client/src/model/GetV2PageReactUsersResponse.cpp +++ b/client/src/model/GetV2PageReactUsersResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GetV2PageReactUsersResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_UserNamesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userNames"))] = ModelBase::toJson(m_UserNames); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetV2PageReacts.cpp b/client/src/model/GetV2PageReacts.cpp index 990c860..2ba7a29 100644 --- a/client/src/model/GetV2PageReacts.cpp +++ b/client/src/model/GetV2PageReacts.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,17 +38,17 @@ web::json::value GetV2PageReacts::toJson() const { web::json::value val = web::json::value::object(); if(m_ReactedIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reactedIds"))] = ModelBase::toJson(m_ReactedIds); } if(m_CountsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("counts"))] = ModelBase::toJson(m_Counts); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GetVotesForUserResponse.cpp b/client/src/model/GetVotesForUserResponse.cpp index 8cd3c03..aaa06de 100644 --- a/client/src/model/GetVotesForUserResponse.cpp +++ b/client/src/model/GetVotesForUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,22 +39,22 @@ web::json::value GetVotesForUserResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_AppliedAuthorizedVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))] = ModelBase::toJson(m_AppliedAuthorizedVotes); } if(m_AppliedAnonymousVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))] = ModelBase::toJson(m_AppliedAnonymousVotes); } if(m_PendingVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))] = ModelBase::toJson(m_PendingVotes); } diff --git a/client/src/model/GetVotesResponse.cpp b/client/src/model/GetVotesResponse.cpp index 1188f1a..dbb64a8 100644 --- a/client/src/model/GetVotesResponse.cpp +++ b/client/src/model/GetVotesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,22 +39,22 @@ web::json::value GetVotesResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_AppliedAuthorizedVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))] = ModelBase::toJson(m_AppliedAuthorizedVotes); } if(m_AppliedAnonymousVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))] = ModelBase::toJson(m_AppliedAnonymousVotes); } if(m_PendingVotesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))] = ModelBase::toJson(m_PendingVotes); } diff --git a/client/src/model/GifGetLargeResponse.cpp b/client/src/model/GifGetLargeResponse.cpp index 1c11f96..d3976fe 100644 --- a/client/src/model/GifGetLargeResponse.cpp +++ b/client/src/model/GifGetLargeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value GifGetLargeResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_SrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("src"))] = ModelBase::toJson(m_Src); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GifRating.cpp b/client/src/model/GifRating.cpp index 450fecc..04bf1da 100644 --- a/client/src/model/GifRating.cpp +++ b/client/src/model/GifRating.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GifSearchInternalError.cpp b/client/src/model/GifSearchInternalError.cpp index 5a172ba..01927f6 100644 --- a/client/src/model/GifSearchInternalError.cpp +++ b/client/src/model/GifSearchInternalError.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value GifSearchInternalError::toJson() const { web::json::value val = web::json::value::object(); if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GifSearchResponse.cpp b/client/src/model/GifSearchResponse.cpp index 1fef1f4..55ef3dc 100644 --- a/client/src/model/GifSearchResponse.cpp +++ b/client/src/model/GifSearchResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value GifSearchResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("images"))] = ModelBase::toJson(m_Images); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/GifSearchResponse_images_inner_inner.cpp b/client/src/model/GifSearchResponse_images_inner_inner.cpp index 5f826f5..e00dc1f 100644 --- a/client/src/model/GifSearchResponse_images_inner_inner.cpp +++ b/client/src/model/GifSearchResponse_images_inner_inner.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/HeaderAccountNotification.cpp b/client/src/model/HeaderAccountNotification.cpp index 303792f..668caac 100644 --- a/client/src/model/HeaderAccountNotification.cpp +++ b/client/src/model/HeaderAccountNotification.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -26,18 +26,10 @@ HeaderAccountNotification::HeaderAccountNotification() m_TitleIsSet = false; m_Message = utility::conversions::to_string_t(""); m_MessageIsSet = false; - m_MessagesByLocaleIsSet = false; - m_DatesIsSet = false; m_Severity = utility::conversions::to_string_t(""); m_SeverityIsSet = false; - m_LinkUrl = utility::conversions::to_string_t(""); - m_LinkUrlIsSet = false; - m_LinkText = utility::conversions::to_string_t(""); - m_LinkTextIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; - m_Type = utility::conversions::to_string_t(""); - m_TypeIsSet = false; } HeaderAccountNotification::~HeaderAccountNotification() @@ -53,54 +45,54 @@ web::json::value HeaderAccountNotification::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_MessageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("message"))] = ModelBase::toJson(m_Message); } - if(m_MessagesByLocaleIsSet) - { + if(m_MessagesByLocale.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("messagesByLocale"))] = ModelBase::toJson(m_MessagesByLocale); + val[utility::conversions::to_string_t(_XPLATSTR("messagesByLocale"))] = ModelBase::toJson(m_MessagesByLocale.get()); } - if(m_DatesIsSet) - { + if(m_Dates.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("dates"))] = ModelBase::toJson(m_Dates); + val[utility::conversions::to_string_t(_XPLATSTR("dates"))] = ModelBase::toJson(m_Dates.get()); } if(m_SeverityIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("severity"))] = ModelBase::toJson(m_Severity); } - if(m_LinkUrlIsSet) - { + if(m_LinkUrl.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("linkUrl"))] = ModelBase::toJson(m_LinkUrl); + val[utility::conversions::to_string_t(_XPLATSTR("linkUrl"))] = ModelBase::toJson(m_LinkUrl.get()); } - if(m_LinkTextIsSet) - { + if(m_LinkText.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("linkText"))] = ModelBase::toJson(m_LinkText); + val[utility::conversions::to_string_t(_XPLATSTR("linkText"))] = ModelBase::toJson(m_LinkText.get()); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } - if(m_TypeIsSet) - { + if(m_Type.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); + val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type.get()); } return val; @@ -241,33 +233,33 @@ void HeaderAccountNotification::toMultipart(std::shared_ptr m { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("message")), m_Message)); } - if(m_MessagesByLocaleIsSet) + if(m_MessagesByLocale.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("messagesByLocale")), m_MessagesByLocale)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("messagesByLocale")), m_MessagesByLocale.get())); } - if(m_DatesIsSet) + if(m_Dates.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("dates")), m_Dates)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("dates")), m_Dates.get())); } if(m_SeverityIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("severity")), m_Severity)); } - if(m_LinkUrlIsSet) + if(m_LinkUrl.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("linkUrl")), m_LinkUrl)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("linkUrl")), m_LinkUrl.get())); } - if(m_LinkTextIsSet) + if(m_LinkText.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("linkText")), m_LinkText)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("linkText")), m_LinkText.get())); } if(m_CreatedAtIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); } - if(m_TypeIsSet) + if(m_Type.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type.get())); } } @@ -409,45 +401,43 @@ void HeaderAccountNotification::unsetMessage() } std::map HeaderAccountNotification::getMessagesByLocale() const { - return m_MessagesByLocale; + return m_MessagesByLocale.get(); } void HeaderAccountNotification::setMessagesByLocale(const std::map& value) { m_MessagesByLocale = value; - m_MessagesByLocaleIsSet = true; } bool HeaderAccountNotification::messagesByLocaleIsSet() const { - return m_MessagesByLocaleIsSet; + return m_MessagesByLocale.has_value(); } void HeaderAccountNotification::unsetMessagesByLocale() { - m_MessagesByLocaleIsSet = false; + m_MessagesByLocale.reset(); } std::map HeaderAccountNotification::getDates() const { - return m_Dates; + return m_Dates.get(); } void HeaderAccountNotification::setDates(const std::map& value) { m_Dates = value; - m_DatesIsSet = true; } bool HeaderAccountNotification::datesIsSet() const { - return m_DatesIsSet; + return m_Dates.has_value(); } void HeaderAccountNotification::unsetDates() { - m_DatesIsSet = false; + m_Dates.reset(); } utility::string_t HeaderAccountNotification::getSeverity() const { @@ -472,45 +462,43 @@ void HeaderAccountNotification::unsetSeverity() } utility::string_t HeaderAccountNotification::getLinkUrl() const { - return m_LinkUrl; + return m_LinkUrl.get(); } void HeaderAccountNotification::setLinkUrl(const utility::string_t& value) { m_LinkUrl = value; - m_LinkUrlIsSet = true; } bool HeaderAccountNotification::linkUrlIsSet() const { - return m_LinkUrlIsSet; + return m_LinkUrl.has_value(); } void HeaderAccountNotification::unsetLinkUrl() { - m_LinkUrlIsSet = false; + m_LinkUrl.reset(); } utility::string_t HeaderAccountNotification::getLinkText() const { - return m_LinkText; + return m_LinkText.get(); } void HeaderAccountNotification::setLinkText(const utility::string_t& value) { m_LinkText = value; - m_LinkTextIsSet = true; } bool HeaderAccountNotification::linkTextIsSet() const { - return m_LinkTextIsSet; + return m_LinkText.has_value(); } void HeaderAccountNotification::unsetLinkText() { - m_LinkTextIsSet = false; + m_LinkText.reset(); } utility::datetime HeaderAccountNotification::getCreatedAt() const { @@ -535,24 +523,23 @@ void HeaderAccountNotification::unsetCreatedAt() } utility::string_t HeaderAccountNotification::getType() const { - return m_Type; + return m_Type.get(); } void HeaderAccountNotification::setType(const utility::string_t& value) { m_Type = value; - m_TypeIsSet = true; } bool HeaderAccountNotification::typeIsSet() const { - return m_TypeIsSet; + return m_Type.has_value(); } void HeaderAccountNotification::unsetType() { - m_TypeIsSet = false; + m_Type.reset(); } } diff --git a/client/src/model/HeaderState.cpp b/client/src/model/HeaderState.cpp index 98cfa0e..99ef68c 100644 --- a/client/src/model/HeaderState.cpp +++ b/client/src/model/HeaderState.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,32 +43,32 @@ web::json::value HeaderState::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_NotificationTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("NotificationType"))] = ModelBase::toJson(m_NotificationType); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_UserIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); } if(m_NotificationCountsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationCounts"))] = ModelBase::toJson(m_NotificationCounts); } if(m_AccountNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("accountNotifications"))] = ModelBase::toJson(m_AccountNotifications); } diff --git a/client/src/model/IgnoredResponse.cpp b/client/src/model/IgnoredResponse.cpp index 3890074..7ce10ed 100644 --- a/client/src/model/IgnoredResponse.cpp +++ b/client/src/model/IgnoredResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value IgnoredResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_NoteIsSet) - { + { utility::string_t refVal = fromNoteEnum(m_Note); val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); diff --git a/client/src/model/ImageContentProfanityLevel.cpp b/client/src/model/ImageContentProfanityLevel.cpp index f929b17..8424aa3 100644 --- a/client/src/model/ImageContentProfanityLevel.cpp +++ b/client/src/model/ImageContentProfanityLevel.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ImportedAgentApprovalNotificationFrequency.cpp b/client/src/model/ImportedAgentApprovalNotificationFrequency.cpp index f97dd2b..3c7365c 100644 --- a/client/src/model/ImportedAgentApprovalNotificationFrequency.cpp +++ b/client/src/model/ImportedAgentApprovalNotificationFrequency.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ImportedSiteType.cpp b/client/src/model/ImportedSiteType.cpp index 84007d5..e714b2e 100644 --- a/client/src/model/ImportedSiteType.cpp +++ b/client/src/model/ImportedSiteType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/LiveEvent.cpp b/client/src/model/LiveEvent.cpp index 87adc74..e2adbf1 100644 --- a/client/src/model/LiveEvent.cpp +++ b/client/src/model/LiveEvent.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -58,87 +58,87 @@ web::json::value LiveEvent::toJson() const { web::json::value val = web::json::value::object(); if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_TimestampIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("timestamp"))] = ModelBase::toJson(m_Timestamp); } if(m_TsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ts"))] = ModelBase::toJson(m_Ts); } if(m_BroadcastIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("broadcastId"))] = ModelBase::toJson(m_BroadcastId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_BadgesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } if(m_NotificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notification"))] = ModelBase::toJson(m_Notification); } if(m_VoteIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("vote"))] = ModelBase::toJson(m_Vote); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_FeedPostIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); } if(m_ExtraInfoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("extraInfo"))] = ModelBase::toJson(m_ExtraInfo); } if(m_ConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("config"))] = ModelBase::toJson(m_Config); } if(m_IsClosedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isClosed"))] = ModelBase::toJson(m_IsClosed); } if(m_UjIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("uj"))] = ModelBase::toJson(m_Uj); } if(m_UlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ul"))] = ModelBase::toJson(m_Ul); } if(m_ScIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sc"))] = ModelBase::toJson(m_Sc); } if(m_ChangesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("changes"))] = ModelBase::toJson(m_Changes); } diff --git a/client/src/model/LiveEventType.cpp b/client/src/model/LiveEventType.cpp index ce58e7a..90d25d7 100644 --- a/client/src/model/LiveEventType.cpp +++ b/client/src/model/LiveEventType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/LiveEvent_extraInfo.cpp b/client/src/model/LiveEvent_extraInfo.cpp index 9069d07..225324c 100644 --- a/client/src/model/LiveEvent_extraInfo.cpp +++ b/client/src/model/LiveEvent_extraInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value LiveEvent_extraInfo::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentPositionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentPositions"))] = ModelBase::toJson(m_CommentPositions); } diff --git a/client/src/model/MediaAsset.cpp b/client/src/model/MediaAsset.cpp index b3b15d1..db971ef 100644 --- a/client/src/model/MediaAsset.cpp +++ b/client/src/model/MediaAsset.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value MediaAsset::toJson() const { web::json::value val = web::json::value::object(); if(m_wIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("w"))] = ModelBase::toJson(m_w); } if(m_hIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("h"))] = ModelBase::toJson(m_h); } if(m_SrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("src"))] = ModelBase::toJson(m_Src); } diff --git a/client/src/model/MentionAutoCompleteMode.cpp b/client/src/model/MentionAutoCompleteMode.cpp index d38d63d..11d4a76 100644 --- a/client/src/model/MentionAutoCompleteMode.cpp +++ b/client/src/model/MentionAutoCompleteMode.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/MetaItem.cpp b/client/src/model/MetaItem.cpp index 7bca570..a1b9af7 100644 --- a/client/src/model/MetaItem.cpp +++ b/client/src/model/MetaItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value MetaItem::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_ValuesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("values"))] = ModelBase::toJson(m_Values); } diff --git a/client/src/model/ModerationAPIChildCommentsResponse.cpp b/client/src/model/ModerationAPIChildCommentsResponse.cpp index 8d02b50..dc89677 100644 --- a/client/src/model/ModerationAPIChildCommentsResponse.cpp +++ b/client/src/model/ModerationAPIChildCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value ModerationAPIChildCommentsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/ModerationAPIComment.cpp b/client/src/model/ModerationAPIComment.cpp index 7a39522..bd82a53 100644 --- a/client/src/model/ModerationAPIComment.cpp +++ b/client/src/model/ModerationAPIComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,36 +39,12 @@ ModerationAPIComment::ModerationAPIComment() m_UrlIdIsSet = false; m_Url = utility::conversions::to_string_t(""); m_UrlIsSet = false; - m_PageTitle = utility::conversions::to_string_t(""); - m_PageTitleIsSet = false; - m_UserId = nullptr; - m_UserIdIsSet = false; - m_AnonUserId = utility::conversions::to_string_t(""); - m_AnonUserIdIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; - m_CommenterLink = utility::conversions::to_string_t(""); - m_CommenterLinkIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; - m_ParentId = utility::conversions::to_string_t(""); - m_ParentIdIsSet = false; - m_date = utility::datetime(); - m_dateIsSet = false; - m_LocalDateString = utility::conversions::to_string_t(""); - m_LocalDateStringIsSet = false; - m_Votes = 0.0; - m_VotesIsSet = false; - m_VotesUp = 0.0; - m_VotesUpIsSet = false; - m_VotesDown = 0.0; - m_VotesDownIsSet = false; - m_ExpireAt = utility::datetime(); - m_ExpireAtIsSet = false; m_Reviewed = false; m_ReviewedIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; m_PermNotSpam = false; @@ -79,23 +55,12 @@ ModerationAPIComment::ModerationAPIComment() m_HasCodeIsSet = false; m_Approved = false; m_ApprovedIsSet = false; - m_Locale = utility::conversions::to_string_t(""); - m_LocaleIsSet = false; m_IsBannedUser = false; m_IsBannedUserIsSet = false; m_IsByAdmin = false; m_IsByAdminIsSet = false; m_IsByModerator = false; m_IsByModeratorIsSet = false; - m_IsPinned = false; - m_IsPinnedIsSet = false; - m_IsLocked = false; - m_IsLockedIsSet = false; - m_FlagCount = 0.0; - m_FlagCountIsSet = false; - m_DisplayLabel = utility::conversions::to_string_t(""); - m_DisplayLabelIsSet = false; - m_BadgesIsSet = false; m_Verified = false; m_VerifiedIsSet = false; m_FeedbackIdsIsSet = false; @@ -116,212 +81,212 @@ web::json::value ModerationAPIComment::toJson() const { web::json::value val = web::json::value::object(); if(m_IsLocalDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isLocalDeleted"))] = ModelBase::toJson(m_IsLocalDeleted); } if(m_ReplyCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("replyCount"))] = ModelBase::toJson(m_ReplyCount); } if(m_FeedbackResultsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackResults"))] = ModelBase::toJson(m_FeedbackResults); } if(m_IsVotedUpIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isVotedUp"))] = ModelBase::toJson(m_IsVotedUp); } if(m_IsVotedDownIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isVotedDown"))] = ModelBase::toJson(m_IsVotedDown); } if(m_MyVoteIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("myVoteId"))] = ModelBase::toJson(m_MyVoteId); } if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } - if(m_PageTitleIsSet) - { + if(m_PageTitle.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } - if(m_AnonUserIdIsSet) - { + if(m_AnonUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterLinkIsSet) - { + if(m_CommenterLink.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } - if(m_ParentIdIsSet) - { + if(m_ParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); } - if(m_dateIsSet) - { + if(m_date.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); } - if(m_LocalDateStringIsSet) - { + if(m_LocalDateString.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); + val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString.get()); } - if(m_VotesIsSet) - { + if(m_Votes.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); } - if(m_VotesUpIsSet) - { + if(m_VotesUp.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); } - if(m_VotesDownIsSet) - { + if(m_VotesDown.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); } - if(m_ExpireAtIsSet) - { + if(m_ExpireAt.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt.get()); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } if(m_PermNotSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("permNotSpam"))] = ModelBase::toJson(m_PermNotSpam); } if(m_HasLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLinks"))] = ModelBase::toJson(m_HasLinks); } if(m_HasCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasCode"))] = ModelBase::toJson(m_HasCode); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } - if(m_LocaleIsSet) - { + if(m_Locale.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale.get()); } if(m_IsBannedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))] = ModelBase::toJson(m_IsBannedUser); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } - if(m_IsPinnedIsSet) - { + if(m_IsPinned.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); } - if(m_IsLockedIsSet) - { + if(m_IsLocked.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); } - if(m_FlagCountIsSet) - { + if(m_FlagCount.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); } - if(m_DisplayLabelIsSet) - { + if(m_DisplayLabel.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); } - if(m_BadgesIsSet) - { + if(m_Badges.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } @@ -844,65 +809,65 @@ void ModerationAPIComment::toMultipart(std::shared_ptr multip { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } - if(m_PageTitleIsSet) + if(m_PageTitle.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } - if(m_AnonUserIdIsSet) + if(m_AnonUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); } if(m_CommenterNameIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterLinkIsSet) + if(m_CommenterLink.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); } if(m_CommentHTMLIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); } - if(m_ParentIdIsSet) + if(m_ParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); } - if(m_dateIsSet) + if(m_date.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); } - if(m_LocalDateStringIsSet) + if(m_LocalDateString.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString.get())); } - if(m_VotesIsSet) + if(m_Votes.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); } - if(m_VotesUpIsSet) + if(m_VotesUp.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); } - if(m_VotesDownIsSet) + if(m_VotesDown.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); } - if(m_ExpireAtIsSet) + if(m_ExpireAt.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt.get())); } if(m_ReviewedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reviewed")), m_Reviewed)); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } if(m_IsSpamIsSet) { @@ -924,9 +889,9 @@ void ModerationAPIComment::toMultipart(std::shared_ptr multip { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); } - if(m_LocaleIsSet) + if(m_Locale.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale.get())); } if(m_IsBannedUserIsSet) { @@ -940,25 +905,25 @@ void ModerationAPIComment::toMultipart(std::shared_ptr multip { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); } - if(m_IsPinnedIsSet) + if(m_IsPinned.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); } - if(m_IsLockedIsSet) + if(m_IsLocked.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); } - if(m_FlagCountIsSet) + if(m_FlagCount.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); } - if(m_DisplayLabelIsSet) + if(m_DisplayLabel.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); } - if(m_BadgesIsSet) + if(m_Badges.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); } if(m_VerifiedIsSet) { @@ -1447,66 +1412,63 @@ void ModerationAPIComment::unsetUrl() } utility::string_t ModerationAPIComment::getPageTitle() const { - return m_PageTitle; + return m_PageTitle.get(); } void ModerationAPIComment::setPageTitle(const utility::string_t& value) { m_PageTitle = value; - m_PageTitleIsSet = true; } bool ModerationAPIComment::pageTitleIsSet() const { - return m_PageTitleIsSet; + return m_PageTitle.has_value(); } void ModerationAPIComment::unsetPageTitle() { - m_PageTitleIsSet = false; + m_PageTitle.reset(); } utility::string_t ModerationAPIComment::getUserId() const { - return m_UserId; + return m_UserId.get(); } void ModerationAPIComment::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool ModerationAPIComment::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void ModerationAPIComment::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t ModerationAPIComment::getAnonUserId() const { - return m_AnonUserId; + return m_AnonUserId.get(); } void ModerationAPIComment::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; - m_AnonUserIdIsSet = true; } bool ModerationAPIComment::anonUserIdIsSet() const { - return m_AnonUserIdIsSet; + return m_AnonUserId.has_value(); } void ModerationAPIComment::unsetAnonUserId() { - m_AnonUserIdIsSet = false; + m_AnonUserId.reset(); } utility::string_t ModerationAPIComment::getCommenterName() const { @@ -1531,24 +1493,23 @@ void ModerationAPIComment::unsetCommenterName() } utility::string_t ModerationAPIComment::getCommenterLink() const { - return m_CommenterLink; + return m_CommenterLink.get(); } void ModerationAPIComment::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; - m_CommenterLinkIsSet = true; } bool ModerationAPIComment::commenterLinkIsSet() const { - return m_CommenterLinkIsSet; + return m_CommenterLink.has_value(); } void ModerationAPIComment::unsetCommenterLink() { - m_CommenterLinkIsSet = false; + m_CommenterLink.reset(); } utility::string_t ModerationAPIComment::getCommentHTML() const { @@ -1573,147 +1534,140 @@ void ModerationAPIComment::unsetCommentHTML() } utility::string_t ModerationAPIComment::getParentId() const { - return m_ParentId; + return m_ParentId.get(); } void ModerationAPIComment::setParentId(const utility::string_t& value) { m_ParentId = value; - m_ParentIdIsSet = true; } bool ModerationAPIComment::parentIdIsSet() const { - return m_ParentIdIsSet; + return m_ParentId.has_value(); } void ModerationAPIComment::unsetParentId() { - m_ParentIdIsSet = false; + m_ParentId.reset(); } utility::datetime ModerationAPIComment::getDate() const { - return m_date; + return m_date.get(); } void ModerationAPIComment::setDate(const utility::datetime& value) { m_date = value; - m_dateIsSet = true; } bool ModerationAPIComment::dateIsSet() const { - return m_dateIsSet; + return m_date.has_value(); } void ModerationAPIComment::unsetdate() { - m_dateIsSet = false; + m_date.reset(); } utility::string_t ModerationAPIComment::getLocalDateString() const { - return m_LocalDateString; + return m_LocalDateString.get(); } void ModerationAPIComment::setLocalDateString(const utility::string_t& value) { m_LocalDateString = value; - m_LocalDateStringIsSet = true; } bool ModerationAPIComment::localDateStringIsSet() const { - return m_LocalDateStringIsSet; + return m_LocalDateString.has_value(); } void ModerationAPIComment::unsetLocalDateString() { - m_LocalDateStringIsSet = false; + m_LocalDateString.reset(); } double ModerationAPIComment::getVotes() const { - return m_Votes; + return m_Votes.get(); } void ModerationAPIComment::setVotes(double value) { m_Votes = value; - m_VotesIsSet = true; } bool ModerationAPIComment::votesIsSet() const { - return m_VotesIsSet; + return m_Votes.has_value(); } void ModerationAPIComment::unsetVotes() { - m_VotesIsSet = false; + m_Votes.reset(); } double ModerationAPIComment::getVotesUp() const { - return m_VotesUp; + return m_VotesUp.get(); } void ModerationAPIComment::setVotesUp(double value) { m_VotesUp = value; - m_VotesUpIsSet = true; } bool ModerationAPIComment::votesUpIsSet() const { - return m_VotesUpIsSet; + return m_VotesUp.has_value(); } void ModerationAPIComment::unsetVotesUp() { - m_VotesUpIsSet = false; + m_VotesUp.reset(); } double ModerationAPIComment::getVotesDown() const { - return m_VotesDown; + return m_VotesDown.get(); } void ModerationAPIComment::setVotesDown(double value) { m_VotesDown = value; - m_VotesDownIsSet = true; } bool ModerationAPIComment::votesDownIsSet() const { - return m_VotesDownIsSet; + return m_VotesDown.has_value(); } void ModerationAPIComment::unsetVotesDown() { - m_VotesDownIsSet = false; + m_VotesDown.reset(); } utility::datetime ModerationAPIComment::getExpireAt() const { - return m_ExpireAt; + return m_ExpireAt.get(); } void ModerationAPIComment::setExpireAt(const utility::datetime& value) { m_ExpireAt = value; - m_ExpireAtIsSet = true; } bool ModerationAPIComment::expireAtIsSet() const { - return m_ExpireAtIsSet; + return m_ExpireAt.has_value(); } void ModerationAPIComment::unsetExpireAt() { - m_ExpireAtIsSet = false; + m_ExpireAt.reset(); } bool ModerationAPIComment::isReviewed() const { @@ -1737,24 +1691,23 @@ void ModerationAPIComment::unsetReviewed() } utility::string_t ModerationAPIComment::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void ModerationAPIComment::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool ModerationAPIComment::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void ModerationAPIComment::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } bool ModerationAPIComment::isIsSpam() const { @@ -1858,24 +1811,23 @@ void ModerationAPIComment::unsetApproved() } utility::string_t ModerationAPIComment::getLocale() const { - return m_Locale; + return m_Locale.get(); } void ModerationAPIComment::setLocale(const utility::string_t& value) { m_Locale = value; - m_LocaleIsSet = true; } bool ModerationAPIComment::localeIsSet() const { - return m_LocaleIsSet; + return m_Locale.has_value(); } void ModerationAPIComment::unsetLocale() { - m_LocaleIsSet = false; + m_Locale.reset(); } bool ModerationAPIComment::isIsBannedUser() const { @@ -1939,105 +1891,100 @@ void ModerationAPIComment::unsetIsByModerator() } bool ModerationAPIComment::isIsPinned() const { - return m_IsPinned; + return m_IsPinned.get(); } void ModerationAPIComment::setIsPinned(bool value) { m_IsPinned = value; - m_IsPinnedIsSet = true; } bool ModerationAPIComment::isPinnedIsSet() const { - return m_IsPinnedIsSet; + return m_IsPinned.has_value(); } void ModerationAPIComment::unsetIsPinned() { - m_IsPinnedIsSet = false; + m_IsPinned.reset(); } bool ModerationAPIComment::isIsLocked() const { - return m_IsLocked; + return m_IsLocked.get(); } void ModerationAPIComment::setIsLocked(bool value) { m_IsLocked = value; - m_IsLockedIsSet = true; } bool ModerationAPIComment::isLockedIsSet() const { - return m_IsLockedIsSet; + return m_IsLocked.has_value(); } void ModerationAPIComment::unsetIsLocked() { - m_IsLockedIsSet = false; + m_IsLocked.reset(); } double ModerationAPIComment::getFlagCount() const { - return m_FlagCount; + return m_FlagCount.get(); } void ModerationAPIComment::setFlagCount(double value) { m_FlagCount = value; - m_FlagCountIsSet = true; } bool ModerationAPIComment::flagCountIsSet() const { - return m_FlagCountIsSet; + return m_FlagCount.has_value(); } void ModerationAPIComment::unsetFlagCount() { - m_FlagCountIsSet = false; + m_FlagCount.reset(); } utility::string_t ModerationAPIComment::getDisplayLabel() const { - return m_DisplayLabel; + return m_DisplayLabel.get(); } void ModerationAPIComment::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; - m_DisplayLabelIsSet = true; } bool ModerationAPIComment::displayLabelIsSet() const { - return m_DisplayLabelIsSet; + return m_DisplayLabel.has_value(); } void ModerationAPIComment::unsetDisplayLabel() { - m_DisplayLabelIsSet = false; + m_DisplayLabel.reset(); } std::vector> ModerationAPIComment::getBadges() const { - return m_Badges; + return m_Badges.get(); } void ModerationAPIComment::setBadges(const std::vector>& value) { m_Badges = value; - m_BadgesIsSet = true; } bool ModerationAPIComment::badgesIsSet() const { - return m_BadgesIsSet; + return m_Badges.has_value(); } void ModerationAPIComment::unsetBadges() { - m_BadgesIsSet = false; + m_Badges.reset(); } bool ModerationAPIComment::isVerified() const { diff --git a/client/src/model/ModerationAPICommentLog.cpp b/client/src/model/ModerationAPICommentLog.cpp index d86125b..2c518a9 100644 --- a/client/src/model/ModerationAPICommentLog.cpp +++ b/client/src/model/ModerationAPICommentLog.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,22 +43,22 @@ web::json::value ModerationAPICommentLog::toJson() const { web::json::value val = web::json::value::object(); if(m_dateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_ActionNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("actionName"))] = ModelBase::toJson(m_ActionName); } if(m_MessageHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("messageHTML"))] = ModelBase::toJson(m_MessageHTML); } diff --git a/client/src/model/ModerationAPICommentResponse.cpp b/client/src/model/ModerationAPICommentResponse.cpp index 5b58dfd..1a620b2 100644 --- a/client/src/model/ModerationAPICommentResponse.cpp +++ b/client/src/model/ModerationAPICommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value ModerationAPICommentResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/ModerationAPICountCommentsResponse.cpp b/client/src/model/ModerationAPICountCommentsResponse.cpp index aa3e6c9..a4fd3cf 100644 --- a/client/src/model/ModerationAPICountCommentsResponse.cpp +++ b/client/src/model/ModerationAPICountCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value ModerationAPICountCommentsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } diff --git a/client/src/model/ModerationAPIGetCommentIdsResponse.cpp b/client/src/model/ModerationAPIGetCommentIdsResponse.cpp index 8ecd625..dcf2493 100644 --- a/client/src/model/ModerationAPIGetCommentIdsResponse.cpp +++ b/client/src/model/ModerationAPIGetCommentIdsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value ModerationAPIGetCommentIdsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_IdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ids"))] = ModelBase::toJson(m_Ids); } if(m_HasMoreIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/ModerationAPIGetCommentsResponse.cpp b/client/src/model/ModerationAPIGetCommentsResponse.cpp index b83323e..0e999e3 100644 --- a/client/src/model/ModerationAPIGetCommentsResponse.cpp +++ b/client/src/model/ModerationAPIGetCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,22 +39,22 @@ web::json::value ModerationAPIGetCommentsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_TranslationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); } if(m_CommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); } if(m_ModerationFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))] = ModelBase::toJson(m_ModerationFilter); } diff --git a/client/src/model/ModerationAPIGetLogsResponse.cpp b/client/src/model/ModerationAPIGetLogsResponse.cpp index f712396..41198e1 100644 --- a/client/src/model/ModerationAPIGetLogsResponse.cpp +++ b/client/src/model/ModerationAPIGetLogsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value ModerationAPIGetLogsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_LogsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("logs"))] = ModelBase::toJson(m_Logs); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/ModerationCommentSearchResponse.cpp b/client/src/model/ModerationCommentSearchResponse.cpp index 5753cda..245364b 100644 --- a/client/src/model/ModerationCommentSearchResponse.cpp +++ b/client/src/model/ModerationCommentSearchResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value ModerationCommentSearchResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/ModerationExportResponse.cpp b/client/src/model/ModerationExportResponse.cpp index 882fbb5..73ef19e 100644 --- a/client/src/model/ModerationExportResponse.cpp +++ b/client/src/model/ModerationExportResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value ModerationExportResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_BatchJobIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("batchJobId"))] = ModelBase::toJson(m_BatchJobId); } diff --git a/client/src/model/ModerationExportStatusResponse.cpp b/client/src/model/ModerationExportStatusResponse.cpp index 4d3fa93..98a12a0 100644 --- a/client/src/model/ModerationExportStatusResponse.cpp +++ b/client/src/model/ModerationExportStatusResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,22 +43,22 @@ web::json::value ModerationExportStatusResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_JobStatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("jobStatus"))] = ModelBase::toJson(m_JobStatus); } if(m_RecordCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("recordCount"))] = ModelBase::toJson(m_RecordCount); } if(m_DownloadUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("downloadUrl"))] = ModelBase::toJson(m_DownloadUrl); } diff --git a/client/src/model/ModerationFilter.cpp b/client/src/model/ModerationFilter.cpp index 613d182..2062ad4 100644 --- a/client/src/model/ModerationFilter.cpp +++ b/client/src/model/ModerationFilter.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -57,62 +57,62 @@ web::json::value ModerationFilter::toJson() const { web::json::value val = web::json::value::object(); if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } if(m_IsBannedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))] = ModelBase::toJson(m_IsBannedUser); } if(m_IsLockedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); } if(m_FlagCountGtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flagCountGt"))] = ModelBase::toJson(m_FlagCountGt); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_ModerationGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } if(m_CommentTextSearchIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentTextSearch"))] = ModelBase::toJson(m_CommentTextSearch); } if(m_ExactCommentTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("exactCommentText"))] = ModelBase::toJson(m_ExactCommentText); } diff --git a/client/src/model/ModerationPageSearchProjected.cpp b/client/src/model/ModerationPageSearchProjected.cpp index d3270f7..b939b72 100644 --- a/client/src/model/ModerationPageSearchProjected.cpp +++ b/client/src/model/ModerationPageSearchProjected.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,22 +43,22 @@ web::json::value ModerationPageSearchProjected::toJson() const { web::json::value val = web::json::value::object(); if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } diff --git a/client/src/model/ModerationPageSearchResponse.cpp b/client/src/model/ModerationPageSearchResponse.cpp index c635725..3cf8433 100644 --- a/client/src/model/ModerationPageSearchResponse.cpp +++ b/client/src/model/ModerationPageSearchResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value ModerationPageSearchResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_PagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pages"))] = ModelBase::toJson(m_Pages); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/ModerationSiteSearchProjected.cpp b/client/src/model/ModerationSiteSearchProjected.cpp index 15b39af..1be5a5f 100644 --- a/client/src/model/ModerationSiteSearchProjected.cpp +++ b/client/src/model/ModerationSiteSearchProjected.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,8 +22,6 @@ ModerationSiteSearchProjected::ModerationSiteSearchProjected() { m_Domain = utility::conversions::to_string_t(""); m_DomainIsSet = false; - m_LogoSrc100px = utility::conversions::to_string_t(""); - m_LogoSrc100pxIsSet = false; } ModerationSiteSearchProjected::~ModerationSiteSearchProjected() @@ -39,14 +37,14 @@ web::json::value ModerationSiteSearchProjected::toJson() const { web::json::value val = web::json::value::object(); if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } - if(m_LogoSrc100pxIsSet) - { + if(m_LogoSrc100px.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px); + val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px.get()); } return val; @@ -91,9 +89,9 @@ void ModerationSiteSearchProjected::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); } - if(m_LogoSrc100pxIsSet) + if(m_LogoSrc100px.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logoSrc100px")), m_LogoSrc100px)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logoSrc100px")), m_LogoSrc100px.get())); } } @@ -145,24 +143,23 @@ void ModerationSiteSearchProjected::unsetDomain() } utility::string_t ModerationSiteSearchProjected::getLogoSrc100px() const { - return m_LogoSrc100px; + return m_LogoSrc100px.get(); } void ModerationSiteSearchProjected::setLogoSrc100px(const utility::string_t& value) { m_LogoSrc100px = value; - m_LogoSrc100pxIsSet = true; } bool ModerationSiteSearchProjected::logoSrc100pxIsSet() const { - return m_LogoSrc100pxIsSet; + return m_LogoSrc100px.has_value(); } void ModerationSiteSearchProjected::unsetLogoSrc100px() { - m_LogoSrc100pxIsSet = false; + m_LogoSrc100px.reset(); } } diff --git a/client/src/model/ModerationSiteSearchResponse.cpp b/client/src/model/ModerationSiteSearchResponse.cpp index fbc967c..524d048 100644 --- a/client/src/model/ModerationSiteSearchResponse.cpp +++ b/client/src/model/ModerationSiteSearchResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value ModerationSiteSearchResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_SitesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sites"))] = ModelBase::toJson(m_Sites); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/ModerationSuggestResponse.cpp b/client/src/model/ModerationSuggestResponse.cpp index 4340fd4..54fa30f 100644 --- a/client/src/model/ModerationSuggestResponse.cpp +++ b/client/src/model/ModerationSuggestResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,22 +41,22 @@ web::json::value ModerationSuggestResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_PagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pages"))] = ModelBase::toJson(m_Pages); } if(m_UsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } diff --git a/client/src/model/ModerationUserSearchProjected.cpp b/client/src/model/ModerationUserSearchProjected.cpp index f847621..3eeda75 100644 --- a/client/src/model/ModerationUserSearchProjected.cpp +++ b/client/src/model/ModerationUserSearchProjected.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,10 +24,6 @@ ModerationUserSearchProjected::ModerationUserSearchProjected() m__idIsSet = false; m_Username = utility::conversions::to_string_t(""); m_UsernameIsSet = false; - m_DisplayName = utility::conversions::to_string_t(""); - m_DisplayNameIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; } ModerationUserSearchProjected::~ModerationUserSearchProjected() @@ -43,24 +39,24 @@ web::json::value ModerationUserSearchProjected::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } - if(m_DisplayNameIsSet) - { + if(m_DisplayName.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); + val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName.get()); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } return val; @@ -131,13 +127,13 @@ void ModerationUserSearchProjected::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username)); } - if(m_DisplayNameIsSet) + if(m_DisplayName.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayName")), m_DisplayName)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayName")), m_DisplayName.get())); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } } @@ -222,45 +218,43 @@ void ModerationUserSearchProjected::unsetUsername() } utility::string_t ModerationUserSearchProjected::getDisplayName() const { - return m_DisplayName; + return m_DisplayName.get(); } void ModerationUserSearchProjected::setDisplayName(const utility::string_t& value) { m_DisplayName = value; - m_DisplayNameIsSet = true; } bool ModerationUserSearchProjected::displayNameIsSet() const { - return m_DisplayNameIsSet; + return m_DisplayName.has_value(); } void ModerationUserSearchProjected::unsetDisplayName() { - m_DisplayNameIsSet = false; + m_DisplayName.reset(); } utility::string_t ModerationUserSearchProjected::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void ModerationUserSearchProjected::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool ModerationUserSearchProjected::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void ModerationUserSearchProjected::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } } diff --git a/client/src/model/ModerationUserSearchResponse.cpp b/client/src/model/ModerationUserSearchResponse.cpp index b9b8117..6966b6a 100644 --- a/client/src/model/ModerationUserSearchResponse.cpp +++ b/client/src/model/ModerationUserSearchResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value ModerationUserSearchResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_UsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/Moderator.cpp b/client/src/model/Moderator.cpp index 235886d..9f5e68c 100644 --- a/client/src/model/Moderator.cpp +++ b/client/src/model/Moderator.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,14 +24,8 @@ Moderator::Moderator() m__idIsSet = false; m_TenantId = utility::conversions::to_string_t(""); m_TenantIdIsSet = false; - m_Name = utility::conversions::to_string_t(""); - m_NameIsSet = false; - m_UserId = utility::conversions::to_string_t(""); - m_UserIdIsSet = false; m_AcceptedInvite = false; m_AcceptedInviteIsSet = false; - m_Email = utility::conversions::to_string_t(""); - m_EmailIsSet = false; m_MarkReviewedCount = 0.0; m_MarkReviewedCountIsSet = false; m_DeletedCount = 0.0; @@ -50,11 +44,8 @@ Moderator::Moderator() m_BannedCountIsSet = false; m_UnFlaggedCount = 0.0; m_UnFlaggedCountIsSet = false; - m_VerificationId = utility::conversions::to_string_t(""); - m_VerificationIdIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; - m_ModerationGroupIdsIsSet = false; m_IsEmailSuppressed = false; m_IsEmailSuppressedIsSet = false; } @@ -72,97 +63,97 @@ web::json::value Moderator::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } - if(m_NameIsSet) - { + if(m_Name.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name.get()); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } if(m_AcceptedInviteIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("acceptedInvite"))] = ModelBase::toJson(m_AcceptedInvite); } - if(m_EmailIsSet) - { + if(m_Email.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); } if(m_MarkReviewedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("markReviewedCount"))] = ModelBase::toJson(m_MarkReviewedCount); } if(m_DeletedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("deletedCount"))] = ModelBase::toJson(m_DeletedCount); } if(m_MarkedSpamCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("markedSpamCount"))] = ModelBase::toJson(m_MarkedSpamCount); } if(m_MarkedNotSpamCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("markedNotSpamCount"))] = ModelBase::toJson(m_MarkedNotSpamCount); } if(m_ApprovedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approvedCount"))] = ModelBase::toJson(m_ApprovedCount); } if(m_UnApprovedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("unApprovedCount"))] = ModelBase::toJson(m_UnApprovedCount); } if(m_EditedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("editedCount"))] = ModelBase::toJson(m_EditedCount); } if(m_BannedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bannedCount"))] = ModelBase::toJson(m_BannedCount); } if(m_UnFlaggedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("unFlaggedCount"))] = ModelBase::toJson(m_UnFlaggedCount); } - if(m_VerificationIdIsSet) - { + if(m_VerificationId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("verificationId"))] = ModelBase::toJson(m_VerificationId); + val[utility::conversions::to_string_t(_XPLATSTR("verificationId"))] = ModelBase::toJson(m_VerificationId.get()); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } - if(m_ModerationGroupIdsIsSet) - { + if(m_ModerationGroupIds.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); + val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds.get()); } if(m_IsEmailSuppressedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isEmailSuppressed"))] = ModelBase::toJson(m_IsEmailSuppressed); } @@ -400,21 +391,21 @@ void Moderator::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); } - if(m_NameIsSet) + if(m_Name.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name.get())); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } if(m_AcceptedInviteIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("acceptedInvite")), m_AcceptedInvite)); } - if(m_EmailIsSet) + if(m_Email.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); } if(m_MarkReviewedCountIsSet) { @@ -452,17 +443,17 @@ void Moderator::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("unFlaggedCount")), m_UnFlaggedCount)); } - if(m_VerificationIdIsSet) + if(m_VerificationId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verificationId")), m_VerificationId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verificationId")), m_VerificationId.get())); } if(m_CreatedAtIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); } - if(m_ModerationGroupIdsIsSet) + if(m_ModerationGroupIds.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds.get())); } if(m_IsEmailSuppressedIsSet) { @@ -641,45 +632,43 @@ void Moderator::unsetTenantId() } utility::string_t Moderator::getName() const { - return m_Name; + return m_Name.get(); } void Moderator::setName(const utility::string_t& value) { m_Name = value; - m_NameIsSet = true; } bool Moderator::nameIsSet() const { - return m_NameIsSet; + return m_Name.has_value(); } void Moderator::unsetName() { - m_NameIsSet = false; + m_Name.reset(); } utility::string_t Moderator::getUserId() const { - return m_UserId; + return m_UserId.get(); } void Moderator::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool Moderator::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void Moderator::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } bool Moderator::isAcceptedInvite() const { @@ -703,24 +692,23 @@ void Moderator::unsetAcceptedInvite() } utility::string_t Moderator::getEmail() const { - return m_Email; + return m_Email.get(); } void Moderator::setEmail(const utility::string_t& value) { m_Email = value; - m_EmailIsSet = true; } bool Moderator::emailIsSet() const { - return m_EmailIsSet; + return m_Email.has_value(); } void Moderator::unsetEmail() { - m_EmailIsSet = false; + m_Email.reset(); } double Moderator::getMarkReviewedCount() const { @@ -904,24 +892,23 @@ void Moderator::unsetUnFlaggedCount() } utility::string_t Moderator::getVerificationId() const { - return m_VerificationId; + return m_VerificationId.get(); } void Moderator::setVerificationId(const utility::string_t& value) { m_VerificationId = value; - m_VerificationIdIsSet = true; } bool Moderator::verificationIdIsSet() const { - return m_VerificationIdIsSet; + return m_VerificationId.has_value(); } void Moderator::unsetVerificationId() { - m_VerificationIdIsSet = false; + m_VerificationId.reset(); } utility::datetime Moderator::getCreatedAt() const { @@ -946,24 +933,23 @@ void Moderator::unsetCreatedAt() } std::vector Moderator::getModerationGroupIds() const { - return m_ModerationGroupIds; + return m_ModerationGroupIds.get(); } void Moderator::setModerationGroupIds(const std::vector& value) { m_ModerationGroupIds = value; - m_ModerationGroupIdsIsSet = true; } bool Moderator::moderationGroupIdsIsSet() const { - return m_ModerationGroupIdsIsSet; + return m_ModerationGroupIds.has_value(); } void Moderator::unsetModerationGroupIds() { - m_ModerationGroupIdsIsSet = false; + m_ModerationGroupIds.reset(); } bool Moderator::isIsEmailSuppressed() const { diff --git a/client/src/model/NotificationAndCount.cpp b/client/src/model/NotificationAndCount.cpp index c6a2215..1e0d5d2 100644 --- a/client/src/model/NotificationAndCount.cpp +++ b/client/src/model/NotificationAndCount.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value NotificationAndCount::toJson() const { web::json::value val = web::json::value::object(); if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } diff --git a/client/src/model/NotificationObjectType.cpp b/client/src/model/NotificationObjectType.cpp index 5903659..d58ba1f 100644 --- a/client/src/model/NotificationObjectType.cpp +++ b/client/src/model/NotificationObjectType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/NotificationType.cpp b/client/src/model/NotificationType.cpp index 04c1031..9fc0ba4 100644 --- a/client/src/model/NotificationType.cpp +++ b/client/src/model/NotificationType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PageUserEntry.cpp b/client/src/model/PageUserEntry.cpp index 860d060..f3505f3 100644 --- a/client/src/model/PageUserEntry.cpp +++ b/client/src/model/PageUserEntry.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,22 +43,22 @@ web::json::value PageUserEntry::toJson() const { web::json::value val = web::json::value::object(); if(m_IsPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isPrivate"))] = ModelBase::toJson(m_IsPrivate); } if(m_AvatarSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } diff --git a/client/src/model/PageUsersInfoResponse.cpp b/client/src/model/PageUsersInfoResponse.cpp index 8ad6876..273597c 100644 --- a/client/src/model/PageUsersInfoResponse.cpp +++ b/client/src/model/PageUsersInfoResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value PageUsersInfoResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_UsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/PageUsersOfflineResponse.cpp b/client/src/model/PageUsersOfflineResponse.cpp index aa4c71c..12f83f9 100644 --- a/client/src/model/PageUsersOfflineResponse.cpp +++ b/client/src/model/PageUsersOfflineResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,10 +20,6 @@ namespace model { PageUsersOfflineResponse::PageUsersOfflineResponse() { - m_NextAfterUserId = utility::conversions::to_string_t(""); - m_NextAfterUserIdIsSet = false; - m_NextAfterName = utility::conversions::to_string_t(""); - m_NextAfterNameIsSet = false; m_UsersIsSet = false; m_StatusIsSet = false; } @@ -40,23 +36,23 @@ void PageUsersOfflineResponse::validate() web::json::value PageUsersOfflineResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_NextAfterUserIdIsSet) - { + if(m_NextAfterUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))] = ModelBase::toJson(m_NextAfterUserId); + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))] = ModelBase::toJson(m_NextAfterUserId.get()); } - if(m_NextAfterNameIsSet) - { + if(m_NextAfterName.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))] = ModelBase::toJson(m_NextAfterName); + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))] = ModelBase::toJson(m_NextAfterName.get()); } if(m_UsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } @@ -121,13 +117,13 @@ void PageUsersOfflineResponse::toMultipart(std::shared_ptr mu { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_NextAfterUserIdIsSet) + if(m_NextAfterUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")), m_NextAfterUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")), m_NextAfterUserId.get())); } - if(m_NextAfterNameIsSet) + if(m_NextAfterName.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterName")), m_NextAfterName)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterName")), m_NextAfterName.get())); } if(m_UsersIsSet) { @@ -178,45 +174,43 @@ bool PageUsersOfflineResponse::fromMultiPart(std::shared_ptr utility::string_t PageUsersOfflineResponse::getNextAfterUserId() const { - return m_NextAfterUserId; + return m_NextAfterUserId.get(); } void PageUsersOfflineResponse::setNextAfterUserId(const utility::string_t& value) { m_NextAfterUserId = value; - m_NextAfterUserIdIsSet = true; } bool PageUsersOfflineResponse::nextAfterUserIdIsSet() const { - return m_NextAfterUserIdIsSet; + return m_NextAfterUserId.has_value(); } void PageUsersOfflineResponse::unsetNextAfterUserId() { - m_NextAfterUserIdIsSet = false; + m_NextAfterUserId.reset(); } utility::string_t PageUsersOfflineResponse::getNextAfterName() const { - return m_NextAfterName; + return m_NextAfterName.get(); } void PageUsersOfflineResponse::setNextAfterName(const utility::string_t& value) { m_NextAfterName = value; - m_NextAfterNameIsSet = true; } bool PageUsersOfflineResponse::nextAfterNameIsSet() const { - return m_NextAfterNameIsSet; + return m_NextAfterName.has_value(); } void PageUsersOfflineResponse::unsetNextAfterName() { - m_NextAfterNameIsSet = false; + m_NextAfterName.reset(); } std::vector> PageUsersOfflineResponse::getUsers() const { diff --git a/client/src/model/PageUsersOnlineResponse.cpp b/client/src/model/PageUsersOnlineResponse.cpp index 1cda718..474d958 100644 --- a/client/src/model/PageUsersOnlineResponse.cpp +++ b/client/src/model/PageUsersOnlineResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,10 +20,6 @@ namespace model { PageUsersOnlineResponse::PageUsersOnlineResponse() { - m_NextAfterUserId = utility::conversions::to_string_t(""); - m_NextAfterUserIdIsSet = false; - m_NextAfterName = utility::conversions::to_string_t(""); - m_NextAfterNameIsSet = false; m_TotalCount = 0.0; m_TotalCountIsSet = false; m_AnonCount = 0.0; @@ -44,33 +40,33 @@ void PageUsersOnlineResponse::validate() web::json::value PageUsersOnlineResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_NextAfterUserIdIsSet) - { + if(m_NextAfterUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))] = ModelBase::toJson(m_NextAfterUserId); + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))] = ModelBase::toJson(m_NextAfterUserId.get()); } - if(m_NextAfterNameIsSet) - { + if(m_NextAfterName.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))] = ModelBase::toJson(m_NextAfterName); + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))] = ModelBase::toJson(m_NextAfterName.get()); } if(m_TotalCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("totalCount"))] = ModelBase::toJson(m_TotalCount); } if(m_AnonCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("anonCount"))] = ModelBase::toJson(m_AnonCount); } if(m_UsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } @@ -157,13 +153,13 @@ void PageUsersOnlineResponse::toMultipart(std::shared_ptr mul { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_NextAfterUserIdIsSet) + if(m_NextAfterUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")), m_NextAfterUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")), m_NextAfterUserId.get())); } - if(m_NextAfterNameIsSet) + if(m_NextAfterName.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterName")), m_NextAfterName)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterName")), m_NextAfterName.get())); } if(m_TotalCountIsSet) { @@ -234,45 +230,43 @@ bool PageUsersOnlineResponse::fromMultiPart(std::shared_ptr m utility::string_t PageUsersOnlineResponse::getNextAfterUserId() const { - return m_NextAfterUserId; + return m_NextAfterUserId.get(); } void PageUsersOnlineResponse::setNextAfterUserId(const utility::string_t& value) { m_NextAfterUserId = value; - m_NextAfterUserIdIsSet = true; } bool PageUsersOnlineResponse::nextAfterUserIdIsSet() const { - return m_NextAfterUserIdIsSet; + return m_NextAfterUserId.has_value(); } void PageUsersOnlineResponse::unsetNextAfterUserId() { - m_NextAfterUserIdIsSet = false; + m_NextAfterUserId.reset(); } utility::string_t PageUsersOnlineResponse::getNextAfterName() const { - return m_NextAfterName; + return m_NextAfterName.get(); } void PageUsersOnlineResponse::setNextAfterName(const utility::string_t& value) { m_NextAfterName = value; - m_NextAfterNameIsSet = true; } bool PageUsersOnlineResponse::nextAfterNameIsSet() const { - return m_NextAfterNameIsSet; + return m_NextAfterName.has_value(); } void PageUsersOnlineResponse::unsetNextAfterName() { - m_NextAfterNameIsSet = false; + m_NextAfterName.reset(); } double PageUsersOnlineResponse::getTotalCount() const { diff --git a/client/src/model/PagesSortBy.cpp b/client/src/model/PagesSortBy.cpp index 6efcffe..20d28c3 100644 --- a/client/src/model/PagesSortBy.cpp +++ b/client/src/model/PagesSortBy.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PatchDomainConfigParams.cpp b/client/src/model/PatchDomainConfigParams.cpp index 96cae56..2435da2 100644 --- a/client/src/model/PatchDomainConfigParams.cpp +++ b/client/src/model/PatchDomainConfigParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -48,37 +48,37 @@ web::json::value PatchDomainConfigParams::toJson() const { web::json::value val = web::json::value::object(); if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_EmailFromNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailFromName"))] = ModelBase::toJson(m_EmailFromName); } if(m_EmailFromEmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailFromEmail"))] = ModelBase::toJson(m_EmailFromEmail); } if(m_LogoSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("logoSrc"))] = ModelBase::toJson(m_LogoSrc); } if(m_LogoSrc100pxIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px); } if(m_FooterUnsubscribeURLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("footerUnsubscribeURL"))] = ModelBase::toJson(m_FooterUnsubscribeURL); } if(m_EmailHeadersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailHeaders"))] = ModelBase::toJson(m_EmailHeaders); } diff --git a/client/src/model/PatchDomainConfigResponse.cpp b/client/src/model/PatchDomainConfigResponse.cpp index 7bc4c0c..e3a9872 100644 --- a/client/src/model/PatchDomainConfigResponse.cpp +++ b/client/src/model/PatchDomainConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,8 +20,6 @@ namespace model { PatchDomainConfigResponse::PatchDomainConfigResponse() { - m_ConfigurationIsSet = false; - m_StatusIsSet = false; m_Reason = utility::conversions::to_string_t(""); m_ReasonIsSet = false; m_Code = utility::conversions::to_string_t(""); @@ -40,23 +38,23 @@ void PatchDomainConfigResponse::validate() web::json::value PatchDomainConfigResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_ConfigurationIsSet) - { + if(m_Configuration.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration); + val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration.get()); } - if(m_StatusIsSet) - { + if(m_Status.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } @@ -121,13 +119,13 @@ void PatchDomainConfigResponse::toMultipart(std::shared_ptr m { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_ConfigurationIsSet) + if(m_Configuration.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration.get())); } - if(m_StatusIsSet) + if(m_Status.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); } if(m_ReasonIsSet) { @@ -178,45 +176,43 @@ bool PatchDomainConfigResponse::fromMultiPart(std::shared_ptr std::shared_ptr PatchDomainConfigResponse::getConfiguration() const { - return m_Configuration; + return m_Configuration.get(); } void PatchDomainConfigResponse::setConfiguration(const std::shared_ptr& value) { m_Configuration = value; - m_ConfigurationIsSet = true; } bool PatchDomainConfigResponse::configurationIsSet() const { - return m_ConfigurationIsSet; + return m_Configuration.has_value(); } void PatchDomainConfigResponse::unsetConfiguration() { - m_ConfigurationIsSet = false; + m_Configuration.reset(); } std::shared_ptr PatchDomainConfigResponse::getStatus() const { - return m_Status; + return m_Status.get(); } void PatchDomainConfigResponse::setStatus(const std::shared_ptr& value) { m_Status = value; - m_StatusIsSet = true; } bool PatchDomainConfigResponse::statusIsSet() const { - return m_StatusIsSet; + return m_Status.has_value(); } void PatchDomainConfigResponse::unsetStatus() { - m_StatusIsSet = false; + m_Status.reset(); } utility::string_t PatchDomainConfigResponse::getReason() const { diff --git a/client/src/model/PatchPageAPIResponse.cpp b/client/src/model/PatchPageAPIResponse.cpp index 04f09c3..4442260 100644 --- a/client/src/model/PatchPageAPIResponse.cpp +++ b/client/src/model/PatchPageAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -44,27 +44,27 @@ web::json::value PatchPageAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_CommentsUpdatedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentsUpdated"))] = ModelBase::toJson(m_CommentsUpdated); } if(m_PageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("page"))] = ModelBase::toJson(m_Page); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/PatchSSOUserAPIResponse.cpp b/client/src/model/PatchSSOUserAPIResponse.cpp index 50ceb7f..606c4a8 100644 --- a/client/src/model/PatchSSOUserAPIResponse.cpp +++ b/client/src/model/PatchSSOUserAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value PatchSSOUserAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/PendingCommentToSyncOutbound.cpp b/client/src/model/PendingCommentToSyncOutbound.cpp index afe8fc0..13421ca 100644 --- a/client/src/model/PendingCommentToSyncOutbound.cpp +++ b/client/src/model/PendingCommentToSyncOutbound.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -25,8 +25,6 @@ PendingCommentToSyncOutbound::PendingCommentToSyncOutbound() m_CommentId = utility::conversions::to_string_t(""); m_CommentIdIsSet = false; m_CommentIsSet = false; - m_ExternalId = utility::conversions::to_string_t(""); - m_ExternalIdIsSet = false; m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; m_TenantId = utility::conversions::to_string_t(""); @@ -59,67 +57,67 @@ web::json::value PendingCommentToSyncOutbound::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_CommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_ExternalIdIsSet) - { + if(m_ExternalId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("externalId"))] = ModelBase::toJson(m_ExternalId); + val[utility::conversions::to_string_t(_XPLATSTR("externalId"))] = ModelBase::toJson(m_ExternalId.get()); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_AttemptCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("attemptCount"))] = ModelBase::toJson(m_AttemptCount); } if(m_NextAttemptAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("nextAttemptAt"))] = ModelBase::toJson(m_NextAttemptAt); } if(m_EventTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("eventType"))] = ModelBase::toJson(m_EventType); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_LastErrorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastError"))] = ModelBase::toJson(m_LastError); } if(m_WebhookIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("webhookId"))] = ModelBase::toJson(m_WebhookId); } @@ -295,9 +293,9 @@ void PendingCommentToSyncOutbound::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_ExternalIdIsSet) + if(m_ExternalId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalId")), m_ExternalId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalId")), m_ExternalId.get())); } if(m_CreatedAtIsSet) { @@ -493,24 +491,23 @@ void PendingCommentToSyncOutbound::unsetComment() } utility::string_t PendingCommentToSyncOutbound::getExternalId() const { - return m_ExternalId; + return m_ExternalId.get(); } void PendingCommentToSyncOutbound::setExternalId(const utility::string_t& value) { m_ExternalId = value; - m_ExternalIdIsSet = true; } bool PendingCommentToSyncOutbound::externalIdIsSet() const { - return m_ExternalIdIsSet; + return m_ExternalId.has_value(); } void PendingCommentToSyncOutbound::unsetExternalId() { - m_ExternalIdIsSet = false; + m_ExternalId.reset(); } utility::datetime PendingCommentToSyncOutbound::getCreatedAt() const { diff --git a/client/src/model/PostRemoveCommentResponse.cpp b/client/src/model/PostRemoveCommentResponse.cpp index 7e5dddf..f3b6257 100644 --- a/client/src/model/PostRemoveCommentResponse.cpp +++ b/client/src/model/PostRemoveCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value PostRemoveCommentResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ActionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("action"))] = ModelBase::toJson(m_Action); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/PreBanSummary.cpp b/client/src/model/PreBanSummary.cpp index baa21bf..04c73a8 100644 --- a/client/src/model/PreBanSummary.cpp +++ b/client/src/model/PreBanSummary.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value PreBanSummary::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UsernamesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("usernames"))] = ModelBase::toJson(m_Usernames); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } diff --git a/client/src/model/PubSubComment.cpp b/client/src/model/PubSubComment.cpp index d01aee7..3945286 100644 --- a/client/src/model/PubSubComment.cpp +++ b/client/src/model/PubSubComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,30 +24,16 @@ PubSubComment::PubSubComment() m__idIsSet = false; m_TenantId = utility::conversions::to_string_t(""); m_TenantIdIsSet = false; - m_UserId = nullptr; - m_UserIdIsSet = false; m_UrlId = utility::conversions::to_string_t(""); m_UrlIdIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; - m_CommenterLink = utility::conversions::to_string_t(""); - m_CommenterLinkIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; - m_ParentId = utility::conversions::to_string_t(""); - m_ParentIdIsSet = false; - m_Votes = 0; - m_VotesIsSet = false; - m_VotesUp = 0; - m_VotesUpIsSet = false; - m_VotesDown = 0; - m_VotesDownIsSet = false; m_Verified = false; m_VerifiedIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; m_HasImages = false; m_HasImagesIsSet = false; m_HasLinks = false; @@ -56,47 +42,23 @@ PubSubComment::PubSubComment() m_IsByAdminIsSet = false; m_IsByModerator = false; m_IsByModeratorIsSet = false; - m_IsPinned = false; - m_IsPinnedIsSet = false; - m_IsLocked = false; - m_IsLockedIsSet = false; - m_DisplayLabel = utility::conversions::to_string_t(""); - m_DisplayLabelIsSet = false; - m_Rating = 0.0; - m_RatingIsSet = false; - m_BadgesIsSet = false; - m_ViewCount = 0L; - m_ViewCountIsSet = false; m_IsDeleted = false; m_IsDeletedIsSet = false; m_IsDeletedUser = false; m_IsDeletedUserIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; - m_AnonUserId = utility::conversions::to_string_t(""); - m_AnonUserIdIsSet = false; m_FeedbackIdsIsSet = false; - m_FlagCount = 0; - m_FlagCountIsSet = false; - m_Domain = nullptr; - m_DomainIsSet = false; m_Url = utility::conversions::to_string_t(""); m_UrlIsSet = false; - m_PageTitle = utility::conversions::to_string_t(""); - m_PageTitleIsSet = false; - m_ExpireAt = utility::datetime(); - m_ExpireAtIsSet = false; m_Reviewed = false; m_ReviewedIsSet = false; m_HasCode = false; m_HasCodeIsSet = false; m_Approved = false; m_ApprovedIsSet = false; - m_Locale = utility::conversions::to_string_t(""); - m_LocaleIsSet = false; m_IsBannedUser = false; m_IsBannedUserIsSet = false; - m_GroupIdsIsSet = false; m_IsLive = false; m_IsLiveIsSet = false; m_Hidden = false; @@ -118,217 +80,217 @@ web::json::value PubSubComment::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterLinkIsSet) - { + if(m_CommenterLink.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_ParentIdIsSet) - { + if(m_ParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); } - if(m_VotesIsSet) - { + if(m_Votes.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); } - if(m_VotesUpIsSet) - { + if(m_VotesUp.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); } - if(m_VotesDownIsSet) - { + if(m_VotesDown.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } if(m_HasLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLinks"))] = ModelBase::toJson(m_HasLinks); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } - if(m_IsPinnedIsSet) - { + if(m_IsPinned.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); } - if(m_IsLockedIsSet) - { + if(m_IsLocked.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); } - if(m_DisplayLabelIsSet) - { + if(m_DisplayLabel.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); } - if(m_RatingIsSet) - { + if(m_Rating.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); } - if(m_BadgesIsSet) - { + if(m_Badges.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); } - if(m_ViewCountIsSet) - { + if(m_ViewCount.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount); + val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount.get()); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } - if(m_AnonUserIdIsSet) - { + if(m_AnonUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } - if(m_FlagCountIsSet) - { + if(m_FlagCount.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); } - if(m_DomainIsSet) - { + if(m_Domain.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain.get()); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } - if(m_PageTitleIsSet) - { + if(m_PageTitle.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); } - if(m_ExpireAtIsSet) - { + if(m_ExpireAt.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt.get()); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_HasCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasCode"))] = ModelBase::toJson(m_HasCode); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } - if(m_LocaleIsSet) - { + if(m_Locale.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale.get()); } if(m_IsBannedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))] = ModelBase::toJson(m_IsBannedUser); } - if(m_GroupIdsIsSet) - { + if(m_GroupIds.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); + val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds.get()); } if(m_IsLiveIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isLive"))] = ModelBase::toJson(m_IsLive); } if(m_HiddenIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hidden"))] = ModelBase::toJson(m_Hidden); } if(m_dateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); } @@ -830,9 +792,9 @@ void PubSubComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } if(m_UrlIdIsSet) { @@ -842,9 +804,9 @@ void PubSubComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterLinkIsSet) + if(m_CommenterLink.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); } if(m_CommentHTMLIsSet) { @@ -854,29 +816,29 @@ void PubSubComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_ParentIdIsSet) + if(m_ParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); } - if(m_VotesIsSet) + if(m_Votes.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); } - if(m_VotesUpIsSet) + if(m_VotesUp.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); } - if(m_VotesDownIsSet) + if(m_VotesDown.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } if(m_HasImagesIsSet) { @@ -894,29 +856,29 @@ void PubSubComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); } - if(m_IsPinnedIsSet) + if(m_IsPinned.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); } - if(m_IsLockedIsSet) + if(m_IsLocked.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); } - if(m_DisplayLabelIsSet) + if(m_DisplayLabel.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); } - if(m_RatingIsSet) + if(m_Rating.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); } - if(m_BadgesIsSet) + if(m_Badges.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); } - if(m_ViewCountIsSet) + if(m_ViewCount.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount.get())); } if(m_IsDeletedIsSet) { @@ -930,33 +892,33 @@ void PubSubComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); } - if(m_AnonUserIdIsSet) + if(m_AnonUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); } if(m_FeedbackIdsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedbackIds")), m_FeedbackIds)); } - if(m_FlagCountIsSet) + if(m_FlagCount.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); } - if(m_DomainIsSet) + if(m_Domain.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain.get())); } if(m_UrlIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } - if(m_PageTitleIsSet) + if(m_PageTitle.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); } - if(m_ExpireAtIsSet) + if(m_ExpireAt.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt.get())); } if(m_ReviewedIsSet) { @@ -970,17 +932,17 @@ void PubSubComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); } - if(m_LocaleIsSet) + if(m_Locale.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale.get())); } if(m_IsBannedUserIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isBannedUser")), m_IsBannedUser)); } - if(m_GroupIdsIsSet) + if(m_GroupIds.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("groupIds")), m_GroupIds)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("groupIds")), m_GroupIds.get())); } if(m_IsLiveIsSet) { @@ -1311,24 +1273,23 @@ void PubSubComment::unsetTenantId() } utility::string_t PubSubComment::getUserId() const { - return m_UserId; + return m_UserId.get(); } void PubSubComment::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool PubSubComment::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void PubSubComment::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t PubSubComment::getUrlId() const { @@ -1374,24 +1335,23 @@ void PubSubComment::unsetCommenterName() } utility::string_t PubSubComment::getCommenterLink() const { - return m_CommenterLink; + return m_CommenterLink.get(); } void PubSubComment::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; - m_CommenterLinkIsSet = true; } bool PubSubComment::commenterLinkIsSet() const { - return m_CommenterLinkIsSet; + return m_CommenterLink.has_value(); } void PubSubComment::unsetCommenterLink() { - m_CommenterLinkIsSet = false; + m_CommenterLink.reset(); } utility::string_t PubSubComment::getCommentHTML() const { @@ -1437,84 +1397,80 @@ void PubSubComment::unsetComment() } utility::string_t PubSubComment::getParentId() const { - return m_ParentId; + return m_ParentId.get(); } void PubSubComment::setParentId(const utility::string_t& value) { m_ParentId = value; - m_ParentIdIsSet = true; } bool PubSubComment::parentIdIsSet() const { - return m_ParentIdIsSet; + return m_ParentId.has_value(); } void PubSubComment::unsetParentId() { - m_ParentIdIsSet = false; + m_ParentId.reset(); } int32_t PubSubComment::getVotes() const { - return m_Votes; + return m_Votes.get(); } void PubSubComment::setVotes(int32_t value) { m_Votes = value; - m_VotesIsSet = true; } bool PubSubComment::votesIsSet() const { - return m_VotesIsSet; + return m_Votes.has_value(); } void PubSubComment::unsetVotes() { - m_VotesIsSet = false; + m_Votes.reset(); } int32_t PubSubComment::getVotesUp() const { - return m_VotesUp; + return m_VotesUp.get(); } void PubSubComment::setVotesUp(int32_t value) { m_VotesUp = value; - m_VotesUpIsSet = true; } bool PubSubComment::votesUpIsSet() const { - return m_VotesUpIsSet; + return m_VotesUp.has_value(); } void PubSubComment::unsetVotesUp() { - m_VotesUpIsSet = false; + m_VotesUp.reset(); } int32_t PubSubComment::getVotesDown() const { - return m_VotesDown; + return m_VotesDown.get(); } void PubSubComment::setVotesDown(int32_t value) { m_VotesDown = value; - m_VotesDownIsSet = true; } bool PubSubComment::votesDownIsSet() const { - return m_VotesDownIsSet; + return m_VotesDown.has_value(); } void PubSubComment::unsetVotesDown() { - m_VotesDownIsSet = false; + m_VotesDown.reset(); } bool PubSubComment::isVerified() const { @@ -1538,24 +1494,23 @@ void PubSubComment::unsetVerified() } utility::string_t PubSubComment::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void PubSubComment::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool PubSubComment::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void PubSubComment::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } bool PubSubComment::isHasImages() const { @@ -1639,125 +1594,119 @@ void PubSubComment::unsetIsByModerator() } bool PubSubComment::isIsPinned() const { - return m_IsPinned; + return m_IsPinned.get(); } void PubSubComment::setIsPinned(bool value) { m_IsPinned = value; - m_IsPinnedIsSet = true; } bool PubSubComment::isPinnedIsSet() const { - return m_IsPinnedIsSet; + return m_IsPinned.has_value(); } void PubSubComment::unsetIsPinned() { - m_IsPinnedIsSet = false; + m_IsPinned.reset(); } bool PubSubComment::isIsLocked() const { - return m_IsLocked; + return m_IsLocked.get(); } void PubSubComment::setIsLocked(bool value) { m_IsLocked = value; - m_IsLockedIsSet = true; } bool PubSubComment::isLockedIsSet() const { - return m_IsLockedIsSet; + return m_IsLocked.has_value(); } void PubSubComment::unsetIsLocked() { - m_IsLockedIsSet = false; + m_IsLocked.reset(); } utility::string_t PubSubComment::getDisplayLabel() const { - return m_DisplayLabel; + return m_DisplayLabel.get(); } void PubSubComment::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; - m_DisplayLabelIsSet = true; } bool PubSubComment::displayLabelIsSet() const { - return m_DisplayLabelIsSet; + return m_DisplayLabel.has_value(); } void PubSubComment::unsetDisplayLabel() { - m_DisplayLabelIsSet = false; + m_DisplayLabel.reset(); } double PubSubComment::getRating() const { - return m_Rating; + return m_Rating.get(); } void PubSubComment::setRating(double value) { m_Rating = value; - m_RatingIsSet = true; } bool PubSubComment::ratingIsSet() const { - return m_RatingIsSet; + return m_Rating.has_value(); } void PubSubComment::unsetRating() { - m_RatingIsSet = false; + m_Rating.reset(); } std::vector> PubSubComment::getBadges() const { - return m_Badges; + return m_Badges.get(); } void PubSubComment::setBadges(const std::vector>& value) { m_Badges = value; - m_BadgesIsSet = true; } bool PubSubComment::badgesIsSet() const { - return m_BadgesIsSet; + return m_Badges.has_value(); } void PubSubComment::unsetBadges() { - m_BadgesIsSet = false; + m_Badges.reset(); } int64_t PubSubComment::getViewCount() const { - return m_ViewCount; + return m_ViewCount.get(); } void PubSubComment::setViewCount(int64_t value) { m_ViewCount = value; - m_ViewCountIsSet = true; } bool PubSubComment::viewCountIsSet() const { - return m_ViewCountIsSet; + return m_ViewCount.has_value(); } void PubSubComment::unsetViewCount() { - m_ViewCountIsSet = false; + m_ViewCount.reset(); } bool PubSubComment::isIsDeleted() const { @@ -1821,24 +1770,23 @@ void PubSubComment::unsetIsSpam() } utility::string_t PubSubComment::getAnonUserId() const { - return m_AnonUserId; + return m_AnonUserId.get(); } void PubSubComment::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; - m_AnonUserIdIsSet = true; } bool PubSubComment::anonUserIdIsSet() const { - return m_AnonUserIdIsSet; + return m_AnonUserId.has_value(); } void PubSubComment::unsetAnonUserId() { - m_AnonUserIdIsSet = false; + m_AnonUserId.reset(); } std::vector PubSubComment::getFeedbackIds() const { @@ -1863,44 +1811,42 @@ void PubSubComment::unsetFeedbackIds() } int32_t PubSubComment::getFlagCount() const { - return m_FlagCount; + return m_FlagCount.get(); } void PubSubComment::setFlagCount(int32_t value) { m_FlagCount = value; - m_FlagCountIsSet = true; } bool PubSubComment::flagCountIsSet() const { - return m_FlagCountIsSet; + return m_FlagCount.has_value(); } void PubSubComment::unsetFlagCount() { - m_FlagCountIsSet = false; + m_FlagCount.reset(); } utility::string_t PubSubComment::getDomain() const { - return m_Domain; + return m_Domain.get(); } void PubSubComment::setDomain(const utility::string_t& value) { m_Domain = value; - m_DomainIsSet = true; } bool PubSubComment::domainIsSet() const { - return m_DomainIsSet; + return m_Domain.has_value(); } void PubSubComment::unsetDomain() { - m_DomainIsSet = false; + m_Domain.reset(); } utility::string_t PubSubComment::getUrl() const { @@ -1925,45 +1871,43 @@ void PubSubComment::unsetUrl() } utility::string_t PubSubComment::getPageTitle() const { - return m_PageTitle; + return m_PageTitle.get(); } void PubSubComment::setPageTitle(const utility::string_t& value) { m_PageTitle = value; - m_PageTitleIsSet = true; } bool PubSubComment::pageTitleIsSet() const { - return m_PageTitleIsSet; + return m_PageTitle.has_value(); } void PubSubComment::unsetPageTitle() { - m_PageTitleIsSet = false; + m_PageTitle.reset(); } utility::datetime PubSubComment::getExpireAt() const { - return m_ExpireAt; + return m_ExpireAt.get(); } void PubSubComment::setExpireAt(const utility::datetime& value) { m_ExpireAt = value; - m_ExpireAtIsSet = true; } bool PubSubComment::expireAtIsSet() const { - return m_ExpireAtIsSet; + return m_ExpireAt.has_value(); } void PubSubComment::unsetExpireAt() { - m_ExpireAtIsSet = false; + m_ExpireAt.reset(); } bool PubSubComment::isReviewed() const { @@ -2027,24 +1971,23 @@ void PubSubComment::unsetApproved() } utility::string_t PubSubComment::getLocale() const { - return m_Locale; + return m_Locale.get(); } void PubSubComment::setLocale(const utility::string_t& value) { m_Locale = value; - m_LocaleIsSet = true; } bool PubSubComment::localeIsSet() const { - return m_LocaleIsSet; + return m_Locale.has_value(); } void PubSubComment::unsetLocale() { - m_LocaleIsSet = false; + m_Locale.reset(); } bool PubSubComment::isIsBannedUser() const { @@ -2068,24 +2011,23 @@ void PubSubComment::unsetIsBannedUser() } std::vector PubSubComment::getGroupIds() const { - return m_GroupIds; + return m_GroupIds.get(); } void PubSubComment::setGroupIds(const std::vector& value) { m_GroupIds = value; - m_GroupIdsIsSet = true; } bool PubSubComment::groupIdsIsSet() const { - return m_GroupIdsIsSet; + return m_GroupIds.has_value(); } void PubSubComment::unsetGroupIds() { - m_GroupIdsIsSet = false; + m_GroupIds.reset(); } bool PubSubComment::isIsLive() const { diff --git a/client/src/model/PubSubCommentBase.cpp b/client/src/model/PubSubCommentBase.cpp index c217406..eddd073 100644 --- a/client/src/model/PubSubCommentBase.cpp +++ b/client/src/model/PubSubCommentBase.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,30 +24,16 @@ PubSubCommentBase::PubSubCommentBase() m__idIsSet = false; m_TenantId = utility::conversions::to_string_t(""); m_TenantIdIsSet = false; - m_UserId = nullptr; - m_UserIdIsSet = false; m_UrlId = utility::conversions::to_string_t(""); m_UrlIdIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; - m_CommenterLink = utility::conversions::to_string_t(""); - m_CommenterLinkIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; - m_ParentId = utility::conversions::to_string_t(""); - m_ParentIdIsSet = false; - m_Votes = 0; - m_VotesIsSet = false; - m_VotesUp = 0; - m_VotesUpIsSet = false; - m_VotesDown = 0; - m_VotesDownIsSet = false; m_Verified = false; m_VerifiedIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; m_HasImages = false; m_HasImagesIsSet = false; m_HasLinks = false; @@ -56,47 +42,23 @@ PubSubCommentBase::PubSubCommentBase() m_IsByAdminIsSet = false; m_IsByModerator = false; m_IsByModeratorIsSet = false; - m_IsPinned = false; - m_IsPinnedIsSet = false; - m_IsLocked = false; - m_IsLockedIsSet = false; - m_DisplayLabel = utility::conversions::to_string_t(""); - m_DisplayLabelIsSet = false; - m_Rating = 0.0; - m_RatingIsSet = false; - m_BadgesIsSet = false; - m_ViewCount = 0L; - m_ViewCountIsSet = false; m_IsDeleted = false; m_IsDeletedIsSet = false; m_IsDeletedUser = false; m_IsDeletedUserIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; - m_AnonUserId = utility::conversions::to_string_t(""); - m_AnonUserIdIsSet = false; m_FeedbackIdsIsSet = false; - m_FlagCount = 0; - m_FlagCountIsSet = false; - m_Domain = nullptr; - m_DomainIsSet = false; m_Url = utility::conversions::to_string_t(""); m_UrlIsSet = false; - m_PageTitle = utility::conversions::to_string_t(""); - m_PageTitleIsSet = false; - m_ExpireAt = utility::datetime(); - m_ExpireAtIsSet = false; m_Reviewed = false; m_ReviewedIsSet = false; m_HasCode = false; m_HasCodeIsSet = false; m_Approved = false; m_ApprovedIsSet = false; - m_Locale = utility::conversions::to_string_t(""); - m_LocaleIsSet = false; m_IsBannedUser = false; m_IsBannedUserIsSet = false; - m_GroupIdsIsSet = false; } PubSubCommentBase::~PubSubCommentBase() @@ -112,204 +74,204 @@ web::json::value PubSubCommentBase::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterLinkIsSet) - { + if(m_CommenterLink.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_ParentIdIsSet) - { + if(m_ParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); } - if(m_VotesIsSet) - { + if(m_Votes.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); } - if(m_VotesUpIsSet) - { + if(m_VotesUp.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); } - if(m_VotesDownIsSet) - { + if(m_VotesDown.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } if(m_HasLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLinks"))] = ModelBase::toJson(m_HasLinks); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } - if(m_IsPinnedIsSet) - { + if(m_IsPinned.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); } - if(m_IsLockedIsSet) - { + if(m_IsLocked.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); } - if(m_DisplayLabelIsSet) - { + if(m_DisplayLabel.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); } - if(m_RatingIsSet) - { + if(m_Rating.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); } - if(m_BadgesIsSet) - { + if(m_Badges.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); } - if(m_ViewCountIsSet) - { + if(m_ViewCount.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount); + val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount.get()); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } - if(m_AnonUserIdIsSet) - { + if(m_AnonUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } - if(m_FlagCountIsSet) - { + if(m_FlagCount.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); } - if(m_DomainIsSet) - { + if(m_Domain.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); + val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain.get()); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } - if(m_PageTitleIsSet) - { + if(m_PageTitle.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); } - if(m_ExpireAtIsSet) - { + if(m_ExpireAt.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt.get()); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_HasCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasCode"))] = ModelBase::toJson(m_HasCode); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } - if(m_LocaleIsSet) - { + if(m_Locale.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); + val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale.get()); } if(m_IsBannedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBannedUser"))] = ModelBase::toJson(m_IsBannedUser); } - if(m_GroupIdsIsSet) - { + if(m_GroupIds.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); + val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds.get()); } return val; @@ -776,9 +738,9 @@ void PubSubCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } if(m_UrlIdIsSet) { @@ -788,9 +750,9 @@ void PubSubCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterLinkIsSet) + if(m_CommenterLink.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); } if(m_CommentHTMLIsSet) { @@ -800,29 +762,29 @@ void PubSubCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_ParentIdIsSet) + if(m_ParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); } - if(m_VotesIsSet) + if(m_Votes.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); } - if(m_VotesUpIsSet) + if(m_VotesUp.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); } - if(m_VotesDownIsSet) + if(m_VotesDown.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } if(m_HasImagesIsSet) { @@ -840,29 +802,29 @@ void PubSubCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); } - if(m_IsPinnedIsSet) + if(m_IsPinned.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); } - if(m_IsLockedIsSet) + if(m_IsLocked.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); } - if(m_DisplayLabelIsSet) + if(m_DisplayLabel.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); } - if(m_RatingIsSet) + if(m_Rating.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); } - if(m_BadgesIsSet) + if(m_Badges.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); } - if(m_ViewCountIsSet) + if(m_ViewCount.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount.get())); } if(m_IsDeletedIsSet) { @@ -876,33 +838,33 @@ void PubSubCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); } - if(m_AnonUserIdIsSet) + if(m_AnonUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); } if(m_FeedbackIdsIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedbackIds")), m_FeedbackIds)); } - if(m_FlagCountIsSet) + if(m_FlagCount.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); } - if(m_DomainIsSet) + if(m_Domain.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("domain")), m_Domain.get())); } if(m_UrlIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } - if(m_PageTitleIsSet) + if(m_PageTitle.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); } - if(m_ExpireAtIsSet) + if(m_ExpireAt.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt.get())); } if(m_ReviewedIsSet) { @@ -916,17 +878,17 @@ void PubSubCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("approved")), m_Approved)); } - if(m_LocaleIsSet) + if(m_Locale.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("locale")), m_Locale.get())); } if(m_IsBannedUserIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isBannedUser")), m_IsBannedUser)); } - if(m_GroupIdsIsSet) + if(m_GroupIds.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("groupIds")), m_GroupIds)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("groupIds")), m_GroupIds.get())); } } @@ -1227,24 +1189,23 @@ void PubSubCommentBase::unsetTenantId() } utility::string_t PubSubCommentBase::getUserId() const { - return m_UserId; + return m_UserId.get(); } void PubSubCommentBase::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool PubSubCommentBase::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void PubSubCommentBase::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t PubSubCommentBase::getUrlId() const { @@ -1290,24 +1251,23 @@ void PubSubCommentBase::unsetCommenterName() } utility::string_t PubSubCommentBase::getCommenterLink() const { - return m_CommenterLink; + return m_CommenterLink.get(); } void PubSubCommentBase::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; - m_CommenterLinkIsSet = true; } bool PubSubCommentBase::commenterLinkIsSet() const { - return m_CommenterLinkIsSet; + return m_CommenterLink.has_value(); } void PubSubCommentBase::unsetCommenterLink() { - m_CommenterLinkIsSet = false; + m_CommenterLink.reset(); } utility::string_t PubSubCommentBase::getCommentHTML() const { @@ -1353,84 +1313,80 @@ void PubSubCommentBase::unsetComment() } utility::string_t PubSubCommentBase::getParentId() const { - return m_ParentId; + return m_ParentId.get(); } void PubSubCommentBase::setParentId(const utility::string_t& value) { m_ParentId = value; - m_ParentIdIsSet = true; } bool PubSubCommentBase::parentIdIsSet() const { - return m_ParentIdIsSet; + return m_ParentId.has_value(); } void PubSubCommentBase::unsetParentId() { - m_ParentIdIsSet = false; + m_ParentId.reset(); } int32_t PubSubCommentBase::getVotes() const { - return m_Votes; + return m_Votes.get(); } void PubSubCommentBase::setVotes(int32_t value) { m_Votes = value; - m_VotesIsSet = true; } bool PubSubCommentBase::votesIsSet() const { - return m_VotesIsSet; + return m_Votes.has_value(); } void PubSubCommentBase::unsetVotes() { - m_VotesIsSet = false; + m_Votes.reset(); } int32_t PubSubCommentBase::getVotesUp() const { - return m_VotesUp; + return m_VotesUp.get(); } void PubSubCommentBase::setVotesUp(int32_t value) { m_VotesUp = value; - m_VotesUpIsSet = true; } bool PubSubCommentBase::votesUpIsSet() const { - return m_VotesUpIsSet; + return m_VotesUp.has_value(); } void PubSubCommentBase::unsetVotesUp() { - m_VotesUpIsSet = false; + m_VotesUp.reset(); } int32_t PubSubCommentBase::getVotesDown() const { - return m_VotesDown; + return m_VotesDown.get(); } void PubSubCommentBase::setVotesDown(int32_t value) { m_VotesDown = value; - m_VotesDownIsSet = true; } bool PubSubCommentBase::votesDownIsSet() const { - return m_VotesDownIsSet; + return m_VotesDown.has_value(); } void PubSubCommentBase::unsetVotesDown() { - m_VotesDownIsSet = false; + m_VotesDown.reset(); } bool PubSubCommentBase::isVerified() const { @@ -1454,24 +1410,23 @@ void PubSubCommentBase::unsetVerified() } utility::string_t PubSubCommentBase::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void PubSubCommentBase::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool PubSubCommentBase::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void PubSubCommentBase::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } bool PubSubCommentBase::isHasImages() const { @@ -1555,125 +1510,119 @@ void PubSubCommentBase::unsetIsByModerator() } bool PubSubCommentBase::isIsPinned() const { - return m_IsPinned; + return m_IsPinned.get(); } void PubSubCommentBase::setIsPinned(bool value) { m_IsPinned = value; - m_IsPinnedIsSet = true; } bool PubSubCommentBase::isPinnedIsSet() const { - return m_IsPinnedIsSet; + return m_IsPinned.has_value(); } void PubSubCommentBase::unsetIsPinned() { - m_IsPinnedIsSet = false; + m_IsPinned.reset(); } bool PubSubCommentBase::isIsLocked() const { - return m_IsLocked; + return m_IsLocked.get(); } void PubSubCommentBase::setIsLocked(bool value) { m_IsLocked = value; - m_IsLockedIsSet = true; } bool PubSubCommentBase::isLockedIsSet() const { - return m_IsLockedIsSet; + return m_IsLocked.has_value(); } void PubSubCommentBase::unsetIsLocked() { - m_IsLockedIsSet = false; + m_IsLocked.reset(); } utility::string_t PubSubCommentBase::getDisplayLabel() const { - return m_DisplayLabel; + return m_DisplayLabel.get(); } void PubSubCommentBase::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; - m_DisplayLabelIsSet = true; } bool PubSubCommentBase::displayLabelIsSet() const { - return m_DisplayLabelIsSet; + return m_DisplayLabel.has_value(); } void PubSubCommentBase::unsetDisplayLabel() { - m_DisplayLabelIsSet = false; + m_DisplayLabel.reset(); } double PubSubCommentBase::getRating() const { - return m_Rating; + return m_Rating.get(); } void PubSubCommentBase::setRating(double value) { m_Rating = value; - m_RatingIsSet = true; } bool PubSubCommentBase::ratingIsSet() const { - return m_RatingIsSet; + return m_Rating.has_value(); } void PubSubCommentBase::unsetRating() { - m_RatingIsSet = false; + m_Rating.reset(); } std::vector> PubSubCommentBase::getBadges() const { - return m_Badges; + return m_Badges.get(); } void PubSubCommentBase::setBadges(const std::vector>& value) { m_Badges = value; - m_BadgesIsSet = true; } bool PubSubCommentBase::badgesIsSet() const { - return m_BadgesIsSet; + return m_Badges.has_value(); } void PubSubCommentBase::unsetBadges() { - m_BadgesIsSet = false; + m_Badges.reset(); } int64_t PubSubCommentBase::getViewCount() const { - return m_ViewCount; + return m_ViewCount.get(); } void PubSubCommentBase::setViewCount(int64_t value) { m_ViewCount = value; - m_ViewCountIsSet = true; } bool PubSubCommentBase::viewCountIsSet() const { - return m_ViewCountIsSet; + return m_ViewCount.has_value(); } void PubSubCommentBase::unsetViewCount() { - m_ViewCountIsSet = false; + m_ViewCount.reset(); } bool PubSubCommentBase::isIsDeleted() const { @@ -1737,24 +1686,23 @@ void PubSubCommentBase::unsetIsSpam() } utility::string_t PubSubCommentBase::getAnonUserId() const { - return m_AnonUserId; + return m_AnonUserId.get(); } void PubSubCommentBase::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; - m_AnonUserIdIsSet = true; } bool PubSubCommentBase::anonUserIdIsSet() const { - return m_AnonUserIdIsSet; + return m_AnonUserId.has_value(); } void PubSubCommentBase::unsetAnonUserId() { - m_AnonUserIdIsSet = false; + m_AnonUserId.reset(); } std::vector PubSubCommentBase::getFeedbackIds() const { @@ -1779,44 +1727,42 @@ void PubSubCommentBase::unsetFeedbackIds() } int32_t PubSubCommentBase::getFlagCount() const { - return m_FlagCount; + return m_FlagCount.get(); } void PubSubCommentBase::setFlagCount(int32_t value) { m_FlagCount = value; - m_FlagCountIsSet = true; } bool PubSubCommentBase::flagCountIsSet() const { - return m_FlagCountIsSet; + return m_FlagCount.has_value(); } void PubSubCommentBase::unsetFlagCount() { - m_FlagCountIsSet = false; + m_FlagCount.reset(); } utility::string_t PubSubCommentBase::getDomain() const { - return m_Domain; + return m_Domain.get(); } void PubSubCommentBase::setDomain(const utility::string_t& value) { m_Domain = value; - m_DomainIsSet = true; } bool PubSubCommentBase::domainIsSet() const { - return m_DomainIsSet; + return m_Domain.has_value(); } void PubSubCommentBase::unsetDomain() { - m_DomainIsSet = false; + m_Domain.reset(); } utility::string_t PubSubCommentBase::getUrl() const { @@ -1841,45 +1787,43 @@ void PubSubCommentBase::unsetUrl() } utility::string_t PubSubCommentBase::getPageTitle() const { - return m_PageTitle; + return m_PageTitle.get(); } void PubSubCommentBase::setPageTitle(const utility::string_t& value) { m_PageTitle = value; - m_PageTitleIsSet = true; } bool PubSubCommentBase::pageTitleIsSet() const { - return m_PageTitleIsSet; + return m_PageTitle.has_value(); } void PubSubCommentBase::unsetPageTitle() { - m_PageTitleIsSet = false; + m_PageTitle.reset(); } utility::datetime PubSubCommentBase::getExpireAt() const { - return m_ExpireAt; + return m_ExpireAt.get(); } void PubSubCommentBase::setExpireAt(const utility::datetime& value) { m_ExpireAt = value; - m_ExpireAtIsSet = true; } bool PubSubCommentBase::expireAtIsSet() const { - return m_ExpireAtIsSet; + return m_ExpireAt.has_value(); } void PubSubCommentBase::unsetExpireAt() { - m_ExpireAtIsSet = false; + m_ExpireAt.reset(); } bool PubSubCommentBase::isReviewed() const { @@ -1943,24 +1887,23 @@ void PubSubCommentBase::unsetApproved() } utility::string_t PubSubCommentBase::getLocale() const { - return m_Locale; + return m_Locale.get(); } void PubSubCommentBase::setLocale(const utility::string_t& value) { m_Locale = value; - m_LocaleIsSet = true; } bool PubSubCommentBase::localeIsSet() const { - return m_LocaleIsSet; + return m_Locale.has_value(); } void PubSubCommentBase::unsetLocale() { - m_LocaleIsSet = false; + m_Locale.reset(); } bool PubSubCommentBase::isIsBannedUser() const { @@ -1984,24 +1927,23 @@ void PubSubCommentBase::unsetIsBannedUser() } std::vector PubSubCommentBase::getGroupIds() const { - return m_GroupIds; + return m_GroupIds.get(); } void PubSubCommentBase::setGroupIds(const std::vector& value) { m_GroupIds = value; - m_GroupIdsIsSet = true; } bool PubSubCommentBase::groupIdsIsSet() const { - return m_GroupIdsIsSet; + return m_GroupIds.has_value(); } void PubSubCommentBase::unsetGroupIds() { - m_GroupIdsIsSet = false; + m_GroupIds.reset(); } } diff --git a/client/src/model/PubSubVote.cpp b/client/src/model/PubSubVote.cpp index 14b1fc4..7fabc6d 100644 --- a/client/src/model/PubSubVote.cpp +++ b/client/src/model/PubSubVote.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,14 +30,10 @@ PubSubVote::PubSubVote() m_UrlIdRawIsSet = false; m_CommentId = utility::conversions::to_string_t(""); m_CommentIdIsSet = false; - m_UserId = utility::conversions::to_string_t(""); - m_UserIdIsSet = false; m_Direction = 0; m_DirectionIsSet = false; m_CreatedAt = 0L; m_CreatedAtIsSet = false; - m_VerificationId = utility::conversions::to_string_t(""); - m_VerificationIdIsSet = false; } PubSubVote::~PubSubVote() @@ -53,49 +49,49 @@ web::json::value PubSubVote::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIdRawIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdRaw"))] = ModelBase::toJson(m_UrlIdRaw); } if(m_CommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } if(m_DirectionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("direction"))] = ModelBase::toJson(m_Direction); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } - if(m_VerificationIdIsSet) - { + if(m_VerificationId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("verificationId"))] = ModelBase::toJson(m_VerificationId); + val[utility::conversions::to_string_t(_XPLATSTR("verificationId"))] = ModelBase::toJson(m_VerificationId.get()); } return val; @@ -233,9 +229,9 @@ void PubSubVote::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentId")), m_CommentId)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } if(m_DirectionIsSet) { @@ -245,9 +241,9 @@ void PubSubVote::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdAt")), m_CreatedAt)); } - if(m_VerificationIdIsSet) + if(m_VerificationId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verificationId")), m_VerificationId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verificationId")), m_VerificationId.get())); } } @@ -425,24 +421,23 @@ void PubSubVote::unsetCommentId() } utility::string_t PubSubVote::getUserId() const { - return m_UserId; + return m_UserId.get(); } void PubSubVote::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool PubSubVote::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void PubSubVote::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } int32_t PubSubVote::getDirection() const { @@ -486,24 +481,23 @@ void PubSubVote::unsetCreatedAt() } utility::string_t PubSubVote::getVerificationId() const { - return m_VerificationId; + return m_VerificationId.get(); } void PubSubVote::setVerificationId(const utility::string_t& value) { m_VerificationId = value; - m_VerificationIdIsSet = true; } bool PubSubVote::verificationIdIsSet() const { - return m_VerificationIdIsSet; + return m_VerificationId.has_value(); } void PubSubVote::unsetVerificationId() { - m_VerificationIdIsSet = false; + m_VerificationId.reset(); } } diff --git a/client/src/model/PublicAPIDeleteCommentResponse.cpp b/client/src/model/PublicAPIDeleteCommentResponse.cpp index fcfa7f8..a93e539 100644 --- a/client/src/model/PublicAPIDeleteCommentResponse.cpp +++ b/client/src/model/PublicAPIDeleteCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value PublicAPIDeleteCommentResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_HardRemovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hardRemoved"))] = ModelBase::toJson(m_HardRemoved); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/PublicAPIGetCommentTextResponse.cpp b/client/src/model/PublicAPIGetCommentTextResponse.cpp index 2cf2b9b..726bf6c 100644 --- a/client/src/model/PublicAPIGetCommentTextResponse.cpp +++ b/client/src/model/PublicAPIGetCommentTextResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,17 +40,17 @@ web::json::value PublicAPIGetCommentTextResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentText"))] = ModelBase::toJson(m_CommentText); } if(m_SanitizedCommentTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText"))] = ModelBase::toJson(m_SanitizedCommentText); } diff --git a/client/src/model/PublicAPISetCommentTextResponse.cpp b/client/src/model/PublicAPISetCommentTextResponse.cpp index 274d619..56e84e8 100644 --- a/client/src/model/PublicAPISetCommentTextResponse.cpp +++ b/client/src/model/PublicAPISetCommentTextResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value PublicAPISetCommentTextResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/PublicBlockFromCommentParams.cpp b/client/src/model/PublicBlockFromCommentParams.cpp index bb7d37b..32e1f65 100644 --- a/client/src/model/PublicBlockFromCommentParams.cpp +++ b/client/src/model/PublicBlockFromCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,7 +20,6 @@ namespace model { PublicBlockFromCommentParams::PublicBlockFromCommentParams() { - m_CommentIdsIsSet = false; } PublicBlockFromCommentParams::~PublicBlockFromCommentParams() @@ -35,10 +34,10 @@ void PublicBlockFromCommentParams::validate() web::json::value PublicBlockFromCommentParams::toJson() const { web::json::value val = web::json::value::object(); - if(m_CommentIdsIsSet) - { + if(m_CommentIds.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commentIds"))] = ModelBase::toJson(m_CommentIds); + val[utility::conversions::to_string_t(_XPLATSTR("commentIds"))] = ModelBase::toJson(m_CommentIds.get()); } return val; @@ -68,9 +67,9 @@ void PublicBlockFromCommentParams::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentIds")), m_CommentIds)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentIds")), m_CommentIds.get())); } } @@ -95,24 +94,23 @@ bool PublicBlockFromCommentParams::fromMultiPart(std::shared_ptr PublicBlockFromCommentParams::getCommentIds() const { - return m_CommentIds; + return m_CommentIds.get(); } void PublicBlockFromCommentParams::setCommentIds(const std::vector& value) { m_CommentIds = value; - m_CommentIdsIsSet = true; } bool PublicBlockFromCommentParams::commentIdsIsSet() const { - return m_CommentIdsIsSet; + return m_CommentIds.has_value(); } void PublicBlockFromCommentParams::unsetCommentIds() { - m_CommentIdsIsSet = false; + m_CommentIds.reset(); } } diff --git a/client/src/model/PublicComment.cpp b/client/src/model/PublicComment.cpp index 447bf9c..5d373bc 100644 --- a/client/src/model/PublicComment.cpp +++ b/client/src/model/PublicComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,53 +22,24 @@ PublicComment::PublicComment() { m__id = utility::conversions::to_string_t(""); m__idIsSet = false; - m_UserId = nullptr; - m_UserIdIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; - m_CommenterLink = utility::conversions::to_string_t(""); - m_CommenterLinkIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; - m_ParentId = utility::conversions::to_string_t(""); - m_ParentIdIsSet = false; - m_date = utility::datetime(); - m_dateIsSet = false; - m_Votes = 0; - m_VotesIsSet = false; - m_VotesUp = 0; - m_VotesUpIsSet = false; - m_VotesDown = 0; - m_VotesDownIsSet = false; m_Verified = false; m_VerifiedIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; m_HasImages = false; m_HasImagesIsSet = false; m_IsByAdmin = false; m_IsByAdminIsSet = false; m_IsByModerator = false; m_IsByModeratorIsSet = false; - m_IsPinned = false; - m_IsPinnedIsSet = false; - m_IsLocked = false; - m_IsLockedIsSet = false; - m_DisplayLabel = utility::conversions::to_string_t(""); - m_DisplayLabelIsSet = false; - m_Rating = 0.0; - m_RatingIsSet = false; - m_BadgesIsSet = false; - m_ViewCount = 0L; - m_ViewCountIsSet = false; m_IsDeleted = false; m_IsDeletedIsSet = false; m_IsDeletedUser = false; m_IsDeletedUserIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; - m_AnonUserId = utility::conversions::to_string_t(""); - m_AnonUserIdIsSet = false; m_FeedbackIdsIsSet = false; m_RequiresVerification = false; m_RequiresVerificationIsSet = false; @@ -110,197 +81,197 @@ web::json::value PublicComment::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterLinkIsSet) - { + if(m_CommenterLink.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } - if(m_ParentIdIsSet) - { + if(m_ParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); } - if(m_dateIsSet) - { + if(m_date.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); } - if(m_VotesIsSet) - { + if(m_Votes.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); } - if(m_VotesUpIsSet) - { + if(m_VotesUp.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); } - if(m_VotesDownIsSet) - { + if(m_VotesDown.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } - if(m_IsPinnedIsSet) - { + if(m_IsPinned.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); } - if(m_IsLockedIsSet) - { + if(m_IsLocked.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); } - if(m_DisplayLabelIsSet) - { + if(m_DisplayLabel.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); } - if(m_RatingIsSet) - { + if(m_Rating.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); } - if(m_BadgesIsSet) - { + if(m_Badges.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); } - if(m_ViewCountIsSet) - { + if(m_ViewCount.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount); + val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount.get()); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } - if(m_AnonUserIdIsSet) - { + if(m_AnonUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } if(m_RequiresVerificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("requiresVerification"))] = ModelBase::toJson(m_RequiresVerification); } if(m_EditKeyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } if(m_IsUnreadIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isUnread"))] = ModelBase::toJson(m_IsUnread); } if(m_MyVoteIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("myVoteId"))] = ModelBase::toJson(m_MyVoteId); } if(m_IsVotedDownIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isVotedDown"))] = ModelBase::toJson(m_IsVotedDown); } if(m_IsVotedUpIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isVotedUp"))] = ModelBase::toJson(m_IsVotedUp); } if(m_HasChildrenIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasChildren"))] = ModelBase::toJson(m_HasChildren); } if(m_NestedChildrenCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("nestedChildrenCount"))] = ModelBase::toJson(m_NestedChildrenCount); } if(m_ChildCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("childCount"))] = ModelBase::toJson(m_ChildCount); } if(m_ChildrenIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("children"))] = ModelBase::toJson(m_Children); } if(m_IsFlaggedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isFlagged"))] = ModelBase::toJson(m_IsFlagged); } if(m_IsBlockedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBlocked"))] = ModelBase::toJson(m_IsBlocked); } @@ -754,49 +725,49 @@ void PublicComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } if(m_CommenterNameIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterLinkIsSet) + if(m_CommenterLink.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); } if(m_CommentHTMLIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); } - if(m_ParentIdIsSet) + if(m_ParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); } - if(m_dateIsSet) + if(m_date.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); } - if(m_VotesIsSet) + if(m_Votes.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); } - if(m_VotesUpIsSet) + if(m_VotesUp.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); } - if(m_VotesDownIsSet) + if(m_VotesDown.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } if(m_HasImagesIsSet) { @@ -810,29 +781,29 @@ void PublicComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); } - if(m_IsPinnedIsSet) + if(m_IsPinned.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); } - if(m_IsLockedIsSet) + if(m_IsLocked.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); } - if(m_DisplayLabelIsSet) + if(m_DisplayLabel.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); } - if(m_RatingIsSet) + if(m_Rating.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); } - if(m_BadgesIsSet) + if(m_Badges.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); } - if(m_ViewCountIsSet) + if(m_ViewCount.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount.get())); } if(m_IsDeletedIsSet) { @@ -846,9 +817,9 @@ void PublicComment::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); } - if(m_AnonUserIdIsSet) + if(m_AnonUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); } if(m_FeedbackIdsIsSet) { @@ -1178,24 +1149,23 @@ void PublicComment::unset_id() } utility::string_t PublicComment::getUserId() const { - return m_UserId; + return m_UserId.get(); } void PublicComment::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool PublicComment::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void PublicComment::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t PublicComment::getCommenterName() const { @@ -1220,24 +1190,23 @@ void PublicComment::unsetCommenterName() } utility::string_t PublicComment::getCommenterLink() const { - return m_CommenterLink; + return m_CommenterLink.get(); } void PublicComment::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; - m_CommenterLinkIsSet = true; } bool PublicComment::commenterLinkIsSet() const { - return m_CommenterLinkIsSet; + return m_CommenterLink.has_value(); } void PublicComment::unsetCommenterLink() { - m_CommenterLinkIsSet = false; + m_CommenterLink.reset(); } utility::string_t PublicComment::getCommentHTML() const { @@ -1262,105 +1231,100 @@ void PublicComment::unsetCommentHTML() } utility::string_t PublicComment::getParentId() const { - return m_ParentId; + return m_ParentId.get(); } void PublicComment::setParentId(const utility::string_t& value) { m_ParentId = value; - m_ParentIdIsSet = true; } bool PublicComment::parentIdIsSet() const { - return m_ParentIdIsSet; + return m_ParentId.has_value(); } void PublicComment::unsetParentId() { - m_ParentIdIsSet = false; + m_ParentId.reset(); } utility::datetime PublicComment::getDate() const { - return m_date; + return m_date.get(); } void PublicComment::setDate(const utility::datetime& value) { m_date = value; - m_dateIsSet = true; } bool PublicComment::dateIsSet() const { - return m_dateIsSet; + return m_date.has_value(); } void PublicComment::unsetdate() { - m_dateIsSet = false; + m_date.reset(); } int32_t PublicComment::getVotes() const { - return m_Votes; + return m_Votes.get(); } void PublicComment::setVotes(int32_t value) { m_Votes = value; - m_VotesIsSet = true; } bool PublicComment::votesIsSet() const { - return m_VotesIsSet; + return m_Votes.has_value(); } void PublicComment::unsetVotes() { - m_VotesIsSet = false; + m_Votes.reset(); } int32_t PublicComment::getVotesUp() const { - return m_VotesUp; + return m_VotesUp.get(); } void PublicComment::setVotesUp(int32_t value) { m_VotesUp = value; - m_VotesUpIsSet = true; } bool PublicComment::votesUpIsSet() const { - return m_VotesUpIsSet; + return m_VotesUp.has_value(); } void PublicComment::unsetVotesUp() { - m_VotesUpIsSet = false; + m_VotesUp.reset(); } int32_t PublicComment::getVotesDown() const { - return m_VotesDown; + return m_VotesDown.get(); } void PublicComment::setVotesDown(int32_t value) { m_VotesDown = value; - m_VotesDownIsSet = true; } bool PublicComment::votesDownIsSet() const { - return m_VotesDownIsSet; + return m_VotesDown.has_value(); } void PublicComment::unsetVotesDown() { - m_VotesDownIsSet = false; + m_VotesDown.reset(); } bool PublicComment::isVerified() const { @@ -1384,24 +1348,23 @@ void PublicComment::unsetVerified() } utility::string_t PublicComment::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void PublicComment::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool PublicComment::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void PublicComment::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } bool PublicComment::isHasImages() const { @@ -1465,125 +1428,119 @@ void PublicComment::unsetIsByModerator() } bool PublicComment::isIsPinned() const { - return m_IsPinned; + return m_IsPinned.get(); } void PublicComment::setIsPinned(bool value) { m_IsPinned = value; - m_IsPinnedIsSet = true; } bool PublicComment::isPinnedIsSet() const { - return m_IsPinnedIsSet; + return m_IsPinned.has_value(); } void PublicComment::unsetIsPinned() { - m_IsPinnedIsSet = false; + m_IsPinned.reset(); } bool PublicComment::isIsLocked() const { - return m_IsLocked; + return m_IsLocked.get(); } void PublicComment::setIsLocked(bool value) { m_IsLocked = value; - m_IsLockedIsSet = true; } bool PublicComment::isLockedIsSet() const { - return m_IsLockedIsSet; + return m_IsLocked.has_value(); } void PublicComment::unsetIsLocked() { - m_IsLockedIsSet = false; + m_IsLocked.reset(); } utility::string_t PublicComment::getDisplayLabel() const { - return m_DisplayLabel; + return m_DisplayLabel.get(); } void PublicComment::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; - m_DisplayLabelIsSet = true; } bool PublicComment::displayLabelIsSet() const { - return m_DisplayLabelIsSet; + return m_DisplayLabel.has_value(); } void PublicComment::unsetDisplayLabel() { - m_DisplayLabelIsSet = false; + m_DisplayLabel.reset(); } double PublicComment::getRating() const { - return m_Rating; + return m_Rating.get(); } void PublicComment::setRating(double value) { m_Rating = value; - m_RatingIsSet = true; } bool PublicComment::ratingIsSet() const { - return m_RatingIsSet; + return m_Rating.has_value(); } void PublicComment::unsetRating() { - m_RatingIsSet = false; + m_Rating.reset(); } std::vector> PublicComment::getBadges() const { - return m_Badges; + return m_Badges.get(); } void PublicComment::setBadges(const std::vector>& value) { m_Badges = value; - m_BadgesIsSet = true; } bool PublicComment::badgesIsSet() const { - return m_BadgesIsSet; + return m_Badges.has_value(); } void PublicComment::unsetBadges() { - m_BadgesIsSet = false; + m_Badges.reset(); } int64_t PublicComment::getViewCount() const { - return m_ViewCount; + return m_ViewCount.get(); } void PublicComment::setViewCount(int64_t value) { m_ViewCount = value; - m_ViewCountIsSet = true; } bool PublicComment::viewCountIsSet() const { - return m_ViewCountIsSet; + return m_ViewCount.has_value(); } void PublicComment::unsetViewCount() { - m_ViewCountIsSet = false; + m_ViewCount.reset(); } bool PublicComment::isIsDeleted() const { @@ -1647,24 +1604,23 @@ void PublicComment::unsetIsSpam() } utility::string_t PublicComment::getAnonUserId() const { - return m_AnonUserId; + return m_AnonUserId.get(); } void PublicComment::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; - m_AnonUserIdIsSet = true; } bool PublicComment::anonUserIdIsSet() const { - return m_AnonUserIdIsSet; + return m_AnonUserId.has_value(); } void PublicComment::unsetAnonUserId() { - m_AnonUserIdIsSet = false; + m_AnonUserId.reset(); } std::vector PublicComment::getFeedbackIds() const { diff --git a/client/src/model/PublicCommentBase.cpp b/client/src/model/PublicCommentBase.cpp index 11c32b0..635c6ac 100644 --- a/client/src/model/PublicCommentBase.cpp +++ b/client/src/model/PublicCommentBase.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,53 +22,24 @@ PublicCommentBase::PublicCommentBase() { m__id = utility::conversions::to_string_t(""); m__idIsSet = false; - m_UserId = nullptr; - m_UserIdIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; - m_CommenterLink = utility::conversions::to_string_t(""); - m_CommenterLinkIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; - m_ParentId = utility::conversions::to_string_t(""); - m_ParentIdIsSet = false; - m_date = utility::datetime(); - m_dateIsSet = false; - m_Votes = 0; - m_VotesIsSet = false; - m_VotesUp = 0; - m_VotesUpIsSet = false; - m_VotesDown = 0; - m_VotesDownIsSet = false; m_Verified = false; m_VerifiedIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; m_HasImages = false; m_HasImagesIsSet = false; m_IsByAdmin = false; m_IsByAdminIsSet = false; m_IsByModerator = false; m_IsByModeratorIsSet = false; - m_IsPinned = false; - m_IsPinnedIsSet = false; - m_IsLocked = false; - m_IsLockedIsSet = false; - m_DisplayLabel = utility::conversions::to_string_t(""); - m_DisplayLabelIsSet = false; - m_Rating = 0.0; - m_RatingIsSet = false; - m_BadgesIsSet = false; - m_ViewCount = 0L; - m_ViewCountIsSet = false; m_IsDeleted = false; m_IsDeletedIsSet = false; m_IsDeletedUser = false; m_IsDeletedUserIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; - m_AnonUserId = utility::conversions::to_string_t(""); - m_AnonUserIdIsSet = false; m_FeedbackIdsIsSet = false; m_RequiresVerification = false; m_RequiresVerificationIsSet = false; @@ -91,147 +62,147 @@ web::json::value PublicCommentBase::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterLinkIsSet) - { + if(m_CommenterLink.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } - if(m_ParentIdIsSet) - { + if(m_ParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); } - if(m_dateIsSet) - { + if(m_date.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); } - if(m_VotesIsSet) - { + if(m_Votes.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); } - if(m_VotesUpIsSet) - { + if(m_VotesUp.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); } - if(m_VotesDownIsSet) - { + if(m_VotesDown.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } if(m_HasImagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasImages"))] = ModelBase::toJson(m_HasImages); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } - if(m_IsPinnedIsSet) - { + if(m_IsPinned.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); } - if(m_IsLockedIsSet) - { + if(m_IsLocked.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); } - if(m_DisplayLabelIsSet) - { + if(m_DisplayLabel.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); } - if(m_RatingIsSet) - { + if(m_Rating.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating); + val[utility::conversions::to_string_t(_XPLATSTR("rating"))] = ModelBase::toJson(m_Rating.get()); } - if(m_BadgesIsSet) - { + if(m_Badges.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges.get()); } - if(m_ViewCountIsSet) - { + if(m_ViewCount.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount); + val[utility::conversions::to_string_t(_XPLATSTR("viewCount"))] = ModelBase::toJson(m_ViewCount.get()); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } - if(m_AnonUserIdIsSet) - { + if(m_AnonUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } if(m_RequiresVerificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("requiresVerification"))] = ModelBase::toJson(m_RequiresVerification); } if(m_EditKeyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } @@ -575,49 +546,49 @@ void PublicCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } if(m_CommenterNameIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterLinkIsSet) + if(m_CommenterLink.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); } if(m_CommentHTMLIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); } - if(m_ParentIdIsSet) + if(m_ParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); } - if(m_dateIsSet) + if(m_date.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); } - if(m_VotesIsSet) + if(m_Votes.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); } - if(m_VotesUpIsSet) + if(m_VotesUp.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); } - if(m_VotesDownIsSet) + if(m_VotesDown.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } if(m_HasImagesIsSet) { @@ -631,29 +602,29 @@ void PublicCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); } - if(m_IsPinnedIsSet) + if(m_IsPinned.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); } - if(m_IsLockedIsSet) + if(m_IsLocked.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); } - if(m_DisplayLabelIsSet) + if(m_DisplayLabel.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); } - if(m_RatingIsSet) + if(m_Rating.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("rating")), m_Rating.get())); } - if(m_BadgesIsSet) + if(m_Badges.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges.get())); } - if(m_ViewCountIsSet) + if(m_ViewCount.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("viewCount")), m_ViewCount.get())); } if(m_IsDeletedIsSet) { @@ -667,9 +638,9 @@ void PublicCommentBase::toMultipart(std::shared_ptr multipart { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSpam")), m_IsSpam)); } - if(m_AnonUserIdIsSet) + if(m_AnonUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); } if(m_FeedbackIdsIsSet) { @@ -899,24 +870,23 @@ void PublicCommentBase::unset_id() } utility::string_t PublicCommentBase::getUserId() const { - return m_UserId; + return m_UserId.get(); } void PublicCommentBase::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool PublicCommentBase::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void PublicCommentBase::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t PublicCommentBase::getCommenterName() const { @@ -941,24 +911,23 @@ void PublicCommentBase::unsetCommenterName() } utility::string_t PublicCommentBase::getCommenterLink() const { - return m_CommenterLink; + return m_CommenterLink.get(); } void PublicCommentBase::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; - m_CommenterLinkIsSet = true; } bool PublicCommentBase::commenterLinkIsSet() const { - return m_CommenterLinkIsSet; + return m_CommenterLink.has_value(); } void PublicCommentBase::unsetCommenterLink() { - m_CommenterLinkIsSet = false; + m_CommenterLink.reset(); } utility::string_t PublicCommentBase::getCommentHTML() const { @@ -983,105 +952,100 @@ void PublicCommentBase::unsetCommentHTML() } utility::string_t PublicCommentBase::getParentId() const { - return m_ParentId; + return m_ParentId.get(); } void PublicCommentBase::setParentId(const utility::string_t& value) { m_ParentId = value; - m_ParentIdIsSet = true; } bool PublicCommentBase::parentIdIsSet() const { - return m_ParentIdIsSet; + return m_ParentId.has_value(); } void PublicCommentBase::unsetParentId() { - m_ParentIdIsSet = false; + m_ParentId.reset(); } utility::datetime PublicCommentBase::getDate() const { - return m_date; + return m_date.get(); } void PublicCommentBase::setDate(const utility::datetime& value) { m_date = value; - m_dateIsSet = true; } bool PublicCommentBase::dateIsSet() const { - return m_dateIsSet; + return m_date.has_value(); } void PublicCommentBase::unsetdate() { - m_dateIsSet = false; + m_date.reset(); } int32_t PublicCommentBase::getVotes() const { - return m_Votes; + return m_Votes.get(); } void PublicCommentBase::setVotes(int32_t value) { m_Votes = value; - m_VotesIsSet = true; } bool PublicCommentBase::votesIsSet() const { - return m_VotesIsSet; + return m_Votes.has_value(); } void PublicCommentBase::unsetVotes() { - m_VotesIsSet = false; + m_Votes.reset(); } int32_t PublicCommentBase::getVotesUp() const { - return m_VotesUp; + return m_VotesUp.get(); } void PublicCommentBase::setVotesUp(int32_t value) { m_VotesUp = value; - m_VotesUpIsSet = true; } bool PublicCommentBase::votesUpIsSet() const { - return m_VotesUpIsSet; + return m_VotesUp.has_value(); } void PublicCommentBase::unsetVotesUp() { - m_VotesUpIsSet = false; + m_VotesUp.reset(); } int32_t PublicCommentBase::getVotesDown() const { - return m_VotesDown; + return m_VotesDown.get(); } void PublicCommentBase::setVotesDown(int32_t value) { m_VotesDown = value; - m_VotesDownIsSet = true; } bool PublicCommentBase::votesDownIsSet() const { - return m_VotesDownIsSet; + return m_VotesDown.has_value(); } void PublicCommentBase::unsetVotesDown() { - m_VotesDownIsSet = false; + m_VotesDown.reset(); } bool PublicCommentBase::isVerified() const { @@ -1105,24 +1069,23 @@ void PublicCommentBase::unsetVerified() } utility::string_t PublicCommentBase::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void PublicCommentBase::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool PublicCommentBase::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void PublicCommentBase::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } bool PublicCommentBase::isHasImages() const { @@ -1186,125 +1149,119 @@ void PublicCommentBase::unsetIsByModerator() } bool PublicCommentBase::isIsPinned() const { - return m_IsPinned; + return m_IsPinned.get(); } void PublicCommentBase::setIsPinned(bool value) { m_IsPinned = value; - m_IsPinnedIsSet = true; } bool PublicCommentBase::isPinnedIsSet() const { - return m_IsPinnedIsSet; + return m_IsPinned.has_value(); } void PublicCommentBase::unsetIsPinned() { - m_IsPinnedIsSet = false; + m_IsPinned.reset(); } bool PublicCommentBase::isIsLocked() const { - return m_IsLocked; + return m_IsLocked.get(); } void PublicCommentBase::setIsLocked(bool value) { m_IsLocked = value; - m_IsLockedIsSet = true; } bool PublicCommentBase::isLockedIsSet() const { - return m_IsLockedIsSet; + return m_IsLocked.has_value(); } void PublicCommentBase::unsetIsLocked() { - m_IsLockedIsSet = false; + m_IsLocked.reset(); } utility::string_t PublicCommentBase::getDisplayLabel() const { - return m_DisplayLabel; + return m_DisplayLabel.get(); } void PublicCommentBase::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; - m_DisplayLabelIsSet = true; } bool PublicCommentBase::displayLabelIsSet() const { - return m_DisplayLabelIsSet; + return m_DisplayLabel.has_value(); } void PublicCommentBase::unsetDisplayLabel() { - m_DisplayLabelIsSet = false; + m_DisplayLabel.reset(); } double PublicCommentBase::getRating() const { - return m_Rating; + return m_Rating.get(); } void PublicCommentBase::setRating(double value) { m_Rating = value; - m_RatingIsSet = true; } bool PublicCommentBase::ratingIsSet() const { - return m_RatingIsSet; + return m_Rating.has_value(); } void PublicCommentBase::unsetRating() { - m_RatingIsSet = false; + m_Rating.reset(); } std::vector> PublicCommentBase::getBadges() const { - return m_Badges; + return m_Badges.get(); } void PublicCommentBase::setBadges(const std::vector>& value) { m_Badges = value; - m_BadgesIsSet = true; } bool PublicCommentBase::badgesIsSet() const { - return m_BadgesIsSet; + return m_Badges.has_value(); } void PublicCommentBase::unsetBadges() { - m_BadgesIsSet = false; + m_Badges.reset(); } int64_t PublicCommentBase::getViewCount() const { - return m_ViewCount; + return m_ViewCount.get(); } void PublicCommentBase::setViewCount(int64_t value) { m_ViewCount = value; - m_ViewCountIsSet = true; } bool PublicCommentBase::viewCountIsSet() const { - return m_ViewCountIsSet; + return m_ViewCount.has_value(); } void PublicCommentBase::unsetViewCount() { - m_ViewCountIsSet = false; + m_ViewCount.reset(); } bool PublicCommentBase::isIsDeleted() const { @@ -1368,24 +1325,23 @@ void PublicCommentBase::unsetIsSpam() } utility::string_t PublicCommentBase::getAnonUserId() const { - return m_AnonUserId; + return m_AnonUserId.get(); } void PublicCommentBase::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; - m_AnonUserIdIsSet = true; } bool PublicCommentBase::anonUserIdIsSet() const { - return m_AnonUserIdIsSet; + return m_AnonUserId.has_value(); } void PublicCommentBase::unsetAnonUserId() { - m_AnonUserIdIsSet = false; + m_AnonUserId.reset(); } std::vector PublicCommentBase::getFeedbackIds() const { diff --git a/client/src/model/PublicFeedPostsResponse.cpp b/client/src/model/PublicFeedPostsResponse.cpp index 2b3362d..915debe 100644 --- a/client/src/model/PublicFeedPostsResponse.cpp +++ b/client/src/model/PublicFeedPostsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,7 +22,6 @@ PublicFeedPostsResponse::PublicFeedPostsResponse() { m_StatusIsSet = false; m_FeedPostsIsSet = false; - m_UserIsSet = false; m_UrlIdWS = utility::conversions::to_string_t(""); m_UrlIdWSIsSet = false; m_UserIdWS = utility::conversions::to_string_t(""); @@ -45,37 +44,37 @@ web::json::value PublicFeedPostsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_FeedPostsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedPosts"))] = ModelBase::toJson(m_FeedPosts); } - if(m_UserIsSet) - { + if(m_User.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); } if(m_UrlIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); } if(m_UserIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); } if(m_TenantIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))] = ModelBase::toJson(m_TenantIdWS); } if(m_MyReactsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("myReacts"))] = ModelBase::toJson(m_MyReacts); } @@ -181,9 +180,9 @@ void PublicFeedPostsResponse::toMultipart(std::shared_ptr mul { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPosts")), m_FeedPosts)); } - if(m_UserIsSet) + if(m_User.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); } if(m_UrlIdWSIsSet) { @@ -302,24 +301,23 @@ void PublicFeedPostsResponse::unsetFeedPosts() } std::shared_ptr PublicFeedPostsResponse::getUser() const { - return m_User; + return m_User.get(); } void PublicFeedPostsResponse::setUser(const std::shared_ptr& value) { m_User = value; - m_UserIsSet = true; } bool PublicFeedPostsResponse::userIsSet() const { - return m_UserIsSet; + return m_User.has_value(); } void PublicFeedPostsResponse::unsetUser() { - m_UserIsSet = false; + m_User.reset(); } utility::string_t PublicFeedPostsResponse::getUrlIdWS() const { diff --git a/client/src/model/PublicPage.cpp b/client/src/model/PublicPage.cpp index 20c13f9..d011e2c 100644 --- a/client/src/model/PublicPage.cpp +++ b/client/src/model/PublicPage.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -45,27 +45,27 @@ web::json::value PublicPage::toJson() const { web::json::value val = web::json::value::object(); if(m_UpdatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("updatedAt"))] = ModelBase::toJson(m_UpdatedAt); } if(m_CommentCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } diff --git a/client/src/model/PublicVote.cpp b/client/src/model/PublicVote.cpp index b940dbe..5640031 100644 --- a/client/src/model/PublicVote.cpp +++ b/client/src/model/PublicVote.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -47,32 +47,32 @@ web::json::value PublicVote::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_CommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_DirectionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("direction"))] = ModelBase::toJson(m_Direction); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } diff --git a/client/src/model/PutDomainConfigResponse.cpp b/client/src/model/PutDomainConfigResponse.cpp index 703540b..a9bfd98 100644 --- a/client/src/model/PutDomainConfigResponse.cpp +++ b/client/src/model/PutDomainConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,8 +20,6 @@ namespace model { PutDomainConfigResponse::PutDomainConfigResponse() { - m_ConfigurationIsSet = false; - m_StatusIsSet = false; m_Reason = utility::conversions::to_string_t(""); m_ReasonIsSet = false; m_Code = utility::conversions::to_string_t(""); @@ -40,23 +38,23 @@ void PutDomainConfigResponse::validate() web::json::value PutDomainConfigResponse::toJson() const { web::json::value val = web::json::value::object(); - if(m_ConfigurationIsSet) - { + if(m_Configuration.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration); + val[utility::conversions::to_string_t(_XPLATSTR("configuration"))] = ModelBase::toJson(m_Configuration.get()); } - if(m_StatusIsSet) - { + if(m_Status.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status.get()); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } @@ -121,13 +119,13 @@ void PutDomainConfigResponse::toMultipart(std::shared_ptr mul { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_ConfigurationIsSet) + if(m_Configuration.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("configuration")), m_Configuration.get())); } - if(m_StatusIsSet) + if(m_Status.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status.get())); } if(m_ReasonIsSet) { @@ -178,45 +176,43 @@ bool PutDomainConfigResponse::fromMultiPart(std::shared_ptr m std::shared_ptr PutDomainConfigResponse::getConfiguration() const { - return m_Configuration; + return m_Configuration.get(); } void PutDomainConfigResponse::setConfiguration(const std::shared_ptr& value) { m_Configuration = value; - m_ConfigurationIsSet = true; } bool PutDomainConfigResponse::configurationIsSet() const { - return m_ConfigurationIsSet; + return m_Configuration.has_value(); } void PutDomainConfigResponse::unsetConfiguration() { - m_ConfigurationIsSet = false; + m_Configuration.reset(); } std::shared_ptr PutDomainConfigResponse::getStatus() const { - return m_Status; + return m_Status.get(); } void PutDomainConfigResponse::setStatus(const std::shared_ptr& value) { m_Status = value; - m_StatusIsSet = true; } bool PutDomainConfigResponse::statusIsSet() const { - return m_StatusIsSet; + return m_Status.has_value(); } void PutDomainConfigResponse::unsetStatus() { - m_StatusIsSet = false; + m_Status.reset(); } utility::string_t PutDomainConfigResponse::getReason() const { diff --git a/client/src/model/PutSSOUserAPIResponse.cpp b/client/src/model/PutSSOUserAPIResponse.cpp index db53426..bc05511 100644 --- a/client/src/model/PutSSOUserAPIResponse.cpp +++ b/client/src/model/PutSSOUserAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,7 +24,6 @@ PutSSOUserAPIResponse::PutSSOUserAPIResponse() m_ReasonIsSet = false; m_Code = utility::conversions::to_string_t(""); m_CodeIsSet = false; - m_UserIsSet = false; m_Status = utility::conversions::to_string_t(""); m_StatusIsSet = false; } @@ -42,22 +41,22 @@ web::json::value PutSSOUserAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } - if(m_UserIsSet) - { + if(m_User.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } @@ -130,9 +129,9 @@ void PutSSOUserAPIResponse::toMultipart(std::shared_ptr multi { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); } - if(m_UserIsSet) + if(m_User.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); } if(m_StatusIsSet) { @@ -221,24 +220,23 @@ void PutSSOUserAPIResponse::unsetCode() } std::shared_ptr PutSSOUserAPIResponse::getUser() const { - return m_User; + return m_User.get(); } void PutSSOUserAPIResponse::setUser(const std::shared_ptr& value) { m_User = value; - m_UserIsSet = true; } bool PutSSOUserAPIResponse::userIsSet() const { - return m_UserIsSet; + return m_User.has_value(); } void PutSSOUserAPIResponse::unsetUser() { - m_UserIsSet = false; + m_User.reset(); } utility::string_t PutSSOUserAPIResponse::getStatus() const { diff --git a/client/src/model/QueryPredicate.cpp b/client/src/model/QueryPredicate.cpp index 75f9831..24a951c 100644 --- a/client/src/model/QueryPredicate.cpp +++ b/client/src/model/QueryPredicate.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,17 +39,17 @@ web::json::value QueryPredicate::toJson() const { web::json::value val = web::json::value::object(); if(m_KeyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("key"))] = ModelBase::toJson(m_Key); } if(m_ValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("value"))] = ModelBase::toJson(m_Value); } if(m_r_operatorIsSet) - { + { utility::string_t refVal = fromR_operatorEnum(m_r_operator); val[utility::conversions::to_string_t(_XPLATSTR("operator"))] = ModelBase::toJson(refVal); diff --git a/client/src/model/QueryPredicate_value.cpp b/client/src/model/QueryPredicate_value.cpp index c1bcbd7..f32ad05 100644 --- a/client/src/model/QueryPredicate_value.cpp +++ b/client/src/model/QueryPredicate_value.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionConfig.cpp b/client/src/model/QuestionConfig.cpp index 0fddc00..db085b8 100644 --- a/client/src/model/QuestionConfig.cpp +++ b/client/src/model/QuestionConfig.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -75,107 +75,107 @@ web::json::value QuestionConfig::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_QuestionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("question"))] = ModelBase::toJson(m_Question); } if(m_SummaryLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("summaryLabel"))] = ModelBase::toJson(m_SummaryLabel); } if(m_HelpTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("helpText"))] = ModelBase::toJson(m_HelpText); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_CreatedByIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdBy"))] = ModelBase::toJson(m_CreatedBy); } if(m_UsedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("usedCount"))] = ModelBase::toJson(m_UsedCount); } if(m_LastUsedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastUsed"))] = ModelBase::toJson(m_LastUsed); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_NumStarsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("numStars"))] = ModelBase::toJson(m_NumStars); } if(m_MinIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("min"))] = ModelBase::toJson(m_Min); } if(m_MaxIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("max"))] = ModelBase::toJson(m_Max); } if(m_DefaultValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("defaultValue"))] = ModelBase::toJson(m_DefaultValue); } if(m_LabelNegativeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("labelNegative"))] = ModelBase::toJson(m_LabelNegative); } if(m_LabelPositiveIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("labelPositive"))] = ModelBase::toJson(m_LabelPositive); } if(m_CustomOptionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customOptions"))] = ModelBase::toJson(m_CustomOptions); } if(m_SubQuestionIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subQuestionIds"))] = ModelBase::toJson(m_SubQuestionIds); } if(m_AlwaysShowSubQuestionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("alwaysShowSubQuestions"))] = ModelBase::toJson(m_AlwaysShowSubQuestions); } if(m_ReportingOrderIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reportingOrder"))] = ModelBase::toJson(m_ReportingOrder); } diff --git a/client/src/model/QuestionConfig_customOptions_inner.cpp b/client/src/model/QuestionConfig_customOptions_inner.cpp index 65131aa..2402114 100644 --- a/client/src/model/QuestionConfig_customOptions_inner.cpp +++ b/client/src/model/QuestionConfig_customOptions_inner.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value QuestionConfig_customOptions_inner::toJson() const { web::json::value val = web::json::value::object(); if(m_ImageSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("imageSrc"))] = ModelBase::toJson(m_ImageSrc); } if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } diff --git a/client/src/model/QuestionDatum.cpp b/client/src/model/QuestionDatum.cpp index fe0dc70..2ee7d07 100644 --- a/client/src/model/QuestionDatum.cpp +++ b/client/src/model/QuestionDatum.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value QuestionDatum::toJson() const { web::json::value val = web::json::value::object(); if(m_vIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("v"))] = ModelBase::toJson(m_v); } if(m_TotalIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("total"))] = ModelBase::toJson(m_Total); } diff --git a/client/src/model/QuestionRenderingType.cpp b/client/src/model/QuestionRenderingType.cpp index e024107..06cb1d0 100644 --- a/client/src/model/QuestionRenderingType.cpp +++ b/client/src/model/QuestionRenderingType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionResult.cpp b/client/src/model/QuestionResult.cpp index 7a110c0..d1a9a59 100644 --- a/client/src/model/QuestionResult.cpp +++ b/client/src/model/QuestionResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -34,11 +34,8 @@ QuestionResult::QuestionResult() m_CreatedAtIsSet = false; m_Value = 0; m_ValueIsSet = false; - m_CommentId = utility::conversions::to_string_t(""); - m_CommentIdIsSet = false; m_QuestionId = utility::conversions::to_string_t(""); m_QuestionIdIsSet = false; - m_MetaIsSet = false; m_IpHash = utility::conversions::to_string_t(""); m_IpHashIsSet = false; } @@ -56,57 +53,57 @@ web::json::value QuestionResult::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_AnonUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_ValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("value"))] = ModelBase::toJson(m_Value); } - if(m_CommentIdIsSet) - { + if(m_CommentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId); + val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId.get()); } if(m_QuestionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionId"))] = ModelBase::toJson(m_QuestionId); } - if(m_MetaIsSet) - { + if(m_Meta.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); } if(m_IpHashIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ipHash"))] = ModelBase::toJson(m_IpHash); } @@ -276,17 +273,17 @@ void QuestionResult::toMultipart(std::shared_ptr multipart, c { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("value")), m_Value)); } - if(m_CommentIdIsSet) + if(m_CommentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentId")), m_CommentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentId")), m_CommentId.get())); } if(m_QuestionIdIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionId")), m_QuestionId)); } - if(m_MetaIsSet) + if(m_Meta.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); } if(m_IpHashIsSet) { @@ -521,24 +518,23 @@ void QuestionResult::unsetValue() } utility::string_t QuestionResult::getCommentId() const { - return m_CommentId; + return m_CommentId.get(); } void QuestionResult::setCommentId(const utility::string_t& value) { m_CommentId = value; - m_CommentIdIsSet = true; } bool QuestionResult::commentIdIsSet() const { - return m_CommentIdIsSet; + return m_CommentId.has_value(); } void QuestionResult::unsetCommentId() { - m_CommentIdIsSet = false; + m_CommentId.reset(); } utility::string_t QuestionResult::getQuestionId() const { @@ -563,24 +559,23 @@ void QuestionResult::unsetQuestionId() } std::vector> QuestionResult::getMeta() const { - return m_Meta; + return m_Meta.get(); } void QuestionResult::setMeta(const std::vector>& value) { m_Meta = value; - m_MetaIsSet = true; } bool QuestionResult::metaIsSet() const { - return m_MetaIsSet; + return m_Meta.has_value(); } void QuestionResult::unsetMeta() { - m_MetaIsSet = false; + m_Meta.reset(); } utility::string_t QuestionResult::getIpHash() const { diff --git a/client/src/model/QuestionResultAggregationOverall.cpp b/client/src/model/QuestionResultAggregationOverall.cpp index 6fa5b7d..6e72bab 100644 --- a/client/src/model/QuestionResultAggregationOverall.cpp +++ b/client/src/model/QuestionResultAggregationOverall.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -44,32 +44,32 @@ web::json::value QuestionResultAggregationOverall::toJson() const { web::json::value val = web::json::value::object(); if(m_DataByDateBucketIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("dataByDateBucket"))] = ModelBase::toJson(m_DataByDateBucket); } if(m_DataByUrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("dataByUrlId"))] = ModelBase::toJson(m_DataByUrlId); } if(m_CountsByValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("countsByValue"))] = ModelBase::toJson(m_CountsByValue); } if(m_TotalIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("total"))] = ModelBase::toJson(m_Total); } if(m_AverageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("average"))] = ModelBase::toJson(m_Average); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } diff --git a/client/src/model/QuestionSubQuestionVisibility.cpp b/client/src/model/QuestionSubQuestionVisibility.cpp index 5cd3512..6b88ce4 100644 --- a/client/src/model/QuestionSubQuestionVisibility.cpp +++ b/client/src/model/QuestionSubQuestionVisibility.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionWhenSave.cpp b/client/src/model/QuestionWhenSave.cpp index 2f966e1..8d2af58 100644 --- a/client/src/model/QuestionWhenSave.cpp +++ b/client/src/model/QuestionWhenSave.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ReactBodyParams.cpp b/client/src/model/ReactBodyParams.cpp index a681d5e..c604bc8 100644 --- a/client/src/model/ReactBodyParams.cpp +++ b/client/src/model/ReactBodyParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,7 @@ web::json::value ReactBodyParams::toJson() const { web::json::value val = web::json::value::object(); if(m_ReactTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reactType"))] = ModelBase::toJson(m_ReactType); } diff --git a/client/src/model/ReactFeedPostResponse.cpp b/client/src/model/ReactFeedPostResponse.cpp index fc62cd1..7e865c0 100644 --- a/client/src/model/ReactFeedPostResponse.cpp +++ b/client/src/model/ReactFeedPostResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,17 +40,17 @@ web::json::value ReactFeedPostResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ReactTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reactType"))] = ModelBase::toJson(m_ReactType); } if(m_IsUndoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isUndo"))] = ModelBase::toJson(m_IsUndo); } diff --git a/client/src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp b/client/src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp index e679434..dc4efb5 100644 --- a/client/src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp +++ b/client/src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,10 +20,6 @@ namespace model { Record_string__before_string_or_null__after_string_or_null___value::Record_string__before_string_or_null__after_string_or_null___value() { - m_After = utility::conversions::to_string_t(""); - m_AfterIsSet = false; - m_Before = utility::conversions::to_string_t(""); - m_BeforeIsSet = false; } Record_string__before_string_or_null__after_string_or_null___value::~Record_string__before_string_or_null__after_string_or_null___value() @@ -38,15 +34,15 @@ void Record_string__before_string_or_null__after_string_or_null___value::validat web::json::value Record_string__before_string_or_null__after_string_or_null___value::toJson() const { web::json::value val = web::json::value::object(); - if(m_AfterIsSet) - { + if(m_After.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("after"))] = ModelBase::toJson(m_After); + val[utility::conversions::to_string_t(_XPLATSTR("after"))] = ModelBase::toJson(m_After.get()); } - if(m_BeforeIsSet) - { + if(m_Before.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("before"))] = ModelBase::toJson(m_Before); + val[utility::conversions::to_string_t(_XPLATSTR("before"))] = ModelBase::toJson(m_Before.get()); } return val; @@ -87,13 +83,13 @@ void Record_string__before_string_or_null__after_string_or_null___value::toMulti { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_AfterIsSet) + if(m_After.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("after")), m_After)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("after")), m_After.get())); } - if(m_BeforeIsSet) + if(m_Before.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("before")), m_Before)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("before")), m_Before.get())); } } @@ -124,45 +120,43 @@ bool Record_string__before_string_or_null__after_string_or_null___value::fromMul utility::string_t Record_string__before_string_or_null__after_string_or_null___value::getAfter() const { - return m_After; + return m_After.get(); } void Record_string__before_string_or_null__after_string_or_null___value::setAfter(const utility::string_t& value) { m_After = value; - m_AfterIsSet = true; } bool Record_string__before_string_or_null__after_string_or_null___value::afterIsSet() const { - return m_AfterIsSet; + return m_After.has_value(); } void Record_string__before_string_or_null__after_string_or_null___value::unsetAfter() { - m_AfterIsSet = false; + m_After.reset(); } utility::string_t Record_string__before_string_or_null__after_string_or_null___value::getBefore() const { - return m_Before; + return m_Before.get(); } void Record_string__before_string_or_null__after_string_or_null___value::setBefore(const utility::string_t& value) { m_Before = value; - m_BeforeIsSet = true; } bool Record_string__before_string_or_null__after_string_or_null___value::beforeIsSet() const { - return m_BeforeIsSet; + return m_Before.has_value(); } void Record_string__before_string_or_null__after_string_or_null___value::unsetBefore() { - m_BeforeIsSet = false; + m_Before.reset(); } } diff --git a/client/src/model/RemoveCommentActionResponse.cpp b/client/src/model/RemoveCommentActionResponse.cpp index cd8255a..e294b8f 100644 --- a/client/src/model/RemoveCommentActionResponse.cpp +++ b/client/src/model/RemoveCommentActionResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value RemoveCommentActionResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ActionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("action"))] = ModelBase::toJson(m_Action); } diff --git a/client/src/model/RemoveUserBadgeResponse.cpp b/client/src/model/RemoveUserBadgeResponse.cpp index b77ec59..830c859 100644 --- a/client/src/model/RemoveUserBadgeResponse.cpp +++ b/client/src/model/RemoveUserBadgeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value RemoveUserBadgeResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_BadgesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/RenderEmailTemplateBody.cpp b/client/src/model/RenderEmailTemplateBody.cpp index aae90d9..783aff2 100644 --- a/client/src/model/RenderEmailTemplateBody.cpp +++ b/client/src/model/RenderEmailTemplateBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,22 +41,22 @@ web::json::value RenderEmailTemplateBody::toJson() const { web::json::value val = web::json::value::object(); if(m_EmailTemplateIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplateId"))] = ModelBase::toJson(m_EmailTemplateId); } if(m_EjsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ejs"))] = ModelBase::toJson(m_Ejs); } if(m_TestDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("testData"))] = ModelBase::toJson(m_TestData); } if(m_TranslationOverridesByLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))] = ModelBase::toJson(m_TranslationOverridesByLocale); } @@ -105,7 +105,7 @@ bool RenderEmailTemplateBody::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))); if(!fieldValue.is_null()) { - std::map refVal_setTranslationOverridesByLocale; + std::map> refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromJson(fieldValue, refVal_setTranslationOverridesByLocale); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); @@ -168,7 +168,7 @@ bool RenderEmailTemplateBody::fromMultiPart(std::shared_ptr m } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale")))) { - std::map refVal_setTranslationOverridesByLocale; + std::map> refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))), refVal_setTranslationOverridesByLocale ); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); } @@ -239,13 +239,13 @@ void RenderEmailTemplateBody::unsetTestData() { m_TestDataIsSet = false; } -std::map RenderEmailTemplateBody::getTranslationOverridesByLocale() const +std::map> RenderEmailTemplateBody::getTranslationOverridesByLocale() const { return m_TranslationOverridesByLocale; } -void RenderEmailTemplateBody::setTranslationOverridesByLocale(const std::map& value) +void RenderEmailTemplateBody::setTranslationOverridesByLocale(const std::map>& value) { m_TranslationOverridesByLocale = value; m_TranslationOverridesByLocaleIsSet = true; diff --git a/client/src/model/RenderEmailTemplateResponse.cpp b/client/src/model/RenderEmailTemplateResponse.cpp index aa83e94..394d352 100644 --- a/client/src/model/RenderEmailTemplateResponse.cpp +++ b/client/src/model/RenderEmailTemplateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value RenderEmailTemplateResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_HtmlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("html"))] = ModelBase::toJson(m_Html); } diff --git a/client/src/model/RenderableUserNotification.cpp b/client/src/model/RenderableUserNotification.cpp index 95f5a3c..15d469d 100644 --- a/client/src/model/RenderableUserNotification.cpp +++ b/client/src/model/RenderableUserNotification.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,14 +31,6 @@ RenderableUserNotification::RenderableUserNotification() m_CountIsSet = false; m_OptedOut = false; m_OptedOutIsSet = false; - m_FromUserAvatarSrc = utility::conversions::to_string_t(""); - m_FromUserAvatarSrcIsSet = false; - m_FromUserId = utility::conversions::to_string_t(""); - m_FromUserIdIsSet = false; - m_FromUserName = utility::conversions::to_string_t(""); - m_FromUserNameIsSet = false; - m_FromCommentId = utility::conversions::to_string_t(""); - m_FromCommentIdIsSet = false; m_TypeIsSet = false; m_CreatedAt = utility::conversions::to_string_t(""); m_CreatedAtIsSet = false; @@ -49,8 +41,6 @@ RenderableUserNotification::RenderableUserNotification() m_RelatedObjectId = utility::conversions::to_string_t(""); m_RelatedObjectIdIsSet = false; m_RelatedObjectTypeIsSet = false; - m_PageTitle = utility::conversions::to_string_t(""); - m_PageTitleIsSet = false; m_Url = utility::conversions::to_string_t(""); m_UrlIsSet = false; m_UrlId = utility::conversions::to_string_t(""); @@ -72,107 +62,107 @@ web::json::value RenderableUserNotification::toJson() const { web::json::value val = web::json::value::object(); if(m_ConversationIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("conversationId"))] = ModelBase::toJson(m_ConversationId); } if(m_ContextHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("contextHTML"))] = ModelBase::toJson(m_ContextHTML); } if(m_FromUserNamesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserNames"))] = ModelBase::toJson(m_FromUserNames); } if(m_FromUserIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserIds"))] = ModelBase::toJson(m_FromUserIds); } if(m_RelatedIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("relatedIds"))] = ModelBase::toJson(m_RelatedIds); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } if(m_OptedOutIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedOut"))] = ModelBase::toJson(m_OptedOut); } - if(m_FromUserAvatarSrcIsSet) - { + if(m_FromUserAvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc"))] = ModelBase::toJson(m_FromUserAvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc"))] = ModelBase::toJson(m_FromUserAvatarSrc.get()); } - if(m_FromUserIdIsSet) - { + if(m_FromUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserId"))] = ModelBase::toJson(m_FromUserId); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserId"))] = ModelBase::toJson(m_FromUserId.get()); } - if(m_FromUserNameIsSet) - { + if(m_FromUserName.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserName"))] = ModelBase::toJson(m_FromUserName); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserName"))] = ModelBase::toJson(m_FromUserName.get()); } - if(m_FromCommentIdIsSet) - { + if(m_FromCommentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromCommentId"))] = ModelBase::toJson(m_FromCommentId); + val[utility::conversions::to_string_t(_XPLATSTR("fromCommentId"))] = ModelBase::toJson(m_FromCommentId.get()); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_SentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sent"))] = ModelBase::toJson(m_Sent); } if(m_ViewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("viewed"))] = ModelBase::toJson(m_Viewed); } if(m_RelatedObjectIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("relatedObjectId"))] = ModelBase::toJson(m_RelatedObjectId); } if(m_RelatedObjectTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("relatedObjectType"))] = ModelBase::toJson(m_RelatedObjectType); } - if(m_PageTitleIsSet) - { + if(m_PageTitle.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } @@ -452,21 +442,21 @@ void RenderableUserNotification::toMultipart(std::shared_ptr { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("optedOut")), m_OptedOut)); } - if(m_FromUserAvatarSrcIsSet) + if(m_FromUserAvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc")), m_FromUserAvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc")), m_FromUserAvatarSrc.get())); } - if(m_FromUserIdIsSet) + if(m_FromUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserId")), m_FromUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserId")), m_FromUserId.get())); } - if(m_FromUserNameIsSet) + if(m_FromUserName.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserName")), m_FromUserName)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserName")), m_FromUserName.get())); } - if(m_FromCommentIdIsSet) + if(m_FromCommentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromCommentId")), m_FromCommentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromCommentId")), m_FromCommentId.get())); } if(m_TypeIsSet) { @@ -492,9 +482,9 @@ void RenderableUserNotification::toMultipart(std::shared_ptr { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("relatedObjectType")), m_RelatedObjectType)); } - if(m_PageTitleIsSet) + if(m_PageTitle.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); } if(m_UrlIsSet) { @@ -796,87 +786,83 @@ void RenderableUserNotification::unsetOptedOut() } utility::string_t RenderableUserNotification::getFromUserAvatarSrc() const { - return m_FromUserAvatarSrc; + return m_FromUserAvatarSrc.get(); } void RenderableUserNotification::setFromUserAvatarSrc(const utility::string_t& value) { m_FromUserAvatarSrc = value; - m_FromUserAvatarSrcIsSet = true; } bool RenderableUserNotification::fromUserAvatarSrcIsSet() const { - return m_FromUserAvatarSrcIsSet; + return m_FromUserAvatarSrc.has_value(); } void RenderableUserNotification::unsetFromUserAvatarSrc() { - m_FromUserAvatarSrcIsSet = false; + m_FromUserAvatarSrc.reset(); } utility::string_t RenderableUserNotification::getFromUserId() const { - return m_FromUserId; + return m_FromUserId.get(); } void RenderableUserNotification::setFromUserId(const utility::string_t& value) { m_FromUserId = value; - m_FromUserIdIsSet = true; } bool RenderableUserNotification::fromUserIdIsSet() const { - return m_FromUserIdIsSet; + return m_FromUserId.has_value(); } void RenderableUserNotification::unsetFromUserId() { - m_FromUserIdIsSet = false; + m_FromUserId.reset(); } utility::string_t RenderableUserNotification::getFromUserName() const { - return m_FromUserName; + return m_FromUserName.get(); } void RenderableUserNotification::setFromUserName(const utility::string_t& value) { m_FromUserName = value; - m_FromUserNameIsSet = true; } bool RenderableUserNotification::fromUserNameIsSet() const { - return m_FromUserNameIsSet; + return m_FromUserName.has_value(); } void RenderableUserNotification::unsetFromUserName() { - m_FromUserNameIsSet = false; + m_FromUserName.reset(); } utility::string_t RenderableUserNotification::getFromCommentId() const { - return m_FromCommentId; + return m_FromCommentId.get(); } void RenderableUserNotification::setFromCommentId(const utility::string_t& value) { m_FromCommentId = value; - m_FromCommentIdIsSet = true; } bool RenderableUserNotification::fromCommentIdIsSet() const { - return m_FromCommentIdIsSet; + return m_FromCommentId.has_value(); } void RenderableUserNotification::unsetFromCommentId() { - m_FromCommentIdIsSet = false; + m_FromCommentId.reset(); } std::shared_ptr RenderableUserNotification::getType() const { @@ -1006,24 +992,23 @@ void RenderableUserNotification::unsetRelatedObjectType() } utility::string_t RenderableUserNotification::getPageTitle() const { - return m_PageTitle; + return m_PageTitle.get(); } void RenderableUserNotification::setPageTitle(const utility::string_t& value) { m_PageTitle = value; - m_PageTitleIsSet = true; } bool RenderableUserNotification::pageTitleIsSet() const { - return m_PageTitleIsSet; + return m_PageTitle.has_value(); } void RenderableUserNotification::unsetPageTitle() { - m_PageTitleIsSet = false; + m_PageTitle.reset(); } utility::string_t RenderableUserNotification::getUrl() const { diff --git a/client/src/model/RepeatCommentCheckIgnoredReason.cpp b/client/src/model/RepeatCommentCheckIgnoredReason.cpp index e2ceb84..cd26e6e 100644 --- a/client/src/model/RepeatCommentCheckIgnoredReason.cpp +++ b/client/src/model/RepeatCommentCheckIgnoredReason.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/RepeatCommentHandlingAction.cpp b/client/src/model/RepeatCommentHandlingAction.cpp index c20d30d..9417c30 100644 --- a/client/src/model/RepeatCommentHandlingAction.cpp +++ b/client/src/model/RepeatCommentHandlingAction.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ReplaceTenantPackageBody.cpp b/client/src/model/ReplaceTenantPackageBody.cpp index d3c4acc..38a1d46 100644 --- a/client/src/model/ReplaceTenantPackageBody.cpp +++ b/client/src/model/ReplaceTenantPackageBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -96,157 +96,157 @@ web::json::value ReplaceTenantPackageBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_MonthlyCostUSDIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD"))] = ModelBase::toJson(m_MonthlyCostUSD); } if(m_YearlyCostUSDIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD"))] = ModelBase::toJson(m_YearlyCostUSD); } if(m_MaxMonthlyPageLoadsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyPageLoads"))] = ModelBase::toJson(m_MaxMonthlyPageLoads); } if(m_MaxMonthlyAPICreditsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyAPICredits"))] = ModelBase::toJson(m_MaxMonthlyAPICredits); } if(m_MaxMonthlyCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyComments"))] = ModelBase::toJson(m_MaxMonthlyComments); } if(m_MaxConcurrentUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxConcurrentUsers"))] = ModelBase::toJson(m_MaxConcurrentUsers); } if(m_MaxTenantUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxTenantUsers"))] = ModelBase::toJson(m_MaxTenantUsers); } if(m_MaxSSOUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxSSOUsers"))] = ModelBase::toJson(m_MaxSSOUsers); } if(m_MaxModeratorsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxModerators"))] = ModelBase::toJson(m_MaxModerators); } if(m_MaxDomainsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxDomains"))] = ModelBase::toJson(m_MaxDomains); } if(m_MaxCustomCollectionSizeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCustomCollectionSize"))] = ModelBase::toJson(m_MaxCustomCollectionSize); } if(m_HasDebrandingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasDebranding"))] = ModelBase::toJson(m_HasDebranding); } if(m_ForWhoTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("forWhoText"))] = ModelBase::toJson(m_ForWhoText); } if(m_FeatureTaglinesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("featureTaglines"))] = ModelBase::toJson(m_FeatureTaglines); } if(m_HasFlexPricingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasFlexPricing"))] = ModelBase::toJson(m_HasFlexPricing); } if(m_FlexPageLoadCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadCostCents"))] = ModelBase::toJson(m_FlexPageLoadCostCents); } if(m_FlexPageLoadUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadUnit"))] = ModelBase::toJson(m_FlexPageLoadUnit); } if(m_FlexCommentCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentCostCents"))] = ModelBase::toJson(m_FlexCommentCostCents); } if(m_FlexCommentUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentUnit"))] = ModelBase::toJson(m_FlexCommentUnit); } if(m_FlexSSOUserCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserCostCents"))] = ModelBase::toJson(m_FlexSSOUserCostCents); } if(m_FlexSSOUserUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserUnit"))] = ModelBase::toJson(m_FlexSSOUserUnit); } if(m_FlexAPICreditCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditCostCents"))] = ModelBase::toJson(m_FlexAPICreditCostCents); } if(m_FlexAPICreditUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditUnit"))] = ModelBase::toJson(m_FlexAPICreditUnit); } if(m_FlexModeratorCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorCostCents"))] = ModelBase::toJson(m_FlexModeratorCostCents); } if(m_FlexModeratorUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorUnit"))] = ModelBase::toJson(m_FlexModeratorUnit); } if(m_FlexAdminCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminCostCents"))] = ModelBase::toJson(m_FlexAdminCostCents); } if(m_FlexAdminUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminUnit"))] = ModelBase::toJson(m_FlexAdminUnit); } if(m_FlexDomainCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainCostCents"))] = ModelBase::toJson(m_FlexDomainCostCents); } if(m_FlexDomainUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainUnit"))] = ModelBase::toJson(m_FlexDomainUnit); } if(m_FlexMinimumCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexMinimumCostCents"))] = ModelBase::toJson(m_FlexMinimumCostCents); } diff --git a/client/src/model/ReplaceTenantUserBody.cpp b/client/src/model/ReplaceTenantUserBody.cpp index 6d2a0e0..ea8bc37 100644 --- a/client/src/model/ReplaceTenantUserBody.cpp +++ b/client/src/model/ReplaceTenantUserBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -90,142 +90,142 @@ web::json::value ReplaceTenantUserBody::toJson() const { web::json::value val = web::json::value::object(); if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_LocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_OptedInTenantNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInTenantNotifications"))] = ModelBase::toJson(m_OptedInTenantNotifications); } if(m_HideAccountCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hideAccountCode"))] = ModelBase::toJson(m_HideAccountCode); } if(m_AvatarSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_IsHelpRequestAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isHelpRequestAdmin"))] = ModelBase::toJson(m_IsHelpRequestAdmin); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsBillingAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBillingAdmin"))] = ModelBase::toJson(m_IsBillingAdmin); } if(m_IsAnalyticsAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAnalyticsAdmin"))] = ModelBase::toJson(m_IsAnalyticsAdmin); } if(m_IsCustomizationAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCustomizationAdmin"))] = ModelBase::toJson(m_IsCustomizationAdmin); } if(m_IsManageDataAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isManageDataAdmin"))] = ModelBase::toJson(m_IsManageDataAdmin); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsAPIAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAPIAdmin"))] = ModelBase::toJson(m_IsAPIAdmin); } if(m_ModeratorIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderatorIds"))] = ModelBase::toJson(m_ModeratorIds); } if(m_DigestEmailFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("digestEmailFrequency"))] = ModelBase::toJson(m_DigestEmailFrequency); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } if(m_CreatedFromUrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId"))] = ModelBase::toJson(m_CreatedFromUrlId); } if(m_CreatedFromTenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdFromTenantId"))] = ModelBase::toJson(m_CreatedFromTenantId); } if(m_LastLoginDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastLoginDate"))] = ModelBase::toJson(m_LastLoginDate); } if(m_KarmaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("karma"))] = ModelBase::toJson(m_Karma); } diff --git a/client/src/model/ResetUserNotificationsResponse.cpp b/client/src/model/ResetUserNotificationsResponse.cpp index d321cbf..459ea31 100644 --- a/client/src/model/ResetUserNotificationsResponse.cpp +++ b/client/src/model/ResetUserNotificationsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value ResetUserNotificationsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CodeIsSet) - { + { utility::string_t refVal = fromCodeEnum(m_Code); val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(refVal); diff --git a/client/src/model/SORT_DIR.cpp b/client/src/model/SORT_DIR.cpp index 765a162..a2d789c 100644 --- a/client/src/model/SORT_DIR.cpp +++ b/client/src/model/SORT_DIR.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SSOSecurityLevel.cpp b/client/src/model/SSOSecurityLevel.cpp index 8d6f7e4..e5aa765 100644 --- a/client/src/model/SSOSecurityLevel.cpp +++ b/client/src/model/SSOSecurityLevel.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SaveCommentResponseOptimized.cpp b/client/src/model/SaveCommentResponseOptimized.cpp index 18c75e2..82a7f76 100644 --- a/client/src/model/SaveCommentResponseOptimized.cpp +++ b/client/src/model/SaveCommentResponseOptimized.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,7 +22,6 @@ SaveCommentResponseOptimized::SaveCommentResponseOptimized() { m_StatusIsSet = false; m_CommentIsSet = false; - m_UserIsSet = false; m_ModuleDataIsSet = false; } @@ -39,22 +38,22 @@ web::json::value SaveCommentResponseOptimized::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_UserIsSet) - { + if(m_User.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); } if(m_ModuleDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); } @@ -127,9 +126,9 @@ void SaveCommentResponseOptimized::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_UserIsSet) + if(m_User.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); } if(m_ModuleDataIsSet) { @@ -218,24 +217,23 @@ void SaveCommentResponseOptimized::unsetComment() } std::shared_ptr SaveCommentResponseOptimized::getUser() const { - return m_User; + return m_User.get(); } void SaveCommentResponseOptimized::setUser(const std::shared_ptr& value) { m_User = value; - m_UserIsSet = true; } bool SaveCommentResponseOptimized::userIsSet() const { - return m_UserIsSet; + return m_User.has_value(); } void SaveCommentResponseOptimized::unsetUser() { - m_UserIsSet = false; + m_User.reset(); } std::map> SaveCommentResponseOptimized::getModuleData() const { diff --git a/client/src/model/SaveCommentsBulkResponse.cpp b/client/src/model/SaveCommentsBulkResponse.cpp index 2984bf6..3080875 100644 --- a/client/src/model/SaveCommentsBulkResponse.cpp +++ b/client/src/model/SaveCommentsBulkResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,7 +22,6 @@ SaveCommentsBulkResponse::SaveCommentsBulkResponse() { m_StatusIsSet = false; m_CommentIsSet = false; - m_UserIsSet = false; m_ModuleDataIsSet = false; m_Reason = utility::conversions::to_string_t(""); m_ReasonIsSet = false; @@ -52,57 +51,57 @@ web::json::value SaveCommentsBulkResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_UserIsSet) - { + if(m_User.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); } if(m_ModuleDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_SecondaryCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); } if(m_BannedUntilIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); } if(m_MaxCharacterLengthIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); } if(m_TranslatedErrorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); } if(m_CustomConfigIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); } @@ -252,9 +251,9 @@ void SaveCommentsBulkResponse::toMultipart(std::shared_ptr mu { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_UserIsSet) + if(m_User.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); } if(m_ModuleDataIsSet) { @@ -413,24 +412,23 @@ void SaveCommentsBulkResponse::unsetComment() } std::shared_ptr SaveCommentsBulkResponse::getUser() const { - return m_User; + return m_User.get(); } void SaveCommentsBulkResponse::setUser(const std::shared_ptr& value) { m_User = value; - m_UserIsSet = true; } bool SaveCommentsBulkResponse::userIsSet() const { - return m_UserIsSet; + return m_User.has_value(); } void SaveCommentsBulkResponse::unsetUser() { - m_UserIsSet = false; + m_User.reset(); } std::map> SaveCommentsBulkResponse::getModuleData() const { diff --git a/client/src/model/SaveCommentsResponseWithPresence.cpp b/client/src/model/SaveCommentsResponseWithPresence.cpp index 4ef8e23..c62513d 100644 --- a/client/src/model/SaveCommentsResponseWithPresence.cpp +++ b/client/src/model/SaveCommentsResponseWithPresence.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,7 +22,6 @@ SaveCommentsResponseWithPresence::SaveCommentsResponseWithPresence() { m_StatusIsSet = false; m_CommentIsSet = false; - m_UserIsSet = false; m_ModuleDataIsSet = false; m_UserIdWS = utility::conversions::to_string_t(""); m_UserIdWSIsSet = false; @@ -41,27 +40,27 @@ web::json::value SaveCommentsResponseWithPresence::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } - if(m_UserIsSet) - { + if(m_User.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); } if(m_ModuleDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); } if(m_UserIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); } @@ -145,9 +144,9 @@ void SaveCommentsResponseWithPresence::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); } - if(m_UserIsSet) + if(m_User.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); } if(m_ModuleDataIsSet) { @@ -246,24 +245,23 @@ void SaveCommentsResponseWithPresence::unsetComment() } std::shared_ptr SaveCommentsResponseWithPresence::getUser() const { - return m_User; + return m_User.get(); } void SaveCommentsResponseWithPresence::setUser(const std::shared_ptr& value) { m_User = value; - m_UserIsSet = true; } bool SaveCommentsResponseWithPresence::userIsSet() const { - return m_UserIsSet; + return m_User.has_value(); } void SaveCommentsResponseWithPresence::unsetUser() { - m_UserIsSet = false; + m_User.reset(); } std::map> SaveCommentsResponseWithPresence::getModuleData() const { diff --git a/client/src/model/SearchUsersResponse.cpp b/client/src/model/SearchUsersResponse.cpp index 52fd33c..073be8b 100644 --- a/client/src/model/SearchUsersResponse.cpp +++ b/client/src/model/SearchUsersResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value SearchUsersResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); } diff --git a/client/src/model/SearchUsersResult.cpp b/client/src/model/SearchUsersResult.cpp index 18b2919..e7a311d 100644 --- a/client/src/model/SearchUsersResult.cpp +++ b/client/src/model/SearchUsersResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,17 +38,17 @@ web::json::value SearchUsersResult::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_SectionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sections"))] = ModelBase::toJson(m_Sections); } if(m_UsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); } diff --git a/client/src/model/SearchUsersSectionedResponse.cpp b/client/src/model/SearchUsersSectionedResponse.cpp index dfff5b1..8851b18 100644 --- a/client/src/model/SearchUsersSectionedResponse.cpp +++ b/client/src/model/SearchUsersSectionedResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value SearchUsersSectionedResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_SectionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sections"))] = ModelBase::toJson(m_Sections); } diff --git a/client/src/model/SetCommentApprovedResponse.cpp b/client/src/model/SetCommentApprovedResponse.cpp index 2e010a4..d5167fa 100644 --- a/client/src/model/SetCommentApprovedResponse.cpp +++ b/client/src/model/SetCommentApprovedResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value SetCommentApprovedResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_DidResetFlaggedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount"))] = ModelBase::toJson(m_DidResetFlaggedCount); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/SetCommentTextParams.cpp b/client/src/model/SetCommentTextParams.cpp index 4d487e3..5e75da9 100644 --- a/client/src/model/SetCommentTextParams.cpp +++ b/client/src/model/SetCommentTextParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,7 @@ web::json::value SetCommentTextParams::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } diff --git a/client/src/model/SetCommentTextResponse.cpp b/client/src/model/SetCommentTextResponse.cpp index 7c6dcd2..e66405b 100644 --- a/client/src/model/SetCommentTextResponse.cpp +++ b/client/src/model/SetCommentTextResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value SetCommentTextResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_NewCommentTextHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML"))] = ModelBase::toJson(m_NewCommentTextHTML); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/SetCommentTextResult.cpp b/client/src/model/SetCommentTextResult.cpp index e3107b5..065bd14 100644 --- a/client/src/model/SetCommentTextResult.cpp +++ b/client/src/model/SetCommentTextResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,12 @@ web::json::value SetCommentTextResult::toJson() const { web::json::value val = web::json::value::object(); if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } diff --git a/client/src/model/SetUserTrustFactorResponse.cpp b/client/src/model/SetUserTrustFactorResponse.cpp index 020b45b..5fa72e1 100644 --- a/client/src/model/SetUserTrustFactorResponse.cpp +++ b/client/src/model/SetUserTrustFactorResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value SetUserTrustFactorResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_PreviousManualTrustFactorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor"))] = ModelBase::toJson(m_PreviousManualTrustFactor); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/SizePreset.cpp b/client/src/model/SizePreset.cpp index ed1c183..d6b388e 100644 --- a/client/src/model/SizePreset.cpp +++ b/client/src/model/SizePreset.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SortDirections.cpp b/client/src/model/SortDirections.cpp index 5cb8b16..b641ade 100644 --- a/client/src/model/SortDirections.cpp +++ b/client/src/model/SortDirections.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SpamRule.cpp b/client/src/model/SpamRule.cpp index bf47c59..245c698 100644 --- a/client/src/model/SpamRule.cpp +++ b/client/src/model/SpamRule.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,14 +38,14 @@ web::json::value SpamRule::toJson() const { web::json::value val = web::json::value::object(); if(m_ActionsIsSet) - { + { std::vector refVal = fromActionsEnum(m_Actions); val[utility::conversions::to_string_t(_XPLATSTR("actions"))] = ModelBase::toJson(refVal); } if(m_CommentContainsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentContains"))] = ModelBase::toJson(m_CommentContains); } diff --git a/client/src/model/TOSConfig.cpp b/client/src/model/TOSConfig.cpp index 2300ed6..1c6b448 100644 --- a/client/src/model/TOSConfig.cpp +++ b/client/src/model/TOSConfig.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,17 +40,17 @@ web::json::value TOSConfig::toJson() const { web::json::value val = web::json::value::object(); if(m_EnabledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enabled"))] = ModelBase::toJson(m_Enabled); } if(m_TextByLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("textByLocale"))] = ModelBase::toJson(m_TextByLocale); } if(m_LastUpdatedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastUpdated"))] = ModelBase::toJson(m_LastUpdated); } diff --git a/client/src/model/TenantBadge.cpp b/client/src/model/TenantBadge.cpp index a82ce8f..7d989b4 100644 --- a/client/src/model/TenantBadge.cpp +++ b/client/src/model/TenantBadge.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,8 +30,6 @@ TenantBadge::TenantBadge() m_CreatedAtIsSet = false; m_Enabled = false; m_EnabledIsSet = false; - m_UrlId = utility::conversions::to_string_t(""); - m_UrlIdIsSet = false; m_Type = 0.0; m_TypeIsSet = false; m_Threshold = 0.0; @@ -44,24 +42,10 @@ TenantBadge::TenantBadge() m_DescriptionIsSet = false; m_DisplayLabel = utility::conversions::to_string_t(""); m_DisplayLabelIsSet = false; - m_DisplaySrc = utility::conversions::to_string_t(""); - m_DisplaySrcIsSet = false; - m_BackgroundColor = utility::conversions::to_string_t(""); - m_BackgroundColorIsSet = false; - m_BorderColor = utility::conversions::to_string_t(""); - m_BorderColorIsSet = false; - m_TextColor = utility::conversions::to_string_t(""); - m_TextColorIsSet = false; - m_CssClass = utility::conversions::to_string_t(""); - m_CssClassIsSet = false; - m_VeteranUserThresholdMillis = 0.0; - m_VeteranUserThresholdMillisIsSet = false; m_IsAwaitingReprocess = false; m_IsAwaitingReprocessIsSet = false; m_IsAwaitingDeletion = false; m_IsAwaitingDeletionIsSet = false; - m_ReplacesBadgeId = utility::conversions::to_string_t(""); - m_ReplacesBadgeIdIsSet = false; } TenantBadge::~TenantBadge() @@ -77,109 +61,109 @@ web::json::value TenantBadge::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_CreatedByUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdByUserId"))] = ModelBase::toJson(m_CreatedByUserId); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_EnabledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enabled"))] = ModelBase::toJson(m_Enabled); } - if(m_UrlIdIsSet) - { + if(m_UrlId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); + val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId.get()); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_ThresholdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("threshold"))] = ModelBase::toJson(m_Threshold); } if(m_UsesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("uses"))] = ModelBase::toJson(m_Uses); } if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_DescriptionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } - if(m_DisplaySrcIsSet) - { + if(m_DisplaySrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displaySrc"))] = ModelBase::toJson(m_DisplaySrc); + val[utility::conversions::to_string_t(_XPLATSTR("displaySrc"))] = ModelBase::toJson(m_DisplaySrc.get()); } - if(m_BackgroundColorIsSet) - { + if(m_BackgroundColor.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))] = ModelBase::toJson(m_BackgroundColor); + val[utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))] = ModelBase::toJson(m_BackgroundColor.get()); } - if(m_BorderColorIsSet) - { + if(m_BorderColor.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("borderColor"))] = ModelBase::toJson(m_BorderColor); + val[utility::conversions::to_string_t(_XPLATSTR("borderColor"))] = ModelBase::toJson(m_BorderColor.get()); } - if(m_TextColorIsSet) - { + if(m_TextColor.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("textColor"))] = ModelBase::toJson(m_TextColor); + val[utility::conversions::to_string_t(_XPLATSTR("textColor"))] = ModelBase::toJson(m_TextColor.get()); } - if(m_CssClassIsSet) - { + if(m_CssClass.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("cssClass"))] = ModelBase::toJson(m_CssClass); + val[utility::conversions::to_string_t(_XPLATSTR("cssClass"))] = ModelBase::toJson(m_CssClass.get()); } - if(m_VeteranUserThresholdMillisIsSet) - { + if(m_VeteranUserThresholdMillis.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("veteranUserThresholdMillis"))] = ModelBase::toJson(m_VeteranUserThresholdMillis); + val[utility::conversions::to_string_t(_XPLATSTR("veteranUserThresholdMillis"))] = ModelBase::toJson(m_VeteranUserThresholdMillis.get()); } if(m_IsAwaitingReprocessIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAwaitingReprocess"))] = ModelBase::toJson(m_IsAwaitingReprocess); } if(m_IsAwaitingDeletionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAwaitingDeletion"))] = ModelBase::toJson(m_IsAwaitingDeletion); } - if(m_ReplacesBadgeIdIsSet) - { + if(m_ReplacesBadgeId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("replacesBadgeId"))] = ModelBase::toJson(m_ReplacesBadgeId); + val[utility::conversions::to_string_t(_XPLATSTR("replacesBadgeId"))] = ModelBase::toJson(m_ReplacesBadgeId.get()); } return val; @@ -449,9 +433,9 @@ void TenantBadge::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("enabled")), m_Enabled)); } - if(m_UrlIdIsSet) + if(m_UrlId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlId")), m_UrlId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlId")), m_UrlId.get())); } if(m_TypeIsSet) { @@ -477,29 +461,29 @@ void TenantBadge::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); } - if(m_DisplaySrcIsSet) + if(m_DisplaySrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displaySrc")), m_DisplaySrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displaySrc")), m_DisplaySrc.get())); } - if(m_BackgroundColorIsSet) + if(m_BackgroundColor.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("backgroundColor")), m_BackgroundColor)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("backgroundColor")), m_BackgroundColor.get())); } - if(m_BorderColorIsSet) + if(m_BorderColor.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("borderColor")), m_BorderColor)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("borderColor")), m_BorderColor.get())); } - if(m_TextColorIsSet) + if(m_TextColor.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textColor")), m_TextColor)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textColor")), m_TextColor.get())); } - if(m_CssClassIsSet) + if(m_CssClass.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("cssClass")), m_CssClass)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("cssClass")), m_CssClass.get())); } - if(m_VeteranUserThresholdMillisIsSet) + if(m_VeteranUserThresholdMillis.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("veteranUserThresholdMillis")), m_VeteranUserThresholdMillis)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("veteranUserThresholdMillis")), m_VeteranUserThresholdMillis.get())); } if(m_IsAwaitingReprocessIsSet) { @@ -509,9 +493,9 @@ void TenantBadge::toMultipart(std::shared_ptr multipart, cons { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isAwaitingDeletion")), m_IsAwaitingDeletion)); } - if(m_ReplacesBadgeIdIsSet) + if(m_ReplacesBadgeId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("replacesBadgeId")), m_ReplacesBadgeId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("replacesBadgeId")), m_ReplacesBadgeId.get())); } } @@ -760,24 +744,23 @@ void TenantBadge::unsetEnabled() } utility::string_t TenantBadge::getUrlId() const { - return m_UrlId; + return m_UrlId.get(); } void TenantBadge::setUrlId(const utility::string_t& value) { m_UrlId = value; - m_UrlIdIsSet = true; } bool TenantBadge::urlIdIsSet() const { - return m_UrlIdIsSet; + return m_UrlId.has_value(); } void TenantBadge::unsetUrlId() { - m_UrlIdIsSet = false; + m_UrlId.reset(); } double TenantBadge::getType() const { @@ -904,128 +887,122 @@ void TenantBadge::unsetDisplayLabel() } utility::string_t TenantBadge::getDisplaySrc() const { - return m_DisplaySrc; + return m_DisplaySrc.get(); } void TenantBadge::setDisplaySrc(const utility::string_t& value) { m_DisplaySrc = value; - m_DisplaySrcIsSet = true; } bool TenantBadge::displaySrcIsSet() const { - return m_DisplaySrcIsSet; + return m_DisplaySrc.has_value(); } void TenantBadge::unsetDisplaySrc() { - m_DisplaySrcIsSet = false; + m_DisplaySrc.reset(); } utility::string_t TenantBadge::getBackgroundColor() const { - return m_BackgroundColor; + return m_BackgroundColor.get(); } void TenantBadge::setBackgroundColor(const utility::string_t& value) { m_BackgroundColor = value; - m_BackgroundColorIsSet = true; } bool TenantBadge::backgroundColorIsSet() const { - return m_BackgroundColorIsSet; + return m_BackgroundColor.has_value(); } void TenantBadge::unsetBackgroundColor() { - m_BackgroundColorIsSet = false; + m_BackgroundColor.reset(); } utility::string_t TenantBadge::getBorderColor() const { - return m_BorderColor; + return m_BorderColor.get(); } void TenantBadge::setBorderColor(const utility::string_t& value) { m_BorderColor = value; - m_BorderColorIsSet = true; } bool TenantBadge::borderColorIsSet() const { - return m_BorderColorIsSet; + return m_BorderColor.has_value(); } void TenantBadge::unsetBorderColor() { - m_BorderColorIsSet = false; + m_BorderColor.reset(); } utility::string_t TenantBadge::getTextColor() const { - return m_TextColor; + return m_TextColor.get(); } void TenantBadge::setTextColor(const utility::string_t& value) { m_TextColor = value; - m_TextColorIsSet = true; } bool TenantBadge::textColorIsSet() const { - return m_TextColorIsSet; + return m_TextColor.has_value(); } void TenantBadge::unsetTextColor() { - m_TextColorIsSet = false; + m_TextColor.reset(); } utility::string_t TenantBadge::getCssClass() const { - return m_CssClass; + return m_CssClass.get(); } void TenantBadge::setCssClass(const utility::string_t& value) { m_CssClass = value; - m_CssClassIsSet = true; } bool TenantBadge::cssClassIsSet() const { - return m_CssClassIsSet; + return m_CssClass.has_value(); } void TenantBadge::unsetCssClass() { - m_CssClassIsSet = false; + m_CssClass.reset(); } double TenantBadge::getVeteranUserThresholdMillis() const { - return m_VeteranUserThresholdMillis; + return m_VeteranUserThresholdMillis.get(); } void TenantBadge::setVeteranUserThresholdMillis(double value) { m_VeteranUserThresholdMillis = value; - m_VeteranUserThresholdMillisIsSet = true; } bool TenantBadge::veteranUserThresholdMillisIsSet() const { - return m_VeteranUserThresholdMillisIsSet; + return m_VeteranUserThresholdMillis.has_value(); } void TenantBadge::unsetVeteranUserThresholdMillis() { - m_VeteranUserThresholdMillisIsSet = false; + m_VeteranUserThresholdMillis.reset(); } bool TenantBadge::isIsAwaitingReprocess() const { @@ -1069,24 +1046,23 @@ void TenantBadge::unsetIsAwaitingDeletion() } utility::string_t TenantBadge::getReplacesBadgeId() const { - return m_ReplacesBadgeId; + return m_ReplacesBadgeId.get(); } void TenantBadge::setReplacesBadgeId(const utility::string_t& value) { m_ReplacesBadgeId = value; - m_ReplacesBadgeIdIsSet = true; } bool TenantBadge::replacesBadgeIdIsSet() const { - return m_ReplacesBadgeIdIsSet; + return m_ReplacesBadgeId.has_value(); } void TenantBadge::unsetReplacesBadgeId() { - m_ReplacesBadgeIdIsSet = false; + m_ReplacesBadgeId.reset(); } } diff --git a/client/src/model/TenantHashTag.cpp b/client/src/model/TenantHashTag.cpp index ba65811..f867c02 100644 --- a/client/src/model/TenantHashTag.cpp +++ b/client/src/model/TenantHashTag.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -45,27 +45,27 @@ web::json::value TenantHashTag::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_TagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } diff --git a/client/src/model/TenantPackage.cpp b/client/src/model/TenantPackage.cpp index 8a63dd9..2b0cece 100644 --- a/client/src/model/TenantPackage.cpp +++ b/client/src/model/TenantPackage.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,14 +30,6 @@ TenantPackage::TenantPackage() m_CreatedAtIsSet = false; m_TemplateId = utility::conversions::to_string_t(""); m_TemplateIdIsSet = false; - m_MonthlyCostUSD = 0.0; - m_MonthlyCostUSDIsSet = false; - m_YearlyCostUSD = 0.0; - m_YearlyCostUSDIsSet = false; - m_MonthlyStripePlanId = utility::conversions::to_string_t(""); - m_MonthlyStripePlanIdIsSet = false; - m_YearlyStripePlanId = utility::conversions::to_string_t(""); - m_YearlyStripePlanIdIsSet = false; m_MaxMonthlyPageLoads = 0.0; m_MaxMonthlyPageLoadsIsSet = false; m_MaxMonthlyAPICredits = 0.0; @@ -156,307 +148,307 @@ web::json::value TenantPackage::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_TemplateIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("templateId"))] = ModelBase::toJson(m_TemplateId); } - if(m_MonthlyCostUSDIsSet) - { + if(m_MonthlyCostUSD.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD"))] = ModelBase::toJson(m_MonthlyCostUSD); + val[utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD"))] = ModelBase::toJson(m_MonthlyCostUSD.get()); } - if(m_YearlyCostUSDIsSet) - { + if(m_YearlyCostUSD.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD"))] = ModelBase::toJson(m_YearlyCostUSD); + val[utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD"))] = ModelBase::toJson(m_YearlyCostUSD.get()); } - if(m_MonthlyStripePlanIdIsSet) - { + if(m_MonthlyStripePlanId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId"))] = ModelBase::toJson(m_MonthlyStripePlanId); + val[utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId"))] = ModelBase::toJson(m_MonthlyStripePlanId.get()); } - if(m_YearlyStripePlanIdIsSet) - { + if(m_YearlyStripePlanId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId"))] = ModelBase::toJson(m_YearlyStripePlanId); + val[utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId"))] = ModelBase::toJson(m_YearlyStripePlanId.get()); } if(m_MaxMonthlyPageLoadsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyPageLoads"))] = ModelBase::toJson(m_MaxMonthlyPageLoads); } if(m_MaxMonthlyAPICreditsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyAPICredits"))] = ModelBase::toJson(m_MaxMonthlyAPICredits); } if(m_MaxMonthlySmallWidgetsCreditsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlySmallWidgetsCredits"))] = ModelBase::toJson(m_MaxMonthlySmallWidgetsCredits); } if(m_MaxMonthlyCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyComments"))] = ModelBase::toJson(m_MaxMonthlyComments); } if(m_MaxConcurrentUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxConcurrentUsers"))] = ModelBase::toJson(m_MaxConcurrentUsers); } if(m_MaxTenantUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxTenantUsers"))] = ModelBase::toJson(m_MaxTenantUsers); } if(m_MaxSSOUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxSSOUsers"))] = ModelBase::toJson(m_MaxSSOUsers); } if(m_MaxModeratorsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxModerators"))] = ModelBase::toJson(m_MaxModerators); } if(m_MaxDomainsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxDomains"))] = ModelBase::toJson(m_MaxDomains); } if(m_MaxWhiteLabeledTenantsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxWhiteLabeledTenants"))] = ModelBase::toJson(m_MaxWhiteLabeledTenants); } if(m_MaxMonthlyEventLogRequestsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyEventLogRequests"))] = ModelBase::toJson(m_MaxMonthlyEventLogRequests); } if(m_MaxCustomCollectionSizeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCustomCollectionSize"))] = ModelBase::toJson(m_MaxCustomCollectionSize); } if(m_HasWhiteLabelingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasWhiteLabeling"))] = ModelBase::toJson(m_HasWhiteLabeling); } if(m_HasDebrandingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasDebranding"))] = ModelBase::toJson(m_HasDebranding); } if(m_HasLLMSpamDetectionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasLLMSpamDetection"))] = ModelBase::toJson(m_HasLLMSpamDetection); } if(m_ForWhoTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("forWhoText"))] = ModelBase::toJson(m_ForWhoText); } if(m_FeatureTaglinesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("featureTaglines"))] = ModelBase::toJson(m_FeatureTaglines); } if(m_HasAuditingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasAuditing"))] = ModelBase::toJson(m_HasAuditing); } if(m_HasFlexPricingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasFlexPricing"))] = ModelBase::toJson(m_HasFlexPricing); } if(m_EnableSAMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSAML"))] = ModelBase::toJson(m_EnableSAML); } if(m_EnableCanvasLTIIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableCanvasLTI"))] = ModelBase::toJson(m_EnableCanvasLTI); } if(m_FlexPageLoadCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadCostCents"))] = ModelBase::toJson(m_FlexPageLoadCostCents); } if(m_FlexPageLoadUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadUnit"))] = ModelBase::toJson(m_FlexPageLoadUnit); } if(m_FlexCommentCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentCostCents"))] = ModelBase::toJson(m_FlexCommentCostCents); } if(m_FlexCommentUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentUnit"))] = ModelBase::toJson(m_FlexCommentUnit); } if(m_FlexSSOUserCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserCostCents"))] = ModelBase::toJson(m_FlexSSOUserCostCents); } if(m_FlexSSOUserUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserUnit"))] = ModelBase::toJson(m_FlexSSOUserUnit); } if(m_FlexAPICreditCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditCostCents"))] = ModelBase::toJson(m_FlexAPICreditCostCents); } if(m_FlexAPICreditUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditUnit"))] = ModelBase::toJson(m_FlexAPICreditUnit); } if(m_FlexSmallWidgetsCreditCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSmallWidgetsCreditCostCents"))] = ModelBase::toJson(m_FlexSmallWidgetsCreditCostCents); } if(m_FlexSmallWidgetsCreditUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSmallWidgetsCreditUnit"))] = ModelBase::toJson(m_FlexSmallWidgetsCreditUnit); } if(m_FlexModeratorCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorCostCents"))] = ModelBase::toJson(m_FlexModeratorCostCents); } if(m_FlexModeratorUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorUnit"))] = ModelBase::toJson(m_FlexModeratorUnit); } if(m_FlexAdminCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminCostCents"))] = ModelBase::toJson(m_FlexAdminCostCents); } if(m_FlexAdminUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminUnit"))] = ModelBase::toJson(m_FlexAdminUnit); } if(m_FlexDomainCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainCostCents"))] = ModelBase::toJson(m_FlexDomainCostCents); } if(m_FlexDomainUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainUnit"))] = ModelBase::toJson(m_FlexDomainUnit); } if(m_FlexChatGPTCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexChatGPTCostCents"))] = ModelBase::toJson(m_FlexChatGPTCostCents); } if(m_FlexChatGPTUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexChatGPTUnit"))] = ModelBase::toJson(m_FlexChatGPTUnit); } if(m_FlexLLMCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexLLMCostCents"))] = ModelBase::toJson(m_FlexLLMCostCents); } if(m_FlexLLMUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexLLMUnit"))] = ModelBase::toJson(m_FlexLLMUnit); } if(m_FlexMinimumCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexMinimumCostCents"))] = ModelBase::toJson(m_FlexMinimumCostCents); } if(m_FlexManagedTenantCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexManagedTenantCostCents"))] = ModelBase::toJson(m_FlexManagedTenantCostCents); } if(m_FlexSSOAdminCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOAdminCostCents"))] = ModelBase::toJson(m_FlexSSOAdminCostCents); } if(m_FlexSSOAdminUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOAdminUnit"))] = ModelBase::toJson(m_FlexSSOAdminUnit); } if(m_FlexSSOModeratorCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOModeratorCostCents"))] = ModelBase::toJson(m_FlexSSOModeratorCostCents); } if(m_FlexSSOModeratorUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOModeratorUnit"))] = ModelBase::toJson(m_FlexSSOModeratorUnit); } if(m_IsSSOBillingMonthlyActiveUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSSOBillingMonthlyActiveUsers"))] = ModelBase::toJson(m_IsSSOBillingMonthlyActiveUsers); } if(m_HasAIAgentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasAIAgents"))] = ModelBase::toJson(m_HasAIAgents); } if(m_MaxAIAgentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxAIAgents"))] = ModelBase::toJson(m_MaxAIAgents); } if(m_AiAgentDailyBudgetCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("aiAgentDailyBudgetCents"))] = ModelBase::toJson(m_AiAgentDailyBudgetCents); } if(m_AiAgentMonthlyBudgetCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("aiAgentMonthlyBudgetCents"))] = ModelBase::toJson(m_AiAgentMonthlyBudgetCents); } @@ -1168,21 +1160,21 @@ void TenantPackage::toMultipart(std::shared_ptr multipart, co { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("templateId")), m_TemplateId)); } - if(m_MonthlyCostUSDIsSet) + if(m_MonthlyCostUSD.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD")), m_MonthlyCostUSD)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD")), m_MonthlyCostUSD.get())); } - if(m_YearlyCostUSDIsSet) + if(m_YearlyCostUSD.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD")), m_YearlyCostUSD)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD")), m_YearlyCostUSD.get())); } - if(m_MonthlyStripePlanIdIsSet) + if(m_MonthlyStripePlanId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId")), m_MonthlyStripePlanId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("monthlyStripePlanId")), m_MonthlyStripePlanId.get())); } - if(m_YearlyStripePlanIdIsSet) + if(m_YearlyStripePlanId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId")), m_YearlyStripePlanId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("yearlyStripePlanId")), m_YearlyStripePlanId.get())); } if(m_MaxMonthlyPageLoadsIsSet) { @@ -1880,85 +1872,81 @@ void TenantPackage::unsetTemplateId() } double TenantPackage::getMonthlyCostUSD() const { - return m_MonthlyCostUSD; + return m_MonthlyCostUSD.get(); } void TenantPackage::setMonthlyCostUSD(double value) { m_MonthlyCostUSD = value; - m_MonthlyCostUSDIsSet = true; } bool TenantPackage::monthlyCostUSDIsSet() const { - return m_MonthlyCostUSDIsSet; + return m_MonthlyCostUSD.has_value(); } void TenantPackage::unsetMonthlyCostUSD() { - m_MonthlyCostUSDIsSet = false; + m_MonthlyCostUSD.reset(); } double TenantPackage::getYearlyCostUSD() const { - return m_YearlyCostUSD; + return m_YearlyCostUSD.get(); } void TenantPackage::setYearlyCostUSD(double value) { m_YearlyCostUSD = value; - m_YearlyCostUSDIsSet = true; } bool TenantPackage::yearlyCostUSDIsSet() const { - return m_YearlyCostUSDIsSet; + return m_YearlyCostUSD.has_value(); } void TenantPackage::unsetYearlyCostUSD() { - m_YearlyCostUSDIsSet = false; + m_YearlyCostUSD.reset(); } utility::string_t TenantPackage::getMonthlyStripePlanId() const { - return m_MonthlyStripePlanId; + return m_MonthlyStripePlanId.get(); } void TenantPackage::setMonthlyStripePlanId(const utility::string_t& value) { m_MonthlyStripePlanId = value; - m_MonthlyStripePlanIdIsSet = true; } bool TenantPackage::monthlyStripePlanIdIsSet() const { - return m_MonthlyStripePlanIdIsSet; + return m_MonthlyStripePlanId.has_value(); } void TenantPackage::unsetMonthlyStripePlanId() { - m_MonthlyStripePlanIdIsSet = false; + m_MonthlyStripePlanId.reset(); } utility::string_t TenantPackage::getYearlyStripePlanId() const { - return m_YearlyStripePlanId; + return m_YearlyStripePlanId.get(); } void TenantPackage::setYearlyStripePlanId(const utility::string_t& value) { m_YearlyStripePlanId = value; - m_YearlyStripePlanIdIsSet = true; } bool TenantPackage::yearlyStripePlanIdIsSet() const { - return m_YearlyStripePlanIdIsSet; + return m_YearlyStripePlanId.has_value(); } void TenantPackage::unsetYearlyStripePlanId() { - m_YearlyStripePlanIdIsSet = false; + m_YearlyStripePlanId.reset(); } double TenantPackage::getMaxMonthlyPageLoads() const { diff --git a/client/src/model/UnBlockFromCommentParams.cpp b/client/src/model/UnBlockFromCommentParams.cpp index 8a0e480..20eb278 100644 --- a/client/src/model/UnBlockFromCommentParams.cpp +++ b/client/src/model/UnBlockFromCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,7 +36,7 @@ web::json::value UnBlockFromCommentParams::toJson() const { web::json::value val = web::json::value::object(); if(m_CommentIdsToCheckIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentIdsToCheck"))] = ModelBase::toJson(m_CommentIdsToCheck); } diff --git a/client/src/model/UnblockSuccess.cpp b/client/src/model/UnblockSuccess.cpp index f820fa1..2bc97ba 100644 --- a/client/src/model/UnblockSuccess.cpp +++ b/client/src/model/UnblockSuccess.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value UnblockSuccess::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_CommentStatusesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); } diff --git a/client/src/model/UpdatableCommentParams.cpp b/client/src/model/UpdatableCommentParams.cpp index ca2d831..b74b15b 100644 --- a/client/src/model/UpdatableCommentParams.cpp +++ b/client/src/model/UpdatableCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -26,40 +26,14 @@ UpdatableCommentParams::UpdatableCommentParams() m_UrlIdRawIsSet = false; m_Url = utility::conversions::to_string_t(""); m_UrlIsSet = false; - m_PageTitle = utility::conversions::to_string_t(""); - m_PageTitleIsSet = false; - m_UserId = nullptr; - m_UserIdIsSet = false; - m_CommenterEmail = utility::conversions::to_string_t(""); - m_CommenterEmailIsSet = false; m_CommenterName = utility::conversions::to_string_t(""); m_CommenterNameIsSet = false; - m_CommenterLink = utility::conversions::to_string_t(""); - m_CommenterLinkIsSet = false; m_Comment = utility::conversions::to_string_t(""); m_CommentIsSet = false; m_CommentHTML = utility::conversions::to_string_t(""); m_CommentHTMLIsSet = false; - m_ParentId = utility::conversions::to_string_t(""); - m_ParentIdIsSet = false; - m_date = 0.0; - m_dateIsSet = false; - m_LocalDateString = utility::conversions::to_string_t(""); - m_LocalDateStringIsSet = false; - m_LocalDateHours = 0; - m_LocalDateHoursIsSet = false; - m_Votes = 0; - m_VotesIsSet = false; - m_VotesUp = 0; - m_VotesUpIsSet = false; - m_VotesDown = 0; - m_VotesDownIsSet = false; - m_ExpireAt = utility::datetime(); - m_ExpireAtIsSet = false; m_Verified = false; m_VerifiedIsSet = false; - m_VerifiedDate = utility::datetime(); - m_VerifiedDateIsSet = false; m_NotificationSentForParent = false; m_NotificationSentForParentIsSet = false; m_NotificationSentForParentTenant = false; @@ -68,10 +42,6 @@ UpdatableCommentParams::UpdatableCommentParams() m_ReviewedIsSet = false; m_ExternalId = utility::conversions::to_string_t(""); m_ExternalIdIsSet = false; - m_ExternalParentId = utility::conversions::to_string_t(""); - m_ExternalParentIdIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; m_IsSpam = false; m_IsSpamIsSet = false; m_Approved = false; @@ -84,16 +54,6 @@ UpdatableCommentParams::UpdatableCommentParams() m_IsByAdminIsSet = false; m_IsByModerator = false; m_IsByModeratorIsSet = false; - m_IsPinned = false; - m_IsPinnedIsSet = false; - m_IsLocked = false; - m_IsLockedIsSet = false; - m_FlagCount = 0; - m_FlagCountIsSet = false; - m_DisplayLabel = utility::conversions::to_string_t(""); - m_DisplayLabelIsSet = false; - m_MetaIsSet = false; - m_ModerationGroupIdsIsSet = false; m_FeedbackIdsIsSet = false; } @@ -110,197 +70,197 @@ web::json::value UpdatableCommentParams::toJson() const { web::json::value val = web::json::value::object(); if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIdRawIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdRaw"))] = ModelBase::toJson(m_UrlIdRaw); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } - if(m_PageTitleIsSet) - { + if(m_PageTitle.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } - if(m_CommenterEmailIsSet) - { + if(m_CommenterEmail.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); } if(m_CommenterNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); } - if(m_CommenterLinkIsSet) - { + if(m_CommenterLink.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink); + val[utility::conversions::to_string_t(_XPLATSTR("commenterLink"))] = ModelBase::toJson(m_CommenterLink.get()); } if(m_CommentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); } if(m_CommentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentHTML"))] = ModelBase::toJson(m_CommentHTML); } - if(m_ParentIdIsSet) - { + if(m_ParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId); + val[utility::conversions::to_string_t(_XPLATSTR("parentId"))] = ModelBase::toJson(m_ParentId.get()); } - if(m_dateIsSet) - { + if(m_date.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date); + val[utility::conversions::to_string_t(_XPLATSTR("date"))] = ModelBase::toJson(m_date.get()); } - if(m_LocalDateStringIsSet) - { + if(m_LocalDateString.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString); + val[utility::conversions::to_string_t(_XPLATSTR("localDateString"))] = ModelBase::toJson(m_LocalDateString.get()); } - if(m_LocalDateHoursIsSet) - { + if(m_LocalDateHours.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours); + val[utility::conversions::to_string_t(_XPLATSTR("localDateHours"))] = ModelBase::toJson(m_LocalDateHours.get()); } - if(m_VotesIsSet) - { + if(m_Votes.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes); + val[utility::conversions::to_string_t(_XPLATSTR("votes"))] = ModelBase::toJson(m_Votes.get()); } - if(m_VotesUpIsSet) - { + if(m_VotesUp.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp); + val[utility::conversions::to_string_t(_XPLATSTR("votesUp"))] = ModelBase::toJson(m_VotesUp.get()); } - if(m_VotesDownIsSet) - { + if(m_VotesDown.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown); + val[utility::conversions::to_string_t(_XPLATSTR("votesDown"))] = ModelBase::toJson(m_VotesDown.get()); } - if(m_ExpireAtIsSet) - { + if(m_ExpireAt.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); + val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt.get()); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } - if(m_VerifiedDateIsSet) - { + if(m_VerifiedDate.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate); + val[utility::conversions::to_string_t(_XPLATSTR("verifiedDate"))] = ModelBase::toJson(m_VerifiedDate.get()); } if(m_NotificationSentForParentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParent"))] = ModelBase::toJson(m_NotificationSentForParent); } if(m_NotificationSentForParentTenantIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationSentForParentTenant"))] = ModelBase::toJson(m_NotificationSentForParentTenant); } if(m_ReviewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reviewed"))] = ModelBase::toJson(m_Reviewed); } if(m_ExternalIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("externalId"))] = ModelBase::toJson(m_ExternalId); } - if(m_ExternalParentIdIsSet) - { + if(m_ExternalParentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId); + val[utility::conversions::to_string_t(_XPLATSTR("externalParentId"))] = ModelBase::toJson(m_ExternalParentId.get()); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } if(m_IsSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSpam"))] = ModelBase::toJson(m_IsSpam); } if(m_ApprovedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("approved"))] = ModelBase::toJson(m_Approved); } if(m_IsDeletedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeleted"))] = ModelBase::toJson(m_IsDeleted); } if(m_IsDeletedUserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isDeletedUser"))] = ModelBase::toJson(m_IsDeletedUser); } if(m_IsByAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByAdmin"))] = ModelBase::toJson(m_IsByAdmin); } if(m_IsByModeratorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isByModerator"))] = ModelBase::toJson(m_IsByModerator); } - if(m_IsPinnedIsSet) - { + if(m_IsPinned.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned); + val[utility::conversions::to_string_t(_XPLATSTR("isPinned"))] = ModelBase::toJson(m_IsPinned.get()); } - if(m_IsLockedIsSet) - { + if(m_IsLocked.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked); + val[utility::conversions::to_string_t(_XPLATSTR("isLocked"))] = ModelBase::toJson(m_IsLocked.get()); } - if(m_FlagCountIsSet) - { + if(m_FlagCount.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount); + val[utility::conversions::to_string_t(_XPLATSTR("flagCount"))] = ModelBase::toJson(m_FlagCount.get()); } - if(m_DisplayLabelIsSet) - { + if(m_DisplayLabel.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); + val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel.get()); } - if(m_MetaIsSet) - { + if(m_Meta.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); } - if(m_ModerationGroupIdsIsSet) - { + if(m_ModerationGroupIds.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); + val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds.get()); } if(m_FeedbackIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("feedbackIds"))] = ModelBase::toJson(m_FeedbackIds); } @@ -762,25 +722,25 @@ void UpdatableCommentParams::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } - if(m_PageTitleIsSet) + if(m_PageTitle.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } - if(m_CommenterEmailIsSet) + if(m_CommenterEmail.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); } if(m_CommenterNameIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); } - if(m_CommenterLinkIsSet) + if(m_CommenterLink.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterLink")), m_CommenterLink.get())); } if(m_CommentIsSet) { @@ -790,45 +750,45 @@ void UpdatableCommentParams::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentHTML")), m_CommentHTML)); } - if(m_ParentIdIsSet) + if(m_ParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("parentId")), m_ParentId.get())); } - if(m_dateIsSet) + if(m_date.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("date")), m_date.get())); } - if(m_LocalDateStringIsSet) + if(m_LocalDateString.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateString")), m_LocalDateString.get())); } - if(m_LocalDateHoursIsSet) + if(m_LocalDateHours.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("localDateHours")), m_LocalDateHours.get())); } - if(m_VotesIsSet) + if(m_Votes.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votes")), m_Votes.get())); } - if(m_VotesUpIsSet) + if(m_VotesUp.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesUp")), m_VotesUp.get())); } - if(m_VotesDownIsSet) + if(m_VotesDown.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("votesDown")), m_VotesDown.get())); } - if(m_ExpireAtIsSet) + if(m_ExpireAt.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("expireAt")), m_ExpireAt.get())); } if(m_VerifiedIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } - if(m_VerifiedDateIsSet) + if(m_VerifiedDate.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("verifiedDate")), m_VerifiedDate.get())); } if(m_NotificationSentForParentIsSet) { @@ -846,13 +806,13 @@ void UpdatableCommentParams::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalId")), m_ExternalId)); } - if(m_ExternalParentIdIsSet) + if(m_ExternalParentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("externalParentId")), m_ExternalParentId.get())); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } if(m_IsSpamIsSet) { @@ -878,29 +838,29 @@ void UpdatableCommentParams::toMultipart(std::shared_ptr mult { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isByModerator")), m_IsByModerator)); } - if(m_IsPinnedIsSet) + if(m_IsPinned.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isPinned")), m_IsPinned.get())); } - if(m_IsLockedIsSet) + if(m_IsLocked.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isLocked")), m_IsLocked.get())); } - if(m_FlagCountIsSet) + if(m_FlagCount.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("flagCount")), m_FlagCount.get())); } - if(m_DisplayLabelIsSet) + if(m_DisplayLabel.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel.get())); } - if(m_MetaIsSet) + if(m_Meta.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); } - if(m_ModerationGroupIdsIsSet) + if(m_ModerationGroupIds.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds")), m_ModerationGroupIds.get())); } if(m_FeedbackIdsIsSet) { @@ -1220,66 +1180,63 @@ void UpdatableCommentParams::unsetUrl() } utility::string_t UpdatableCommentParams::getPageTitle() const { - return m_PageTitle; + return m_PageTitle.get(); } void UpdatableCommentParams::setPageTitle(const utility::string_t& value) { m_PageTitle = value; - m_PageTitleIsSet = true; } bool UpdatableCommentParams::pageTitleIsSet() const { - return m_PageTitleIsSet; + return m_PageTitle.has_value(); } void UpdatableCommentParams::unsetPageTitle() { - m_PageTitleIsSet = false; + m_PageTitle.reset(); } utility::string_t UpdatableCommentParams::getUserId() const { - return m_UserId; + return m_UserId.get(); } void UpdatableCommentParams::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool UpdatableCommentParams::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void UpdatableCommentParams::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t UpdatableCommentParams::getCommenterEmail() const { - return m_CommenterEmail; + return m_CommenterEmail.get(); } void UpdatableCommentParams::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; - m_CommenterEmailIsSet = true; } bool UpdatableCommentParams::commenterEmailIsSet() const { - return m_CommenterEmailIsSet; + return m_CommenterEmail.has_value(); } void UpdatableCommentParams::unsetCommenterEmail() { - m_CommenterEmailIsSet = false; + m_CommenterEmail.reset(); } utility::string_t UpdatableCommentParams::getCommenterName() const { @@ -1304,24 +1261,23 @@ void UpdatableCommentParams::unsetCommenterName() } utility::string_t UpdatableCommentParams::getCommenterLink() const { - return m_CommenterLink; + return m_CommenterLink.get(); } void UpdatableCommentParams::setCommenterLink(const utility::string_t& value) { m_CommenterLink = value; - m_CommenterLinkIsSet = true; } bool UpdatableCommentParams::commenterLinkIsSet() const { - return m_CommenterLinkIsSet; + return m_CommenterLink.has_value(); } void UpdatableCommentParams::unsetCommenterLink() { - m_CommenterLinkIsSet = false; + m_CommenterLink.reset(); } utility::string_t UpdatableCommentParams::getComment() const { @@ -1367,166 +1323,158 @@ void UpdatableCommentParams::unsetCommentHTML() } utility::string_t UpdatableCommentParams::getParentId() const { - return m_ParentId; + return m_ParentId.get(); } void UpdatableCommentParams::setParentId(const utility::string_t& value) { m_ParentId = value; - m_ParentIdIsSet = true; } bool UpdatableCommentParams::parentIdIsSet() const { - return m_ParentIdIsSet; + return m_ParentId.has_value(); } void UpdatableCommentParams::unsetParentId() { - m_ParentIdIsSet = false; + m_ParentId.reset(); } double UpdatableCommentParams::getDate() const { - return m_date; + return m_date.get(); } void UpdatableCommentParams::setDate(double value) { m_date = value; - m_dateIsSet = true; } bool UpdatableCommentParams::dateIsSet() const { - return m_dateIsSet; + return m_date.has_value(); } void UpdatableCommentParams::unsetdate() { - m_dateIsSet = false; + m_date.reset(); } utility::string_t UpdatableCommentParams::getLocalDateString() const { - return m_LocalDateString; + return m_LocalDateString.get(); } void UpdatableCommentParams::setLocalDateString(const utility::string_t& value) { m_LocalDateString = value; - m_LocalDateStringIsSet = true; } bool UpdatableCommentParams::localDateStringIsSet() const { - return m_LocalDateStringIsSet; + return m_LocalDateString.has_value(); } void UpdatableCommentParams::unsetLocalDateString() { - m_LocalDateStringIsSet = false; + m_LocalDateString.reset(); } int32_t UpdatableCommentParams::getLocalDateHours() const { - return m_LocalDateHours; + return m_LocalDateHours.get(); } void UpdatableCommentParams::setLocalDateHours(int32_t value) { m_LocalDateHours = value; - m_LocalDateHoursIsSet = true; } bool UpdatableCommentParams::localDateHoursIsSet() const { - return m_LocalDateHoursIsSet; + return m_LocalDateHours.has_value(); } void UpdatableCommentParams::unsetLocalDateHours() { - m_LocalDateHoursIsSet = false; + m_LocalDateHours.reset(); } int32_t UpdatableCommentParams::getVotes() const { - return m_Votes; + return m_Votes.get(); } void UpdatableCommentParams::setVotes(int32_t value) { m_Votes = value; - m_VotesIsSet = true; } bool UpdatableCommentParams::votesIsSet() const { - return m_VotesIsSet; + return m_Votes.has_value(); } void UpdatableCommentParams::unsetVotes() { - m_VotesIsSet = false; + m_Votes.reset(); } int32_t UpdatableCommentParams::getVotesUp() const { - return m_VotesUp; + return m_VotesUp.get(); } void UpdatableCommentParams::setVotesUp(int32_t value) { m_VotesUp = value; - m_VotesUpIsSet = true; } bool UpdatableCommentParams::votesUpIsSet() const { - return m_VotesUpIsSet; + return m_VotesUp.has_value(); } void UpdatableCommentParams::unsetVotesUp() { - m_VotesUpIsSet = false; + m_VotesUp.reset(); } int32_t UpdatableCommentParams::getVotesDown() const { - return m_VotesDown; + return m_VotesDown.get(); } void UpdatableCommentParams::setVotesDown(int32_t value) { m_VotesDown = value; - m_VotesDownIsSet = true; } bool UpdatableCommentParams::votesDownIsSet() const { - return m_VotesDownIsSet; + return m_VotesDown.has_value(); } void UpdatableCommentParams::unsetVotesDown() { - m_VotesDownIsSet = false; + m_VotesDown.reset(); } utility::datetime UpdatableCommentParams::getExpireAt() const { - return m_ExpireAt; + return m_ExpireAt.get(); } void UpdatableCommentParams::setExpireAt(const utility::datetime& value) { m_ExpireAt = value; - m_ExpireAtIsSet = true; } bool UpdatableCommentParams::expireAtIsSet() const { - return m_ExpireAtIsSet; + return m_ExpireAt.has_value(); } void UpdatableCommentParams::unsetExpireAt() { - m_ExpireAtIsSet = false; + m_ExpireAt.reset(); } bool UpdatableCommentParams::isVerified() const { @@ -1550,24 +1498,23 @@ void UpdatableCommentParams::unsetVerified() } utility::datetime UpdatableCommentParams::getVerifiedDate() const { - return m_VerifiedDate; + return m_VerifiedDate.get(); } void UpdatableCommentParams::setVerifiedDate(const utility::datetime& value) { m_VerifiedDate = value; - m_VerifiedDateIsSet = true; } bool UpdatableCommentParams::verifiedDateIsSet() const { - return m_VerifiedDateIsSet; + return m_VerifiedDate.has_value(); } void UpdatableCommentParams::unsetVerifiedDate() { - m_VerifiedDateIsSet = false; + m_VerifiedDate.reset(); } bool UpdatableCommentParams::isNotificationSentForParent() const { @@ -1652,45 +1599,43 @@ void UpdatableCommentParams::unsetExternalId() } utility::string_t UpdatableCommentParams::getExternalParentId() const { - return m_ExternalParentId; + return m_ExternalParentId.get(); } void UpdatableCommentParams::setExternalParentId(const utility::string_t& value) { m_ExternalParentId = value; - m_ExternalParentIdIsSet = true; } bool UpdatableCommentParams::externalParentIdIsSet() const { - return m_ExternalParentIdIsSet; + return m_ExternalParentId.has_value(); } void UpdatableCommentParams::unsetExternalParentId() { - m_ExternalParentIdIsSet = false; + m_ExternalParentId.reset(); } utility::string_t UpdatableCommentParams::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void UpdatableCommentParams::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool UpdatableCommentParams::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void UpdatableCommentParams::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } bool UpdatableCommentParams::isIsSpam() const { @@ -1814,126 +1759,120 @@ void UpdatableCommentParams::unsetIsByModerator() } bool UpdatableCommentParams::isIsPinned() const { - return m_IsPinned; + return m_IsPinned.get(); } void UpdatableCommentParams::setIsPinned(bool value) { m_IsPinned = value; - m_IsPinnedIsSet = true; } bool UpdatableCommentParams::isPinnedIsSet() const { - return m_IsPinnedIsSet; + return m_IsPinned.has_value(); } void UpdatableCommentParams::unsetIsPinned() { - m_IsPinnedIsSet = false; + m_IsPinned.reset(); } bool UpdatableCommentParams::isIsLocked() const { - return m_IsLocked; + return m_IsLocked.get(); } void UpdatableCommentParams::setIsLocked(bool value) { m_IsLocked = value; - m_IsLockedIsSet = true; } bool UpdatableCommentParams::isLockedIsSet() const { - return m_IsLockedIsSet; + return m_IsLocked.has_value(); } void UpdatableCommentParams::unsetIsLocked() { - m_IsLockedIsSet = false; + m_IsLocked.reset(); } int32_t UpdatableCommentParams::getFlagCount() const { - return m_FlagCount; + return m_FlagCount.get(); } void UpdatableCommentParams::setFlagCount(int32_t value) { m_FlagCount = value; - m_FlagCountIsSet = true; } bool UpdatableCommentParams::flagCountIsSet() const { - return m_FlagCountIsSet; + return m_FlagCount.has_value(); } void UpdatableCommentParams::unsetFlagCount() { - m_FlagCountIsSet = false; + m_FlagCount.reset(); } utility::string_t UpdatableCommentParams::getDisplayLabel() const { - return m_DisplayLabel; + return m_DisplayLabel.get(); } void UpdatableCommentParams::setDisplayLabel(const utility::string_t& value) { m_DisplayLabel = value; - m_DisplayLabelIsSet = true; } bool UpdatableCommentParams::displayLabelIsSet() const { - return m_DisplayLabelIsSet; + return m_DisplayLabel.has_value(); } void UpdatableCommentParams::unsetDisplayLabel() { - m_DisplayLabelIsSet = false; + m_DisplayLabel.reset(); } std::shared_ptr UpdatableCommentParams::getMeta() const { - return m_Meta; + return m_Meta.get(); } void UpdatableCommentParams::setMeta(const std::shared_ptr& value) { m_Meta = value; - m_MetaIsSet = true; } bool UpdatableCommentParams::metaIsSet() const { - return m_MetaIsSet; + return m_Meta.has_value(); } void UpdatableCommentParams::unsetMeta() { - m_MetaIsSet = false; + m_Meta.reset(); } std::vector UpdatableCommentParams::getModerationGroupIds() const { - return m_ModerationGroupIds; + return m_ModerationGroupIds.get(); } void UpdatableCommentParams::setModerationGroupIds(const std::vector& value) { m_ModerationGroupIds = value; - m_ModerationGroupIdsIsSet = true; } bool UpdatableCommentParams::moderationGroupIdsIsSet() const { - return m_ModerationGroupIdsIsSet; + return m_ModerationGroupIds.has_value(); } void UpdatableCommentParams::unsetModerationGroupIds() { - m_ModerationGroupIdsIsSet = false; + m_ModerationGroupIds.reset(); } std::vector UpdatableCommentParams::getFeedbackIds() const { diff --git a/client/src/model/UpdateAPIPageData.cpp b/client/src/model/UpdateAPIPageData.cpp index 01eef75..00b66fe 100644 --- a/client/src/model/UpdateAPIPageData.cpp +++ b/client/src/model/UpdateAPIPageData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -44,27 +44,27 @@ web::json::value UpdateAPIPageData::toJson() const { web::json::value val = web::json::value::object(); if(m_IsClosedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isClosed"))] = ModelBase::toJson(m_IsClosed); } if(m_AccessibleByGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("accessibleByGroupIds"))] = ModelBase::toJson(m_AccessibleByGroupIds); } if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } diff --git a/client/src/model/UpdateAPISSOUserData.cpp b/client/src/model/UpdateAPISSOUserData.cpp index 92ccfe0..f735b69 100644 --- a/client/src/model/UpdateAPISSOUserData.cpp +++ b/client/src/model/UpdateAPISSOUserData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -74,102 +74,102 @@ web::json::value UpdateAPISSOUserData::toJson() const { web::json::value val = web::json::value::object(); if(m_GroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); } if(m_HasBlockedUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBlockedUsers"))] = ModelBase::toJson(m_HasBlockedUsers); } if(m_IsProfileDMDisabledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileDMDisabled"))] = ModelBase::toJson(m_IsProfileDMDisabled); } if(m_IsProfileCommentsPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileCommentsPrivate"))] = ModelBase::toJson(m_IsProfileCommentsPrivate); } if(m_IsProfileActivityPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileActivityPrivate"))] = ModelBase::toJson(m_IsProfileActivityPrivate); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } if(m_OptedInSubscriptionNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInSubscriptionNotifications"))] = ModelBase::toJson(m_OptedInSubscriptionNotifications); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_AvatarSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_CreatedFromUrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId"))] = ModelBase::toJson(m_CreatedFromUrlId); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } diff --git a/client/src/model/UpdateAPIUserSubscriptionData.cpp b/client/src/model/UpdateAPIUserSubscriptionData.cpp index ecef071..0b095b3 100644 --- a/client/src/model/UpdateAPIUserSubscriptionData.cpp +++ b/client/src/model/UpdateAPIUserSubscriptionData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,7 @@ web::json::value UpdateAPIUserSubscriptionData::toJson() const { web::json::value val = web::json::value::object(); if(m_NotificationFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationFrequency"))] = ModelBase::toJson(m_NotificationFrequency); } diff --git a/client/src/model/UpdateDomainConfigParams.cpp b/client/src/model/UpdateDomainConfigParams.cpp index 196382d..9c8d68a 100644 --- a/client/src/model/UpdateDomainConfigParams.cpp +++ b/client/src/model/UpdateDomainConfigParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -48,37 +48,37 @@ web::json::value UpdateDomainConfigParams::toJson() const { web::json::value val = web::json::value::object(); if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_EmailFromNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailFromName"))] = ModelBase::toJson(m_EmailFromName); } if(m_EmailFromEmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailFromEmail"))] = ModelBase::toJson(m_EmailFromEmail); } if(m_LogoSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("logoSrc"))] = ModelBase::toJson(m_LogoSrc); } if(m_LogoSrc100pxIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("logoSrc100px"))] = ModelBase::toJson(m_LogoSrc100px); } if(m_FooterUnsubscribeURLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("footerUnsubscribeURL"))] = ModelBase::toJson(m_FooterUnsubscribeURL); } if(m_EmailHeadersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailHeaders"))] = ModelBase::toJson(m_EmailHeaders); } diff --git a/client/src/model/UpdateEmailTemplateBody.cpp b/client/src/model/UpdateEmailTemplateBody.cpp index 8c9830b..9368b9c 100644 --- a/client/src/model/UpdateEmailTemplateBody.cpp +++ b/client/src/model/UpdateEmailTemplateBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -45,32 +45,32 @@ web::json::value UpdateEmailTemplateBody::toJson() const { web::json::value val = web::json::value::object(); if(m_EmailTemplateIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("emailTemplateId"))] = ModelBase::toJson(m_EmailTemplateId); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_EjsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ejs"))] = ModelBase::toJson(m_Ejs); } if(m_DomainIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domain"))] = ModelBase::toJson(m_Domain); } if(m_TranslationOverridesByLocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))] = ModelBase::toJson(m_TranslationOverridesByLocale); } if(m_TestDataIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("testData"))] = ModelBase::toJson(m_TestData); } @@ -130,7 +130,7 @@ bool UpdateEmailTemplateBody::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))); if(!fieldValue.is_null()) { - std::map refVal_setTranslationOverridesByLocale; + std::map> refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromJson(fieldValue, refVal_setTranslationOverridesByLocale); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); @@ -218,7 +218,7 @@ bool UpdateEmailTemplateBody::fromMultiPart(std::shared_ptr m } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale")))) { - std::map refVal_setTranslationOverridesByLocale; + std::map> refVal_setTranslationOverridesByLocale; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translationOverridesByLocale"))), refVal_setTranslationOverridesByLocale ); setTranslationOverridesByLocale(refVal_setTranslationOverridesByLocale); } @@ -316,13 +316,13 @@ void UpdateEmailTemplateBody::unsetDomain() { m_DomainIsSet = false; } -std::map UpdateEmailTemplateBody::getTranslationOverridesByLocale() const +std::map> UpdateEmailTemplateBody::getTranslationOverridesByLocale() const { return m_TranslationOverridesByLocale; } -void UpdateEmailTemplateBody::setTranslationOverridesByLocale(const std::map& value) +void UpdateEmailTemplateBody::setTranslationOverridesByLocale(const std::map>& value) { m_TranslationOverridesByLocale = value; m_TranslationOverridesByLocaleIsSet = true; diff --git a/client/src/model/UpdateFeedPostParams.cpp b/client/src/model/UpdateFeedPostParams.cpp index 8c2b90c..a0c146e 100644 --- a/client/src/model/UpdateFeedPostParams.cpp +++ b/client/src/model/UpdateFeedPostParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,32 +43,32 @@ web::json::value UpdateFeedPostParams::toJson() const { web::json::value val = web::json::value::object(); if(m_TitleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("title"))] = ModelBase::toJson(m_Title); } if(m_ContentHTMLIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("contentHTML"))] = ModelBase::toJson(m_ContentHTML); } if(m_MediaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("media"))] = ModelBase::toJson(m_Media); } if(m_LinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("links"))] = ModelBase::toJson(m_Links); } if(m_TagsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tags"))] = ModelBase::toJson(m_Tags); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } diff --git a/client/src/model/UpdateHashTagBody.cpp b/client/src/model/UpdateHashTagBody.cpp index cadcfa9..d45a877 100644 --- a/client/src/model/UpdateHashTagBody.cpp +++ b/client/src/model/UpdateHashTagBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value UpdateHashTagBody::toJson() const { web::json::value val = web::json::value::object(); if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_TagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } diff --git a/client/src/model/UpdateHashTagResponse.cpp b/client/src/model/UpdateHashTagResponse.cpp index acbb11c..f8a0f2c 100644 --- a/client/src/model/UpdateHashTagResponse.cpp +++ b/client/src/model/UpdateHashTagResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value UpdateHashTagResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_HashTagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hashTag"))] = ModelBase::toJson(m_HashTag); } diff --git a/client/src/model/UpdateModeratorBody.cpp b/client/src/model/UpdateModeratorBody.cpp index efa804b..360ef05 100644 --- a/client/src/model/UpdateModeratorBody.cpp +++ b/client/src/model/UpdateModeratorBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -27,6 +27,7 @@ UpdateModeratorBody::UpdateModeratorBody() m_UserId = utility::conversions::to_string_t(""); m_UserIdIsSet = false; m_ModerationGroupIdsIsSet = false; + m_AdditionalPropertiesIsSet = false; } UpdateModeratorBody::~UpdateModeratorBody() @@ -42,25 +43,33 @@ web::json::value UpdateModeratorBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_ModerationGroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))] = ModelBase::toJson(m_ModerationGroupIds); } + // Serialize additional properties + if(m_AdditionalPropertiesIsSet) + { + for(const auto& item : m_AdditionalProperties) + { + val[item.first] = item.second; + } + } return val; } @@ -112,6 +121,21 @@ bool UpdateModeratorBody::fromJson(const web::json::value& val) } } + // Capture additional properties (keys not defined in the schema) + if(val.is_object()) + { + for(const auto& item : val.as_object()) + { + // Skip known properties + if(item.first == utility::conversions::to_string_t(_XPLATSTR("name"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("email"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("userId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("moderationGroupIds"))) continue; + // This is an additional property + m_AdditionalProperties[item.first] = item.second; + m_AdditionalPropertiesIsSet = true; + } + } return ok; } @@ -262,6 +286,34 @@ void UpdateModeratorBody::unsetModerationGroupIds() m_ModerationGroupIdsIsSet = false; } + +std::map UpdateModeratorBody::getAdditionalProperties() const +{ + return m_AdditionalProperties; +} + +void UpdateModeratorBody::setAdditionalProperties(const std::map& value) +{ + m_AdditionalProperties = value; + m_AdditionalPropertiesIsSet = true; +} + +void UpdateModeratorBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) +{ + m_AdditionalProperties[key] = value; + m_AdditionalPropertiesIsSet = true; +} + +bool UpdateModeratorBody::additionalPropertiesIsSet() const +{ + return m_AdditionalPropertiesIsSet; +} + +void UpdateModeratorBody::unsetAdditionalProperties() +{ + m_AdditionalProperties.clear(); + m_AdditionalPropertiesIsSet = false; +} } } } diff --git a/client/src/model/UpdateNotificationBody.cpp b/client/src/model/UpdateNotificationBody.cpp index a2725c9..3e29e95 100644 --- a/client/src/model/UpdateNotificationBody.cpp +++ b/client/src/model/UpdateNotificationBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,6 +24,7 @@ UpdateNotificationBody::UpdateNotificationBody() m_ViewedIsSet = false; m_OptedOut = false; m_OptedOutIsSet = false; + m_AdditionalPropertiesIsSet = false; } UpdateNotificationBody::~UpdateNotificationBody() @@ -39,15 +40,23 @@ web::json::value UpdateNotificationBody::toJson() const { web::json::value val = web::json::value::object(); if(m_ViewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("viewed"))] = ModelBase::toJson(m_Viewed); } if(m_OptedOutIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedOut"))] = ModelBase::toJson(m_OptedOut); } + // Serialize additional properties + if(m_AdditionalPropertiesIsSet) + { + for(const auto& item : m_AdditionalProperties) + { + val[item.first] = item.second; + } + } return val; } @@ -77,6 +86,19 @@ bool UpdateNotificationBody::fromJson(const web::json::value& val) } } + // Capture additional properties (keys not defined in the schema) + if(val.is_object()) + { + for(const auto& item : val.as_object()) + { + // Skip known properties + if(item.first == utility::conversions::to_string_t(_XPLATSTR("viewed"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("optedOut"))) continue; + // This is an additional property + m_AdditionalProperties[item.first] = item.second; + m_AdditionalPropertiesIsSet = true; + } + } return ok; } @@ -163,6 +185,34 @@ void UpdateNotificationBody::unsetOptedOut() m_OptedOutIsSet = false; } + +std::map UpdateNotificationBody::getAdditionalProperties() const +{ + return m_AdditionalProperties; +} + +void UpdateNotificationBody::setAdditionalProperties(const std::map& value) +{ + m_AdditionalProperties = value; + m_AdditionalPropertiesIsSet = true; +} + +void UpdateNotificationBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) +{ + m_AdditionalProperties[key] = value; + m_AdditionalPropertiesIsSet = true; +} + +bool UpdateNotificationBody::additionalPropertiesIsSet() const +{ + return m_AdditionalPropertiesIsSet; +} + +void UpdateNotificationBody::unsetAdditionalProperties() +{ + m_AdditionalProperties.clear(); + m_AdditionalPropertiesIsSet = false; +} } } } diff --git a/client/src/model/UpdateQuestionConfigBody.cpp b/client/src/model/UpdateQuestionConfigBody.cpp index a8a3b1f..35c4920 100644 --- a/client/src/model/UpdateQuestionConfigBody.cpp +++ b/client/src/model/UpdateQuestionConfigBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -46,6 +46,7 @@ UpdateQuestionConfigBody::UpdateQuestionConfigBody() m_AlwaysShowSubQuestionsIsSet = false; m_ReportingOrder = 0.0; m_ReportingOrderIsSet = false; + m_AdditionalPropertiesIsSet = false; } UpdateQuestionConfigBody::~UpdateQuestionConfigBody() @@ -61,75 +62,83 @@ web::json::value UpdateQuestionConfigBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_QuestionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("question"))] = ModelBase::toJson(m_Question); } if(m_HelpTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("helpText"))] = ModelBase::toJson(m_HelpText); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_NumStarsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("numStars"))] = ModelBase::toJson(m_NumStars); } if(m_MinIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("min"))] = ModelBase::toJson(m_Min); } if(m_MaxIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("max"))] = ModelBase::toJson(m_Max); } if(m_DefaultValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("defaultValue"))] = ModelBase::toJson(m_DefaultValue); } if(m_LabelNegativeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("labelNegative"))] = ModelBase::toJson(m_LabelNegative); } if(m_LabelPositiveIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("labelPositive"))] = ModelBase::toJson(m_LabelPositive); } if(m_CustomOptionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("customOptions"))] = ModelBase::toJson(m_CustomOptions); } if(m_SubQuestionIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subQuestionIds"))] = ModelBase::toJson(m_SubQuestionIds); } if(m_AlwaysShowSubQuestionsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("alwaysShowSubQuestions"))] = ModelBase::toJson(m_AlwaysShowSubQuestions); } if(m_ReportingOrderIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reportingOrder"))] = ModelBase::toJson(m_ReportingOrder); } + // Serialize additional properties + if(m_AdditionalPropertiesIsSet) + { + for(const auto& item : m_AdditionalProperties) + { + val[item.first] = item.second; + } + } return val; } @@ -291,6 +300,31 @@ bool UpdateQuestionConfigBody::fromJson(const web::json::value& val) } } + // Capture additional properties (keys not defined in the schema) + if(val.is_object()) + { + for(const auto& item : val.as_object()) + { + // Skip known properties + if(item.first == utility::conversions::to_string_t(_XPLATSTR("name"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("question"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("helpText"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("type"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("numStars"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("min"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("max"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("defaultValue"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("labelNegative"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("labelPositive"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("customOptions"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("subQuestionIds"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("alwaysShowSubQuestions"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("reportingOrder"))) continue; + // This is an additional property + m_AdditionalProperties[item.first] = item.second; + m_AdditionalPropertiesIsSet = true; + } + } return ok; } @@ -745,6 +779,34 @@ void UpdateQuestionConfigBody::unsetReportingOrder() m_ReportingOrderIsSet = false; } + +std::map UpdateQuestionConfigBody::getAdditionalProperties() const +{ + return m_AdditionalProperties; +} + +void UpdateQuestionConfigBody::setAdditionalProperties(const std::map& value) +{ + m_AdditionalProperties = value; + m_AdditionalPropertiesIsSet = true; +} + +void UpdateQuestionConfigBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) +{ + m_AdditionalProperties[key] = value; + m_AdditionalPropertiesIsSet = true; +} + +bool UpdateQuestionConfigBody::additionalPropertiesIsSet() const +{ + return m_AdditionalPropertiesIsSet; +} + +void UpdateQuestionConfigBody::unsetAdditionalProperties() +{ + m_AdditionalProperties.clear(); + m_AdditionalPropertiesIsSet = false; +} } } } diff --git a/client/src/model/UpdateQuestionResultBody.cpp b/client/src/model/UpdateQuestionResultBody.cpp index 92a3036..d493d70 100644 --- a/client/src/model/UpdateQuestionResultBody.cpp +++ b/client/src/model/UpdateQuestionResultBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -32,7 +32,7 @@ UpdateQuestionResultBody::UpdateQuestionResultBody() m_CommentIdIsSet = false; m_QuestionId = utility::conversions::to_string_t(""); m_QuestionIdIsSet = false; - m_MetaIsSet = false; + m_AdditionalPropertiesIsSet = false; } UpdateQuestionResultBody::~UpdateQuestionResultBody() @@ -48,39 +48,47 @@ web::json::value UpdateQuestionResultBody::toJson() const { web::json::value val = web::json::value::object(); if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_AnonUserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_ValueIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("value"))] = ModelBase::toJson(m_Value); } if(m_CommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentId"))] = ModelBase::toJson(m_CommentId); } if(m_QuestionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("questionId"))] = ModelBase::toJson(m_QuestionId); } - if(m_MetaIsSet) - { + if(m_Meta.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); + val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta.get()); + } + // Serialize additional properties + if(m_AdditionalPropertiesIsSet) + { + for(const auto& item : m_AdditionalProperties) + { + val[item.first] = item.second; + } } return val; @@ -166,6 +174,24 @@ bool UpdateQuestionResultBody::fromJson(const web::json::value& val) } } + // Capture additional properties (keys not defined in the schema) + if(val.is_object()) + { + for(const auto& item : val.as_object()) + { + // Skip known properties + if(item.first == utility::conversions::to_string_t(_XPLATSTR("urlId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("anonUserId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("userId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("value"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("commentId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("questionId"))) continue; + if(item.first == utility::conversions::to_string_t(_XPLATSTR("meta"))) continue; + // This is an additional property + m_AdditionalProperties[item.first] = item.second; + m_AdditionalPropertiesIsSet = true; + } + } return ok; } @@ -200,9 +226,9 @@ void UpdateQuestionResultBody::toMultipart(std::shared_ptr mu { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionId")), m_QuestionId)); } - if(m_MetaIsSet) + if(m_Meta.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("meta")), m_Meta.get())); } } @@ -388,26 +414,53 @@ void UpdateQuestionResultBody::unsetQuestionId() } std::vector> UpdateQuestionResultBody::getMeta() const { - return m_Meta; + return m_Meta.get(); } void UpdateQuestionResultBody::setMeta(const std::vector>& value) { m_Meta = value; - m_MetaIsSet = true; } bool UpdateQuestionResultBody::metaIsSet() const { - return m_MetaIsSet; + return m_Meta.has_value(); } void UpdateQuestionResultBody::unsetMeta() { - m_MetaIsSet = false; + m_Meta.reset(); } + +std::map UpdateQuestionResultBody::getAdditionalProperties() const +{ + return m_AdditionalProperties; +} + +void UpdateQuestionResultBody::setAdditionalProperties(const std::map& value) +{ + m_AdditionalProperties = value; + m_AdditionalPropertiesIsSet = true; +} + +void UpdateQuestionResultBody::addAdditionalProperty(const utility::string_t& key, const web::json::value& value) +{ + m_AdditionalProperties[key] = value; + m_AdditionalPropertiesIsSet = true; +} + +bool UpdateQuestionResultBody::additionalPropertiesIsSet() const +{ + return m_AdditionalPropertiesIsSet; +} + +void UpdateQuestionResultBody::unsetAdditionalProperties() +{ + m_AdditionalProperties.clear(); + m_AdditionalPropertiesIsSet = false; +} } } } diff --git a/client/src/model/UpdateSubscriptionAPIResponse.cpp b/client/src/model/UpdateSubscriptionAPIResponse.cpp index 5faea2c..d7a6793 100644 --- a/client/src/model/UpdateSubscriptionAPIResponse.cpp +++ b/client/src/model/UpdateSubscriptionAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,22 +42,22 @@ web::json::value UpdateSubscriptionAPIResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if(m_SubscriptionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("subscription"))] = ModelBase::toJson(m_Subscription); } if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } diff --git a/client/src/model/UpdateTenantBody.cpp b/client/src/model/UpdateTenantBody.cpp index f9edbfa..ba715f3 100644 --- a/client/src/model/UpdateTenantBody.cpp +++ b/client/src/model/UpdateTenantBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -80,122 +80,122 @@ web::json::value UpdateTenantBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_PackageIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("packageId"))] = ModelBase::toJson(m_PackageId); } if(m_PaymentFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("paymentFrequency"))] = ModelBase::toJson(m_PaymentFrequency); } if(m_BillingInfoValidIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingInfoValid"))] = ModelBase::toJson(m_BillingInfoValid); } if(m_BillingHandledExternallyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingHandledExternally"))] = ModelBase::toJson(m_BillingHandledExternally); } if(m_CreatedByIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdBy"))] = ModelBase::toJson(m_CreatedBy); } if(m_IsSetupIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSetup"))] = ModelBase::toJson(m_IsSetup); } if(m_DomainConfigurationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("domainConfiguration"))] = ModelBase::toJson(m_DomainConfiguration); } if(m_BillingInfoIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("billingInfo"))] = ModelBase::toJson(m_BillingInfo); } if(m_StripeCustomerIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripeCustomerId"))] = ModelBase::toJson(m_StripeCustomerId); } if(m_StripeSubscriptionIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripeSubscriptionId"))] = ModelBase::toJson(m_StripeSubscriptionId); } if(m_StripePlanIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("stripePlanId"))] = ModelBase::toJson(m_StripePlanId); } if(m_EnableProfanityFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableProfanityFilter"))] = ModelBase::toJson(m_EnableProfanityFilter); } if(m_EnableSpamFilterIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("enableSpamFilter"))] = ModelBase::toJson(m_EnableSpamFilter); } if(m_RemoveUnverifiedCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("removeUnverifiedComments"))] = ModelBase::toJson(m_RemoveUnverifiedComments); } if(m_UnverifiedCommentsTTLmsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("unverifiedCommentsTTLms"))] = ModelBase::toJson(m_UnverifiedCommentsTTLms); } if(m_CommentsRequireApprovalIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("commentsRequireApproval"))] = ModelBase::toJson(m_CommentsRequireApproval); } if(m_AutoApproveCommentOnVerificationIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoApproveCommentOnVerification"))] = ModelBase::toJson(m_AutoApproveCommentOnVerification); } if(m_SendProfaneToSpamIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sendProfaneToSpam"))] = ModelBase::toJson(m_SendProfaneToSpam); } if(m_DeAnonIpAddrIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("deAnonIpAddr"))] = ModelBase::toJson(m_DeAnonIpAddr); } if(m_MetaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("meta"))] = ModelBase::toJson(m_Meta); } if(m_ManagedByTenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("managedByTenantId"))] = ModelBase::toJson(m_ManagedByTenantId); } diff --git a/client/src/model/UpdateTenantPackageBody.cpp b/client/src/model/UpdateTenantPackageBody.cpp index ae26b59..afbdfb9 100644 --- a/client/src/model/UpdateTenantPackageBody.cpp +++ b/client/src/model/UpdateTenantPackageBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -98,162 +98,162 @@ web::json::value UpdateTenantPackageBody::toJson() const { web::json::value val = web::json::value::object(); if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_MonthlyCostUSDIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("monthlyCostUSD"))] = ModelBase::toJson(m_MonthlyCostUSD); } if(m_YearlyCostUSDIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("yearlyCostUSD"))] = ModelBase::toJson(m_YearlyCostUSD); } if(m_MaxMonthlyPageLoadsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyPageLoads"))] = ModelBase::toJson(m_MaxMonthlyPageLoads); } if(m_MaxMonthlyAPICreditsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyAPICredits"))] = ModelBase::toJson(m_MaxMonthlyAPICredits); } if(m_MaxMonthlyCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxMonthlyComments"))] = ModelBase::toJson(m_MaxMonthlyComments); } if(m_MaxConcurrentUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxConcurrentUsers"))] = ModelBase::toJson(m_MaxConcurrentUsers); } if(m_MaxTenantUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxTenantUsers"))] = ModelBase::toJson(m_MaxTenantUsers); } if(m_MaxSSOUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxSSOUsers"))] = ModelBase::toJson(m_MaxSSOUsers); } if(m_MaxModeratorsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxModerators"))] = ModelBase::toJson(m_MaxModerators); } if(m_MaxDomainsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxDomains"))] = ModelBase::toJson(m_MaxDomains); } if(m_MaxCustomCollectionSizeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("maxCustomCollectionSize"))] = ModelBase::toJson(m_MaxCustomCollectionSize); } if(m_HasDebrandingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasDebranding"))] = ModelBase::toJson(m_HasDebranding); } if(m_HasWhiteLabelingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasWhiteLabeling"))] = ModelBase::toJson(m_HasWhiteLabeling); } if(m_ForWhoTextIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("forWhoText"))] = ModelBase::toJson(m_ForWhoText); } if(m_FeatureTaglinesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("featureTaglines"))] = ModelBase::toJson(m_FeatureTaglines); } if(m_HasFlexPricingIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasFlexPricing"))] = ModelBase::toJson(m_HasFlexPricing); } if(m_FlexPageLoadCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadCostCents"))] = ModelBase::toJson(m_FlexPageLoadCostCents); } if(m_FlexPageLoadUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexPageLoadUnit"))] = ModelBase::toJson(m_FlexPageLoadUnit); } if(m_FlexCommentCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentCostCents"))] = ModelBase::toJson(m_FlexCommentCostCents); } if(m_FlexCommentUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexCommentUnit"))] = ModelBase::toJson(m_FlexCommentUnit); } if(m_FlexSSOUserCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserCostCents"))] = ModelBase::toJson(m_FlexSSOUserCostCents); } if(m_FlexSSOUserUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexSSOUserUnit"))] = ModelBase::toJson(m_FlexSSOUserUnit); } if(m_FlexAPICreditCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditCostCents"))] = ModelBase::toJson(m_FlexAPICreditCostCents); } if(m_FlexAPICreditUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAPICreditUnit"))] = ModelBase::toJson(m_FlexAPICreditUnit); } if(m_FlexModeratorCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorCostCents"))] = ModelBase::toJson(m_FlexModeratorCostCents); } if(m_FlexModeratorUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexModeratorUnit"))] = ModelBase::toJson(m_FlexModeratorUnit); } if(m_FlexAdminCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminCostCents"))] = ModelBase::toJson(m_FlexAdminCostCents); } if(m_FlexAdminUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexAdminUnit"))] = ModelBase::toJson(m_FlexAdminUnit); } if(m_FlexDomainCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainCostCents"))] = ModelBase::toJson(m_FlexDomainCostCents); } if(m_FlexDomainUnitIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexDomainUnit"))] = ModelBase::toJson(m_FlexDomainUnit); } if(m_FlexMinimumCostCentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("flexMinimumCostCents"))] = ModelBase::toJson(m_FlexMinimumCostCents); } diff --git a/client/src/model/UpdateTenantUserBody.cpp b/client/src/model/UpdateTenantUserBody.cpp index 613a598..2a217cc 100644 --- a/client/src/model/UpdateTenantUserBody.cpp +++ b/client/src/model/UpdateTenantUserBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -82,122 +82,122 @@ web::json::value UpdateTenantUserBody::toJson() const { web::json::value val = web::json::value::object(); if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } if(m_EmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_OptedInTenantNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInTenantNotifications"))] = ModelBase::toJson(m_OptedInTenantNotifications); } if(m_HideAccountCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hideAccountCode"))] = ModelBase::toJson(m_HideAccountCode); } if(m_AvatarSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); } if(m_IsHelpRequestAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isHelpRequestAdmin"))] = ModelBase::toJson(m_IsHelpRequestAdmin); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsBillingAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBillingAdmin"))] = ModelBase::toJson(m_IsBillingAdmin); } if(m_IsAnalyticsAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAnalyticsAdmin"))] = ModelBase::toJson(m_IsAnalyticsAdmin); } if(m_IsCustomizationAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCustomizationAdmin"))] = ModelBase::toJson(m_IsCustomizationAdmin); } if(m_IsManageDataAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isManageDataAdmin"))] = ModelBase::toJson(m_IsManageDataAdmin); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsAPIAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAPIAdmin"))] = ModelBase::toJson(m_IsAPIAdmin); } if(m_ModeratorIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderatorIds"))] = ModelBase::toJson(m_ModeratorIds); } if(m_LocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_DigestEmailFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("digestEmailFrequency"))] = ModelBase::toJson(m_DigestEmailFrequency); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } diff --git a/client/src/model/UpdateUserBadgeParams.cpp b/client/src/model/UpdateUserBadgeParams.cpp index c643db0..0d72f81 100644 --- a/client/src/model/UpdateUserBadgeParams.cpp +++ b/client/src/model/UpdateUserBadgeParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,7 @@ web::json::value UpdateUserBadgeParams::toJson() const { web::json::value val = web::json::value::object(); if(m_DisplayedOnCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayedOnComments"))] = ModelBase::toJson(m_DisplayedOnComments); } diff --git a/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp b/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp index 2941c4c..a4047e4 100644 --- a/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp +++ b/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,22 +41,22 @@ web::json::value UpdateUserNotificationCommentSubscriptionStatusResponse::toJson { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_MatchedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("matchedCount"))] = ModelBase::toJson(m_MatchedCount); } if(m_ModifiedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))] = ModelBase::toJson(m_ModifiedCount); } if(m_NoteIsSet) - { + { utility::string_t refVal = fromNoteEnum(m_Note); val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); diff --git a/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp b/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp index 01f2185..56aae1b 100644 --- a/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp +++ b/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,22 +41,22 @@ web::json::value UpdateUserNotificationPageSubscriptionStatusResponse::toJson() { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_MatchedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("matchedCount"))] = ModelBase::toJson(m_MatchedCount); } if(m_ModifiedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))] = ModelBase::toJson(m_ModifiedCount); } if(m_NoteIsSet) - { + { utility::string_t refVal = fromNoteEnum(m_Note); val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); diff --git a/client/src/model/UpdateUserNotificationStatusResponse.cpp b/client/src/model/UpdateUserNotificationStatusResponse.cpp index 1b5199e..241383e 100644 --- a/client/src/model/UpdateUserNotificationStatusResponse.cpp +++ b/client/src/model/UpdateUserNotificationStatusResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,22 +41,22 @@ web::json::value UpdateUserNotificationStatusResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_MatchedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("matchedCount"))] = ModelBase::toJson(m_MatchedCount); } if(m_ModifiedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))] = ModelBase::toJson(m_ModifiedCount); } if(m_NoteIsSet) - { + { utility::string_t refVal = fromNoteEnum(m_Note); val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); diff --git a/client/src/model/UploadImageResponse.cpp b/client/src/model/UploadImageResponse.cpp index 9d17d91..1bc6547 100644 --- a/client/src/model/UploadImageResponse.cpp +++ b/client/src/model/UploadImageResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,27 +43,27 @@ web::json::value UploadImageResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } if(m_MediaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("media"))] = ModelBase::toJson(m_Media); } if(m_ReasonIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } if(m_CodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } diff --git a/client/src/model/User.cpp b/client/src/model/User.cpp index 27906e7..f4dd76a 100644 --- a/client/src/model/User.cpp +++ b/client/src/model/User.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,16 +22,10 @@ User::User() { m__id = utility::conversions::to_string_t(""); m__idIsSet = false; - m_TenantId = utility::conversions::to_string_t(""); - m_TenantIdIsSet = false; m_Username = utility::conversions::to_string_t(""); m_UsernameIsSet = false; m_DisplayName = utility::conversions::to_string_t(""); m_DisplayNameIsSet = false; - m_WebsiteUrl = utility::conversions::to_string_t(""); - m_WebsiteUrlIsSet = false; - m_Email = utility::conversions::to_string_t(""); - m_EmailIsSet = false; m_PendingEmail = utility::conversions::to_string_t(""); m_PendingEmailIsSet = false; m_BackupEmail = utility::conversions::to_string_t(""); @@ -40,10 +34,6 @@ User::User() m_PendingBackupEmailIsSet = false; m_SignUpDate = 0L; m_SignUpDateIsSet = false; - m_CreatedFromUrlId = utility::conversions::to_string_t(""); - m_CreatedFromUrlIdIsSet = false; - m_CreatedFromTenantId = utility::conversions::to_string_t(""); - m_CreatedFromTenantIdIsSet = false; m_CreatedFromIpHashed = utility::conversions::to_string_t(""); m_CreatedFromIpHashedIsSet = false; m_Verified = false; @@ -60,8 +50,6 @@ User::User() m_OptedInTenantNotificationsIsSet = false; m_HideAccountCode = false; m_HideAccountCodeIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; m_IsFastCommentsHelpRequestAdmin = false; m_IsFastCommentsHelpRequestAdminIsSet = false; m_IsHelpRequestAdmin = false; @@ -119,8 +107,6 @@ User::User() m_KarmaIsSet = false; m_PasswordHash = utility::conversions::to_string_t(""); m_PasswordHashIsSet = false; - m_AverageTicketAckTimeMS = 0.0; - m_AverageTicketAckTimeMSIsSet = false; m_HasBlockedUsers = false; m_HasBlockedUsersIsSet = false; m_Bio = utility::conversions::to_string_t(""); @@ -151,302 +137,302 @@ web::json::value User::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } - if(m_TenantIdIsSet) - { + if(m_TenantId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); + val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId.get()); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } - if(m_WebsiteUrlIsSet) - { + if(m_WebsiteUrl.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); + val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl.get()); } - if(m_EmailIsSet) - { + if(m_Email.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); } if(m_PendingEmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pendingEmail"))] = ModelBase::toJson(m_PendingEmail); } if(m_BackupEmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("backupEmail"))] = ModelBase::toJson(m_BackupEmail); } if(m_PendingBackupEmailIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("pendingBackupEmail"))] = ModelBase::toJson(m_PendingBackupEmail); } if(m_SignUpDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("signUpDate"))] = ModelBase::toJson(m_SignUpDate); } - if(m_CreatedFromUrlIdIsSet) - { + if(m_CreatedFromUrlId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId"))] = ModelBase::toJson(m_CreatedFromUrlId); + val[utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId"))] = ModelBase::toJson(m_CreatedFromUrlId.get()); } - if(m_CreatedFromTenantIdIsSet) - { + if(m_CreatedFromTenantId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("createdFromTenantId"))] = ModelBase::toJson(m_CreatedFromTenantId); + val[utility::conversions::to_string_t(_XPLATSTR("createdFromTenantId"))] = ModelBase::toJson(m_CreatedFromTenantId.get()); } if(m_CreatedFromIpHashedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdFromIpHashed"))] = ModelBase::toJson(m_CreatedFromIpHashed); } if(m_VerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if(m_LoginIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginId"))] = ModelBase::toJson(m_LoginId); } if(m_LoginIdDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginIdDate"))] = ModelBase::toJson(m_LoginIdDate); } if(m_LoginCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("loginCount"))] = ModelBase::toJson(m_LoginCount); } if(m_OptedInNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInNotifications"))] = ModelBase::toJson(m_OptedInNotifications); } if(m_OptedInTenantNotificationsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedInTenantNotifications"))] = ModelBase::toJson(m_OptedInTenantNotifications); } if(m_HideAccountCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hideAccountCode"))] = ModelBase::toJson(m_HideAccountCode); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } if(m_IsFastCommentsHelpRequestAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isFastCommentsHelpRequestAdmin"))] = ModelBase::toJson(m_IsFastCommentsHelpRequestAdmin); } if(m_IsHelpRequestAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isHelpRequestAdmin"))] = ModelBase::toJson(m_IsHelpRequestAdmin); } if(m_IsAccountOwnerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAccountOwner"))] = ModelBase::toJson(m_IsAccountOwner); } if(m_IsAdminAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAdminAdmin"))] = ModelBase::toJson(m_IsAdminAdmin); } if(m_IsBillingAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isBillingAdmin"))] = ModelBase::toJson(m_IsBillingAdmin); } if(m_IsAnalyticsAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAnalyticsAdmin"))] = ModelBase::toJson(m_IsAnalyticsAdmin); } if(m_IsCustomizationAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCustomizationAdmin"))] = ModelBase::toJson(m_IsCustomizationAdmin); } if(m_IsManageDataAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isManageDataAdmin"))] = ModelBase::toJson(m_IsManageDataAdmin); } if(m_IsCommentModeratorAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCommentModeratorAdmin"))] = ModelBase::toJson(m_IsCommentModeratorAdmin); } if(m_IsAPIAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAPIAdmin"))] = ModelBase::toJson(m_IsAPIAdmin); } if(m_IsSiteAdminIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))] = ModelBase::toJson(m_IsSiteAdmin); } if(m_ModeratorIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("moderatorIds"))] = ModelBase::toJson(m_ModeratorIds); } if(m_IsImpersonatorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isImpersonator"))] = ModelBase::toJson(m_IsImpersonator); } if(m_IsCouponManagerIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isCouponManager"))] = ModelBase::toJson(m_IsCouponManager); } if(m_LocaleIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("locale"))] = ModelBase::toJson(m_Locale); } if(m_DigestEmailFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("digestEmailFrequency"))] = ModelBase::toJson(m_DigestEmailFrequency); } if(m_NotificationFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("notificationFrequency"))] = ModelBase::toJson(m_NotificationFrequency); } if(m_AdminNotificationFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("adminNotificationFrequency"))] = ModelBase::toJson(m_AdminNotificationFrequency); } if(m_AgentApprovalNotificationFrequencyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("agentApprovalNotificationFrequency"))] = ModelBase::toJson(m_AgentApprovalNotificationFrequency); } if(m_LastTenantNotificationSentDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastTenantNotificationSentDate"))] = ModelBase::toJson(m_LastTenantNotificationSentDate); } if(m_LastReplyNotificationSentDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastReplyNotificationSentDate"))] = ModelBase::toJson(m_LastReplyNotificationSentDate); } if(m_IgnoredAddToMySiteMessagesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("ignoredAddToMySiteMessages"))] = ModelBase::toJson(m_IgnoredAddToMySiteMessages); } if(m_LastLoginDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("lastLoginDate"))] = ModelBase::toJson(m_LastLoginDate); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } if(m_IsProfileActivityPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileActivityPrivate"))] = ModelBase::toJson(m_IsProfileActivityPrivate); } if(m_IsProfileCommentsPrivateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileCommentsPrivate"))] = ModelBase::toJson(m_IsProfileCommentsPrivate); } if(m_IsProfileDMDisabledIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isProfileDMDisabled"))] = ModelBase::toJson(m_IsProfileDMDisabled); } if(m_ProfileCommentApprovalModeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("profileCommentApprovalMode"))] = ModelBase::toJson(m_ProfileCommentApprovalMode); } if(m_KarmaIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("karma"))] = ModelBase::toJson(m_Karma); } if(m_PasswordHashIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("passwordHash"))] = ModelBase::toJson(m_PasswordHash); } - if(m_AverageTicketAckTimeMSIsSet) - { + if(m_AverageTicketAckTimeMS.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("averageTicketAckTimeMS"))] = ModelBase::toJson(m_AverageTicketAckTimeMS); + val[utility::conversions::to_string_t(_XPLATSTR("averageTicketAckTimeMS"))] = ModelBase::toJson(m_AverageTicketAckTimeMS.get()); } if(m_HasBlockedUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBlockedUsers"))] = ModelBase::toJson(m_HasBlockedUsers); } if(m_BioIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("bio"))] = ModelBase::toJson(m_Bio); } if(m_HeaderBackgroundSrcIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("headerBackgroundSrc"))] = ModelBase::toJson(m_HeaderBackgroundSrc); } if(m_CountryCodeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("countryCode"))] = ModelBase::toJson(m_CountryCode); } if(m_CountryFlagIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("countryFlag"))] = ModelBase::toJson(m_CountryFlag); } if(m_SocialLinksIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("socialLinks"))] = ModelBase::toJson(m_SocialLinks); } if(m_HasTwoFactorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasTwoFactor"))] = ModelBase::toJson(m_HasTwoFactor); } if(m_IsEmailSuppressedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isEmailSuppressed"))] = ModelBase::toJson(m_IsEmailSuppressed); } @@ -1131,9 +1117,9 @@ void User::toMultipart(std::shared_ptr multipart, const utili { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("_id")), m__id)); } - if(m_TenantIdIsSet) + if(m_TenantId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId.get())); } if(m_UsernameIsSet) { @@ -1143,13 +1129,13 @@ void User::toMultipart(std::shared_ptr multipart, const utili { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayName")), m_DisplayName)); } - if(m_WebsiteUrlIsSet) + if(m_WebsiteUrl.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("websiteUrl")), m_WebsiteUrl)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("websiteUrl")), m_WebsiteUrl.get())); } - if(m_EmailIsSet) + if(m_Email.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); } if(m_PendingEmailIsSet) { @@ -1167,13 +1153,13 @@ void User::toMultipart(std::shared_ptr multipart, const utili { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("signUpDate")), m_SignUpDate)); } - if(m_CreatedFromUrlIdIsSet) + if(m_CreatedFromUrlId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId")), m_CreatedFromUrlId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdFromUrlId")), m_CreatedFromUrlId.get())); } - if(m_CreatedFromTenantIdIsSet) + if(m_CreatedFromTenantId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdFromTenantId")), m_CreatedFromTenantId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("createdFromTenantId")), m_CreatedFromTenantId.get())); } if(m_CreatedFromIpHashedIsSet) { @@ -1207,9 +1193,9 @@ void User::toMultipart(std::shared_ptr multipart, const utili { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hideAccountCode")), m_HideAccountCode)); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } if(m_IsFastCommentsHelpRequestAdminIsSet) { @@ -1331,9 +1317,9 @@ void User::toMultipart(std::shared_ptr multipart, const utili { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("passwordHash")), m_PasswordHash)); } - if(m_AverageTicketAckTimeMSIsSet) + if(m_AverageTicketAckTimeMS.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("averageTicketAckTimeMS")), m_AverageTicketAckTimeMS)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("averageTicketAckTimeMS")), m_AverageTicketAckTimeMS.get())); } if(m_HasBlockedUsersIsSet) { @@ -1765,24 +1751,23 @@ void User::unset_id() } utility::string_t User::getTenantId() const { - return m_TenantId; + return m_TenantId.get(); } void User::setTenantId(const utility::string_t& value) { m_TenantId = value; - m_TenantIdIsSet = true; } bool User::tenantIdIsSet() const { - return m_TenantIdIsSet; + return m_TenantId.has_value(); } void User::unsetTenantId() { - m_TenantIdIsSet = false; + m_TenantId.reset(); } utility::string_t User::getUsername() const { @@ -1828,45 +1813,43 @@ void User::unsetDisplayName() } utility::string_t User::getWebsiteUrl() const { - return m_WebsiteUrl; + return m_WebsiteUrl.get(); } void User::setWebsiteUrl(const utility::string_t& value) { m_WebsiteUrl = value; - m_WebsiteUrlIsSet = true; } bool User::websiteUrlIsSet() const { - return m_WebsiteUrlIsSet; + return m_WebsiteUrl.has_value(); } void User::unsetWebsiteUrl() { - m_WebsiteUrlIsSet = false; + m_WebsiteUrl.reset(); } utility::string_t User::getEmail() const { - return m_Email; + return m_Email.get(); } void User::setEmail(const utility::string_t& value) { m_Email = value; - m_EmailIsSet = true; } bool User::emailIsSet() const { - return m_EmailIsSet; + return m_Email.has_value(); } void User::unsetEmail() { - m_EmailIsSet = false; + m_Email.reset(); } utility::string_t User::getPendingEmail() const { @@ -1953,45 +1936,43 @@ void User::unsetSignUpDate() } utility::string_t User::getCreatedFromUrlId() const { - return m_CreatedFromUrlId; + return m_CreatedFromUrlId.get(); } void User::setCreatedFromUrlId(const utility::string_t& value) { m_CreatedFromUrlId = value; - m_CreatedFromUrlIdIsSet = true; } bool User::createdFromUrlIdIsSet() const { - return m_CreatedFromUrlIdIsSet; + return m_CreatedFromUrlId.has_value(); } void User::unsetCreatedFromUrlId() { - m_CreatedFromUrlIdIsSet = false; + m_CreatedFromUrlId.reset(); } utility::string_t User::getCreatedFromTenantId() const { - return m_CreatedFromTenantId; + return m_CreatedFromTenantId.get(); } void User::setCreatedFromTenantId(const utility::string_t& value) { m_CreatedFromTenantId = value; - m_CreatedFromTenantIdIsSet = true; } bool User::createdFromTenantIdIsSet() const { - return m_CreatedFromTenantIdIsSet; + return m_CreatedFromTenantId.has_value(); } void User::unsetCreatedFromTenantId() { - m_CreatedFromTenantIdIsSet = false; + m_CreatedFromTenantId.reset(); } utility::string_t User::getCreatedFromIpHashed() const { @@ -2157,24 +2138,23 @@ void User::unsetHideAccountCode() } utility::string_t User::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void User::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool User::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void User::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } bool User::isIsFastCommentsHelpRequestAdmin() const { @@ -2787,23 +2767,22 @@ void User::unsetPasswordHash() } double User::getAverageTicketAckTimeMS() const { - return m_AverageTicketAckTimeMS; + return m_AverageTicketAckTimeMS.get(); } void User::setAverageTicketAckTimeMS(double value) { m_AverageTicketAckTimeMS = value; - m_AverageTicketAckTimeMSIsSet = true; } bool User::averageTicketAckTimeMSIsSet() const { - return m_AverageTicketAckTimeMSIsSet; + return m_AverageTicketAckTimeMS.has_value(); } void User::unsetAverageTicketAckTimeMS() { - m_AverageTicketAckTimeMSIsSet = false; + m_AverageTicketAckTimeMS.reset(); } bool User::isHasBlockedUsers() const { diff --git a/client/src/model/UserBadge.cpp b/client/src/model/UserBadge.cpp index d2efbd9..02af3c9 100644 --- a/client/src/model/UserBadge.cpp +++ b/client/src/model/UserBadge.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,16 +38,6 @@ UserBadge::UserBadge() m_DescriptionIsSet = false; m_DisplayLabel = utility::conversions::to_string_t(""); m_DisplayLabelIsSet = false; - m_DisplaySrc = utility::conversions::to_string_t(""); - m_DisplaySrcIsSet = false; - m_BackgroundColor = utility::conversions::to_string_t(""); - m_BackgroundColorIsSet = false; - m_BorderColor = utility::conversions::to_string_t(""); - m_BorderColorIsSet = false; - m_TextColor = utility::conversions::to_string_t(""); - m_TextColorIsSet = false; - m_CssClass = utility::conversions::to_string_t(""); - m_CssClassIsSet = false; m_VeteranUserThresholdMillis = 0L; m_VeteranUserThresholdMillisIsSet = false; m_DisplayedOnComments = false; @@ -56,8 +46,6 @@ UserBadge::UserBadge() m_ReceivedAtIsSet = false; m_Order = 0; m_OrderIsSet = false; - m_UrlId = utility::conversions::to_string_t(""); - m_UrlIdIsSet = false; } UserBadge::~UserBadge() @@ -73,99 +61,99 @@ web::json::value UserBadge::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_BadgeIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badgeId"))] = ModelBase::toJson(m_BadgeId); } if(m_FromTenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromTenantId"))] = ModelBase::toJson(m_FromTenantId); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if(m_ThresholdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("threshold"))] = ModelBase::toJson(m_Threshold); } if(m_DescriptionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } - if(m_DisplaySrcIsSet) - { + if(m_DisplaySrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("displaySrc"))] = ModelBase::toJson(m_DisplaySrc); + val[utility::conversions::to_string_t(_XPLATSTR("displaySrc"))] = ModelBase::toJson(m_DisplaySrc.get()); } - if(m_BackgroundColorIsSet) - { + if(m_BackgroundColor.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))] = ModelBase::toJson(m_BackgroundColor); + val[utility::conversions::to_string_t(_XPLATSTR("backgroundColor"))] = ModelBase::toJson(m_BackgroundColor.get()); } - if(m_BorderColorIsSet) - { + if(m_BorderColor.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("borderColor"))] = ModelBase::toJson(m_BorderColor); + val[utility::conversions::to_string_t(_XPLATSTR("borderColor"))] = ModelBase::toJson(m_BorderColor.get()); } - if(m_TextColorIsSet) - { + if(m_TextColor.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("textColor"))] = ModelBase::toJson(m_TextColor); + val[utility::conversions::to_string_t(_XPLATSTR("textColor"))] = ModelBase::toJson(m_TextColor.get()); } - if(m_CssClassIsSet) - { + if(m_CssClass.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("cssClass"))] = ModelBase::toJson(m_CssClass); + val[utility::conversions::to_string_t(_XPLATSTR("cssClass"))] = ModelBase::toJson(m_CssClass.get()); } if(m_VeteranUserThresholdMillisIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("veteranUserThresholdMillis"))] = ModelBase::toJson(m_VeteranUserThresholdMillis); } if(m_DisplayedOnCommentsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayedOnComments"))] = ModelBase::toJson(m_DisplayedOnComments); } if(m_ReceivedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("receivedAt"))] = ModelBase::toJson(m_ReceivedAt); } if(m_OrderIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("order"))] = ModelBase::toJson(m_Order); } - if(m_UrlIdIsSet) - { + if(m_UrlId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); + val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId.get()); } return val; @@ -429,25 +417,25 @@ void UserBadge::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayLabel")), m_DisplayLabel)); } - if(m_DisplaySrcIsSet) + if(m_DisplaySrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displaySrc")), m_DisplaySrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displaySrc")), m_DisplaySrc.get())); } - if(m_BackgroundColorIsSet) + if(m_BackgroundColor.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("backgroundColor")), m_BackgroundColor)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("backgroundColor")), m_BackgroundColor.get())); } - if(m_BorderColorIsSet) + if(m_BorderColor.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("borderColor")), m_BorderColor)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("borderColor")), m_BorderColor.get())); } - if(m_TextColorIsSet) + if(m_TextColor.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textColor")), m_TextColor)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("textColor")), m_TextColor.get())); } - if(m_CssClassIsSet) + if(m_CssClass.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("cssClass")), m_CssClass)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("cssClass")), m_CssClass.get())); } if(m_VeteranUserThresholdMillisIsSet) { @@ -465,9 +453,9 @@ void UserBadge::toMultipart(std::shared_ptr multipart, const { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("order")), m_Order)); } - if(m_UrlIdIsSet) + if(m_UrlId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlId")), m_UrlId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlId")), m_UrlId.get())); } } @@ -787,108 +775,103 @@ void UserBadge::unsetDisplayLabel() } utility::string_t UserBadge::getDisplaySrc() const { - return m_DisplaySrc; + return m_DisplaySrc.get(); } void UserBadge::setDisplaySrc(const utility::string_t& value) { m_DisplaySrc = value; - m_DisplaySrcIsSet = true; } bool UserBadge::displaySrcIsSet() const { - return m_DisplaySrcIsSet; + return m_DisplaySrc.has_value(); } void UserBadge::unsetDisplaySrc() { - m_DisplaySrcIsSet = false; + m_DisplaySrc.reset(); } utility::string_t UserBadge::getBackgroundColor() const { - return m_BackgroundColor; + return m_BackgroundColor.get(); } void UserBadge::setBackgroundColor(const utility::string_t& value) { m_BackgroundColor = value; - m_BackgroundColorIsSet = true; } bool UserBadge::backgroundColorIsSet() const { - return m_BackgroundColorIsSet; + return m_BackgroundColor.has_value(); } void UserBadge::unsetBackgroundColor() { - m_BackgroundColorIsSet = false; + m_BackgroundColor.reset(); } utility::string_t UserBadge::getBorderColor() const { - return m_BorderColor; + return m_BorderColor.get(); } void UserBadge::setBorderColor(const utility::string_t& value) { m_BorderColor = value; - m_BorderColorIsSet = true; } bool UserBadge::borderColorIsSet() const { - return m_BorderColorIsSet; + return m_BorderColor.has_value(); } void UserBadge::unsetBorderColor() { - m_BorderColorIsSet = false; + m_BorderColor.reset(); } utility::string_t UserBadge::getTextColor() const { - return m_TextColor; + return m_TextColor.get(); } void UserBadge::setTextColor(const utility::string_t& value) { m_TextColor = value; - m_TextColorIsSet = true; } bool UserBadge::textColorIsSet() const { - return m_TextColorIsSet; + return m_TextColor.has_value(); } void UserBadge::unsetTextColor() { - m_TextColorIsSet = false; + m_TextColor.reset(); } utility::string_t UserBadge::getCssClass() const { - return m_CssClass; + return m_CssClass.get(); } void UserBadge::setCssClass(const utility::string_t& value) { m_CssClass = value; - m_CssClassIsSet = true; } bool UserBadge::cssClassIsSet() const { - return m_CssClassIsSet; + return m_CssClass.has_value(); } void UserBadge::unsetCssClass() { - m_CssClassIsSet = false; + m_CssClass.reset(); } int64_t UserBadge::getVeteranUserThresholdMillis() const { @@ -973,24 +956,23 @@ void UserBadge::unsetOrder() } utility::string_t UserBadge::getUrlId() const { - return m_UrlId; + return m_UrlId.get(); } void UserBadge::setUrlId(const utility::string_t& value) { m_UrlId = value; - m_UrlIdIsSet = true; } bool UserBadge::urlIdIsSet() const { - return m_UrlIdIsSet; + return m_UrlId.has_value(); } void UserBadge::unsetUrlId() { - m_UrlIdIsSet = false; + m_UrlId.reset(); } } diff --git a/client/src/model/UserBadgeProgress.cpp b/client/src/model/UserBadgeProgress.cpp index bab35f3..1bc40de 100644 --- a/client/src/model/UserBadgeProgress.cpp +++ b/client/src/model/UserBadgeProgress.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -52,47 +52,47 @@ web::json::value UserBadgeProgress::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } if(m_UserIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); } if(m_FirstCommentIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("firstCommentId"))] = ModelBase::toJson(m_FirstCommentId); } if(m_FirstCommentDateIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("firstCommentDate"))] = ModelBase::toJson(m_FirstCommentDate); } if(m_AutoTrustFactorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor"))] = ModelBase::toJson(m_AutoTrustFactor); } if(m_ManualTrustFactorIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor"))] = ModelBase::toJson(m_ManualTrustFactor); } if(m_ProgressIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("progress"))] = ModelBase::toJson(m_Progress); } if(m_TosAcceptedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tosAcceptedAt"))] = ModelBase::toJson(m_TosAcceptedAt); } diff --git a/client/src/model/UserNotification.cpp b/client/src/model/UserNotification.cpp index 1e51324..bdabe6b 100644 --- a/client/src/model/UserNotification.cpp +++ b/client/src/model/UserNotification.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,16 +24,10 @@ UserNotification::UserNotification() m__idIsSet = false; m_TenantId = utility::conversions::to_string_t(""); m_TenantIdIsSet = false; - m_UserId = utility::conversions::to_string_t(""); - m_UserIdIsSet = false; - m_AnonUserId = utility::conversions::to_string_t(""); - m_AnonUserIdIsSet = false; m_UrlId = utility::conversions::to_string_t(""); m_UrlIdIsSet = false; m_Url = utility::conversions::to_string_t(""); m_UrlIsSet = false; - m_PageTitle = utility::conversions::to_string_t(""); - m_PageTitleIsSet = false; m_RelatedObjectTypeIsSet = false; m_RelatedObjectId = utility::conversions::to_string_t(""); m_RelatedObjectIdIsSet = false; @@ -46,16 +40,6 @@ UserNotification::UserNotification() m_CreatedAt = utility::datetime(); m_CreatedAtIsSet = false; m_TypeIsSet = false; - m_FromCommentId = utility::conversions::to_string_t(""); - m_FromCommentIdIsSet = false; - m_FromVoteId = utility::conversions::to_string_t(""); - m_FromVoteIdIsSet = false; - m_FromUserName = utility::conversions::to_string_t(""); - m_FromUserNameIsSet = false; - m_FromUserId = utility::conversions::to_string_t(""); - m_FromUserIdIsSet = false; - m_FromUserAvatarSrc = utility::conversions::to_string_t(""); - m_FromUserAvatarSrcIsSet = false; m_OptedOut = false; m_OptedOutIsSet = false; m_Count = 0L; @@ -78,122 +62,122 @@ web::json::value UserNotification::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_TenantIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantId"))] = ModelBase::toJson(m_TenantId); } - if(m_UserIdIsSet) - { + if(m_UserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId); + val[utility::conversions::to_string_t(_XPLATSTR("userId"))] = ModelBase::toJson(m_UserId.get()); } - if(m_AnonUserIdIsSet) - { + if(m_AnonUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId); + val[utility::conversions::to_string_t(_XPLATSTR("anonUserId"))] = ModelBase::toJson(m_AnonUserId.get()); } if(m_UrlIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlId"))] = ModelBase::toJson(m_UrlId); } if(m_UrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); } - if(m_PageTitleIsSet) - { + if(m_PageTitle.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle); + val[utility::conversions::to_string_t(_XPLATSTR("pageTitle"))] = ModelBase::toJson(m_PageTitle.get()); } if(m_RelatedObjectTypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("relatedObjectType"))] = ModelBase::toJson(m_RelatedObjectType); } if(m_RelatedObjectIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("relatedObjectId"))] = ModelBase::toJson(m_RelatedObjectId); } if(m_ViewedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("viewed"))] = ModelBase::toJson(m_Viewed); } if(m_IsUnreadMessageIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isUnreadMessage"))] = ModelBase::toJson(m_IsUnreadMessage); } if(m_SentIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("sent"))] = ModelBase::toJson(m_Sent); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_TypeIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } - if(m_FromCommentIdIsSet) - { + if(m_FromCommentId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromCommentId"))] = ModelBase::toJson(m_FromCommentId); + val[utility::conversions::to_string_t(_XPLATSTR("fromCommentId"))] = ModelBase::toJson(m_FromCommentId.get()); } - if(m_FromVoteIdIsSet) - { + if(m_FromVoteId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromVoteId"))] = ModelBase::toJson(m_FromVoteId); + val[utility::conversions::to_string_t(_XPLATSTR("fromVoteId"))] = ModelBase::toJson(m_FromVoteId.get()); } - if(m_FromUserNameIsSet) - { + if(m_FromUserName.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserName"))] = ModelBase::toJson(m_FromUserName); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserName"))] = ModelBase::toJson(m_FromUserName.get()); } - if(m_FromUserIdIsSet) - { + if(m_FromUserId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserId"))] = ModelBase::toJson(m_FromUserId); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserId"))] = ModelBase::toJson(m_FromUserId.get()); } - if(m_FromUserAvatarSrcIsSet) - { + if(m_FromUserAvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc"))] = ModelBase::toJson(m_FromUserAvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc"))] = ModelBase::toJson(m_FromUserAvatarSrc.get()); } if(m_OptedOutIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("optedOut"))] = ModelBase::toJson(m_OptedOut); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } if(m_RelatedIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("relatedIds"))] = ModelBase::toJson(m_RelatedIds); } if(m_FromUserIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserIds"))] = ModelBase::toJson(m_FromUserIds); } if(m_FromUserNamesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("fromUserNames"))] = ModelBase::toJson(m_FromUserNames); } @@ -486,13 +470,13 @@ void UserNotification::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantId")), m_TenantId)); } - if(m_UserIdIsSet) + if(m_UserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userId")), m_UserId.get())); } - if(m_AnonUserIdIsSet) + if(m_AnonUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonUserId")), m_AnonUserId.get())); } if(m_UrlIdIsSet) { @@ -502,9 +486,9 @@ void UserNotification::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); } - if(m_PageTitleIsSet) + if(m_PageTitle.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageTitle")), m_PageTitle.get())); } if(m_RelatedObjectTypeIsSet) { @@ -534,25 +518,25 @@ void UserNotification::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type)); } - if(m_FromCommentIdIsSet) + if(m_FromCommentId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromCommentId")), m_FromCommentId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromCommentId")), m_FromCommentId.get())); } - if(m_FromVoteIdIsSet) + if(m_FromVoteId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromVoteId")), m_FromVoteId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromVoteId")), m_FromVoteId.get())); } - if(m_FromUserNameIsSet) + if(m_FromUserName.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserName")), m_FromUserName)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserName")), m_FromUserName.get())); } - if(m_FromUserIdIsSet) + if(m_FromUserId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserId")), m_FromUserId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserId")), m_FromUserId.get())); } - if(m_FromUserAvatarSrcIsSet) + if(m_FromUserAvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc")), m_FromUserAvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("fromUserAvatarSrc")), m_FromUserAvatarSrc.get())); } if(m_OptedOutIsSet) { @@ -777,45 +761,43 @@ void UserNotification::unsetTenantId() } utility::string_t UserNotification::getUserId() const { - return m_UserId; + return m_UserId.get(); } void UserNotification::setUserId(const utility::string_t& value) { m_UserId = value; - m_UserIdIsSet = true; } bool UserNotification::userIdIsSet() const { - return m_UserIdIsSet; + return m_UserId.has_value(); } void UserNotification::unsetUserId() { - m_UserIdIsSet = false; + m_UserId.reset(); } utility::string_t UserNotification::getAnonUserId() const { - return m_AnonUserId; + return m_AnonUserId.get(); } void UserNotification::setAnonUserId(const utility::string_t& value) { m_AnonUserId = value; - m_AnonUserIdIsSet = true; } bool UserNotification::anonUserIdIsSet() const { - return m_AnonUserIdIsSet; + return m_AnonUserId.has_value(); } void UserNotification::unsetAnonUserId() { - m_AnonUserIdIsSet = false; + m_AnonUserId.reset(); } utility::string_t UserNotification::getUrlId() const { @@ -861,24 +843,23 @@ void UserNotification::unsetUrl() } utility::string_t UserNotification::getPageTitle() const { - return m_PageTitle; + return m_PageTitle.get(); } void UserNotification::setPageTitle(const utility::string_t& value) { m_PageTitle = value; - m_PageTitleIsSet = true; } bool UserNotification::pageTitleIsSet() const { - return m_PageTitleIsSet; + return m_PageTitle.has_value(); } void UserNotification::unsetPageTitle() { - m_PageTitleIsSet = false; + m_PageTitle.reset(); } std::shared_ptr UserNotification::getRelatedObjectType() const { @@ -1026,108 +1007,103 @@ void UserNotification::unsetType() } utility::string_t UserNotification::getFromCommentId() const { - return m_FromCommentId; + return m_FromCommentId.get(); } void UserNotification::setFromCommentId(const utility::string_t& value) { m_FromCommentId = value; - m_FromCommentIdIsSet = true; } bool UserNotification::fromCommentIdIsSet() const { - return m_FromCommentIdIsSet; + return m_FromCommentId.has_value(); } void UserNotification::unsetFromCommentId() { - m_FromCommentIdIsSet = false; + m_FromCommentId.reset(); } utility::string_t UserNotification::getFromVoteId() const { - return m_FromVoteId; + return m_FromVoteId.get(); } void UserNotification::setFromVoteId(const utility::string_t& value) { m_FromVoteId = value; - m_FromVoteIdIsSet = true; } bool UserNotification::fromVoteIdIsSet() const { - return m_FromVoteIdIsSet; + return m_FromVoteId.has_value(); } void UserNotification::unsetFromVoteId() { - m_FromVoteIdIsSet = false; + m_FromVoteId.reset(); } utility::string_t UserNotification::getFromUserName() const { - return m_FromUserName; + return m_FromUserName.get(); } void UserNotification::setFromUserName(const utility::string_t& value) { m_FromUserName = value; - m_FromUserNameIsSet = true; } bool UserNotification::fromUserNameIsSet() const { - return m_FromUserNameIsSet; + return m_FromUserName.has_value(); } void UserNotification::unsetFromUserName() { - m_FromUserNameIsSet = false; + m_FromUserName.reset(); } utility::string_t UserNotification::getFromUserId() const { - return m_FromUserId; + return m_FromUserId.get(); } void UserNotification::setFromUserId(const utility::string_t& value) { m_FromUserId = value; - m_FromUserIdIsSet = true; } bool UserNotification::fromUserIdIsSet() const { - return m_FromUserIdIsSet; + return m_FromUserId.has_value(); } void UserNotification::unsetFromUserId() { - m_FromUserIdIsSet = false; + m_FromUserId.reset(); } utility::string_t UserNotification::getFromUserAvatarSrc() const { - return m_FromUserAvatarSrc; + return m_FromUserAvatarSrc.get(); } void UserNotification::setFromUserAvatarSrc(const utility::string_t& value) { m_FromUserAvatarSrc = value; - m_FromUserAvatarSrcIsSet = true; } bool UserNotification::fromUserAvatarSrcIsSet() const { - return m_FromUserAvatarSrcIsSet; + return m_FromUserAvatarSrc.has_value(); } void UserNotification::unsetFromUserAvatarSrc() { - m_FromUserAvatarSrcIsSet = false; + m_FromUserAvatarSrc.reset(); } bool UserNotification::isOptedOut() const { diff --git a/client/src/model/UserNotificationCount.cpp b/client/src/model/UserNotificationCount.cpp index 977cc58..ce11d80 100644 --- a/client/src/model/UserNotificationCount.cpp +++ b/client/src/model/UserNotificationCount.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,22 +43,22 @@ web::json::value UserNotificationCount::toJson() const { web::json::value val = web::json::value::object(); if(m__idIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("_id"))] = ModelBase::toJson(m__id); } if(m_CountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); } if(m_CreatedAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("createdAt"))] = ModelBase::toJson(m_CreatedAt); } if(m_ExpireAtIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("expireAt"))] = ModelBase::toJson(m_ExpireAt); } diff --git a/client/src/model/UserNotificationWriteResponse.cpp b/client/src/model/UserNotificationWriteResponse.cpp index 2029f33..7e991eb 100644 --- a/client/src/model/UserNotificationWriteResponse.cpp +++ b/client/src/model/UserNotificationWriteResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,17 +40,17 @@ web::json::value UserNotificationWriteResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_MatchedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("matchedCount"))] = ModelBase::toJson(m_MatchedCount); } if(m_ModifiedCountIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("modifiedCount"))] = ModelBase::toJson(m_ModifiedCount); } diff --git a/client/src/model/UserPresenceData.cpp b/client/src/model/UserPresenceData.cpp index 61a6269..d7f054c 100644 --- a/client/src/model/UserPresenceData.cpp +++ b/client/src/model/UserPresenceData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -41,17 +41,17 @@ web::json::value UserPresenceData::toJson() const { web::json::value val = web::json::value::object(); if(m_UrlIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); } if(m_UserIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); } if(m_TenantIdWSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))] = ModelBase::toJson(m_TenantIdWS); } diff --git a/client/src/model/UserReactsResponse.cpp b/client/src/model/UserReactsResponse.cpp index a9fe80d..208a28e 100644 --- a/client/src/model/UserReactsResponse.cpp +++ b/client/src/model/UserReactsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value UserReactsResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_ReactsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("reacts"))] = ModelBase::toJson(m_Reacts); } diff --git a/client/src/model/UserSearchResult.cpp b/client/src/model/UserSearchResult.cpp index 01b10f4..d019ce8 100644 --- a/client/src/model/UserSearchResult.cpp +++ b/client/src/model/UserSearchResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -26,8 +26,6 @@ UserSearchResult::UserSearchResult() m_NameIsSet = false; m_DisplayName = utility::conversions::to_string_t(""); m_DisplayNameIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; m_TypeIsSet = false; } @@ -44,27 +42,27 @@ web::json::value UserSearchResult::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_NameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } if(m_TypeIsSet) - { + { utility::string_t refVal = fromTypeEnum(m_Type); val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(refVal); @@ -155,9 +153,9 @@ void UserSearchResult::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayName")), m_DisplayName)); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } if(m_TypeIsSet) { @@ -300,24 +298,23 @@ void UserSearchResult::unsetDisplayName() } utility::string_t UserSearchResult::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void UserSearchResult::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool UserSearchResult::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void UserSearchResult::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } UserSearchResult::TypeEnum UserSearchResult::getType() const { diff --git a/client/src/model/UserSearchSection.cpp b/client/src/model/UserSearchSection.cpp index 8a91051..37627d1 100644 --- a/client/src/model/UserSearchSection.cpp +++ b/client/src/model/UserSearchSection.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UserSearchSectionResult.cpp b/client/src/model/UserSearchSectionResult.cpp index f5c04c5..99c182d 100644 --- a/client/src/model/UserSearchSectionResult.cpp +++ b/client/src/model/UserSearchSectionResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,12 +37,12 @@ web::json::value UserSearchSectionResult::toJson() const { web::json::value val = web::json::value::object(); if(m_SectionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("section"))] = ModelBase::toJson(m_Section); } if(m_UsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); } diff --git a/client/src/model/UserSessionInfo.cpp b/client/src/model/UserSessionInfo.cpp index 6b2e4e9..4df1252 100644 --- a/client/src/model/UserSessionInfo.cpp +++ b/client/src/model/UserSessionInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,15 +24,11 @@ UserSessionInfo::UserSessionInfo() m_IdIsSet = false; m_Authorized = false; m_AuthorizedIsSet = false; - m_AvatarSrc = utility::conversions::to_string_t(""); - m_AvatarSrcIsSet = false; m_BadgesIsSet = false; m_DisplayLabel = utility::conversions::to_string_t(""); m_DisplayLabelIsSet = false; m_DisplayName = utility::conversions::to_string_t(""); m_DisplayNameIsSet = false; - m_Email = utility::conversions::to_string_t(""); - m_EmailIsSet = false; m_GroupIdsIsSet = false; m_HasBlockedUsers = false; m_HasBlockedUsersIsSet = false; @@ -40,8 +36,6 @@ UserSessionInfo::UserSessionInfo() m_IsAnonSessionIsSet = false; m_NeedsTOS = false; m_NeedsTOSIsSet = false; - m_SessionId = utility::conversions::to_string_t(""); - m_SessionIdIsSet = false; m_Username = utility::conversions::to_string_t(""); m_UsernameIsSet = false; m_WebsiteUrl = utility::conversions::to_string_t(""); @@ -61,72 +55,72 @@ web::json::value UserSessionInfo::toJson() const { web::json::value val = web::json::value::object(); if(m_IdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if(m_AuthorizedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("authorized"))] = ModelBase::toJson(m_Authorized); } - if(m_AvatarSrcIsSet) - { + if(m_AvatarSrc.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc); + val[utility::conversions::to_string_t(_XPLATSTR("avatarSrc"))] = ModelBase::toJson(m_AvatarSrc.get()); } if(m_BadgesIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); } if(m_DisplayLabelIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayLabel"))] = ModelBase::toJson(m_DisplayLabel); } if(m_DisplayNameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("displayName"))] = ModelBase::toJson(m_DisplayName); } - if(m_EmailIsSet) - { + if(m_Email.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email.get()); } if(m_GroupIdsIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("groupIds"))] = ModelBase::toJson(m_GroupIds); } if(m_HasBlockedUsersIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("hasBlockedUsers"))] = ModelBase::toJson(m_HasBlockedUsers); } if(m_IsAnonSessionIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isAnonSession"))] = ModelBase::toJson(m_IsAnonSession); } if(m_NeedsTOSIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("needsTOS"))] = ModelBase::toJson(m_NeedsTOS); } - if(m_SessionIdIsSet) - { + if(m_SessionId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("sessionId"))] = ModelBase::toJson(m_SessionId); + val[utility::conversions::to_string_t(_XPLATSTR("sessionId"))] = ModelBase::toJson(m_SessionId.get()); } if(m_UsernameIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if(m_WebsiteUrlIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("websiteUrl"))] = ModelBase::toJson(m_WebsiteUrl); } @@ -309,9 +303,9 @@ void UserSessionInfo::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("authorized")), m_Authorized)); } - if(m_AvatarSrcIsSet) + if(m_AvatarSrc.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("avatarSrc")), m_AvatarSrc.get())); } if(m_BadgesIsSet) { @@ -325,9 +319,9 @@ void UserSessionInfo::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("displayName")), m_DisplayName)); } - if(m_EmailIsSet) + if(m_Email.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email.get())); } if(m_GroupIdsIsSet) { @@ -345,9 +339,9 @@ void UserSessionInfo::toMultipart(std::shared_ptr multipart, { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("needsTOS")), m_NeedsTOS)); } - if(m_SessionIdIsSet) + if(m_SessionId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sessionId")), m_SessionId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sessionId")), m_SessionId.get())); } if(m_UsernameIsSet) { @@ -499,24 +493,23 @@ void UserSessionInfo::unsetAuthorized() } utility::string_t UserSessionInfo::getAvatarSrc() const { - return m_AvatarSrc; + return m_AvatarSrc.get(); } void UserSessionInfo::setAvatarSrc(const utility::string_t& value) { m_AvatarSrc = value; - m_AvatarSrcIsSet = true; } bool UserSessionInfo::avatarSrcIsSet() const { - return m_AvatarSrcIsSet; + return m_AvatarSrc.has_value(); } void UserSessionInfo::unsetAvatarSrc() { - m_AvatarSrcIsSet = false; + m_AvatarSrc.reset(); } std::vector> UserSessionInfo::getBadges() const { @@ -583,24 +576,23 @@ void UserSessionInfo::unsetDisplayName() } utility::string_t UserSessionInfo::getEmail() const { - return m_Email; + return m_Email.get(); } void UserSessionInfo::setEmail(const utility::string_t& value) { m_Email = value; - m_EmailIsSet = true; } bool UserSessionInfo::emailIsSet() const { - return m_EmailIsSet; + return m_Email.has_value(); } void UserSessionInfo::unsetEmail() { - m_EmailIsSet = false; + m_Email.reset(); } std::vector UserSessionInfo::getGroupIds() const { @@ -685,24 +677,23 @@ void UserSessionInfo::unsetNeedsTOS() } utility::string_t UserSessionInfo::getSessionId() const { - return m_SessionId; + return m_SessionId.get(); } void UserSessionInfo::setSessionId(const utility::string_t& value) { m_SessionId = value; - m_SessionIdIsSet = true; } bool UserSessionInfo::sessionIdIsSet() const { - return m_SessionIdIsSet; + return m_SessionId.has_value(); } void UserSessionInfo::unsetSessionId() { - m_SessionIdIsSet = false; + m_SessionId.reset(); } utility::string_t UserSessionInfo::getUsername() const { diff --git a/client/src/model/UsersListLocation.cpp b/client/src/model/UsersListLocation.cpp index fd7d086..62861ce 100644 --- a/client/src/model/UsersListLocation.cpp +++ b/client/src/model/UsersListLocation.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/VoteBodyParams.cpp b/client/src/model/VoteBodyParams.cpp index 23443d8..dd494af 100644 --- a/client/src/model/VoteBodyParams.cpp +++ b/client/src/model/VoteBodyParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,13 +20,7 @@ namespace model { VoteBodyParams::VoteBodyParams() { - m_CommenterEmail = utility::conversions::to_string_t(""); - m_CommenterEmailIsSet = false; - m_CommenterName = utility::conversions::to_string_t(""); - m_CommenterNameIsSet = false; m_VoteDirIsSet = false; - m_Url = utility::conversions::to_string_t(""); - m_UrlIsSet = false; } VoteBodyParams::~VoteBodyParams() @@ -41,27 +35,27 @@ void VoteBodyParams::validate() web::json::value VoteBodyParams::toJson() const { web::json::value val = web::json::value::object(); - if(m_CommenterEmailIsSet) - { + if(m_CommenterEmail.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail); + val[utility::conversions::to_string_t(_XPLATSTR("commenterEmail"))] = ModelBase::toJson(m_CommenterEmail.get()); } - if(m_CommenterNameIsSet) - { + if(m_CommenterName.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName); + val[utility::conversions::to_string_t(_XPLATSTR("commenterName"))] = ModelBase::toJson(m_CommenterName.get()); } if(m_VoteDirIsSet) - { + { utility::string_t refVal = fromVoteDirEnum(m_VoteDir); val[utility::conversions::to_string_t(_XPLATSTR("voteDir"))] = ModelBase::toJson(refVal); } - if(m_UrlIsSet) - { + if(m_Url.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url); + val[utility::conversions::to_string_t(_XPLATSTR("url"))] = ModelBase::toJson(m_Url.get()); } return val; @@ -125,21 +119,21 @@ void VoteBodyParams::toMultipart(std::shared_ptr multipart, c { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_CommenterEmailIsSet) + if(m_CommenterEmail.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterEmail")), m_CommenterEmail.get())); } - if(m_CommenterNameIsSet) + if(m_CommenterName.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commenterName")), m_CommenterName.get())); } if(m_VoteDirIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("voteDir")), fromVoteDirEnum(m_VoteDir))); } - if(m_UrlIsSet) + if(m_Url.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("url")), m_Url.get())); } } @@ -209,45 +203,43 @@ const utility::string_t VoteBodyParams::fromVoteDirEnum(const VoteDirEnum value) utility::string_t VoteBodyParams::getCommenterEmail() const { - return m_CommenterEmail; + return m_CommenterEmail.get(); } void VoteBodyParams::setCommenterEmail(const utility::string_t& value) { m_CommenterEmail = value; - m_CommenterEmailIsSet = true; } bool VoteBodyParams::commenterEmailIsSet() const { - return m_CommenterEmailIsSet; + return m_CommenterEmail.has_value(); } void VoteBodyParams::unsetCommenterEmail() { - m_CommenterEmailIsSet = false; + m_CommenterEmail.reset(); } utility::string_t VoteBodyParams::getCommenterName() const { - return m_CommenterName; + return m_CommenterName.get(); } void VoteBodyParams::setCommenterName(const utility::string_t& value) { m_CommenterName = value; - m_CommenterNameIsSet = true; } bool VoteBodyParams::commenterNameIsSet() const { - return m_CommenterNameIsSet; + return m_CommenterName.has_value(); } void VoteBodyParams::unsetCommenterName() { - m_CommenterNameIsSet = false; + m_CommenterName.reset(); } VoteBodyParams::VoteDirEnum VoteBodyParams::getVoteDir() const { @@ -272,24 +264,23 @@ void VoteBodyParams::unsetVoteDir() } utility::string_t VoteBodyParams::getUrl() const { - return m_Url; + return m_Url.get(); } void VoteBodyParams::setUrl(const utility::string_t& value) { m_Url = value; - m_UrlIsSet = true; } bool VoteBodyParams::urlIsSet() const { - return m_UrlIsSet; + return m_Url.has_value(); } void VoteBodyParams::unsetUrl() { - m_UrlIsSet = false; + m_Url.reset(); } } diff --git a/client/src/model/VoteDeleteResponse.cpp b/client/src/model/VoteDeleteResponse.cpp index ca0d6fe..f703dfc 100644 --- a/client/src/model/VoteDeleteResponse.cpp +++ b/client/src/model/VoteDeleteResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,12 +38,12 @@ web::json::value VoteDeleteResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_WasPendingVoteIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))] = ModelBase::toJson(m_WasPendingVote); } diff --git a/client/src/model/VoteResponse.cpp b/client/src/model/VoteResponse.cpp index 788b109..597d98f 100644 --- a/client/src/model/VoteResponse.cpp +++ b/client/src/model/VoteResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,27 +43,29 @@ web::json::value VoteResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_StatusIsSet) - { + { + + utility::string_t refVal = fromStatusEnum(m_Status); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(refVal); - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if(m_VoteIdIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("voteId"))] = ModelBase::toJson(m_VoteId); } if(m_IsVerifiedIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("isVerified"))] = ModelBase::toJson(m_IsVerified); } if(m_UserIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if(m_EditKeyIsSet) - { + { val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); } @@ -79,9 +81,10 @@ bool VoteResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); if(!fieldValue.is_null()) { - std::shared_ptr refVal_setStatus; + utility::string_t refVal_setStatus; ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); + + setStatus(toStatusEnum(refVal_setStatus)); } } @@ -141,7 +144,7 @@ void VoteResponse::toMultipart(std::shared_ptr multipart, con } if(m_StatusIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), fromStatusEnum(m_Status))); } if(m_VoteIdIsSet) { @@ -172,9 +175,9 @@ bool VoteResponse::fromMultiPart(std::shared_ptr multipart, c if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) { - std::shared_ptr refVal_setStatus; + utility::string_t refVal_setStatus; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); + setStatus(toStatusEnum(refVal_setStatus)); } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("voteId")))) { @@ -203,14 +206,47 @@ bool VoteResponse::fromMultiPart(std::shared_ptr multipart, c return ok; } +VoteResponse::StatusEnum VoteResponse::toStatusEnum(const utility::string_t& value) const +{ + + if (value == utility::conversions::to_string_t("success")) { + return StatusEnum::SUCCESS; + } + + if (value == utility::conversions::to_string_t("failed")) { + return StatusEnum::FAILED; + } + + if (value == utility::conversions::to_string_t("pending-verification")) { + return StatusEnum::PENDING_VERIFICATION; + } + + throw std::invalid_argument("Invalid value for conversion to StatusEnum"); +} + + +const utility::string_t VoteResponse::fromStatusEnum(const StatusEnum value) const +{ + switch(value) + { + + case StatusEnum::SUCCESS: return utility::conversions::to_string_t("success"); + + case StatusEnum::FAILED: return utility::conversions::to_string_t("failed"); + + case StatusEnum::PENDING_VERIFICATION: return utility::conversions::to_string_t("pending-verification"); + + } +} + -std::shared_ptr VoteResponse::getStatus() const +VoteResponse::StatusEnum VoteResponse::getStatus() const { return m_Status; } -void VoteResponse::setStatus(const std::shared_ptr& value) +void VoteResponse::setStatus(const StatusEnum value) { m_Status = value; m_StatusIsSet = true; diff --git a/client/src/model/VoteResponseUser.cpp b/client/src/model/VoteResponseUser.cpp index 4cd3643..d77363d 100644 --- a/client/src/model/VoteResponseUser.cpp +++ b/client/src/model/VoteResponseUser.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,8 +20,6 @@ namespace model { VoteResponseUser::VoteResponseUser() { - m_SessionId = utility::conversions::to_string_t(""); - m_SessionIdIsSet = false; } VoteResponseUser::~VoteResponseUser() @@ -36,10 +34,10 @@ void VoteResponseUser::validate() web::json::value VoteResponseUser::toJson() const { web::json::value val = web::json::value::object(); - if(m_SessionIdIsSet) - { + if(m_SessionId.has_value()) + { - val[utility::conversions::to_string_t(_XPLATSTR("sessionId"))] = ModelBase::toJson(m_SessionId); + val[utility::conversions::to_string_t(_XPLATSTR("sessionId"))] = ModelBase::toJson(m_SessionId.get()); } return val; @@ -69,9 +67,9 @@ void VoteResponseUser::toMultipart(std::shared_ptr multipart, { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_SessionIdIsSet) + if(m_SessionId.has_value()) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sessionId")), m_SessionId)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sessionId")), m_SessionId.get())); } } @@ -96,24 +94,23 @@ bool VoteResponseUser::fromMultiPart(std::shared_ptr multipar utility::string_t VoteResponseUser::getSessionId() const { - return m_SessionId; + return m_SessionId.get(); } void VoteResponseUser::setSessionId(const utility::string_t& value) { m_SessionId = value; - m_SessionIdIsSet = true; } bool VoteResponseUser::sessionIdIsSet() const { - return m_SessionIdIsSet; + return m_SessionId.has_value(); } void VoteResponseUser::unsetSessionId() { - m_SessionIdIsSet = false; + m_SessionId.reset(); } } diff --git a/client/src/model/VoteResponse_status.cpp b/client/src/model/VoteResponse_status.cpp deleted file mode 100644 index 23354b0..0000000 --- a/client/src/model/VoteResponse_status.cpp +++ /dev/null @@ -1,75 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/VoteResponse_status.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -VoteResponse_status::VoteResponse_status() -{ -} - -VoteResponse_status::~VoteResponse_status() -{ -} - -void VoteResponse_status::validate() -{ - // TODO: implement validation -} - -web::json::value VoteResponse_status::toJson() const -{ - web::json::value val = web::json::value::object(); - - return val; -} - -bool VoteResponse_status::fromJson(const web::json::value& val) -{ - bool ok = true; - return ok; -} - -void VoteResponse_status::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } -} - -bool VoteResponse_status::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - return ok; -} - - - -} -} -} -} - - diff --git a/client/src/model/VoteStyle.cpp b/client/src/model/VoteStyle.cpp index 7fb0d2d..955e441 100644 --- a/client/src/model/VoteStyle.cpp +++ b/client/src/model/VoteStyle.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/docs/Models/VoteResponse.md b/docs/Models/VoteResponse.md index 9dce417..b43ccf7 100644 --- a/docs/Models/VoteResponse.md +++ b/docs/Models/VoteResponse.md @@ -3,7 +3,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **status** | [**VoteResponse_status**](VoteResponse_status.md) | | [default to null] | +| **status** | **String** | | [default to null] | | **voteId** | **String** | | [optional] [default to null] | | **isVerified** | **Boolean** | | [optional] [default to null] | | **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] [default to null] | diff --git a/docs/Models/VoteResponse_status.md b/docs/Models/VoteResponse_status.md deleted file mode 100644 index 4bad67f..0000000 --- a/docs/Models/VoteResponse_status.md +++ /dev/null @@ -1,8 +0,0 @@ -# VoteResponse_status -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/README.md b/docs/README.md index 54c8695..c923b37 100644 --- a/docs/README.md +++ b/docs/README.md @@ -7,215 +7,215 @@ All URIs are relative to *https://fastcomments.com* | Class | Method | HTTP request | Description | |------------ | ------------- | ------------- | -------------| -| *DefaultApi* | [**addDomainConfig**](Apis/DefaultApi.md#adddomainconfig) | **POST** /api/v1/domain-configs | | -*DefaultApi* | [**addHashTag**](Apis/DefaultApi.md#addhashtag) | **POST** /api/v1/hash-tags | | -*DefaultApi* | [**addHashTagsBulk**](Apis/DefaultApi.md#addhashtagsbulk) | **POST** /api/v1/hash-tags/bulk | | -*DefaultApi* | [**addPage**](Apis/DefaultApi.md#addpage) | **POST** /api/v1/pages | | -*DefaultApi* | [**addSSOUser**](Apis/DefaultApi.md#addssouser) | **POST** /api/v1/sso-users | | +| *DefaultApi* | [**addDomainConfig**](Apis/DefaultApi.md#addDomainConfig) | **POST** /api/v1/domain-configs | | +*DefaultApi* | [**addHashTag**](Apis/DefaultApi.md#addHashTag) | **POST** /api/v1/hash-tags | | +*DefaultApi* | [**addHashTagsBulk**](Apis/DefaultApi.md#addHashTagsBulk) | **POST** /api/v1/hash-tags/bulk | | +*DefaultApi* | [**addPage**](Apis/DefaultApi.md#addPage) | **POST** /api/v1/pages | | +*DefaultApi* | [**addSSOUser**](Apis/DefaultApi.md#addSSOUser) | **POST** /api/v1/sso-users | | *DefaultApi* | [**aggregate**](Apis/DefaultApi.md#aggregate) | **POST** /api/v1/aggregate | Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported. | -*DefaultApi* | [**aggregateQuestionResults**](Apis/DefaultApi.md#aggregatequestionresults) | **GET** /api/v1/question-results-aggregation | | -*DefaultApi* | [**blockUserFromComment**](Apis/DefaultApi.md#blockuserfromcomment) | **POST** /api/v1/comments/{id}/block | | -*DefaultApi* | [**bulkAggregateQuestionResults**](Apis/DefaultApi.md#bulkaggregatequestionresults) | **POST** /api/v1/question-results-aggregation/bulk | | -*DefaultApi* | [**changeTicketState**](Apis/DefaultApi.md#changeticketstate) | **PATCH** /api/v1/tickets/{id}/state | | -*DefaultApi* | [**combineCommentsWithQuestionResults**](Apis/DefaultApi.md#combinecommentswithquestionresults) | **GET** /api/v1/question-results-aggregation/combine/comments | | -*DefaultApi* | [**createEmailTemplate**](Apis/DefaultApi.md#createemailtemplate) | **POST** /api/v1/email-templates | | -*DefaultApi* | [**createFeedPost**](Apis/DefaultApi.md#createfeedpost) | **POST** /api/v1/feed-posts | | -*DefaultApi* | [**createModerator**](Apis/DefaultApi.md#createmoderator) | **POST** /api/v1/moderators | | -*DefaultApi* | [**createQuestionConfig**](Apis/DefaultApi.md#createquestionconfig) | **POST** /api/v1/question-configs | | -*DefaultApi* | [**createQuestionResult**](Apis/DefaultApi.md#createquestionresult) | **POST** /api/v1/question-results | | -*DefaultApi* | [**createSubscription**](Apis/DefaultApi.md#createsubscription) | **POST** /api/v1/subscriptions | | -*DefaultApi* | [**createTenant**](Apis/DefaultApi.md#createtenant) | **POST** /api/v1/tenants | | -*DefaultApi* | [**createTenantPackage**](Apis/DefaultApi.md#createtenantpackage) | **POST** /api/v1/tenant-packages | | -*DefaultApi* | [**createTenantUser**](Apis/DefaultApi.md#createtenantuser) | **POST** /api/v1/tenant-users | | -*DefaultApi* | [**createTicket**](Apis/DefaultApi.md#createticket) | **POST** /api/v1/tickets | | -*DefaultApi* | [**createUserBadge**](Apis/DefaultApi.md#createuserbadge) | **POST** /api/v1/user-badges | | -*DefaultApi* | [**createVote**](Apis/DefaultApi.md#createvote) | **POST** /api/v1/votes | | -*DefaultApi* | [**deleteComment**](Apis/DefaultApi.md#deletecomment) | **DELETE** /api/v1/comments/{id} | | -*DefaultApi* | [**deleteDomainConfig**](Apis/DefaultApi.md#deletedomainconfig) | **DELETE** /api/v1/domain-configs/{domain} | | -*DefaultApi* | [**deleteEmailTemplate**](Apis/DefaultApi.md#deleteemailtemplate) | **DELETE** /api/v1/email-templates/{id} | | -*DefaultApi* | [**deleteEmailTemplateRenderError**](Apis/DefaultApi.md#deleteemailtemplaterendererror) | **DELETE** /api/v1/email-templates/{id}/render-errors/{errorId} | | -*DefaultApi* | [**deleteHashTag**](Apis/DefaultApi.md#deletehashtag) | **DELETE** /api/v1/hash-tags/{tag} | | -*DefaultApi* | [**deleteModerator**](Apis/DefaultApi.md#deletemoderator) | **DELETE** /api/v1/moderators/{id} | | -*DefaultApi* | [**deleteNotificationCount**](Apis/DefaultApi.md#deletenotificationcount) | **DELETE** /api/v1/notification-count/{id} | | -*DefaultApi* | [**deletePage**](Apis/DefaultApi.md#deletepage) | **DELETE** /api/v1/pages/{id} | | -*DefaultApi* | [**deletePendingWebhookEvent**](Apis/DefaultApi.md#deletependingwebhookevent) | **DELETE** /api/v1/pending-webhook-events/{id} | | -*DefaultApi* | [**deleteQuestionConfig**](Apis/DefaultApi.md#deletequestionconfig) | **DELETE** /api/v1/question-configs/{id} | | -*DefaultApi* | [**deleteQuestionResult**](Apis/DefaultApi.md#deletequestionresult) | **DELETE** /api/v1/question-results/{id} | | -*DefaultApi* | [**deleteSSOUser**](Apis/DefaultApi.md#deletessouser) | **DELETE** /api/v1/sso-users/{id} | | -*DefaultApi* | [**deleteSubscription**](Apis/DefaultApi.md#deletesubscription) | **DELETE** /api/v1/subscriptions/{id} | | -*DefaultApi* | [**deleteTenant**](Apis/DefaultApi.md#deletetenant) | **DELETE** /api/v1/tenants/{id} | | -*DefaultApi* | [**deleteTenantPackage**](Apis/DefaultApi.md#deletetenantpackage) | **DELETE** /api/v1/tenant-packages/{id} | | -*DefaultApi* | [**deleteTenantUser**](Apis/DefaultApi.md#deletetenantuser) | **DELETE** /api/v1/tenant-users/{id} | | -*DefaultApi* | [**deleteUserBadge**](Apis/DefaultApi.md#deleteuserbadge) | **DELETE** /api/v1/user-badges/{id} | | -*DefaultApi* | [**deleteVote**](Apis/DefaultApi.md#deletevote) | **DELETE** /api/v1/votes/{id} | | -*DefaultApi* | [**flagComment**](Apis/DefaultApi.md#flagcomment) | **POST** /api/v1/comments/{id}/flag | | -*DefaultApi* | [**getAuditLogs**](Apis/DefaultApi.md#getauditlogs) | **GET** /api/v1/audit-logs | | -*DefaultApi* | [**getCachedNotificationCount**](Apis/DefaultApi.md#getcachednotificationcount) | **GET** /api/v1/notification-count/{id} | | -*DefaultApi* | [**getComment**](Apis/DefaultApi.md#getcomment) | **GET** /api/v1/comments/{id} | | -*DefaultApi* | [**getComments**](Apis/DefaultApi.md#getcomments) | **GET** /api/v1/comments | | -*DefaultApi* | [**getDomainConfig**](Apis/DefaultApi.md#getdomainconfig) | **GET** /api/v1/domain-configs/{domain} | | -*DefaultApi* | [**getDomainConfigs**](Apis/DefaultApi.md#getdomainconfigs) | **GET** /api/v1/domain-configs | | -*DefaultApi* | [**getEmailTemplate**](Apis/DefaultApi.md#getemailtemplate) | **GET** /api/v1/email-templates/{id} | | -*DefaultApi* | [**getEmailTemplateDefinitions**](Apis/DefaultApi.md#getemailtemplatedefinitions) | **GET** /api/v1/email-templates/definitions | | -*DefaultApi* | [**getEmailTemplateRenderErrors**](Apis/DefaultApi.md#getemailtemplaterendererrors) | **GET** /api/v1/email-templates/{id}/render-errors | | -*DefaultApi* | [**getEmailTemplates**](Apis/DefaultApi.md#getemailtemplates) | **GET** /api/v1/email-templates | | -*DefaultApi* | [**getFeedPosts**](Apis/DefaultApi.md#getfeedposts) | **GET** /api/v1/feed-posts | req tenantId afterId | -*DefaultApi* | [**getHashTags**](Apis/DefaultApi.md#gethashtags) | **GET** /api/v1/hash-tags | | -*DefaultApi* | [**getModerator**](Apis/DefaultApi.md#getmoderator) | **GET** /api/v1/moderators/{id} | | -*DefaultApi* | [**getModerators**](Apis/DefaultApi.md#getmoderators) | **GET** /api/v1/moderators | | -*DefaultApi* | [**getNotificationCount**](Apis/DefaultApi.md#getnotificationcount) | **GET** /api/v1/notifications/count | | -*DefaultApi* | [**getNotifications**](Apis/DefaultApi.md#getnotifications) | **GET** /api/v1/notifications | | -*DefaultApi* | [**getPageByURLId**](Apis/DefaultApi.md#getpagebyurlid) | **GET** /api/v1/pages/by-url-id | | -*DefaultApi* | [**getPages**](Apis/DefaultApi.md#getpages) | **GET** /api/v1/pages | | -*DefaultApi* | [**getPendingWebhookEventCount**](Apis/DefaultApi.md#getpendingwebhookeventcount) | **GET** /api/v1/pending-webhook-events/count | | -*DefaultApi* | [**getPendingWebhookEvents**](Apis/DefaultApi.md#getpendingwebhookevents) | **GET** /api/v1/pending-webhook-events | | -*DefaultApi* | [**getQuestionConfig**](Apis/DefaultApi.md#getquestionconfig) | **GET** /api/v1/question-configs/{id} | | -*DefaultApi* | [**getQuestionConfigs**](Apis/DefaultApi.md#getquestionconfigs) | **GET** /api/v1/question-configs | | -*DefaultApi* | [**getQuestionResult**](Apis/DefaultApi.md#getquestionresult) | **GET** /api/v1/question-results/{id} | | -*DefaultApi* | [**getQuestionResults**](Apis/DefaultApi.md#getquestionresults) | **GET** /api/v1/question-results | | -*DefaultApi* | [**getSSOUserByEmail**](Apis/DefaultApi.md#getssouserbyemail) | **GET** /api/v1/sso-users/by-email/{email} | | -*DefaultApi* | [**getSSOUserById**](Apis/DefaultApi.md#getssouserbyid) | **GET** /api/v1/sso-users/by-id/{id} | | -*DefaultApi* | [**getSSOUsers**](Apis/DefaultApi.md#getssousers) | **GET** /api/v1/sso-users | | -*DefaultApi* | [**getSubscriptions**](Apis/DefaultApi.md#getsubscriptions) | **GET** /api/v1/subscriptions | | -*DefaultApi* | [**getTenant**](Apis/DefaultApi.md#gettenant) | **GET** /api/v1/tenants/{id} | | -*DefaultApi* | [**getTenantDailyUsages**](Apis/DefaultApi.md#gettenantdailyusages) | **GET** /api/v1/tenant-daily-usage | | -*DefaultApi* | [**getTenantPackage**](Apis/DefaultApi.md#gettenantpackage) | **GET** /api/v1/tenant-packages/{id} | | -*DefaultApi* | [**getTenantPackages**](Apis/DefaultApi.md#gettenantpackages) | **GET** /api/v1/tenant-packages | | -*DefaultApi* | [**getTenantUser**](Apis/DefaultApi.md#gettenantuser) | **GET** /api/v1/tenant-users/{id} | | -*DefaultApi* | [**getTenantUsers**](Apis/DefaultApi.md#gettenantusers) | **GET** /api/v1/tenant-users | | -*DefaultApi* | [**getTenants**](Apis/DefaultApi.md#gettenants) | **GET** /api/v1/tenants | | -*DefaultApi* | [**getTicket**](Apis/DefaultApi.md#getticket) | **GET** /api/v1/tickets/{id} | | -*DefaultApi* | [**getTickets**](Apis/DefaultApi.md#gettickets) | **GET** /api/v1/tickets | | -*DefaultApi* | [**getUser**](Apis/DefaultApi.md#getuser) | **GET** /api/v1/users/{id} | | -*DefaultApi* | [**getUserBadge**](Apis/DefaultApi.md#getuserbadge) | **GET** /api/v1/user-badges/{id} | | -*DefaultApi* | [**getUserBadgeProgressById**](Apis/DefaultApi.md#getuserbadgeprogressbyid) | **GET** /api/v1/user-badge-progress/{id} | | -*DefaultApi* | [**getUserBadgeProgressByUserId**](Apis/DefaultApi.md#getuserbadgeprogressbyuserid) | **GET** /api/v1/user-badge-progress/user/{userId} | | -*DefaultApi* | [**getUserBadgeProgressList**](Apis/DefaultApi.md#getuserbadgeprogresslist) | **GET** /api/v1/user-badge-progress | | -*DefaultApi* | [**getUserBadges**](Apis/DefaultApi.md#getuserbadges) | **GET** /api/v1/user-badges | | -*DefaultApi* | [**getVotes**](Apis/DefaultApi.md#getvotes) | **GET** /api/v1/votes | | -*DefaultApi* | [**getVotesForUser**](Apis/DefaultApi.md#getvotesforuser) | **GET** /api/v1/votes/for-user | | -*DefaultApi* | [**patchDomainConfig**](Apis/DefaultApi.md#patchdomainconfig) | **PATCH** /api/v1/domain-configs/{domainToUpdate} | | -*DefaultApi* | [**patchHashTag**](Apis/DefaultApi.md#patchhashtag) | **PATCH** /api/v1/hash-tags/{tag} | | -*DefaultApi* | [**patchPage**](Apis/DefaultApi.md#patchpage) | **PATCH** /api/v1/pages/{id} | | -*DefaultApi* | [**patchSSOUser**](Apis/DefaultApi.md#patchssouser) | **PATCH** /api/v1/sso-users/{id} | | -*DefaultApi* | [**putDomainConfig**](Apis/DefaultApi.md#putdomainconfig) | **PUT** /api/v1/domain-configs/{domainToUpdate} | | -*DefaultApi* | [**putSSOUser**](Apis/DefaultApi.md#putssouser) | **PUT** /api/v1/sso-users/{id} | | -*DefaultApi* | [**renderEmailTemplate**](Apis/DefaultApi.md#renderemailtemplate) | **POST** /api/v1/email-templates/render | | -*DefaultApi* | [**replaceTenantPackage**](Apis/DefaultApi.md#replacetenantpackage) | **PUT** /api/v1/tenant-packages/{id} | | -*DefaultApi* | [**replaceTenantUser**](Apis/DefaultApi.md#replacetenantuser) | **PUT** /api/v1/tenant-users/{id} | | -*DefaultApi* | [**saveComment**](Apis/DefaultApi.md#savecomment) | **POST** /api/v1/comments | | -*DefaultApi* | [**saveCommentsBulk**](Apis/DefaultApi.md#savecommentsbulk) | **POST** /api/v1/comments/bulk | | -*DefaultApi* | [**sendInvite**](Apis/DefaultApi.md#sendinvite) | **POST** /api/v1/moderators/{id}/send-invite | | -*DefaultApi* | [**sendLoginLink**](Apis/DefaultApi.md#sendloginlink) | **POST** /api/v1/tenant-users/{id}/send-login-link | | -*DefaultApi* | [**unBlockUserFromComment**](Apis/DefaultApi.md#unblockuserfromcomment) | **POST** /api/v1/comments/{id}/un-block | | -*DefaultApi* | [**unFlagComment**](Apis/DefaultApi.md#unflagcomment) | **POST** /api/v1/comments/{id}/un-flag | | -*DefaultApi* | [**updateComment**](Apis/DefaultApi.md#updatecomment) | **PATCH** /api/v1/comments/{id} | | -*DefaultApi* | [**updateEmailTemplate**](Apis/DefaultApi.md#updateemailtemplate) | **PATCH** /api/v1/email-templates/{id} | | -*DefaultApi* | [**updateFeedPost**](Apis/DefaultApi.md#updatefeedpost) | **PATCH** /api/v1/feed-posts/{id} | | -*DefaultApi* | [**updateModerator**](Apis/DefaultApi.md#updatemoderator) | **PATCH** /api/v1/moderators/{id} | | -*DefaultApi* | [**updateNotification**](Apis/DefaultApi.md#updatenotification) | **PATCH** /api/v1/notifications/{id} | | -*DefaultApi* | [**updateQuestionConfig**](Apis/DefaultApi.md#updatequestionconfig) | **PATCH** /api/v1/question-configs/{id} | | -*DefaultApi* | [**updateQuestionResult**](Apis/DefaultApi.md#updatequestionresult) | **PATCH** /api/v1/question-results/{id} | | -*DefaultApi* | [**updateSubscription**](Apis/DefaultApi.md#updatesubscription) | **PATCH** /api/v1/subscriptions/{id} | | -*DefaultApi* | [**updateTenant**](Apis/DefaultApi.md#updatetenant) | **PATCH** /api/v1/tenants/{id} | | -*DefaultApi* | [**updateTenantPackage**](Apis/DefaultApi.md#updatetenantpackage) | **PATCH** /api/v1/tenant-packages/{id} | | -*DefaultApi* | [**updateTenantUser**](Apis/DefaultApi.md#updatetenantuser) | **PATCH** /api/v1/tenant-users/{id} | | -*DefaultApi* | [**updateUserBadge**](Apis/DefaultApi.md#updateuserbadge) | **PUT** /api/v1/user-badges/{id} | | -| *ModerationApi* | [**deleteModerationVote**](Apis/ModerationApi.md#deletemoderationvote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | | -*ModerationApi* | [**getApiComments**](Apis/ModerationApi.md#getapicomments) | **GET** /auth/my-account/moderate-comments/api/comments | | -*ModerationApi* | [**getApiExportStatus**](Apis/ModerationApi.md#getapiexportstatus) | **GET** /auth/my-account/moderate-comments/api/export/status | | -*ModerationApi* | [**getApiIds**](Apis/ModerationApi.md#getapiids) | **GET** /auth/my-account/moderate-comments/api/ids | | -*ModerationApi* | [**getBanUsersFromComment**](Apis/ModerationApi.md#getbanusersfromcomment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | | -*ModerationApi* | [**getCommentBanStatus**](Apis/ModerationApi.md#getcommentbanstatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | | -*ModerationApi* | [**getCommentChildren**](Apis/ModerationApi.md#getcommentchildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | | -*ModerationApi* | [**getCount**](Apis/ModerationApi.md#getcount) | **GET** /auth/my-account/moderate-comments/count | | -*ModerationApi* | [**getCounts**](Apis/ModerationApi.md#getcounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | | -*ModerationApi* | [**getLogs**](Apis/ModerationApi.md#getlogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | | -*ModerationApi* | [**getManualBadges**](Apis/ModerationApi.md#getmanualbadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | | -*ModerationApi* | [**getManualBadgesForUser**](Apis/ModerationApi.md#getmanualbadgesforuser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | | -*ModerationApi* | [**getModerationComment**](Apis/ModerationApi.md#getmoderationcomment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | | -*ModerationApi* | [**getModerationCommentText**](Apis/ModerationApi.md#getmoderationcommenttext) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | | -*ModerationApi* | [**getPreBanSummary**](Apis/ModerationApi.md#getprebansummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | | -*ModerationApi* | [**getSearchCommentsSummary**](Apis/ModerationApi.md#getsearchcommentssummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | | -*ModerationApi* | [**getSearchPages**](Apis/ModerationApi.md#getsearchpages) | **GET** /auth/my-account/moderate-comments/search/pages | | -*ModerationApi* | [**getSearchSites**](Apis/ModerationApi.md#getsearchsites) | **GET** /auth/my-account/moderate-comments/search/sites | | -*ModerationApi* | [**getSearchSuggest**](Apis/ModerationApi.md#getsearchsuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | | -*ModerationApi* | [**getSearchUsers**](Apis/ModerationApi.md#getsearchusers) | **GET** /auth/my-account/moderate-comments/search/users | | -*ModerationApi* | [**getTrustFactor**](Apis/ModerationApi.md#gettrustfactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | | -*ModerationApi* | [**getUserBanPreference**](Apis/ModerationApi.md#getuserbanpreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | | -*ModerationApi* | [**getUserInternalProfile**](Apis/ModerationApi.md#getuserinternalprofile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | | -*ModerationApi* | [**postAdjustCommentVotes**](Apis/ModerationApi.md#postadjustcommentvotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | | -*ModerationApi* | [**postApiExport**](Apis/ModerationApi.md#postapiexport) | **POST** /auth/my-account/moderate-comments/api/export | | -*ModerationApi* | [**postBanUserFromComment**](Apis/ModerationApi.md#postbanuserfromcomment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | | -*ModerationApi* | [**postBanUserUndo**](Apis/ModerationApi.md#postbanuserundo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | | -*ModerationApi* | [**postBulkPreBanSummary**](Apis/ModerationApi.md#postbulkprebansummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | | -*ModerationApi* | [**postCommentsByIds**](Apis/ModerationApi.md#postcommentsbyids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | | -*ModerationApi* | [**postFlagComment**](Apis/ModerationApi.md#postflagcomment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | | -*ModerationApi* | [**postRemoveComment**](Apis/ModerationApi.md#postremovecomment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | | -*ModerationApi* | [**postRestoreDeletedComment**](Apis/ModerationApi.md#postrestoredeletedcomment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | | -*ModerationApi* | [**postSetCommentApprovalStatus**](Apis/ModerationApi.md#postsetcommentapprovalstatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | | -*ModerationApi* | [**postSetCommentReviewStatus**](Apis/ModerationApi.md#postsetcommentreviewstatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | | -*ModerationApi* | [**postSetCommentSpamStatus**](Apis/ModerationApi.md#postsetcommentspamstatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | | -*ModerationApi* | [**postSetCommentText**](Apis/ModerationApi.md#postsetcommenttext) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | | -*ModerationApi* | [**postUnFlagComment**](Apis/ModerationApi.md#postunflagcomment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | | -*ModerationApi* | [**postVote**](Apis/ModerationApi.md#postvote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | | -*ModerationApi* | [**putAwardBadge**](Apis/ModerationApi.md#putawardbadge) | **PUT** /auth/my-account/moderate-comments/award-badge | | -*ModerationApi* | [**putCloseThread**](Apis/ModerationApi.md#putclosethread) | **PUT** /auth/my-account/moderate-comments/close-thread | | -*ModerationApi* | [**putRemoveBadge**](Apis/ModerationApi.md#putremovebadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | | -*ModerationApi* | [**putReopenThread**](Apis/ModerationApi.md#putreopenthread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | | -*ModerationApi* | [**setTrustFactor**](Apis/ModerationApi.md#settrustfactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | | -| *PublicApi* | [**blockFromCommentPublic**](Apis/PublicApi.md#blockfromcommentpublic) | **POST** /block-from-comment/{commentId} | | -*PublicApi* | [**checkedCommentsForBlocked**](Apis/PublicApi.md#checkedcommentsforblocked) | **GET** /check-blocked-comments | | -*PublicApi* | [**createCommentPublic**](Apis/PublicApi.md#createcommentpublic) | **POST** /comments/{tenantId} | | -*PublicApi* | [**createFeedPostPublic**](Apis/PublicApi.md#createfeedpostpublic) | **POST** /feed-posts/{tenantId} | | -*PublicApi* | [**createV1PageReact**](Apis/PublicApi.md#createv1pagereact) | **POST** /page-reacts/v1/likes/{tenantId} | | -*PublicApi* | [**createV2PageReact**](Apis/PublicApi.md#createv2pagereact) | **POST** /page-reacts/v2/{tenantId} | | -*PublicApi* | [**deleteCommentPublic**](Apis/PublicApi.md#deletecommentpublic) | **DELETE** /comments/{tenantId}/{commentId} | | -*PublicApi* | [**deleteCommentVote**](Apis/PublicApi.md#deletecommentvote) | **DELETE** /comments/{tenantId}/{commentId}/vote/{voteId} | | -*PublicApi* | [**deleteFeedPostPublic**](Apis/PublicApi.md#deletefeedpostpublic) | **DELETE** /feed-posts/{tenantId}/{postId} | | -*PublicApi* | [**deleteV1PageReact**](Apis/PublicApi.md#deletev1pagereact) | **DELETE** /page-reacts/v1/likes/{tenantId} | | -*PublicApi* | [**deleteV2PageReact**](Apis/PublicApi.md#deletev2pagereact) | **DELETE** /page-reacts/v2/{tenantId} | | -*PublicApi* | [**flagCommentPublic**](Apis/PublicApi.md#flagcommentpublic) | **POST** /flag-comment/{commentId} | | -*PublicApi* | [**getCommentText**](Apis/PublicApi.md#getcommenttext) | **GET** /comments/{tenantId}/{commentId}/text | | -*PublicApi* | [**getCommentVoteUserNames**](Apis/PublicApi.md#getcommentvoteusernames) | **GET** /comments/{tenantId}/{commentId}/votes | | -*PublicApi* | [**getCommentsForUser**](Apis/PublicApi.md#getcommentsforuser) | **GET** /comments-for-user | | -*PublicApi* | [**getCommentsPublic**](Apis/PublicApi.md#getcommentspublic) | **GET** /comments/{tenantId} | req tenantId urlId | -*PublicApi* | [**getEventLog**](Apis/PublicApi.md#geteventlog) | **GET** /event-log/{tenantId} | req tenantId urlId userIdWS | -*PublicApi* | [**getFeedPostsPublic**](Apis/PublicApi.md#getfeedpostspublic) | **GET** /feed-posts/{tenantId} | req tenantId afterId | -*PublicApi* | [**getFeedPostsStats**](Apis/PublicApi.md#getfeedpostsstats) | **GET** /feed-posts/{tenantId}/stats | | -*PublicApi* | [**getGifLarge**](Apis/PublicApi.md#getgiflarge) | **GET** /gifs/get-large/{tenantId} | | -*PublicApi* | [**getGifsSearch**](Apis/PublicApi.md#getgifssearch) | **GET** /gifs/search/{tenantId} | | -*PublicApi* | [**getGifsTrending**](Apis/PublicApi.md#getgifstrending) | **GET** /gifs/trending/{tenantId} | | -*PublicApi* | [**getGlobalEventLog**](Apis/PublicApi.md#getglobaleventlog) | **GET** /event-log/global/{tenantId} | req tenantId urlId userIdWS | -*PublicApi* | [**getOfflineUsers**](Apis/PublicApi.md#getofflineusers) | **GET** /pages/{tenantId}/users/offline | Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. | -*PublicApi* | [**getOnlineUsers**](Apis/PublicApi.md#getonlineusers) | **GET** /pages/{tenantId}/users/online | Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). | -*PublicApi* | [**getPagesPublic**](Apis/PublicApi.md#getpagespublic) | **GET** /pages/{tenantId} | List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. | -*PublicApi* | [**getTranslations**](Apis/PublicApi.md#gettranslations) | **GET** /translations/{namespace}/{component} | | -*PublicApi* | [**getUserNotificationCount**](Apis/PublicApi.md#getusernotificationcount) | **GET** /user-notifications/get-count | | -*PublicApi* | [**getUserNotifications**](Apis/PublicApi.md#getusernotifications) | **GET** /user-notifications | | -*PublicApi* | [**getUserPresenceStatuses**](Apis/PublicApi.md#getuserpresencestatuses) | **GET** /user-presence-status | | -*PublicApi* | [**getUserReactsPublic**](Apis/PublicApi.md#getuserreactspublic) | **GET** /feed-posts/{tenantId}/user-reacts | | -*PublicApi* | [**getUsersInfo**](Apis/PublicApi.md#getusersinfo) | **GET** /pages/{tenantId}/users/info | Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). | -*PublicApi* | [**getV1PageLikes**](Apis/PublicApi.md#getv1pagelikes) | **GET** /page-reacts/v1/likes/{tenantId} | | -*PublicApi* | [**getV2PageReactUsers**](Apis/PublicApi.md#getv2pagereactusers) | **GET** /page-reacts/v2/{tenantId}/list | | -*PublicApi* | [**getV2PageReacts**](Apis/PublicApi.md#getv2pagereacts) | **GET** /page-reacts/v2/{tenantId} | | -*PublicApi* | [**lockComment**](Apis/PublicApi.md#lockcomment) | **POST** /comments/{tenantId}/{commentId}/lock | | -*PublicApi* | [**logoutPublic**](Apis/PublicApi.md#logoutpublic) | **PUT** /auth/logout | | -*PublicApi* | [**pinComment**](Apis/PublicApi.md#pincomment) | **POST** /comments/{tenantId}/{commentId}/pin | | -*PublicApi* | [**reactFeedPostPublic**](Apis/PublicApi.md#reactfeedpostpublic) | **POST** /feed-posts/{tenantId}/react/{postId} | | -*PublicApi* | [**resetUserNotificationCount**](Apis/PublicApi.md#resetusernotificationcount) | **POST** /user-notifications/reset-count | | -*PublicApi* | [**resetUserNotifications**](Apis/PublicApi.md#resetusernotifications) | **POST** /user-notifications/reset | | -*PublicApi* | [**searchUsers**](Apis/PublicApi.md#searchusers) | **GET** /user-search/{tenantId} | | -*PublicApi* | [**setCommentText**](Apis/PublicApi.md#setcommenttext) | **POST** /comments/{tenantId}/{commentId}/update-text | | -*PublicApi* | [**unBlockCommentPublic**](Apis/PublicApi.md#unblockcommentpublic) | **DELETE** /block-from-comment/{commentId} | | -*PublicApi* | [**unLockComment**](Apis/PublicApi.md#unlockcomment) | **POST** /comments/{tenantId}/{commentId}/unlock | | -*PublicApi* | [**unPinComment**](Apis/PublicApi.md#unpincomment) | **POST** /comments/{tenantId}/{commentId}/unpin | | -*PublicApi* | [**updateFeedPostPublic**](Apis/PublicApi.md#updatefeedpostpublic) | **PUT** /feed-posts/{tenantId}/{postId} | | -*PublicApi* | [**updateUserNotificationCommentSubscriptionStatus**](Apis/PublicApi.md#updateusernotificationcommentsubscriptionstatus) | **POST** /user-notifications/{notificationId}/mark-opted/{optedInOrOut} | Enable or disable notifications for a specific comment. | -*PublicApi* | [**updateUserNotificationPageSubscriptionStatus**](Apis/PublicApi.md#updateusernotificationpagesubscriptionstatus) | **POST** /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also | -*PublicApi* | [**updateUserNotificationStatus**](Apis/PublicApi.md#updateusernotificationstatus) | **POST** /user-notifications/{notificationId}/mark/{newStatus} | | -*PublicApi* | [**uploadImage**](Apis/PublicApi.md#uploadimage) | **POST** /upload-image/{tenantId} | Upload and resize an image | -*PublicApi* | [**voteComment**](Apis/PublicApi.md#votecomment) | **POST** /comments/{tenantId}/{commentId}/vote | | +*DefaultApi* | [**aggregateQuestionResults**](Apis/DefaultApi.md#aggregateQuestionResults) | **GET** /api/v1/question-results-aggregation | | +*DefaultApi* | [**blockUserFromComment**](Apis/DefaultApi.md#blockUserFromComment) | **POST** /api/v1/comments/{id}/block | | +*DefaultApi* | [**bulkAggregateQuestionResults**](Apis/DefaultApi.md#bulkAggregateQuestionResults) | **POST** /api/v1/question-results-aggregation/bulk | | +*DefaultApi* | [**changeTicketState**](Apis/DefaultApi.md#changeTicketState) | **PATCH** /api/v1/tickets/{id}/state | | +*DefaultApi* | [**combineCommentsWithQuestionResults**](Apis/DefaultApi.md#combineCommentsWithQuestionResults) | **GET** /api/v1/question-results-aggregation/combine/comments | | +*DefaultApi* | [**createEmailTemplate**](Apis/DefaultApi.md#createEmailTemplate) | **POST** /api/v1/email-templates | | +*DefaultApi* | [**createFeedPost**](Apis/DefaultApi.md#createFeedPost) | **POST** /api/v1/feed-posts | | +*DefaultApi* | [**createModerator**](Apis/DefaultApi.md#createModerator) | **POST** /api/v1/moderators | | +*DefaultApi* | [**createQuestionConfig**](Apis/DefaultApi.md#createQuestionConfig) | **POST** /api/v1/question-configs | | +*DefaultApi* | [**createQuestionResult**](Apis/DefaultApi.md#createQuestionResult) | **POST** /api/v1/question-results | | +*DefaultApi* | [**createSubscription**](Apis/DefaultApi.md#createSubscription) | **POST** /api/v1/subscriptions | | +*DefaultApi* | [**createTenant**](Apis/DefaultApi.md#createTenant) | **POST** /api/v1/tenants | | +*DefaultApi* | [**createTenantPackage**](Apis/DefaultApi.md#createTenantPackage) | **POST** /api/v1/tenant-packages | | +*DefaultApi* | [**createTenantUser**](Apis/DefaultApi.md#createTenantUser) | **POST** /api/v1/tenant-users | | +*DefaultApi* | [**createTicket**](Apis/DefaultApi.md#createTicket) | **POST** /api/v1/tickets | | +*DefaultApi* | [**createUserBadge**](Apis/DefaultApi.md#createUserBadge) | **POST** /api/v1/user-badges | | +*DefaultApi* | [**createVote**](Apis/DefaultApi.md#createVote) | **POST** /api/v1/votes | | +*DefaultApi* | [**deleteComment**](Apis/DefaultApi.md#deleteComment) | **DELETE** /api/v1/comments/{id} | | +*DefaultApi* | [**deleteDomainConfig**](Apis/DefaultApi.md#deleteDomainConfig) | **DELETE** /api/v1/domain-configs/{domain} | | +*DefaultApi* | [**deleteEmailTemplate**](Apis/DefaultApi.md#deleteEmailTemplate) | **DELETE** /api/v1/email-templates/{id} | | +*DefaultApi* | [**deleteEmailTemplateRenderError**](Apis/DefaultApi.md#deleteEmailTemplateRenderError) | **DELETE** /api/v1/email-templates/{id}/render-errors/{errorId} | | +*DefaultApi* | [**deleteHashTag**](Apis/DefaultApi.md#deleteHashTag) | **DELETE** /api/v1/hash-tags/{tag} | | +*DefaultApi* | [**deleteModerator**](Apis/DefaultApi.md#deleteModerator) | **DELETE** /api/v1/moderators/{id} | | +*DefaultApi* | [**deleteNotificationCount**](Apis/DefaultApi.md#deleteNotificationCount) | **DELETE** /api/v1/notification-count/{id} | | +*DefaultApi* | [**deletePage**](Apis/DefaultApi.md#deletePage) | **DELETE** /api/v1/pages/{id} | | +*DefaultApi* | [**deletePendingWebhookEvent**](Apis/DefaultApi.md#deletePendingWebhookEvent) | **DELETE** /api/v1/pending-webhook-events/{id} | | +*DefaultApi* | [**deleteQuestionConfig**](Apis/DefaultApi.md#deleteQuestionConfig) | **DELETE** /api/v1/question-configs/{id} | | +*DefaultApi* | [**deleteQuestionResult**](Apis/DefaultApi.md#deleteQuestionResult) | **DELETE** /api/v1/question-results/{id} | | +*DefaultApi* | [**deleteSSOUser**](Apis/DefaultApi.md#deleteSSOUser) | **DELETE** /api/v1/sso-users/{id} | | +*DefaultApi* | [**deleteSubscription**](Apis/DefaultApi.md#deleteSubscription) | **DELETE** /api/v1/subscriptions/{id} | | +*DefaultApi* | [**deleteTenant**](Apis/DefaultApi.md#deleteTenant) | **DELETE** /api/v1/tenants/{id} | | +*DefaultApi* | [**deleteTenantPackage**](Apis/DefaultApi.md#deleteTenantPackage) | **DELETE** /api/v1/tenant-packages/{id} | | +*DefaultApi* | [**deleteTenantUser**](Apis/DefaultApi.md#deleteTenantUser) | **DELETE** /api/v1/tenant-users/{id} | | +*DefaultApi* | [**deleteUserBadge**](Apis/DefaultApi.md#deleteUserBadge) | **DELETE** /api/v1/user-badges/{id} | | +*DefaultApi* | [**deleteVote**](Apis/DefaultApi.md#deleteVote) | **DELETE** /api/v1/votes/{id} | | +*DefaultApi* | [**flagComment**](Apis/DefaultApi.md#flagComment) | **POST** /api/v1/comments/{id}/flag | | +*DefaultApi* | [**getAuditLogs**](Apis/DefaultApi.md#getAuditLogs) | **GET** /api/v1/audit-logs | | +*DefaultApi* | [**getCachedNotificationCount**](Apis/DefaultApi.md#getCachedNotificationCount) | **GET** /api/v1/notification-count/{id} | | +*DefaultApi* | [**getComment**](Apis/DefaultApi.md#getComment) | **GET** /api/v1/comments/{id} | | +*DefaultApi* | [**getComments**](Apis/DefaultApi.md#getComments) | **GET** /api/v1/comments | | +*DefaultApi* | [**getDomainConfig**](Apis/DefaultApi.md#getDomainConfig) | **GET** /api/v1/domain-configs/{domain} | | +*DefaultApi* | [**getDomainConfigs**](Apis/DefaultApi.md#getDomainConfigs) | **GET** /api/v1/domain-configs | | +*DefaultApi* | [**getEmailTemplate**](Apis/DefaultApi.md#getEmailTemplate) | **GET** /api/v1/email-templates/{id} | | +*DefaultApi* | [**getEmailTemplateDefinitions**](Apis/DefaultApi.md#getEmailTemplateDefinitions) | **GET** /api/v1/email-templates/definitions | | +*DefaultApi* | [**getEmailTemplateRenderErrors**](Apis/DefaultApi.md#getEmailTemplateRenderErrors) | **GET** /api/v1/email-templates/{id}/render-errors | | +*DefaultApi* | [**getEmailTemplates**](Apis/DefaultApi.md#getEmailTemplates) | **GET** /api/v1/email-templates | | +*DefaultApi* | [**getFeedPosts**](Apis/DefaultApi.md#getFeedPosts) | **GET** /api/v1/feed-posts | req tenantId afterId | +*DefaultApi* | [**getHashTags**](Apis/DefaultApi.md#getHashTags) | **GET** /api/v1/hash-tags | | +*DefaultApi* | [**getModerator**](Apis/DefaultApi.md#getModerator) | **GET** /api/v1/moderators/{id} | | +*DefaultApi* | [**getModerators**](Apis/DefaultApi.md#getModerators) | **GET** /api/v1/moderators | | +*DefaultApi* | [**getNotificationCount**](Apis/DefaultApi.md#getNotificationCount) | **GET** /api/v1/notifications/count | | +*DefaultApi* | [**getNotifications**](Apis/DefaultApi.md#getNotifications) | **GET** /api/v1/notifications | | +*DefaultApi* | [**getPageByURLId**](Apis/DefaultApi.md#getPageByURLId) | **GET** /api/v1/pages/by-url-id | | +*DefaultApi* | [**getPages**](Apis/DefaultApi.md#getPages) | **GET** /api/v1/pages | | +*DefaultApi* | [**getPendingWebhookEventCount**](Apis/DefaultApi.md#getPendingWebhookEventCount) | **GET** /api/v1/pending-webhook-events/count | | +*DefaultApi* | [**getPendingWebhookEvents**](Apis/DefaultApi.md#getPendingWebhookEvents) | **GET** /api/v1/pending-webhook-events | | +*DefaultApi* | [**getQuestionConfig**](Apis/DefaultApi.md#getQuestionConfig) | **GET** /api/v1/question-configs/{id} | | +*DefaultApi* | [**getQuestionConfigs**](Apis/DefaultApi.md#getQuestionConfigs) | **GET** /api/v1/question-configs | | +*DefaultApi* | [**getQuestionResult**](Apis/DefaultApi.md#getQuestionResult) | **GET** /api/v1/question-results/{id} | | +*DefaultApi* | [**getQuestionResults**](Apis/DefaultApi.md#getQuestionResults) | **GET** /api/v1/question-results | | +*DefaultApi* | [**getSSOUserByEmail**](Apis/DefaultApi.md#getSSOUserByEmail) | **GET** /api/v1/sso-users/by-email/{email} | | +*DefaultApi* | [**getSSOUserById**](Apis/DefaultApi.md#getSSOUserById) | **GET** /api/v1/sso-users/by-id/{id} | | +*DefaultApi* | [**getSSOUsers**](Apis/DefaultApi.md#getSSOUsers) | **GET** /api/v1/sso-users | | +*DefaultApi* | [**getSubscriptions**](Apis/DefaultApi.md#getSubscriptions) | **GET** /api/v1/subscriptions | | +*DefaultApi* | [**getTenant**](Apis/DefaultApi.md#getTenant) | **GET** /api/v1/tenants/{id} | | +*DefaultApi* | [**getTenantDailyUsages**](Apis/DefaultApi.md#getTenantDailyUsages) | **GET** /api/v1/tenant-daily-usage | | +*DefaultApi* | [**getTenantPackage**](Apis/DefaultApi.md#getTenantPackage) | **GET** /api/v1/tenant-packages/{id} | | +*DefaultApi* | [**getTenantPackages**](Apis/DefaultApi.md#getTenantPackages) | **GET** /api/v1/tenant-packages | | +*DefaultApi* | [**getTenantUser**](Apis/DefaultApi.md#getTenantUser) | **GET** /api/v1/tenant-users/{id} | | +*DefaultApi* | [**getTenantUsers**](Apis/DefaultApi.md#getTenantUsers) | **GET** /api/v1/tenant-users | | +*DefaultApi* | [**getTenants**](Apis/DefaultApi.md#getTenants) | **GET** /api/v1/tenants | | +*DefaultApi* | [**getTicket**](Apis/DefaultApi.md#getTicket) | **GET** /api/v1/tickets/{id} | | +*DefaultApi* | [**getTickets**](Apis/DefaultApi.md#getTickets) | **GET** /api/v1/tickets | | +*DefaultApi* | [**getUser**](Apis/DefaultApi.md#getUser) | **GET** /api/v1/users/{id} | | +*DefaultApi* | [**getUserBadge**](Apis/DefaultApi.md#getUserBadge) | **GET** /api/v1/user-badges/{id} | | +*DefaultApi* | [**getUserBadgeProgressById**](Apis/DefaultApi.md#getUserBadgeProgressById) | **GET** /api/v1/user-badge-progress/{id} | | +*DefaultApi* | [**getUserBadgeProgressByUserId**](Apis/DefaultApi.md#getUserBadgeProgressByUserId) | **GET** /api/v1/user-badge-progress/user/{userId} | | +*DefaultApi* | [**getUserBadgeProgressList**](Apis/DefaultApi.md#getUserBadgeProgressList) | **GET** /api/v1/user-badge-progress | | +*DefaultApi* | [**getUserBadges**](Apis/DefaultApi.md#getUserBadges) | **GET** /api/v1/user-badges | | +*DefaultApi* | [**getVotes**](Apis/DefaultApi.md#getVotes) | **GET** /api/v1/votes | | +*DefaultApi* | [**getVotesForUser**](Apis/DefaultApi.md#getVotesForUser) | **GET** /api/v1/votes/for-user | | +*DefaultApi* | [**patchDomainConfig**](Apis/DefaultApi.md#patchDomainConfig) | **PATCH** /api/v1/domain-configs/{domainToUpdate} | | +*DefaultApi* | [**patchHashTag**](Apis/DefaultApi.md#patchHashTag) | **PATCH** /api/v1/hash-tags/{tag} | | +*DefaultApi* | [**patchPage**](Apis/DefaultApi.md#patchPage) | **PATCH** /api/v1/pages/{id} | | +*DefaultApi* | [**patchSSOUser**](Apis/DefaultApi.md#patchSSOUser) | **PATCH** /api/v1/sso-users/{id} | | +*DefaultApi* | [**putDomainConfig**](Apis/DefaultApi.md#putDomainConfig) | **PUT** /api/v1/domain-configs/{domainToUpdate} | | +*DefaultApi* | [**putSSOUser**](Apis/DefaultApi.md#putSSOUser) | **PUT** /api/v1/sso-users/{id} | | +*DefaultApi* | [**renderEmailTemplate**](Apis/DefaultApi.md#renderEmailTemplate) | **POST** /api/v1/email-templates/render | | +*DefaultApi* | [**replaceTenantPackage**](Apis/DefaultApi.md#replaceTenantPackage) | **PUT** /api/v1/tenant-packages/{id} | | +*DefaultApi* | [**replaceTenantUser**](Apis/DefaultApi.md#replaceTenantUser) | **PUT** /api/v1/tenant-users/{id} | | +*DefaultApi* | [**saveComment**](Apis/DefaultApi.md#saveComment) | **POST** /api/v1/comments | | +*DefaultApi* | [**saveCommentsBulk**](Apis/DefaultApi.md#saveCommentsBulk) | **POST** /api/v1/comments/bulk | | +*DefaultApi* | [**sendInvite**](Apis/DefaultApi.md#sendInvite) | **POST** /api/v1/moderators/{id}/send-invite | | +*DefaultApi* | [**sendLoginLink**](Apis/DefaultApi.md#sendLoginLink) | **POST** /api/v1/tenant-users/{id}/send-login-link | | +*DefaultApi* | [**unBlockUserFromComment**](Apis/DefaultApi.md#unBlockUserFromComment) | **POST** /api/v1/comments/{id}/un-block | | +*DefaultApi* | [**unFlagComment**](Apis/DefaultApi.md#unFlagComment) | **POST** /api/v1/comments/{id}/un-flag | | +*DefaultApi* | [**updateComment**](Apis/DefaultApi.md#updateComment) | **PATCH** /api/v1/comments/{id} | | +*DefaultApi* | [**updateEmailTemplate**](Apis/DefaultApi.md#updateEmailTemplate) | **PATCH** /api/v1/email-templates/{id} | | +*DefaultApi* | [**updateFeedPost**](Apis/DefaultApi.md#updateFeedPost) | **PATCH** /api/v1/feed-posts/{id} | | +*DefaultApi* | [**updateModerator**](Apis/DefaultApi.md#updateModerator) | **PATCH** /api/v1/moderators/{id} | | +*DefaultApi* | [**updateNotification**](Apis/DefaultApi.md#updateNotification) | **PATCH** /api/v1/notifications/{id} | | +*DefaultApi* | [**updateQuestionConfig**](Apis/DefaultApi.md#updateQuestionConfig) | **PATCH** /api/v1/question-configs/{id} | | +*DefaultApi* | [**updateQuestionResult**](Apis/DefaultApi.md#updateQuestionResult) | **PATCH** /api/v1/question-results/{id} | | +*DefaultApi* | [**updateSubscription**](Apis/DefaultApi.md#updateSubscription) | **PATCH** /api/v1/subscriptions/{id} | | +*DefaultApi* | [**updateTenant**](Apis/DefaultApi.md#updateTenant) | **PATCH** /api/v1/tenants/{id} | | +*DefaultApi* | [**updateTenantPackage**](Apis/DefaultApi.md#updateTenantPackage) | **PATCH** /api/v1/tenant-packages/{id} | | +*DefaultApi* | [**updateTenantUser**](Apis/DefaultApi.md#updateTenantUser) | **PATCH** /api/v1/tenant-users/{id} | | +*DefaultApi* | [**updateUserBadge**](Apis/DefaultApi.md#updateUserBadge) | **PUT** /api/v1/user-badges/{id} | | +| *ModerationApi* | [**deleteModerationVote**](Apis/ModerationApi.md#deleteModerationVote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | | +*ModerationApi* | [**getApiComments**](Apis/ModerationApi.md#getApiComments) | **GET** /auth/my-account/moderate-comments/api/comments | | +*ModerationApi* | [**getApiExportStatus**](Apis/ModerationApi.md#getApiExportStatus) | **GET** /auth/my-account/moderate-comments/api/export/status | | +*ModerationApi* | [**getApiIds**](Apis/ModerationApi.md#getApiIds) | **GET** /auth/my-account/moderate-comments/api/ids | | +*ModerationApi* | [**getBanUsersFromComment**](Apis/ModerationApi.md#getBanUsersFromComment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | | +*ModerationApi* | [**getCommentBanStatus**](Apis/ModerationApi.md#getCommentBanStatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | | +*ModerationApi* | [**getCommentChildren**](Apis/ModerationApi.md#getCommentChildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | | +*ModerationApi* | [**getCount**](Apis/ModerationApi.md#getCount) | **GET** /auth/my-account/moderate-comments/count | | +*ModerationApi* | [**getCounts**](Apis/ModerationApi.md#getCounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | | +*ModerationApi* | [**getLogs**](Apis/ModerationApi.md#getLogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | | +*ModerationApi* | [**getManualBadges**](Apis/ModerationApi.md#getManualBadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | | +*ModerationApi* | [**getManualBadgesForUser**](Apis/ModerationApi.md#getManualBadgesForUser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | | +*ModerationApi* | [**getModerationComment**](Apis/ModerationApi.md#getModerationComment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | | +*ModerationApi* | [**getModerationCommentText**](Apis/ModerationApi.md#getModerationCommentText) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | | +*ModerationApi* | [**getPreBanSummary**](Apis/ModerationApi.md#getPreBanSummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | | +*ModerationApi* | [**getSearchCommentsSummary**](Apis/ModerationApi.md#getSearchCommentsSummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | | +*ModerationApi* | [**getSearchPages**](Apis/ModerationApi.md#getSearchPages) | **GET** /auth/my-account/moderate-comments/search/pages | | +*ModerationApi* | [**getSearchSites**](Apis/ModerationApi.md#getSearchSites) | **GET** /auth/my-account/moderate-comments/search/sites | | +*ModerationApi* | [**getSearchSuggest**](Apis/ModerationApi.md#getSearchSuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | | +*ModerationApi* | [**getSearchUsers**](Apis/ModerationApi.md#getSearchUsers) | **GET** /auth/my-account/moderate-comments/search/users | | +*ModerationApi* | [**getTrustFactor**](Apis/ModerationApi.md#getTrustFactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | | +*ModerationApi* | [**getUserBanPreference**](Apis/ModerationApi.md#getUserBanPreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | | +*ModerationApi* | [**getUserInternalProfile**](Apis/ModerationApi.md#getUserInternalProfile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | | +*ModerationApi* | [**postAdjustCommentVotes**](Apis/ModerationApi.md#postAdjustCommentVotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | | +*ModerationApi* | [**postApiExport**](Apis/ModerationApi.md#postApiExport) | **POST** /auth/my-account/moderate-comments/api/export | | +*ModerationApi* | [**postBanUserFromComment**](Apis/ModerationApi.md#postBanUserFromComment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | | +*ModerationApi* | [**postBanUserUndo**](Apis/ModerationApi.md#postBanUserUndo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | | +*ModerationApi* | [**postBulkPreBanSummary**](Apis/ModerationApi.md#postBulkPreBanSummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | | +*ModerationApi* | [**postCommentsByIds**](Apis/ModerationApi.md#postCommentsByIds) | **POST** /auth/my-account/moderate-comments/comments-by-ids | | +*ModerationApi* | [**postFlagComment**](Apis/ModerationApi.md#postFlagComment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | | +*ModerationApi* | [**postRemoveComment**](Apis/ModerationApi.md#postRemoveComment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | | +*ModerationApi* | [**postRestoreDeletedComment**](Apis/ModerationApi.md#postRestoreDeletedComment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | | +*ModerationApi* | [**postSetCommentApprovalStatus**](Apis/ModerationApi.md#postSetCommentApprovalStatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | | +*ModerationApi* | [**postSetCommentReviewStatus**](Apis/ModerationApi.md#postSetCommentReviewStatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | | +*ModerationApi* | [**postSetCommentSpamStatus**](Apis/ModerationApi.md#postSetCommentSpamStatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | | +*ModerationApi* | [**postSetCommentText**](Apis/ModerationApi.md#postSetCommentText) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | | +*ModerationApi* | [**postUnFlagComment**](Apis/ModerationApi.md#postUnFlagComment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | | +*ModerationApi* | [**postVote**](Apis/ModerationApi.md#postVote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | | +*ModerationApi* | [**putAwardBadge**](Apis/ModerationApi.md#putAwardBadge) | **PUT** /auth/my-account/moderate-comments/award-badge | | +*ModerationApi* | [**putCloseThread**](Apis/ModerationApi.md#putCloseThread) | **PUT** /auth/my-account/moderate-comments/close-thread | | +*ModerationApi* | [**putRemoveBadge**](Apis/ModerationApi.md#putRemoveBadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | | +*ModerationApi* | [**putReopenThread**](Apis/ModerationApi.md#putReopenThread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | | +*ModerationApi* | [**setTrustFactor**](Apis/ModerationApi.md#setTrustFactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | | +| *PublicApi* | [**blockFromCommentPublic**](Apis/PublicApi.md#blockFromCommentPublic) | **POST** /block-from-comment/{commentId} | | +*PublicApi* | [**checkedCommentsForBlocked**](Apis/PublicApi.md#checkedCommentsForBlocked) | **GET** /check-blocked-comments | | +*PublicApi* | [**createCommentPublic**](Apis/PublicApi.md#createCommentPublic) | **POST** /comments/{tenantId} | | +*PublicApi* | [**createFeedPostPublic**](Apis/PublicApi.md#createFeedPostPublic) | **POST** /feed-posts/{tenantId} | | +*PublicApi* | [**createV1PageReact**](Apis/PublicApi.md#createV1PageReact) | **POST** /page-reacts/v1/likes/{tenantId} | | +*PublicApi* | [**createV2PageReact**](Apis/PublicApi.md#createV2PageReact) | **POST** /page-reacts/v2/{tenantId} | | +*PublicApi* | [**deleteCommentPublic**](Apis/PublicApi.md#deleteCommentPublic) | **DELETE** /comments/{tenantId}/{commentId} | | +*PublicApi* | [**deleteCommentVote**](Apis/PublicApi.md#deleteCommentVote) | **DELETE** /comments/{tenantId}/{commentId}/vote/{voteId} | | +*PublicApi* | [**deleteFeedPostPublic**](Apis/PublicApi.md#deleteFeedPostPublic) | **DELETE** /feed-posts/{tenantId}/{postId} | | +*PublicApi* | [**deleteV1PageReact**](Apis/PublicApi.md#deleteV1PageReact) | **DELETE** /page-reacts/v1/likes/{tenantId} | | +*PublicApi* | [**deleteV2PageReact**](Apis/PublicApi.md#deleteV2PageReact) | **DELETE** /page-reacts/v2/{tenantId} | | +*PublicApi* | [**flagCommentPublic**](Apis/PublicApi.md#flagCommentPublic) | **POST** /flag-comment/{commentId} | | +*PublicApi* | [**getCommentText**](Apis/PublicApi.md#getCommentText) | **GET** /comments/{tenantId}/{commentId}/text | | +*PublicApi* | [**getCommentVoteUserNames**](Apis/PublicApi.md#getCommentVoteUserNames) | **GET** /comments/{tenantId}/{commentId}/votes | | +*PublicApi* | [**getCommentsForUser**](Apis/PublicApi.md#getCommentsForUser) | **GET** /comments-for-user | | +*PublicApi* | [**getCommentsPublic**](Apis/PublicApi.md#getCommentsPublic) | **GET** /comments/{tenantId} | req tenantId urlId | +*PublicApi* | [**getEventLog**](Apis/PublicApi.md#getEventLog) | **GET** /event-log/{tenantId} | req tenantId urlId userIdWS | +*PublicApi* | [**getFeedPostsPublic**](Apis/PublicApi.md#getFeedPostsPublic) | **GET** /feed-posts/{tenantId} | req tenantId afterId | +*PublicApi* | [**getFeedPostsStats**](Apis/PublicApi.md#getFeedPostsStats) | **GET** /feed-posts/{tenantId}/stats | | +*PublicApi* | [**getGifLarge**](Apis/PublicApi.md#getGifLarge) | **GET** /gifs/get-large/{tenantId} | | +*PublicApi* | [**getGifsSearch**](Apis/PublicApi.md#getGifsSearch) | **GET** /gifs/search/{tenantId} | | +*PublicApi* | [**getGifsTrending**](Apis/PublicApi.md#getGifsTrending) | **GET** /gifs/trending/{tenantId} | | +*PublicApi* | [**getGlobalEventLog**](Apis/PublicApi.md#getGlobalEventLog) | **GET** /event-log/global/{tenantId} | req tenantId urlId userIdWS | +*PublicApi* | [**getOfflineUsers**](Apis/PublicApi.md#getOfflineUsers) | **GET** /pages/{tenantId}/users/offline | Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. | +*PublicApi* | [**getOnlineUsers**](Apis/PublicApi.md#getOnlineUsers) | **GET** /pages/{tenantId}/users/online | Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). | +*PublicApi* | [**getPagesPublic**](Apis/PublicApi.md#getPagesPublic) | **GET** /pages/{tenantId} | List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. | +*PublicApi* | [**getTranslations**](Apis/PublicApi.md#getTranslations) | **GET** /translations/{namespace}/{component} | | +*PublicApi* | [**getUserNotificationCount**](Apis/PublicApi.md#getUserNotificationCount) | **GET** /user-notifications/get-count | | +*PublicApi* | [**getUserNotifications**](Apis/PublicApi.md#getUserNotifications) | **GET** /user-notifications | | +*PublicApi* | [**getUserPresenceStatuses**](Apis/PublicApi.md#getUserPresenceStatuses) | **GET** /user-presence-status | | +*PublicApi* | [**getUserReactsPublic**](Apis/PublicApi.md#getUserReactsPublic) | **GET** /feed-posts/{tenantId}/user-reacts | | +*PublicApi* | [**getUsersInfo**](Apis/PublicApi.md#getUsersInfo) | **GET** /pages/{tenantId}/users/info | Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). | +*PublicApi* | [**getV1PageLikes**](Apis/PublicApi.md#getV1PageLikes) | **GET** /page-reacts/v1/likes/{tenantId} | | +*PublicApi* | [**getV2PageReactUsers**](Apis/PublicApi.md#getV2PageReactUsers) | **GET** /page-reacts/v2/{tenantId}/list | | +*PublicApi* | [**getV2PageReacts**](Apis/PublicApi.md#getV2PageReacts) | **GET** /page-reacts/v2/{tenantId} | | +*PublicApi* | [**lockComment**](Apis/PublicApi.md#lockComment) | **POST** /comments/{tenantId}/{commentId}/lock | | +*PublicApi* | [**logoutPublic**](Apis/PublicApi.md#logoutPublic) | **PUT** /auth/logout | | +*PublicApi* | [**pinComment**](Apis/PublicApi.md#pinComment) | **POST** /comments/{tenantId}/{commentId}/pin | | +*PublicApi* | [**reactFeedPostPublic**](Apis/PublicApi.md#reactFeedPostPublic) | **POST** /feed-posts/{tenantId}/react/{postId} | | +*PublicApi* | [**resetUserNotificationCount**](Apis/PublicApi.md#resetUserNotificationCount) | **POST** /user-notifications/reset-count | | +*PublicApi* | [**resetUserNotifications**](Apis/PublicApi.md#resetUserNotifications) | **POST** /user-notifications/reset | | +*PublicApi* | [**searchUsers**](Apis/PublicApi.md#searchUsers) | **GET** /user-search/{tenantId} | | +*PublicApi* | [**setCommentText**](Apis/PublicApi.md#setCommentText) | **POST** /comments/{tenantId}/{commentId}/update-text | | +*PublicApi* | [**unBlockCommentPublic**](Apis/PublicApi.md#unBlockCommentPublic) | **DELETE** /block-from-comment/{commentId} | | +*PublicApi* | [**unLockComment**](Apis/PublicApi.md#unLockComment) | **POST** /comments/{tenantId}/{commentId}/unlock | | +*PublicApi* | [**unPinComment**](Apis/PublicApi.md#unPinComment) | **POST** /comments/{tenantId}/{commentId}/unpin | | +*PublicApi* | [**updateFeedPostPublic**](Apis/PublicApi.md#updateFeedPostPublic) | **PUT** /feed-posts/{tenantId}/{postId} | | +*PublicApi* | [**updateUserNotificationCommentSubscriptionStatus**](Apis/PublicApi.md#updateUserNotificationCommentSubscriptionStatus) | **POST** /user-notifications/{notificationId}/mark-opted/{optedInOrOut} | Enable or disable notifications for a specific comment. | +*PublicApi* | [**updateUserNotificationPageSubscriptionStatus**](Apis/PublicApi.md#updateUserNotificationPageSubscriptionStatus) | **POST** /user-notifications/set-subscription-state/{subscribedOrUnsubscribed} | Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also | +*PublicApi* | [**updateUserNotificationStatus**](Apis/PublicApi.md#updateUserNotificationStatus) | **POST** /user-notifications/{notificationId}/mark/{newStatus} | | +*PublicApi* | [**uploadImage**](Apis/PublicApi.md#uploadImage) | **POST** /upload-image/{tenantId} | Upload and resize an image | +*PublicApi* | [**voteComment**](Apis/PublicApi.md#voteComment) | **POST** /comments/{tenantId}/{commentId}/vote | | @@ -580,7 +580,6 @@ All URIs are relative to *https://fastcomments.com* - [VoteDeleteResponse](./Models/VoteDeleteResponse.md) - [VoteResponse](./Models/VoteResponse.md) - [VoteResponseUser](./Models/VoteResponseUser.md) - - [VoteResponse_status](./Models/VoteResponse_status.md) - [VoteStyle](./Models/VoteStyle.md) diff --git a/openapitools.json b/openapitools.json index a82623d..f3237ad 100644 --- a/openapitools.json +++ b/openapitools.json @@ -2,6 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "7.14.0" + "version": "7.23.0" } } diff --git a/update.sh b/update.sh index 37ded6c..411aa96 100755 --- a/update.sh +++ b/update.sh @@ -10,7 +10,7 @@ else SPEC_FILE="./openapi.json" fi -java -jar ../openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \ +npx --yes @openapitools/openapi-generator-cli generate \ -i "$SPEC_FILE" \ -g cpp-restsdk \ -o ./client \ @@ -21,7 +21,7 @@ echo "Generated C++ client in ./client" # Generate markdown documentation echo "Generating markdown documentation..." rm -rf ./docs -java -jar ../openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \ +npx --yes @openapitools/openapi-generator-cli generate \ -i "$SPEC_FILE" \ -g markdown \ -o ./docs From 210115577dcb108ef7461b9ab416c258678f6b72 Mon Sep 17 00:00:00 2001 From: winrid Date: Fri, 19 Jun 2026 00:22:30 -0700 Subject: [PATCH 6/8] Fix integration test include for renamed createComment response model --- tests/sso_integration_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sso_integration_test.cpp b/tests/sso_integration_test.cpp index 9c8babf..25b3fda 100644 --- a/tests/sso_integration_test.cpp +++ b/tests/sso_integration_test.cpp @@ -11,7 +11,7 @@ #include "FastCommentsClient/ApiException.h" #include "FastCommentsClient/model/CommentData.h" #include "FastCommentsClient/model/CreateCommentParams.h" -#include "FastCommentsClient/model/SaveComment_200_response.h" +#include "FastCommentsClient/model/SaveCommentsResponseWithPresence.h" #include #include #include From 162efb1641156767db1594a5333ee7a1681a2d10 Mon Sep 17 00:00:00 2001 From: winrid Date: Fri, 19 Jun 2026 00:31:55 -0700 Subject: [PATCH 7/8] Fix getComments test call for added fromDate/toDate params --- tests/sso_integration_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/sso_integration_test.cpp b/tests/sso_integration_test.cpp index 25b3fda..28b676b 100644 --- a/tests/sso_integration_test.cpp +++ b/tests/sso_integration_test.cpp @@ -192,7 +192,9 @@ TEST_F(SSOIntegrationTest, DefaultAPIWithAPIKey) { boost::none, // contextUserId boost::none, // hashTag boost::none, // parentId - boost::none // direction + boost::none, // direction + boost::none, // fromDate + boost::none // toDate ).get(); ASSERT_NE(getResponse, nullptr); From 6323e28ca6f02a8ff21fab29000780fc02cc0cbd Mon Sep 17 00:00:00 2001 From: winrid Date: Fri, 19 Jun 2026 09:53:47 -0700 Subject: [PATCH 8/8] Regenerate C++ client with FastComments generator (restores ModerationApi) The released cpp-restsdk generator silently drops operations whose response types it can't model (all 43 ModerationApi methods + 11 PublicApi methods), producing an incomplete SDK that doesn't match the README. Use the FastComments generator build (which has the nested-map fix and generates the full API) via update.sh. --- .gitignore | 1 + client/README.md | 2 +- client/include/FastCommentsClient/AnyType.h | 2 +- client/include/FastCommentsClient/ApiClient.h | 2 +- .../include/FastCommentsClient/ApiConfiguration.h | 2 +- client/include/FastCommentsClient/ApiException.h | 2 +- client/include/FastCommentsClient/HttpContent.h | 2 +- client/include/FastCommentsClient/IHttpBody.h | 2 +- client/include/FastCommentsClient/JsonBody.h | 2 +- client/include/FastCommentsClient/ModelBase.h | 2 +- .../include/FastCommentsClient/MultipartFormData.h | 2 +- client/include/FastCommentsClient/Object.h | 2 +- client/include/FastCommentsClient/api/DefaultApi.h | 2 +- .../include/FastCommentsClient/api/ModerationApi.h | 2 +- client/include/FastCommentsClient/api/PublicApi.h | 2 +- .../include/FastCommentsClient/model/APIAuditLog.h | 2 +- .../FastCommentsClient/model/APIBanUserChangeLog.h | 2 +- .../model/APIBanUserChangedValues.h | 2 +- .../FastCommentsClient/model/APIBannedUser.h | 2 +- .../model/APIBannedUserWithMultiMatchInfo.h | 2 +- .../include/FastCommentsClient/model/APIComment.h | 2 +- .../FastCommentsClient/model/APICommentBase.h | 2 +- .../FastCommentsClient/model/APICommentBase_meta.h | 2 +- .../model/APICommentCommonBannedUser.h | 2 +- .../model/APICreateUserBadgeResponse.h | 2 +- .../model/APIDomainConfiguration.h | 2 +- .../FastCommentsClient/model/APIEmptyResponse.h | 2 +- .../model/APIEmptySuccessResponse.h | 2 +- client/include/FastCommentsClient/model/APIError.h | 2 +- .../model/APIGetCommentResponse.h | 2 +- .../model/APIGetCommentsResponse.h | 2 +- .../model/APIGetUserBadgeProgressListResponse.h | 2 +- .../model/APIGetUserBadgeProgressResponse.h | 2 +- .../model/APIGetUserBadgeResponse.h | 2 +- .../model/APIGetUserBadgesResponse.h | 2 +- .../APIModerateGetUserBanPreferencesResponse.h | 2 +- .../model/APIModerateUserBanPreferences.h | 2 +- client/include/FastCommentsClient/model/APIPage.h | 2 +- .../include/FastCommentsClient/model/APISSOUser.h | 2 +- .../model/APISaveCommentResponse.h | 2 +- client/include/FastCommentsClient/model/APIStatus.h | 2 +- client/include/FastCommentsClient/model/APITenant.h | 2 +- .../FastCommentsClient/model/APITenantDailyUsage.h | 2 +- client/include/FastCommentsClient/model/APITicket.h | 2 +- .../FastCommentsClient/model/APITicketDetail.h | 2 +- .../FastCommentsClient/model/APITicketFile.h | 2 +- .../FastCommentsClient/model/APIUserSubscription.h | 2 +- .../model/AddDomainConfigParams.h | 2 +- .../model/AddDomainConfigResponse.h | 2 +- .../model/AddDomainConfigResponse_anyOf.h | 2 +- .../FastCommentsClient/model/AddPageAPIResponse.h | 2 +- .../model/AddSSOUserAPIResponse.h | 2 +- .../model/AdjustCommentVotesParams.h | 2 +- .../FastCommentsClient/model/AdjustVotesResponse.h | 2 +- .../model/AggregateQuestionResultsResponse.h | 2 +- .../FastCommentsClient/model/AggregateResponse.h | 2 +- .../FastCommentsClient/model/AggregateTimeBucket.h | 2 +- .../FastCommentsClient/model/AggregationAPIError.h | 2 +- .../FastCommentsClient/model/AggregationItem.h | 2 +- .../FastCommentsClient/model/AggregationOpType.h | 2 +- .../FastCommentsClient/model/AggregationOperation.h | 2 +- .../FastCommentsClient/model/AggregationRequest.h | 2 +- .../model/AggregationRequest_sort.h | 2 +- .../FastCommentsClient/model/AggregationResponse.h | 2 +- .../model/AggregationResponse_stats.h | 2 +- .../FastCommentsClient/model/AggregationValue.h | 2 +- .../model/AwardUserBadgeResponse.h | 2 +- .../model/BanUserFromCommentResult.h | 2 +- .../FastCommentsClient/model/BanUserUndoParams.h | 2 +- .../FastCommentsClient/model/BannedUserMatch.h | 2 +- .../FastCommentsClient/model/BannedUserMatchType.h | 2 +- .../model/BannedUserMatch_matchedOnValue.h | 2 +- .../include/FastCommentsClient/model/BillingInfo.h | 2 +- .../model/BlockFromCommentParams.h | 2 +- .../include/FastCommentsClient/model/BlockSuccess.h | 2 +- .../model/BuildModerationFilterParams.h | 2 +- .../model/BuildModerationFilterResponse.h | 2 +- .../model/BulkAggregateQuestionItem.h | 2 +- .../model/BulkAggregateQuestionResultsRequest.h | 2 +- .../model/BulkAggregateQuestionResultsResponse.h | 2 +- .../model/BulkCreateHashTagsBody.h | 2 +- .../model/BulkCreateHashTagsBody_tags_inner.h | 2 +- .../model/BulkCreateHashTagsResponse.h | 2 +- .../BulkCreateHashTagsResponse_results_inner.h | 2 +- .../FastCommentsClient/model/BulkPreBanParams.h | 2 +- .../FastCommentsClient/model/BulkPreBanSummary.h | 2 +- .../model/ChangeCommentPinStatusResponse.h | 2 +- .../model/ChangeTicketStateBody.h | 2 +- .../model/ChangeTicketStateResponse.h | 2 +- .../model/CheckBlockedCommentsResponse.h | 2 +- .../CombineQuestionResultsWithCommentsResponse.h | 2 +- .../include/FastCommentsClient/model/CommentData.h | 2 +- .../model/CommentHTMLRenderingMode.h | 2 +- .../FastCommentsClient/model/CommentLogData.h | 2 +- .../FastCommentsClient/model/CommentLogEntry.h | 2 +- .../FastCommentsClient/model/CommentLogType.h | 2 +- .../model/CommentQuestionResultsRenderingType.h | 2 +- .../model/CommentQuestionsRequired.h | 2 +- .../model/CommentTextUpdateRequest.h | 2 +- .../model/CommentThreadDeletionMode.h | 2 +- .../FastCommentsClient/model/CommentUserBadgeInfo.h | 2 +- .../model/CommentUserHashTagInfo.h | 2 +- .../model/CommentUserMentionInfo.h | 2 +- .../FastCommentsClient/model/CommenterNameFormats.h | 2 +- .../FastCommentsClient/model/CommentsByIdsParams.h | 2 +- .../FastCommentsClient/model/CreateAPIPageData.h | 2 +- .../FastCommentsClient/model/CreateAPISSOUserData.h | 2 +- .../model/CreateAPIUserSubscriptionData.h | 2 +- .../FastCommentsClient/model/CreateCommentParams.h | 2 +- .../model/CreateEmailTemplateBody.h | 2 +- .../model/CreateEmailTemplateResponse.h | 2 +- .../FastCommentsClient/model/CreateFeedPostParams.h | 2 +- .../model/CreateFeedPostResponse.h | 2 +- .../model/CreateFeedPostsResponse.h | 2 +- .../FastCommentsClient/model/CreateHashTagBody.h | 2 +- .../model/CreateHashTagResponse.h | 2 +- .../FastCommentsClient/model/CreateModeratorBody.h | 2 +- .../model/CreateModeratorResponse.h | 2 +- .../model/CreateQuestionConfigBody.h | 2 +- .../model/CreateQuestionConfigResponse.h | 2 +- .../model/CreateQuestionResultBody.h | 2 +- .../model/CreateQuestionResultResponse.h | 2 +- .../model/CreateSubscriptionAPIResponse.h | 2 +- .../FastCommentsClient/model/CreateTenantBody.h | 2 +- .../model/CreateTenantPackageBody.h | 2 +- .../model/CreateTenantPackageResponse.h | 2 +- .../FastCommentsClient/model/CreateTenantResponse.h | 2 +- .../FastCommentsClient/model/CreateTenantUserBody.h | 2 +- .../model/CreateTenantUserResponse.h | 2 +- .../FastCommentsClient/model/CreateTicketBody.h | 2 +- .../FastCommentsClient/model/CreateTicketResponse.h | 2 +- .../model/CreateUserBadgeParams.h | 2 +- .../FastCommentsClient/model/CreateV1PageReact.h | 2 +- .../model/CustomConfigParameters.h | 2 +- .../FastCommentsClient/model/CustomEmailTemplate.h | 2 +- .../FastCommentsClient/model/DeleteCommentAction.h | 2 +- .../FastCommentsClient/model/DeleteCommentResult.h | 2 +- .../model/DeleteDomainConfigResponse.h | 2 +- .../model/DeleteFeedPostPublicResponse.h | 2 +- .../model/DeleteHashTagRequestBody.h | 2 +- .../model/DeletePageAPIResponse.h | 2 +- .../model/DeleteSSOUserAPIResponse.h | 2 +- .../model/DeleteSubscriptionAPIResponse.h | 2 +- .../model/DeletedCommentResultComment.h | 2 +- .../FastCommentsClient/model/DigestEmailFrequency.h | 2 +- .../model/EmailTemplateDefinition.h | 2 +- .../model/EmailTemplateRenderErrorResponse.h | 2 +- .../FastCommentsClient/model/EventLogEntry.h | 2 +- client/include/FastCommentsClient/model/FComment.h | 2 +- .../FastCommentsClient/model/FComment_meta.h | 2 +- client/include/FastCommentsClient/model/FeedPost.h | 2 +- .../include/FastCommentsClient/model/FeedPostLink.h | 2 +- .../FastCommentsClient/model/FeedPostMediaItem.h | 2 +- .../model/FeedPostMediaItemAsset.h | 2 +- .../FastCommentsClient/model/FeedPostStats.h | 2 +- .../model/FeedPostsStatsResponse.h | 2 +- .../model/FindCommentsByRangeItem.h | 2 +- .../model/FindCommentsByRangeResponse.h | 2 +- .../FastCommentsClient/model/FlagCommentResponse.h | 2 +- .../FastCommentsClient/model/GetAuditLogsResponse.h | 2 +- .../model/GetBannedUsersCountResponse.h | 2 +- .../model/GetBannedUsersFromCommentResponse.h | 2 +- .../model/GetCachedNotificationCountResponse.h | 2 +- .../model/GetCommentBanStatusResponse.h | 2 +- .../model/GetCommentTextResponse.h | 2 +- .../model/GetCommentVoteUserNamesSuccessResponse.h | 2 +- .../model/GetCommentsForUserResponse.h | 2 +- ...GetCommentsResponseWithPresence_PublicComment_.h | 2 +- .../model/GetCommentsResponse_PublicComment_.h | 2 +- .../model/GetDomainConfigResponse.h | 2 +- .../model/GetDomainConfigsResponse.h | 2 +- .../model/GetDomainConfigsResponse_anyOf.h | 2 +- .../model/GetDomainConfigsResponse_anyOf_1.h | 2 +- .../model/GetEmailTemplateDefinitionsResponse.h | 2 +- .../model/GetEmailTemplateRenderErrorsResponse.h | 2 +- .../model/GetEmailTemplateResponse.h | 2 +- .../model/GetEmailTemplatesResponse.h | 2 +- .../FastCommentsClient/model/GetEventLogResponse.h | 2 +- .../FastCommentsClient/model/GetFeedPostsResponse.h | 2 +- .../model/GetGifsSearchResponse.h | 2 +- .../model/GetGifsTrendingResponse.h | 2 +- .../FastCommentsClient/model/GetHashTagsResponse.h | 2 +- .../FastCommentsClient/model/GetModeratorResponse.h | 2 +- .../model/GetModeratorsResponse.h | 2 +- .../model/GetMyNotificationsResponse.h | 2 +- .../model/GetNotificationCountResponse.h | 2 +- .../model/GetNotificationsResponse.h | 2 +- .../model/GetPageByURLIdAPIResponse.h | 2 +- .../FastCommentsClient/model/GetPagesAPIResponse.h | 2 +- .../model/GetPendingWebhookEventCountResponse.h | 2 +- .../model/GetPendingWebhookEventsResponse.h | 2 +- .../model/GetPublicFeedPostsResponse.h | 2 +- .../model/GetPublicPagesResponse.h | 2 +- .../model/GetQuestionConfigResponse.h | 2 +- .../model/GetQuestionConfigsResponse.h | 2 +- .../model/GetQuestionResultResponse.h | 2 +- .../model/GetQuestionResultsResponse.h | 2 +- .../model/GetSSOUserByEmailAPIResponse.h | 2 +- .../model/GetSSOUserByIdAPIResponse.h | 2 +- .../FastCommentsClient/model/GetSSOUsersResponse.h | 2 +- .../model/GetSubscriptionsAPIResponse.h | 2 +- .../model/GetTenantDailyUsagesResponse.h | 2 +- .../model/GetTenantManualBadgesResponse.h | 2 +- .../model/GetTenantPackageResponse.h | 2 +- .../model/GetTenantPackagesResponse.h | 2 +- .../FastCommentsClient/model/GetTenantResponse.h | 2 +- .../model/GetTenantUserResponse.h | 2 +- .../model/GetTenantUsersResponse.h | 2 +- .../FastCommentsClient/model/GetTenantsResponse.h | 2 +- .../FastCommentsClient/model/GetTicketResponse.h | 2 +- .../FastCommentsClient/model/GetTicketsResponse.h | 2 +- .../model/GetTranslationsResponse.h | 2 +- .../model/GetUserInternalProfileResponse.h | 2 +- .../model/GetUserInternalProfileResponse_profile.h | 2 +- .../model/GetUserManualBadgesResponse.h | 2 +- .../model/GetUserNotificationCountResponse.h | 2 +- .../model/GetUserPresenceStatusesResponse.h | 2 +- .../FastCommentsClient/model/GetUserResponse.h | 2 +- .../model/GetUserTrustFactorResponse.h | 2 +- .../FastCommentsClient/model/GetV1PageLikes.h | 2 +- .../model/GetV2PageReactUsersResponse.h | 2 +- .../FastCommentsClient/model/GetV2PageReacts.h | 2 +- .../model/GetVotesForUserResponse.h | 2 +- .../FastCommentsClient/model/GetVotesResponse.h | 2 +- .../FastCommentsClient/model/GifGetLargeResponse.h | 2 +- client/include/FastCommentsClient/model/GifRating.h | 2 +- .../model/GifSearchInternalError.h | 2 +- .../FastCommentsClient/model/GifSearchResponse.h | 2 +- .../model/GifSearchResponse_images_inner_inner.h | 2 +- .../model/HeaderAccountNotification.h | 2 +- .../include/FastCommentsClient/model/HeaderState.h | 2 +- .../FastCommentsClient/model/IgnoredResponse.h | 2 +- .../model/ImageContentProfanityLevel.h | 2 +- .../ImportedAgentApprovalNotificationFrequency.h | 2 +- .../FastCommentsClient/model/ImportedSiteType.h | 2 +- client/include/FastCommentsClient/model/LiveEvent.h | 2 +- .../FastCommentsClient/model/LiveEventType.h | 2 +- .../FastCommentsClient/model/LiveEvent_extraInfo.h | 2 +- .../include/FastCommentsClient/model/MediaAsset.h | 2 +- .../model/MentionAutoCompleteMode.h | 2 +- client/include/FastCommentsClient/model/MetaItem.h | 2 +- .../model/ModerationAPIChildCommentsResponse.h | 2 +- .../FastCommentsClient/model/ModerationAPIComment.h | 2 +- .../model/ModerationAPICommentLog.h | 2 +- .../model/ModerationAPICommentResponse.h | 2 +- .../model/ModerationAPICountCommentsResponse.h | 2 +- .../model/ModerationAPIGetCommentIdsResponse.h | 2 +- .../model/ModerationAPIGetCommentsResponse.h | 2 +- .../model/ModerationAPIGetLogsResponse.h | 2 +- .../model/ModerationCommentSearchResponse.h | 2 +- .../model/ModerationExportResponse.h | 2 +- .../model/ModerationExportStatusResponse.h | 2 +- .../FastCommentsClient/model/ModerationFilter.h | 2 +- .../model/ModerationPageSearchProjected.h | 2 +- .../model/ModerationPageSearchResponse.h | 2 +- .../model/ModerationSiteSearchProjected.h | 2 +- .../model/ModerationSiteSearchResponse.h | 2 +- .../model/ModerationSuggestResponse.h | 2 +- .../model/ModerationUserSearchProjected.h | 2 +- .../model/ModerationUserSearchResponse.h | 2 +- client/include/FastCommentsClient/model/Moderator.h | 2 +- .../FastCommentsClient/model/NotificationAndCount.h | 2 +- .../model/NotificationObjectType.h | 2 +- .../FastCommentsClient/model/NotificationType.h | 2 +- .../FastCommentsClient/model/PageUserEntry.h | 2 +- .../model/PageUsersInfoResponse.h | 2 +- .../model/PageUsersOfflineResponse.h | 2 +- .../model/PageUsersOnlineResponse.h | 2 +- .../include/FastCommentsClient/model/PagesSortBy.h | 2 +- .../model/PatchDomainConfigParams.h | 2 +- .../model/PatchDomainConfigResponse.h | 2 +- .../FastCommentsClient/model/PatchPageAPIResponse.h | 2 +- .../model/PatchSSOUserAPIResponse.h | 2 +- .../model/PendingCommentToSyncOutbound.h | 2 +- .../model/PostRemoveCommentResponse.h | 2 +- .../FastCommentsClient/model/PreBanSummary.h | 2 +- .../FastCommentsClient/model/PubSubComment.h | 2 +- .../FastCommentsClient/model/PubSubCommentBase.h | 2 +- .../include/FastCommentsClient/model/PubSubVote.h | 2 +- .../model/PublicAPIDeleteCommentResponse.h | 2 +- .../model/PublicAPIGetCommentTextResponse.h | 2 +- .../model/PublicAPISetCommentTextResponse.h | 2 +- .../model/PublicBlockFromCommentParams.h | 2 +- .../FastCommentsClient/model/PublicComment.h | 2 +- .../FastCommentsClient/model/PublicCommentBase.h | 2 +- .../model/PublicFeedPostsResponse.h | 2 +- .../include/FastCommentsClient/model/PublicPage.h | 2 +- .../include/FastCommentsClient/model/PublicVote.h | 2 +- .../model/PutDomainConfigResponse.h | 2 +- .../model/PutSSOUserAPIResponse.h | 2 +- .../FastCommentsClient/model/QueryPredicate.h | 2 +- .../FastCommentsClient/model/QueryPredicate_value.h | 2 +- .../FastCommentsClient/model/QuestionConfig.h | 2 +- .../model/QuestionConfig_customOptions_inner.h | 2 +- .../FastCommentsClient/model/QuestionDatum.h | 2 +- .../model/QuestionRenderingType.h | 2 +- .../FastCommentsClient/model/QuestionResult.h | 2 +- .../model/QuestionResultAggregationOverall.h | 2 +- .../model/QuestionSubQuestionVisibility.h | 2 +- .../FastCommentsClient/model/QuestionWhenSave.h | 2 +- .../FastCommentsClient/model/ReactBodyParams.h | 2 +- .../model/ReactFeedPostResponse.h | 2 +- ...e_string_or_null__after_string_or_null___value.h | 2 +- .../model/RemoveCommentActionResponse.h | 2 +- .../model/RemoveUserBadgeResponse.h | 2 +- .../model/RenderEmailTemplateBody.h | 2 +- .../model/RenderEmailTemplateResponse.h | 2 +- .../model/RenderableUserNotification.h | 2 +- .../model/RepeatCommentCheckIgnoredReason.h | 2 +- .../model/RepeatCommentHandlingAction.h | 2 +- .../model/ReplaceTenantPackageBody.h | 2 +- .../model/ReplaceTenantUserBody.h | 2 +- .../model/ResetUserNotificationsResponse.h | 2 +- client/include/FastCommentsClient/model/SORT_DIR.h | 2 +- .../FastCommentsClient/model/SSOSecurityLevel.h | 2 +- .../model/SaveCommentResponseOptimized.h | 2 +- .../model/SaveCommentsBulkResponse.h | 2 +- .../model/SaveCommentsResponseWithPresence.h | 2 +- .../FastCommentsClient/model/SearchUsersResponse.h | 2 +- .../FastCommentsClient/model/SearchUsersResult.h | 2 +- .../model/SearchUsersSectionedResponse.h | 2 +- .../model/SetCommentApprovedResponse.h | 2 +- .../FastCommentsClient/model/SetCommentTextParams.h | 2 +- .../model/SetCommentTextResponse.h | 2 +- .../FastCommentsClient/model/SetCommentTextResult.h | 2 +- .../model/SetUserTrustFactorResponse.h | 2 +- .../include/FastCommentsClient/model/SizePreset.h | 2 +- .../FastCommentsClient/model/SortDirections.h | 2 +- client/include/FastCommentsClient/model/SpamRule.h | 2 +- client/include/FastCommentsClient/model/TOSConfig.h | 2 +- .../include/FastCommentsClient/model/TenantBadge.h | 2 +- .../FastCommentsClient/model/TenantHashTag.h | 2 +- .../FastCommentsClient/model/TenantPackage.h | 2 +- .../model/UnBlockFromCommentParams.h | 2 +- .../FastCommentsClient/model/UnblockSuccess.h | 2 +- .../model/UpdatableCommentParams.h | 2 +- .../FastCommentsClient/model/UpdateAPIPageData.h | 2 +- .../FastCommentsClient/model/UpdateAPISSOUserData.h | 2 +- .../model/UpdateAPIUserSubscriptionData.h | 2 +- .../model/UpdateDomainConfigParams.h | 2 +- .../model/UpdateEmailTemplateBody.h | 2 +- .../FastCommentsClient/model/UpdateFeedPostParams.h | 2 +- .../FastCommentsClient/model/UpdateHashTagBody.h | 2 +- .../model/UpdateHashTagResponse.h | 2 +- .../FastCommentsClient/model/UpdateModeratorBody.h | 2 +- .../model/UpdateNotificationBody.h | 2 +- .../model/UpdateQuestionConfigBody.h | 2 +- .../model/UpdateQuestionResultBody.h | 2 +- .../model/UpdateSubscriptionAPIResponse.h | 2 +- .../FastCommentsClient/model/UpdateTenantBody.h | 2 +- .../model/UpdateTenantPackageBody.h | 2 +- .../FastCommentsClient/model/UpdateTenantUserBody.h | 2 +- .../model/UpdateUserBadgeParams.h | 2 +- ...rNotificationCommentSubscriptionStatusResponse.h | 2 +- ...UserNotificationPageSubscriptionStatusResponse.h | 2 +- .../model/UpdateUserNotificationStatusResponse.h | 2 +- .../FastCommentsClient/model/UploadImageResponse.h | 2 +- client/include/FastCommentsClient/model/User.h | 2 +- client/include/FastCommentsClient/model/UserBadge.h | 2 +- .../FastCommentsClient/model/UserBadgeProgress.h | 2 +- .../FastCommentsClient/model/UserNotification.h | 2 +- .../model/UserNotificationCount.h | 2 +- .../model/UserNotificationWriteResponse.h | 2 +- .../FastCommentsClient/model/UserPresenceData.h | 2 +- .../FastCommentsClient/model/UserReactsResponse.h | 2 +- .../FastCommentsClient/model/UserSearchResult.h | 2 +- .../FastCommentsClient/model/UserSearchSection.h | 2 +- .../model/UserSearchSectionResult.h | 2 +- .../FastCommentsClient/model/UserSessionInfo.h | 2 +- .../FastCommentsClient/model/UsersListLocation.h | 2 +- .../FastCommentsClient/model/VoteBodyParams.h | 2 +- .../FastCommentsClient/model/VoteDeleteResponse.h | 2 +- .../include/FastCommentsClient/model/VoteResponse.h | 2 +- .../FastCommentsClient/model/VoteResponseUser.h | 2 +- client/include/FastCommentsClient/model/VoteStyle.h | 2 +- client/src/AnyType.cpp | 2 +- client/src/ApiClient.cpp | 2 +- client/src/ApiConfiguration.cpp | 2 +- client/src/ApiException.cpp | 2 +- client/src/HttpContent.cpp | 2 +- client/src/JsonBody.cpp | 2 +- client/src/ModelBase.cpp | 2 +- client/src/MultipartFormData.cpp | 2 +- client/src/Object.cpp | 2 +- client/src/api/DefaultApi.cpp | 2 +- client/src/api/ModerationApi.cpp | 2 +- client/src/api/PublicApi.cpp | 2 +- client/src/model/APIAuditLog.cpp | 2 +- client/src/model/APIBanUserChangeLog.cpp | 2 +- client/src/model/APIBanUserChangedValues.cpp | 2 +- client/src/model/APIBannedUser.cpp | 2 +- .../src/model/APIBannedUserWithMultiMatchInfo.cpp | 2 +- client/src/model/APIComment.cpp | 2 +- client/src/model/APICommentBase.cpp | 2 +- client/src/model/APICommentBase_meta.cpp | 2 +- client/src/model/APICommentCommonBannedUser.cpp | 2 +- client/src/model/APICreateUserBadgeResponse.cpp | 2 +- client/src/model/APIDomainConfiguration.cpp | 2 +- client/src/model/APIEmptyResponse.cpp | 2 +- client/src/model/APIEmptySuccessResponse.cpp | 2 +- client/src/model/APIError.cpp | 2 +- client/src/model/APIGetCommentResponse.cpp | 2 +- client/src/model/APIGetCommentsResponse.cpp | 2 +- .../model/APIGetUserBadgeProgressListResponse.cpp | 2 +- .../src/model/APIGetUserBadgeProgressResponse.cpp | 2 +- client/src/model/APIGetUserBadgeResponse.cpp | 2 +- client/src/model/APIGetUserBadgesResponse.cpp | 2 +- .../APIModerateGetUserBanPreferencesResponse.cpp | 2 +- client/src/model/APIModerateUserBanPreferences.cpp | 2 +- client/src/model/APIPage.cpp | 2 +- client/src/model/APISSOUser.cpp | 2 +- client/src/model/APISaveCommentResponse.cpp | 2 +- client/src/model/APIStatus.cpp | 2 +- client/src/model/APITenant.cpp | 2 +- client/src/model/APITenantDailyUsage.cpp | 2 +- client/src/model/APITicket.cpp | 2 +- client/src/model/APITicketDetail.cpp | 2 +- client/src/model/APITicketFile.cpp | 2 +- client/src/model/APIUserSubscription.cpp | 2 +- client/src/model/AddDomainConfigParams.cpp | 2 +- client/src/model/AddDomainConfigResponse.cpp | 2 +- client/src/model/AddDomainConfigResponse_anyOf.cpp | 2 +- client/src/model/AddPageAPIResponse.cpp | 2 +- client/src/model/AddSSOUserAPIResponse.cpp | 2 +- client/src/model/AdjustCommentVotesParams.cpp | 2 +- client/src/model/AdjustVotesResponse.cpp | 2 +- .../src/model/AggregateQuestionResultsResponse.cpp | 2 +- client/src/model/AggregateResponse.cpp | 2 +- client/src/model/AggregateTimeBucket.cpp | 2 +- client/src/model/AggregationAPIError.cpp | 2 +- client/src/model/AggregationItem.cpp | 2 +- client/src/model/AggregationOpType.cpp | 2 +- client/src/model/AggregationOperation.cpp | 2 +- client/src/model/AggregationRequest.cpp | 2 +- client/src/model/AggregationRequest_sort.cpp | 2 +- client/src/model/AggregationResponse.cpp | 2 +- client/src/model/AggregationResponse_stats.cpp | 2 +- client/src/model/AggregationValue.cpp | 2 +- client/src/model/AwardUserBadgeResponse.cpp | 2 +- client/src/model/BanUserFromCommentResult.cpp | 2 +- client/src/model/BanUserUndoParams.cpp | 2 +- client/src/model/BannedUserMatch.cpp | 2 +- client/src/model/BannedUserMatchType.cpp | 2 +- client/src/model/BannedUserMatch_matchedOnValue.cpp | 2 +- client/src/model/BillingInfo.cpp | 2 +- client/src/model/BlockFromCommentParams.cpp | 2 +- client/src/model/BlockSuccess.cpp | 2 +- client/src/model/BuildModerationFilterParams.cpp | 2 +- client/src/model/BuildModerationFilterResponse.cpp | 2 +- client/src/model/BulkAggregateQuestionItem.cpp | 2 +- .../model/BulkAggregateQuestionResultsRequest.cpp | 2 +- .../model/BulkAggregateQuestionResultsResponse.cpp | 2 +- client/src/model/BulkCreateHashTagsBody.cpp | 2 +- .../src/model/BulkCreateHashTagsBody_tags_inner.cpp | 2 +- client/src/model/BulkCreateHashTagsResponse.cpp | 2 +- .../BulkCreateHashTagsResponse_results_inner.cpp | 2 +- client/src/model/BulkPreBanParams.cpp | 2 +- client/src/model/BulkPreBanSummary.cpp | 2 +- client/src/model/ChangeCommentPinStatusResponse.cpp | 2 +- client/src/model/ChangeTicketStateBody.cpp | 2 +- client/src/model/ChangeTicketStateResponse.cpp | 2 +- client/src/model/CheckBlockedCommentsResponse.cpp | 2 +- .../CombineQuestionResultsWithCommentsResponse.cpp | 2 +- client/src/model/CommentData.cpp | 2 +- client/src/model/CommentHTMLRenderingMode.cpp | 2 +- client/src/model/CommentLogData.cpp | 2 +- client/src/model/CommentLogEntry.cpp | 2 +- client/src/model/CommentLogType.cpp | 2 +- .../model/CommentQuestionResultsRenderingType.cpp | 2 +- client/src/model/CommentQuestionsRequired.cpp | 2 +- client/src/model/CommentTextUpdateRequest.cpp | 2 +- client/src/model/CommentThreadDeletionMode.cpp | 2 +- client/src/model/CommentUserBadgeInfo.cpp | 2 +- client/src/model/CommentUserHashTagInfo.cpp | 2 +- client/src/model/CommentUserMentionInfo.cpp | 2 +- client/src/model/CommenterNameFormats.cpp | 2 +- client/src/model/CommentsByIdsParams.cpp | 2 +- client/src/model/CreateAPIPageData.cpp | 2 +- client/src/model/CreateAPISSOUserData.cpp | 2 +- client/src/model/CreateAPIUserSubscriptionData.cpp | 2 +- client/src/model/CreateCommentParams.cpp | 2 +- client/src/model/CreateEmailTemplateBody.cpp | 2 +- client/src/model/CreateEmailTemplateResponse.cpp | 2 +- client/src/model/CreateFeedPostParams.cpp | 2 +- client/src/model/CreateFeedPostResponse.cpp | 2 +- client/src/model/CreateFeedPostsResponse.cpp | 2 +- client/src/model/CreateHashTagBody.cpp | 2 +- client/src/model/CreateHashTagResponse.cpp | 2 +- client/src/model/CreateModeratorBody.cpp | 2 +- client/src/model/CreateModeratorResponse.cpp | 2 +- client/src/model/CreateQuestionConfigBody.cpp | 2 +- client/src/model/CreateQuestionConfigResponse.cpp | 2 +- client/src/model/CreateQuestionResultBody.cpp | 2 +- client/src/model/CreateQuestionResultResponse.cpp | 2 +- client/src/model/CreateSubscriptionAPIResponse.cpp | 2 +- client/src/model/CreateTenantBody.cpp | 2 +- client/src/model/CreateTenantPackageBody.cpp | 2 +- client/src/model/CreateTenantPackageResponse.cpp | 2 +- client/src/model/CreateTenantResponse.cpp | 2 +- client/src/model/CreateTenantUserBody.cpp | 2 +- client/src/model/CreateTenantUserResponse.cpp | 2 +- client/src/model/CreateTicketBody.cpp | 2 +- client/src/model/CreateTicketResponse.cpp | 2 +- client/src/model/CreateUserBadgeParams.cpp | 2 +- client/src/model/CreateV1PageReact.cpp | 2 +- client/src/model/CustomConfigParameters.cpp | 2 +- client/src/model/CustomEmailTemplate.cpp | 2 +- client/src/model/DeleteCommentAction.cpp | 2 +- client/src/model/DeleteCommentResult.cpp | 2 +- client/src/model/DeleteDomainConfigResponse.cpp | 2 +- client/src/model/DeleteFeedPostPublicResponse.cpp | 2 +- client/src/model/DeleteHashTagRequestBody.cpp | 2 +- client/src/model/DeletePageAPIResponse.cpp | 2 +- client/src/model/DeleteSSOUserAPIResponse.cpp | 2 +- client/src/model/DeleteSubscriptionAPIResponse.cpp | 2 +- client/src/model/DeletedCommentResultComment.cpp | 2 +- client/src/model/DigestEmailFrequency.cpp | 2 +- client/src/model/EmailTemplateDefinition.cpp | 2 +- .../src/model/EmailTemplateRenderErrorResponse.cpp | 2 +- client/src/model/EventLogEntry.cpp | 2 +- client/src/model/FComment.cpp | 2 +- client/src/model/FComment_meta.cpp | 2 +- client/src/model/FeedPost.cpp | 2 +- client/src/model/FeedPostLink.cpp | 2 +- client/src/model/FeedPostMediaItem.cpp | 2 +- client/src/model/FeedPostMediaItemAsset.cpp | 2 +- client/src/model/FeedPostStats.cpp | 2 +- client/src/model/FeedPostsStatsResponse.cpp | 2 +- client/src/model/FindCommentsByRangeItem.cpp | 2 +- client/src/model/FindCommentsByRangeResponse.cpp | 2 +- client/src/model/FlagCommentResponse.cpp | 2 +- client/src/model/GetAuditLogsResponse.cpp | 2 +- client/src/model/GetBannedUsersCountResponse.cpp | 2 +- .../src/model/GetBannedUsersFromCommentResponse.cpp | 2 +- .../model/GetCachedNotificationCountResponse.cpp | 2 +- client/src/model/GetCommentBanStatusResponse.cpp | 2 +- client/src/model/GetCommentTextResponse.cpp | 2 +- .../GetCommentVoteUserNamesSuccessResponse.cpp | 2 +- client/src/model/GetCommentsForUserResponse.cpp | 2 +- ...tCommentsResponseWithPresence_PublicComment_.cpp | 2 +- .../model/GetCommentsResponse_PublicComment_.cpp | 2 +- client/src/model/GetDomainConfigResponse.cpp | 2 +- client/src/model/GetDomainConfigsResponse.cpp | 2 +- client/src/model/GetDomainConfigsResponse_anyOf.cpp | 2 +- .../src/model/GetDomainConfigsResponse_anyOf_1.cpp | 2 +- .../model/GetEmailTemplateDefinitionsResponse.cpp | 2 +- .../model/GetEmailTemplateRenderErrorsResponse.cpp | 2 +- client/src/model/GetEmailTemplateResponse.cpp | 2 +- client/src/model/GetEmailTemplatesResponse.cpp | 2 +- client/src/model/GetEventLogResponse.cpp | 2 +- client/src/model/GetFeedPostsResponse.cpp | 2 +- client/src/model/GetGifsSearchResponse.cpp | 2 +- client/src/model/GetGifsTrendingResponse.cpp | 2 +- client/src/model/GetHashTagsResponse.cpp | 2 +- client/src/model/GetModeratorResponse.cpp | 2 +- client/src/model/GetModeratorsResponse.cpp | 2 +- client/src/model/GetMyNotificationsResponse.cpp | 2 +- client/src/model/GetNotificationCountResponse.cpp | 2 +- client/src/model/GetNotificationsResponse.cpp | 2 +- client/src/model/GetPageByURLIdAPIResponse.cpp | 2 +- client/src/model/GetPagesAPIResponse.cpp | 2 +- .../model/GetPendingWebhookEventCountResponse.cpp | 2 +- .../src/model/GetPendingWebhookEventsResponse.cpp | 2 +- client/src/model/GetPublicFeedPostsResponse.cpp | 2 +- client/src/model/GetPublicPagesResponse.cpp | 2 +- client/src/model/GetQuestionConfigResponse.cpp | 2 +- client/src/model/GetQuestionConfigsResponse.cpp | 2 +- client/src/model/GetQuestionResultResponse.cpp | 2 +- client/src/model/GetQuestionResultsResponse.cpp | 2 +- client/src/model/GetSSOUserByEmailAPIResponse.cpp | 2 +- client/src/model/GetSSOUserByIdAPIResponse.cpp | 2 +- client/src/model/GetSSOUsersResponse.cpp | 2 +- client/src/model/GetSubscriptionsAPIResponse.cpp | 2 +- client/src/model/GetTenantDailyUsagesResponse.cpp | 2 +- client/src/model/GetTenantManualBadgesResponse.cpp | 2 +- client/src/model/GetTenantPackageResponse.cpp | 2 +- client/src/model/GetTenantPackagesResponse.cpp | 2 +- client/src/model/GetTenantResponse.cpp | 2 +- client/src/model/GetTenantUserResponse.cpp | 2 +- client/src/model/GetTenantUsersResponse.cpp | 2 +- client/src/model/GetTenantsResponse.cpp | 2 +- client/src/model/GetTicketResponse.cpp | 2 +- client/src/model/GetTicketsResponse.cpp | 2 +- client/src/model/GetTranslationsResponse.cpp | 2 +- client/src/model/GetUserInternalProfileResponse.cpp | 2 +- .../GetUserInternalProfileResponse_profile.cpp | 2 +- client/src/model/GetUserManualBadgesResponse.cpp | 2 +- .../src/model/GetUserNotificationCountResponse.cpp | 2 +- .../src/model/GetUserPresenceStatusesResponse.cpp | 2 +- client/src/model/GetUserResponse.cpp | 2 +- client/src/model/GetUserTrustFactorResponse.cpp | 2 +- client/src/model/GetV1PageLikes.cpp | 2 +- client/src/model/GetV2PageReactUsersResponse.cpp | 2 +- client/src/model/GetV2PageReacts.cpp | 2 +- client/src/model/GetVotesForUserResponse.cpp | 2 +- client/src/model/GetVotesResponse.cpp | 2 +- client/src/model/GifGetLargeResponse.cpp | 2 +- client/src/model/GifRating.cpp | 2 +- client/src/model/GifSearchInternalError.cpp | 2 +- client/src/model/GifSearchResponse.cpp | 2 +- .../model/GifSearchResponse_images_inner_inner.cpp | 2 +- client/src/model/HeaderAccountNotification.cpp | 2 +- client/src/model/HeaderState.cpp | 2 +- client/src/model/IgnoredResponse.cpp | 2 +- client/src/model/ImageContentProfanityLevel.cpp | 2 +- .../ImportedAgentApprovalNotificationFrequency.cpp | 2 +- client/src/model/ImportedSiteType.cpp | 2 +- client/src/model/LiveEvent.cpp | 2 +- client/src/model/LiveEventType.cpp | 2 +- client/src/model/LiveEvent_extraInfo.cpp | 2 +- client/src/model/MediaAsset.cpp | 2 +- client/src/model/MentionAutoCompleteMode.cpp | 2 +- client/src/model/MetaItem.cpp | 2 +- .../model/ModerationAPIChildCommentsResponse.cpp | 2 +- client/src/model/ModerationAPIComment.cpp | 2 +- client/src/model/ModerationAPICommentLog.cpp | 2 +- client/src/model/ModerationAPICommentResponse.cpp | 2 +- .../model/ModerationAPICountCommentsResponse.cpp | 2 +- .../model/ModerationAPIGetCommentIdsResponse.cpp | 2 +- .../src/model/ModerationAPIGetCommentsResponse.cpp | 2 +- client/src/model/ModerationAPIGetLogsResponse.cpp | 2 +- .../src/model/ModerationCommentSearchResponse.cpp | 2 +- client/src/model/ModerationExportResponse.cpp | 2 +- client/src/model/ModerationExportStatusResponse.cpp | 2 +- client/src/model/ModerationFilter.cpp | 2 +- client/src/model/ModerationPageSearchProjected.cpp | 2 +- client/src/model/ModerationPageSearchResponse.cpp | 2 +- client/src/model/ModerationSiteSearchProjected.cpp | 2 +- client/src/model/ModerationSiteSearchResponse.cpp | 2 +- client/src/model/ModerationSuggestResponse.cpp | 2 +- client/src/model/ModerationUserSearchProjected.cpp | 2 +- client/src/model/ModerationUserSearchResponse.cpp | 2 +- client/src/model/Moderator.cpp | 2 +- client/src/model/NotificationAndCount.cpp | 2 +- client/src/model/NotificationObjectType.cpp | 2 +- client/src/model/NotificationType.cpp | 2 +- client/src/model/PageUserEntry.cpp | 2 +- client/src/model/PageUsersInfoResponse.cpp | 2 +- client/src/model/PageUsersOfflineResponse.cpp | 2 +- client/src/model/PageUsersOnlineResponse.cpp | 2 +- client/src/model/PagesSortBy.cpp | 2 +- client/src/model/PatchDomainConfigParams.cpp | 2 +- client/src/model/PatchDomainConfigResponse.cpp | 2 +- client/src/model/PatchPageAPIResponse.cpp | 2 +- client/src/model/PatchSSOUserAPIResponse.cpp | 2 +- client/src/model/PendingCommentToSyncOutbound.cpp | 2 +- client/src/model/PostRemoveCommentResponse.cpp | 2 +- client/src/model/PreBanSummary.cpp | 2 +- client/src/model/PubSubComment.cpp | 2 +- client/src/model/PubSubCommentBase.cpp | 2 +- client/src/model/PubSubVote.cpp | 2 +- client/src/model/PublicAPIDeleteCommentResponse.cpp | 2 +- .../src/model/PublicAPIGetCommentTextResponse.cpp | 2 +- .../src/model/PublicAPISetCommentTextResponse.cpp | 2 +- client/src/model/PublicBlockFromCommentParams.cpp | 2 +- client/src/model/PublicComment.cpp | 2 +- client/src/model/PublicCommentBase.cpp | 2 +- client/src/model/PublicFeedPostsResponse.cpp | 2 +- client/src/model/PublicPage.cpp | 2 +- client/src/model/PublicVote.cpp | 2 +- client/src/model/PutDomainConfigResponse.cpp | 2 +- client/src/model/PutSSOUserAPIResponse.cpp | 2 +- client/src/model/QueryPredicate.cpp | 2 +- client/src/model/QueryPredicate_value.cpp | 2 +- client/src/model/QuestionConfig.cpp | 2 +- .../model/QuestionConfig_customOptions_inner.cpp | 2 +- client/src/model/QuestionDatum.cpp | 2 +- client/src/model/QuestionRenderingType.cpp | 2 +- client/src/model/QuestionResult.cpp | 2 +- .../src/model/QuestionResultAggregationOverall.cpp | 2 +- client/src/model/QuestionSubQuestionVisibility.cpp | 2 +- client/src/model/QuestionWhenSave.cpp | 2 +- client/src/model/ReactBodyParams.cpp | 2 +- client/src/model/ReactFeedPostResponse.cpp | 2 +- ...string_or_null__after_string_or_null___value.cpp | 2 +- client/src/model/RemoveCommentActionResponse.cpp | 2 +- client/src/model/RemoveUserBadgeResponse.cpp | 2 +- client/src/model/RenderEmailTemplateBody.cpp | 2 +- client/src/model/RenderEmailTemplateResponse.cpp | 2 +- client/src/model/RenderableUserNotification.cpp | 2 +- .../src/model/RepeatCommentCheckIgnoredReason.cpp | 2 +- client/src/model/RepeatCommentHandlingAction.cpp | 2 +- client/src/model/ReplaceTenantPackageBody.cpp | 2 +- client/src/model/ReplaceTenantUserBody.cpp | 2 +- client/src/model/ResetUserNotificationsResponse.cpp | 2 +- client/src/model/SORT_DIR.cpp | 2 +- client/src/model/SSOSecurityLevel.cpp | 2 +- client/src/model/SaveCommentResponseOptimized.cpp | 2 +- client/src/model/SaveCommentsBulkResponse.cpp | 2 +- .../src/model/SaveCommentsResponseWithPresence.cpp | 2 +- client/src/model/SearchUsersResponse.cpp | 2 +- client/src/model/SearchUsersResult.cpp | 2 +- client/src/model/SearchUsersSectionedResponse.cpp | 2 +- client/src/model/SetCommentApprovedResponse.cpp | 2 +- client/src/model/SetCommentTextParams.cpp | 2 +- client/src/model/SetCommentTextResponse.cpp | 2 +- client/src/model/SetCommentTextResult.cpp | 2 +- client/src/model/SetUserTrustFactorResponse.cpp | 2 +- client/src/model/SizePreset.cpp | 2 +- client/src/model/SortDirections.cpp | 2 +- client/src/model/SpamRule.cpp | 2 +- client/src/model/TOSConfig.cpp | 2 +- client/src/model/TenantBadge.cpp | 2 +- client/src/model/TenantHashTag.cpp | 2 +- client/src/model/TenantPackage.cpp | 2 +- client/src/model/UnBlockFromCommentParams.cpp | 2 +- client/src/model/UnblockSuccess.cpp | 2 +- client/src/model/UpdatableCommentParams.cpp | 2 +- client/src/model/UpdateAPIPageData.cpp | 2 +- client/src/model/UpdateAPISSOUserData.cpp | 2 +- client/src/model/UpdateAPIUserSubscriptionData.cpp | 2 +- client/src/model/UpdateDomainConfigParams.cpp | 2 +- client/src/model/UpdateEmailTemplateBody.cpp | 2 +- client/src/model/UpdateFeedPostParams.cpp | 2 +- client/src/model/UpdateHashTagBody.cpp | 2 +- client/src/model/UpdateHashTagResponse.cpp | 2 +- client/src/model/UpdateModeratorBody.cpp | 2 +- client/src/model/UpdateNotificationBody.cpp | 2 +- client/src/model/UpdateQuestionConfigBody.cpp | 2 +- client/src/model/UpdateQuestionResultBody.cpp | 2 +- client/src/model/UpdateSubscriptionAPIResponse.cpp | 2 +- client/src/model/UpdateTenantBody.cpp | 2 +- client/src/model/UpdateTenantPackageBody.cpp | 2 +- client/src/model/UpdateTenantUserBody.cpp | 2 +- client/src/model/UpdateUserBadgeParams.cpp | 2 +- ...otificationCommentSubscriptionStatusResponse.cpp | 2 +- ...erNotificationPageSubscriptionStatusResponse.cpp | 2 +- .../model/UpdateUserNotificationStatusResponse.cpp | 2 +- client/src/model/UploadImageResponse.cpp | 2 +- client/src/model/User.cpp | 2 +- client/src/model/UserBadge.cpp | 2 +- client/src/model/UserBadgeProgress.cpp | 2 +- client/src/model/UserNotification.cpp | 2 +- client/src/model/UserNotificationCount.cpp | 2 +- client/src/model/UserNotificationWriteResponse.cpp | 2 +- client/src/model/UserPresenceData.cpp | 2 +- client/src/model/UserReactsResponse.cpp | 2 +- client/src/model/UserSearchResult.cpp | 2 +- client/src/model/UserSearchSection.cpp | 2 +- client/src/model/UserSearchSectionResult.cpp | 2 +- client/src/model/UserSessionInfo.cpp | 2 +- client/src/model/UsersListLocation.cpp | 2 +- client/src/model/VoteBodyParams.cpp | 2 +- client/src/model/VoteDeleteResponse.cpp | 2 +- client/src/model/VoteResponse.cpp | 2 +- client/src/model/VoteResponseUser.cpp | 2 +- client/src/model/VoteStyle.cpp | 2 +- docs/Models/AddDomainConfigResponse.md | 6 +++--- docs/Models/AggregateResponse.md | 6 +++--- .../BulkCreateHashTagsResponse_results_inner.md | 6 +++--- docs/Models/GetDomainConfigResponse.md | 6 +++--- docs/Models/GetDomainConfigsResponse.md | 6 +++--- docs/Models/GetGifsSearchResponse.md | 4 ++-- docs/Models/GetGifsTrendingResponse.md | 4 ++-- docs/Models/PatchDomainConfigResponse.md | 6 +++--- docs/Models/PutDomainConfigResponse.md | 6 +++--- docs/Models/SaveCommentsBulkResponse.md | 8 ++++---- docs/Models/SearchUsersResult.md | 4 ++-- ...NotificationCommentSubscriptionStatusResponse.md | 6 +++--- ...serNotificationPageSubscriptionStatusResponse.md | 6 +++--- docs/Models/UpdateUserNotificationStatusResponse.md | 6 +++--- update.sh | 13 +++++++++++-- 762 files changed, 798 insertions(+), 788 deletions(-) diff --git a/.gitignore b/.gitignore index 3b21089..03b36e7 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ Makefile # OpenAPI Generator metadata .openapi-generator/ .openapi-generator-ignore +openapi-generator-cli.jar diff --git a/client/README.md b/client/README.md index 64773ea..1d58458 100644 --- a/client/README.md +++ b/client/README.md @@ -7,7 +7,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat - API version: 0.0.0 - Package version: 1.2.1 -- Generator version: 7.23.0 +- Generator version: 7.23.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.CppRestSdkClientCodegen - API namespace: org.openapitools.client.api diff --git a/client/include/FastCommentsClient/AnyType.h b/client/include/FastCommentsClient/AnyType.h index ca4465b..4e22812 100644 --- a/client/include/FastCommentsClient/AnyType.h +++ b/client/include/FastCommentsClient/AnyType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/ApiClient.h b/client/include/FastCommentsClient/ApiClient.h index f211a4d..e6a87b0 100644 --- a/client/include/FastCommentsClient/ApiClient.h +++ b/client/include/FastCommentsClient/ApiClient.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/ApiConfiguration.h b/client/include/FastCommentsClient/ApiConfiguration.h index 5255c38..9d03d19 100644 --- a/client/include/FastCommentsClient/ApiConfiguration.h +++ b/client/include/FastCommentsClient/ApiConfiguration.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/ApiException.h b/client/include/FastCommentsClient/ApiException.h index 66f8b6f..b71f92f 100644 --- a/client/include/FastCommentsClient/ApiException.h +++ b/client/include/FastCommentsClient/ApiException.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/HttpContent.h b/client/include/FastCommentsClient/HttpContent.h index 1e5056f..4934a79 100644 --- a/client/include/FastCommentsClient/HttpContent.h +++ b/client/include/FastCommentsClient/HttpContent.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/IHttpBody.h b/client/include/FastCommentsClient/IHttpBody.h index 306e635..81e4966 100644 --- a/client/include/FastCommentsClient/IHttpBody.h +++ b/client/include/FastCommentsClient/IHttpBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/JsonBody.h b/client/include/FastCommentsClient/JsonBody.h index 2930131..178a90b 100644 --- a/client/include/FastCommentsClient/JsonBody.h +++ b/client/include/FastCommentsClient/JsonBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/ModelBase.h b/client/include/FastCommentsClient/ModelBase.h index e949f4e..6e81b83 100644 --- a/client/include/FastCommentsClient/ModelBase.h +++ b/client/include/FastCommentsClient/ModelBase.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/MultipartFormData.h b/client/include/FastCommentsClient/MultipartFormData.h index b015322..6c5fee8 100644 --- a/client/include/FastCommentsClient/MultipartFormData.h +++ b/client/include/FastCommentsClient/MultipartFormData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/Object.h b/client/include/FastCommentsClient/Object.h index 24b706e..e67c2e4 100644 --- a/client/include/FastCommentsClient/Object.h +++ b/client/include/FastCommentsClient/Object.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/api/DefaultApi.h b/client/include/FastCommentsClient/api/DefaultApi.h index 82d7ae3..a2d41a8 100644 --- a/client/include/FastCommentsClient/api/DefaultApi.h +++ b/client/include/FastCommentsClient/api/DefaultApi.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/api/ModerationApi.h b/client/include/FastCommentsClient/api/ModerationApi.h index 8b1102b..9f34968 100644 --- a/client/include/FastCommentsClient/api/ModerationApi.h +++ b/client/include/FastCommentsClient/api/ModerationApi.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/api/PublicApi.h b/client/include/FastCommentsClient/api/PublicApi.h index 2b40962..29db646 100644 --- a/client/include/FastCommentsClient/api/PublicApi.h +++ b/client/include/FastCommentsClient/api/PublicApi.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIAuditLog.h b/client/include/FastCommentsClient/model/APIAuditLog.h index 9305bfd..07e6efa 100644 --- a/client/include/FastCommentsClient/model/APIAuditLog.h +++ b/client/include/FastCommentsClient/model/APIAuditLog.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIBanUserChangeLog.h b/client/include/FastCommentsClient/model/APIBanUserChangeLog.h index 849b79a..a8b4d3f 100644 --- a/client/include/FastCommentsClient/model/APIBanUserChangeLog.h +++ b/client/include/FastCommentsClient/model/APIBanUserChangeLog.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIBanUserChangedValues.h b/client/include/FastCommentsClient/model/APIBanUserChangedValues.h index 2d6825e..b5c2651 100644 --- a/client/include/FastCommentsClient/model/APIBanUserChangedValues.h +++ b/client/include/FastCommentsClient/model/APIBanUserChangedValues.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIBannedUser.h b/client/include/FastCommentsClient/model/APIBannedUser.h index 10cf0f9..2441452 100644 --- a/client/include/FastCommentsClient/model/APIBannedUser.h +++ b/client/include/FastCommentsClient/model/APIBannedUser.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h b/client/include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h index 80ed644..7063d0a 100644 --- a/client/include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h +++ b/client/include/FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIComment.h b/client/include/FastCommentsClient/model/APIComment.h index 3c0de63..a324841 100644 --- a/client/include/FastCommentsClient/model/APIComment.h +++ b/client/include/FastCommentsClient/model/APIComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APICommentBase.h b/client/include/FastCommentsClient/model/APICommentBase.h index 6bc90f7..8900c69 100644 --- a/client/include/FastCommentsClient/model/APICommentBase.h +++ b/client/include/FastCommentsClient/model/APICommentBase.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APICommentBase_meta.h b/client/include/FastCommentsClient/model/APICommentBase_meta.h index b7b1f71..dcf6fea 100644 --- a/client/include/FastCommentsClient/model/APICommentBase_meta.h +++ b/client/include/FastCommentsClient/model/APICommentBase_meta.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APICommentCommonBannedUser.h b/client/include/FastCommentsClient/model/APICommentCommonBannedUser.h index 7d5fe95..a3cf6a7 100644 --- a/client/include/FastCommentsClient/model/APICommentCommonBannedUser.h +++ b/client/include/FastCommentsClient/model/APICommentCommonBannedUser.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APICreateUserBadgeResponse.h b/client/include/FastCommentsClient/model/APICreateUserBadgeResponse.h index fdabd18..e082850 100644 --- a/client/include/FastCommentsClient/model/APICreateUserBadgeResponse.h +++ b/client/include/FastCommentsClient/model/APICreateUserBadgeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIDomainConfiguration.h b/client/include/FastCommentsClient/model/APIDomainConfiguration.h index d3429ec..e148205 100644 --- a/client/include/FastCommentsClient/model/APIDomainConfiguration.h +++ b/client/include/FastCommentsClient/model/APIDomainConfiguration.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIEmptyResponse.h b/client/include/FastCommentsClient/model/APIEmptyResponse.h index 313c58d..a216747 100644 --- a/client/include/FastCommentsClient/model/APIEmptyResponse.h +++ b/client/include/FastCommentsClient/model/APIEmptyResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIEmptySuccessResponse.h b/client/include/FastCommentsClient/model/APIEmptySuccessResponse.h index b74b6c4..aa74b3d 100644 --- a/client/include/FastCommentsClient/model/APIEmptySuccessResponse.h +++ b/client/include/FastCommentsClient/model/APIEmptySuccessResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIError.h b/client/include/FastCommentsClient/model/APIError.h index 245e463..ba0fbd4 100644 --- a/client/include/FastCommentsClient/model/APIError.h +++ b/client/include/FastCommentsClient/model/APIError.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIGetCommentResponse.h b/client/include/FastCommentsClient/model/APIGetCommentResponse.h index 50a1e21..7377374 100644 --- a/client/include/FastCommentsClient/model/APIGetCommentResponse.h +++ b/client/include/FastCommentsClient/model/APIGetCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIGetCommentsResponse.h b/client/include/FastCommentsClient/model/APIGetCommentsResponse.h index 2d7e427..9ab6e9a 100644 --- a/client/include/FastCommentsClient/model/APIGetCommentsResponse.h +++ b/client/include/FastCommentsClient/model/APIGetCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h b/client/include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h index 4cd9b14..8b42a50 100644 --- a/client/include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h +++ b/client/include/FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h b/client/include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h index 7e749f8..4458c99 100644 --- a/client/include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h +++ b/client/include/FastCommentsClient/model/APIGetUserBadgeProgressResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIGetUserBadgeResponse.h b/client/include/FastCommentsClient/model/APIGetUserBadgeResponse.h index fd4820f..0e7dcd5 100644 --- a/client/include/FastCommentsClient/model/APIGetUserBadgeResponse.h +++ b/client/include/FastCommentsClient/model/APIGetUserBadgeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIGetUserBadgesResponse.h b/client/include/FastCommentsClient/model/APIGetUserBadgesResponse.h index b1ef736..a516943 100644 --- a/client/include/FastCommentsClient/model/APIGetUserBadgesResponse.h +++ b/client/include/FastCommentsClient/model/APIGetUserBadgesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h b/client/include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h index dc66fb9..a1b0740 100644 --- a/client/include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h +++ b/client/include/FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIModerateUserBanPreferences.h b/client/include/FastCommentsClient/model/APIModerateUserBanPreferences.h index 398704e..af46cbe 100644 --- a/client/include/FastCommentsClient/model/APIModerateUserBanPreferences.h +++ b/client/include/FastCommentsClient/model/APIModerateUserBanPreferences.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIPage.h b/client/include/FastCommentsClient/model/APIPage.h index 871e0ac..298df89 100644 --- a/client/include/FastCommentsClient/model/APIPage.h +++ b/client/include/FastCommentsClient/model/APIPage.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APISSOUser.h b/client/include/FastCommentsClient/model/APISSOUser.h index 20bab1f..f310c3f 100644 --- a/client/include/FastCommentsClient/model/APISSOUser.h +++ b/client/include/FastCommentsClient/model/APISSOUser.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APISaveCommentResponse.h b/client/include/FastCommentsClient/model/APISaveCommentResponse.h index 2c6c9a7..d66b346 100644 --- a/client/include/FastCommentsClient/model/APISaveCommentResponse.h +++ b/client/include/FastCommentsClient/model/APISaveCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIStatus.h b/client/include/FastCommentsClient/model/APIStatus.h index 5fc1359..8acedb7 100644 --- a/client/include/FastCommentsClient/model/APIStatus.h +++ b/client/include/FastCommentsClient/model/APIStatus.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APITenant.h b/client/include/FastCommentsClient/model/APITenant.h index 4b3bace..4117045 100644 --- a/client/include/FastCommentsClient/model/APITenant.h +++ b/client/include/FastCommentsClient/model/APITenant.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APITenantDailyUsage.h b/client/include/FastCommentsClient/model/APITenantDailyUsage.h index c8fec23..5ba11c2 100644 --- a/client/include/FastCommentsClient/model/APITenantDailyUsage.h +++ b/client/include/FastCommentsClient/model/APITenantDailyUsage.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APITicket.h b/client/include/FastCommentsClient/model/APITicket.h index 8e4eea4..e00e109 100644 --- a/client/include/FastCommentsClient/model/APITicket.h +++ b/client/include/FastCommentsClient/model/APITicket.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APITicketDetail.h b/client/include/FastCommentsClient/model/APITicketDetail.h index f20a901..baefc1b 100644 --- a/client/include/FastCommentsClient/model/APITicketDetail.h +++ b/client/include/FastCommentsClient/model/APITicketDetail.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APITicketFile.h b/client/include/FastCommentsClient/model/APITicketFile.h index 6838606..a0f5b24 100644 --- a/client/include/FastCommentsClient/model/APITicketFile.h +++ b/client/include/FastCommentsClient/model/APITicketFile.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/APIUserSubscription.h b/client/include/FastCommentsClient/model/APIUserSubscription.h index 75b1f59..b581262 100644 --- a/client/include/FastCommentsClient/model/APIUserSubscription.h +++ b/client/include/FastCommentsClient/model/APIUserSubscription.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AddDomainConfigParams.h b/client/include/FastCommentsClient/model/AddDomainConfigParams.h index 6434042..aa001d7 100644 --- a/client/include/FastCommentsClient/model/AddDomainConfigParams.h +++ b/client/include/FastCommentsClient/model/AddDomainConfigParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AddDomainConfigResponse.h b/client/include/FastCommentsClient/model/AddDomainConfigResponse.h index 00a685b..bebdadf 100644 --- a/client/include/FastCommentsClient/model/AddDomainConfigResponse.h +++ b/client/include/FastCommentsClient/model/AddDomainConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h b/client/include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h index 18d5e6a..0096336 100644 --- a/client/include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h +++ b/client/include/FastCommentsClient/model/AddDomainConfigResponse_anyOf.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AddPageAPIResponse.h b/client/include/FastCommentsClient/model/AddPageAPIResponse.h index 3d23b80..f3a3e80 100644 --- a/client/include/FastCommentsClient/model/AddPageAPIResponse.h +++ b/client/include/FastCommentsClient/model/AddPageAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AddSSOUserAPIResponse.h b/client/include/FastCommentsClient/model/AddSSOUserAPIResponse.h index 854e84a..496aa53 100644 --- a/client/include/FastCommentsClient/model/AddSSOUserAPIResponse.h +++ b/client/include/FastCommentsClient/model/AddSSOUserAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AdjustCommentVotesParams.h b/client/include/FastCommentsClient/model/AdjustCommentVotesParams.h index 9546cf8..49e804f 100644 --- a/client/include/FastCommentsClient/model/AdjustCommentVotesParams.h +++ b/client/include/FastCommentsClient/model/AdjustCommentVotesParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AdjustVotesResponse.h b/client/include/FastCommentsClient/model/AdjustVotesResponse.h index bddf5ad..4e1481f 100644 --- a/client/include/FastCommentsClient/model/AdjustVotesResponse.h +++ b/client/include/FastCommentsClient/model/AdjustVotesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse.h b/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse.h index c6d7e2b..5588ce2 100644 --- a/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse.h +++ b/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AggregateResponse.h b/client/include/FastCommentsClient/model/AggregateResponse.h index 8637294..04b0d4b 100644 --- a/client/include/FastCommentsClient/model/AggregateResponse.h +++ b/client/include/FastCommentsClient/model/AggregateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AggregateTimeBucket.h b/client/include/FastCommentsClient/model/AggregateTimeBucket.h index 6b5686a..9965f9b 100644 --- a/client/include/FastCommentsClient/model/AggregateTimeBucket.h +++ b/client/include/FastCommentsClient/model/AggregateTimeBucket.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AggregationAPIError.h b/client/include/FastCommentsClient/model/AggregationAPIError.h index 2ea2067..5af541a 100644 --- a/client/include/FastCommentsClient/model/AggregationAPIError.h +++ b/client/include/FastCommentsClient/model/AggregationAPIError.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AggregationItem.h b/client/include/FastCommentsClient/model/AggregationItem.h index b756dfb..7556aa8 100644 --- a/client/include/FastCommentsClient/model/AggregationItem.h +++ b/client/include/FastCommentsClient/model/AggregationItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AggregationOpType.h b/client/include/FastCommentsClient/model/AggregationOpType.h index 6c355a0..ea04ee6 100644 --- a/client/include/FastCommentsClient/model/AggregationOpType.h +++ b/client/include/FastCommentsClient/model/AggregationOpType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AggregationOperation.h b/client/include/FastCommentsClient/model/AggregationOperation.h index 3a1f3e5..0b4370d 100644 --- a/client/include/FastCommentsClient/model/AggregationOperation.h +++ b/client/include/FastCommentsClient/model/AggregationOperation.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AggregationRequest.h b/client/include/FastCommentsClient/model/AggregationRequest.h index e43b034..93dab09 100644 --- a/client/include/FastCommentsClient/model/AggregationRequest.h +++ b/client/include/FastCommentsClient/model/AggregationRequest.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AggregationRequest_sort.h b/client/include/FastCommentsClient/model/AggregationRequest_sort.h index 0e275c0..dabe68b 100644 --- a/client/include/FastCommentsClient/model/AggregationRequest_sort.h +++ b/client/include/FastCommentsClient/model/AggregationRequest_sort.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AggregationResponse.h b/client/include/FastCommentsClient/model/AggregationResponse.h index 1f90cd8..f77f7db 100644 --- a/client/include/FastCommentsClient/model/AggregationResponse.h +++ b/client/include/FastCommentsClient/model/AggregationResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AggregationResponse_stats.h b/client/include/FastCommentsClient/model/AggregationResponse_stats.h index 1c05e82..d631ba2 100644 --- a/client/include/FastCommentsClient/model/AggregationResponse_stats.h +++ b/client/include/FastCommentsClient/model/AggregationResponse_stats.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AggregationValue.h b/client/include/FastCommentsClient/model/AggregationValue.h index ff22900..f450ee0 100644 --- a/client/include/FastCommentsClient/model/AggregationValue.h +++ b/client/include/FastCommentsClient/model/AggregationValue.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/AwardUserBadgeResponse.h b/client/include/FastCommentsClient/model/AwardUserBadgeResponse.h index 2c1dc0e..2bd905a 100644 --- a/client/include/FastCommentsClient/model/AwardUserBadgeResponse.h +++ b/client/include/FastCommentsClient/model/AwardUserBadgeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BanUserFromCommentResult.h b/client/include/FastCommentsClient/model/BanUserFromCommentResult.h index 318ecac..78f38fe 100644 --- a/client/include/FastCommentsClient/model/BanUserFromCommentResult.h +++ b/client/include/FastCommentsClient/model/BanUserFromCommentResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BanUserUndoParams.h b/client/include/FastCommentsClient/model/BanUserUndoParams.h index 0817fe0..1acdfdb 100644 --- a/client/include/FastCommentsClient/model/BanUserUndoParams.h +++ b/client/include/FastCommentsClient/model/BanUserUndoParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BannedUserMatch.h b/client/include/FastCommentsClient/model/BannedUserMatch.h index 71f63f8..6478ebb 100644 --- a/client/include/FastCommentsClient/model/BannedUserMatch.h +++ b/client/include/FastCommentsClient/model/BannedUserMatch.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BannedUserMatchType.h b/client/include/FastCommentsClient/model/BannedUserMatchType.h index 8496d0f..20d8af6 100644 --- a/client/include/FastCommentsClient/model/BannedUserMatchType.h +++ b/client/include/FastCommentsClient/model/BannedUserMatchType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h b/client/include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h index 4aadbac..e9adbe8 100644 --- a/client/include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h +++ b/client/include/FastCommentsClient/model/BannedUserMatch_matchedOnValue.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BillingInfo.h b/client/include/FastCommentsClient/model/BillingInfo.h index 4e1683f..5067e48 100644 --- a/client/include/FastCommentsClient/model/BillingInfo.h +++ b/client/include/FastCommentsClient/model/BillingInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BlockFromCommentParams.h b/client/include/FastCommentsClient/model/BlockFromCommentParams.h index 084ba5a..c076796 100644 --- a/client/include/FastCommentsClient/model/BlockFromCommentParams.h +++ b/client/include/FastCommentsClient/model/BlockFromCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BlockSuccess.h b/client/include/FastCommentsClient/model/BlockSuccess.h index 594a802..6760441 100644 --- a/client/include/FastCommentsClient/model/BlockSuccess.h +++ b/client/include/FastCommentsClient/model/BlockSuccess.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BuildModerationFilterParams.h b/client/include/FastCommentsClient/model/BuildModerationFilterParams.h index 03d52bf..c1e7495 100644 --- a/client/include/FastCommentsClient/model/BuildModerationFilterParams.h +++ b/client/include/FastCommentsClient/model/BuildModerationFilterParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BuildModerationFilterResponse.h b/client/include/FastCommentsClient/model/BuildModerationFilterResponse.h index 30005fb..94cdec4 100644 --- a/client/include/FastCommentsClient/model/BuildModerationFilterResponse.h +++ b/client/include/FastCommentsClient/model/BuildModerationFilterResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BulkAggregateQuestionItem.h b/client/include/FastCommentsClient/model/BulkAggregateQuestionItem.h index 44ff77f..0d74213 100644 --- a/client/include/FastCommentsClient/model/BulkAggregateQuestionItem.h +++ b/client/include/FastCommentsClient/model/BulkAggregateQuestionItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h index 4cd9fc1..fb12b85 100644 --- a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h +++ b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h index a42370b..68ced8e 100644 --- a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h +++ b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BulkCreateHashTagsBody.h b/client/include/FastCommentsClient/model/BulkCreateHashTagsBody.h index c1c54b6..a43f1cd 100644 --- a/client/include/FastCommentsClient/model/BulkCreateHashTagsBody.h +++ b/client/include/FastCommentsClient/model/BulkCreateHashTagsBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h b/client/include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h index 7349ab1..2144eab 100644 --- a/client/include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h +++ b/client/include/FastCommentsClient/model/BulkCreateHashTagsBody_tags_inner.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse.h b/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse.h index bba660b..dcba0b3 100644 --- a/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse.h +++ b/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h b/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h index 6a5a5f0..698170e 100644 --- a/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h +++ b/client/include/FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BulkPreBanParams.h b/client/include/FastCommentsClient/model/BulkPreBanParams.h index 3c70dab..4981e88 100644 --- a/client/include/FastCommentsClient/model/BulkPreBanParams.h +++ b/client/include/FastCommentsClient/model/BulkPreBanParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/BulkPreBanSummary.h b/client/include/FastCommentsClient/model/BulkPreBanSummary.h index 8b69b81..ad072a8 100644 --- a/client/include/FastCommentsClient/model/BulkPreBanSummary.h +++ b/client/include/FastCommentsClient/model/BulkPreBanSummary.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h b/client/include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h index 4955661..543df14 100644 --- a/client/include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h +++ b/client/include/FastCommentsClient/model/ChangeCommentPinStatusResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ChangeTicketStateBody.h b/client/include/FastCommentsClient/model/ChangeTicketStateBody.h index 380a866..5f8efe0 100644 --- a/client/include/FastCommentsClient/model/ChangeTicketStateBody.h +++ b/client/include/FastCommentsClient/model/ChangeTicketStateBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ChangeTicketStateResponse.h b/client/include/FastCommentsClient/model/ChangeTicketStateResponse.h index f39f613..b2dfc31 100644 --- a/client/include/FastCommentsClient/model/ChangeTicketStateResponse.h +++ b/client/include/FastCommentsClient/model/ChangeTicketStateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CheckBlockedCommentsResponse.h b/client/include/FastCommentsClient/model/CheckBlockedCommentsResponse.h index baf5ce6..58e5f8a 100644 --- a/client/include/FastCommentsClient/model/CheckBlockedCommentsResponse.h +++ b/client/include/FastCommentsClient/model/CheckBlockedCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h b/client/include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h index 019fa53..ee5bf56 100644 --- a/client/include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h +++ b/client/include/FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommentData.h b/client/include/FastCommentsClient/model/CommentData.h index 6a46817..816f3b6 100644 --- a/client/include/FastCommentsClient/model/CommentData.h +++ b/client/include/FastCommentsClient/model/CommentData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommentHTMLRenderingMode.h b/client/include/FastCommentsClient/model/CommentHTMLRenderingMode.h index 3dfec31..f06b55b 100644 --- a/client/include/FastCommentsClient/model/CommentHTMLRenderingMode.h +++ b/client/include/FastCommentsClient/model/CommentHTMLRenderingMode.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommentLogData.h b/client/include/FastCommentsClient/model/CommentLogData.h index ea739ec..c7ddb9c 100644 --- a/client/include/FastCommentsClient/model/CommentLogData.h +++ b/client/include/FastCommentsClient/model/CommentLogData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommentLogEntry.h b/client/include/FastCommentsClient/model/CommentLogEntry.h index 20f042e..231ac4a 100644 --- a/client/include/FastCommentsClient/model/CommentLogEntry.h +++ b/client/include/FastCommentsClient/model/CommentLogEntry.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommentLogType.h b/client/include/FastCommentsClient/model/CommentLogType.h index 8628df3..875607b 100644 --- a/client/include/FastCommentsClient/model/CommentLogType.h +++ b/client/include/FastCommentsClient/model/CommentLogType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommentQuestionResultsRenderingType.h b/client/include/FastCommentsClient/model/CommentQuestionResultsRenderingType.h index c3bd066..ec4ccef 100644 --- a/client/include/FastCommentsClient/model/CommentQuestionResultsRenderingType.h +++ b/client/include/FastCommentsClient/model/CommentQuestionResultsRenderingType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommentQuestionsRequired.h b/client/include/FastCommentsClient/model/CommentQuestionsRequired.h index b5bbc1b..d09e29c 100644 --- a/client/include/FastCommentsClient/model/CommentQuestionsRequired.h +++ b/client/include/FastCommentsClient/model/CommentQuestionsRequired.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommentTextUpdateRequest.h b/client/include/FastCommentsClient/model/CommentTextUpdateRequest.h index ac1b9e6..d1509be 100644 --- a/client/include/FastCommentsClient/model/CommentTextUpdateRequest.h +++ b/client/include/FastCommentsClient/model/CommentTextUpdateRequest.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommentThreadDeletionMode.h b/client/include/FastCommentsClient/model/CommentThreadDeletionMode.h index 1c24fd4..f15114d 100644 --- a/client/include/FastCommentsClient/model/CommentThreadDeletionMode.h +++ b/client/include/FastCommentsClient/model/CommentThreadDeletionMode.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommentUserBadgeInfo.h b/client/include/FastCommentsClient/model/CommentUserBadgeInfo.h index c6555b2..dea09d0 100644 --- a/client/include/FastCommentsClient/model/CommentUserBadgeInfo.h +++ b/client/include/FastCommentsClient/model/CommentUserBadgeInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommentUserHashTagInfo.h b/client/include/FastCommentsClient/model/CommentUserHashTagInfo.h index 47cfee4..98345ac 100644 --- a/client/include/FastCommentsClient/model/CommentUserHashTagInfo.h +++ b/client/include/FastCommentsClient/model/CommentUserHashTagInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommentUserMentionInfo.h b/client/include/FastCommentsClient/model/CommentUserMentionInfo.h index 4aeea28..910394a 100644 --- a/client/include/FastCommentsClient/model/CommentUserMentionInfo.h +++ b/client/include/FastCommentsClient/model/CommentUserMentionInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommenterNameFormats.h b/client/include/FastCommentsClient/model/CommenterNameFormats.h index 5224558..851a7a9 100644 --- a/client/include/FastCommentsClient/model/CommenterNameFormats.h +++ b/client/include/FastCommentsClient/model/CommenterNameFormats.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CommentsByIdsParams.h b/client/include/FastCommentsClient/model/CommentsByIdsParams.h index 904b965..3a96dc7 100644 --- a/client/include/FastCommentsClient/model/CommentsByIdsParams.h +++ b/client/include/FastCommentsClient/model/CommentsByIdsParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateAPIPageData.h b/client/include/FastCommentsClient/model/CreateAPIPageData.h index aacba69..ae80a82 100644 --- a/client/include/FastCommentsClient/model/CreateAPIPageData.h +++ b/client/include/FastCommentsClient/model/CreateAPIPageData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateAPISSOUserData.h b/client/include/FastCommentsClient/model/CreateAPISSOUserData.h index 31cbb99..7dd74c4 100644 --- a/client/include/FastCommentsClient/model/CreateAPISSOUserData.h +++ b/client/include/FastCommentsClient/model/CreateAPISSOUserData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h b/client/include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h index 018096c..09bb356 100644 --- a/client/include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h +++ b/client/include/FastCommentsClient/model/CreateAPIUserSubscriptionData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateCommentParams.h b/client/include/FastCommentsClient/model/CreateCommentParams.h index 99dd071..d16e122 100644 --- a/client/include/FastCommentsClient/model/CreateCommentParams.h +++ b/client/include/FastCommentsClient/model/CreateCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateEmailTemplateBody.h b/client/include/FastCommentsClient/model/CreateEmailTemplateBody.h index fc2e3d4..7c7277a 100644 --- a/client/include/FastCommentsClient/model/CreateEmailTemplateBody.h +++ b/client/include/FastCommentsClient/model/CreateEmailTemplateBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateEmailTemplateResponse.h b/client/include/FastCommentsClient/model/CreateEmailTemplateResponse.h index 8e4517f..2a864bb 100644 --- a/client/include/FastCommentsClient/model/CreateEmailTemplateResponse.h +++ b/client/include/FastCommentsClient/model/CreateEmailTemplateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateFeedPostParams.h b/client/include/FastCommentsClient/model/CreateFeedPostParams.h index c03a1b6..90f8f42 100644 --- a/client/include/FastCommentsClient/model/CreateFeedPostParams.h +++ b/client/include/FastCommentsClient/model/CreateFeedPostParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateFeedPostResponse.h b/client/include/FastCommentsClient/model/CreateFeedPostResponse.h index 2ee247a..57f4162 100644 --- a/client/include/FastCommentsClient/model/CreateFeedPostResponse.h +++ b/client/include/FastCommentsClient/model/CreateFeedPostResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateFeedPostsResponse.h b/client/include/FastCommentsClient/model/CreateFeedPostsResponse.h index 3a14e4d..aaeada8 100644 --- a/client/include/FastCommentsClient/model/CreateFeedPostsResponse.h +++ b/client/include/FastCommentsClient/model/CreateFeedPostsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateHashTagBody.h b/client/include/FastCommentsClient/model/CreateHashTagBody.h index 8a66ec7..dbe3528 100644 --- a/client/include/FastCommentsClient/model/CreateHashTagBody.h +++ b/client/include/FastCommentsClient/model/CreateHashTagBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateHashTagResponse.h b/client/include/FastCommentsClient/model/CreateHashTagResponse.h index 6b8edb0..90d58cb 100644 --- a/client/include/FastCommentsClient/model/CreateHashTagResponse.h +++ b/client/include/FastCommentsClient/model/CreateHashTagResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateModeratorBody.h b/client/include/FastCommentsClient/model/CreateModeratorBody.h index f126cc5..cee16e8 100644 --- a/client/include/FastCommentsClient/model/CreateModeratorBody.h +++ b/client/include/FastCommentsClient/model/CreateModeratorBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateModeratorResponse.h b/client/include/FastCommentsClient/model/CreateModeratorResponse.h index b1cc84f..7e69d2b 100644 --- a/client/include/FastCommentsClient/model/CreateModeratorResponse.h +++ b/client/include/FastCommentsClient/model/CreateModeratorResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateQuestionConfigBody.h b/client/include/FastCommentsClient/model/CreateQuestionConfigBody.h index cfa60f3..75c5717 100644 --- a/client/include/FastCommentsClient/model/CreateQuestionConfigBody.h +++ b/client/include/FastCommentsClient/model/CreateQuestionConfigBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateQuestionConfigResponse.h b/client/include/FastCommentsClient/model/CreateQuestionConfigResponse.h index 2e40f95..07c9706 100644 --- a/client/include/FastCommentsClient/model/CreateQuestionConfigResponse.h +++ b/client/include/FastCommentsClient/model/CreateQuestionConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateQuestionResultBody.h b/client/include/FastCommentsClient/model/CreateQuestionResultBody.h index fb3b805..e837f52 100644 --- a/client/include/FastCommentsClient/model/CreateQuestionResultBody.h +++ b/client/include/FastCommentsClient/model/CreateQuestionResultBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateQuestionResultResponse.h b/client/include/FastCommentsClient/model/CreateQuestionResultResponse.h index f1f37ba..413dd93 100644 --- a/client/include/FastCommentsClient/model/CreateQuestionResultResponse.h +++ b/client/include/FastCommentsClient/model/CreateQuestionResultResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h b/client/include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h index 7bcd527..76f34e9 100644 --- a/client/include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h +++ b/client/include/FastCommentsClient/model/CreateSubscriptionAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateTenantBody.h b/client/include/FastCommentsClient/model/CreateTenantBody.h index 9f24c28..9c6f329 100644 --- a/client/include/FastCommentsClient/model/CreateTenantBody.h +++ b/client/include/FastCommentsClient/model/CreateTenantBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateTenantPackageBody.h b/client/include/FastCommentsClient/model/CreateTenantPackageBody.h index 72f09e5..3ec6dda 100644 --- a/client/include/FastCommentsClient/model/CreateTenantPackageBody.h +++ b/client/include/FastCommentsClient/model/CreateTenantPackageBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateTenantPackageResponse.h b/client/include/FastCommentsClient/model/CreateTenantPackageResponse.h index 4b303ac..2112a71 100644 --- a/client/include/FastCommentsClient/model/CreateTenantPackageResponse.h +++ b/client/include/FastCommentsClient/model/CreateTenantPackageResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateTenantResponse.h b/client/include/FastCommentsClient/model/CreateTenantResponse.h index 2841f42..3e27a31 100644 --- a/client/include/FastCommentsClient/model/CreateTenantResponse.h +++ b/client/include/FastCommentsClient/model/CreateTenantResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateTenantUserBody.h b/client/include/FastCommentsClient/model/CreateTenantUserBody.h index 427ddef..6867b7c 100644 --- a/client/include/FastCommentsClient/model/CreateTenantUserBody.h +++ b/client/include/FastCommentsClient/model/CreateTenantUserBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateTenantUserResponse.h b/client/include/FastCommentsClient/model/CreateTenantUserResponse.h index a06a675..3dbb949 100644 --- a/client/include/FastCommentsClient/model/CreateTenantUserResponse.h +++ b/client/include/FastCommentsClient/model/CreateTenantUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateTicketBody.h b/client/include/FastCommentsClient/model/CreateTicketBody.h index c58aed3..06f599b 100644 --- a/client/include/FastCommentsClient/model/CreateTicketBody.h +++ b/client/include/FastCommentsClient/model/CreateTicketBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateTicketResponse.h b/client/include/FastCommentsClient/model/CreateTicketResponse.h index d5fc27e..d8f3cf5 100644 --- a/client/include/FastCommentsClient/model/CreateTicketResponse.h +++ b/client/include/FastCommentsClient/model/CreateTicketResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateUserBadgeParams.h b/client/include/FastCommentsClient/model/CreateUserBadgeParams.h index 98be24a..7c4fbac 100644 --- a/client/include/FastCommentsClient/model/CreateUserBadgeParams.h +++ b/client/include/FastCommentsClient/model/CreateUserBadgeParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CreateV1PageReact.h b/client/include/FastCommentsClient/model/CreateV1PageReact.h index a6f0f1b..18ef0ee 100644 --- a/client/include/FastCommentsClient/model/CreateV1PageReact.h +++ b/client/include/FastCommentsClient/model/CreateV1PageReact.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CustomConfigParameters.h b/client/include/FastCommentsClient/model/CustomConfigParameters.h index 855bf45..488d99a 100644 --- a/client/include/FastCommentsClient/model/CustomConfigParameters.h +++ b/client/include/FastCommentsClient/model/CustomConfigParameters.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/CustomEmailTemplate.h b/client/include/FastCommentsClient/model/CustomEmailTemplate.h index 3a36d14..fb240b8 100644 --- a/client/include/FastCommentsClient/model/CustomEmailTemplate.h +++ b/client/include/FastCommentsClient/model/CustomEmailTemplate.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/DeleteCommentAction.h b/client/include/FastCommentsClient/model/DeleteCommentAction.h index 255b43d..181b0f7 100644 --- a/client/include/FastCommentsClient/model/DeleteCommentAction.h +++ b/client/include/FastCommentsClient/model/DeleteCommentAction.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/DeleteCommentResult.h b/client/include/FastCommentsClient/model/DeleteCommentResult.h index 0db3e31..4ff8bbf 100644 --- a/client/include/FastCommentsClient/model/DeleteCommentResult.h +++ b/client/include/FastCommentsClient/model/DeleteCommentResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/DeleteDomainConfigResponse.h b/client/include/FastCommentsClient/model/DeleteDomainConfigResponse.h index 42fcc43..2a08ee3 100644 --- a/client/include/FastCommentsClient/model/DeleteDomainConfigResponse.h +++ b/client/include/FastCommentsClient/model/DeleteDomainConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h index 259a2ec..f22f15a 100644 --- a/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h +++ b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/DeleteHashTagRequestBody.h b/client/include/FastCommentsClient/model/DeleteHashTagRequestBody.h index 957a9db..f9b6de8 100644 --- a/client/include/FastCommentsClient/model/DeleteHashTagRequestBody.h +++ b/client/include/FastCommentsClient/model/DeleteHashTagRequestBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/DeletePageAPIResponse.h b/client/include/FastCommentsClient/model/DeletePageAPIResponse.h index 305d0fa..2c70c31 100644 --- a/client/include/FastCommentsClient/model/DeletePageAPIResponse.h +++ b/client/include/FastCommentsClient/model/DeletePageAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h b/client/include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h index 07e70ba..a156f86 100644 --- a/client/include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h +++ b/client/include/FastCommentsClient/model/DeleteSSOUserAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h b/client/include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h index 4c88879..e598589 100644 --- a/client/include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h +++ b/client/include/FastCommentsClient/model/DeleteSubscriptionAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/DeletedCommentResultComment.h b/client/include/FastCommentsClient/model/DeletedCommentResultComment.h index 77007dd..fe58d32 100644 --- a/client/include/FastCommentsClient/model/DeletedCommentResultComment.h +++ b/client/include/FastCommentsClient/model/DeletedCommentResultComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/DigestEmailFrequency.h b/client/include/FastCommentsClient/model/DigestEmailFrequency.h index 5ef67bc..79a36cf 100644 --- a/client/include/FastCommentsClient/model/DigestEmailFrequency.h +++ b/client/include/FastCommentsClient/model/DigestEmailFrequency.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/EmailTemplateDefinition.h b/client/include/FastCommentsClient/model/EmailTemplateDefinition.h index 350fe22..a9b0def 100644 --- a/client/include/FastCommentsClient/model/EmailTemplateDefinition.h +++ b/client/include/FastCommentsClient/model/EmailTemplateDefinition.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/EmailTemplateRenderErrorResponse.h b/client/include/FastCommentsClient/model/EmailTemplateRenderErrorResponse.h index 1eb150d..307e8d4 100644 --- a/client/include/FastCommentsClient/model/EmailTemplateRenderErrorResponse.h +++ b/client/include/FastCommentsClient/model/EmailTemplateRenderErrorResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/EventLogEntry.h b/client/include/FastCommentsClient/model/EventLogEntry.h index 9e178fa..2402478 100644 --- a/client/include/FastCommentsClient/model/EventLogEntry.h +++ b/client/include/FastCommentsClient/model/EventLogEntry.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/FComment.h b/client/include/FastCommentsClient/model/FComment.h index c666c58..caa7fe5 100644 --- a/client/include/FastCommentsClient/model/FComment.h +++ b/client/include/FastCommentsClient/model/FComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/FComment_meta.h b/client/include/FastCommentsClient/model/FComment_meta.h index 8c956a2..05acd9b 100644 --- a/client/include/FastCommentsClient/model/FComment_meta.h +++ b/client/include/FastCommentsClient/model/FComment_meta.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/FeedPost.h b/client/include/FastCommentsClient/model/FeedPost.h index 279d4df..752a532 100644 --- a/client/include/FastCommentsClient/model/FeedPost.h +++ b/client/include/FastCommentsClient/model/FeedPost.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/FeedPostLink.h b/client/include/FastCommentsClient/model/FeedPostLink.h index afcc553..1600853 100644 --- a/client/include/FastCommentsClient/model/FeedPostLink.h +++ b/client/include/FastCommentsClient/model/FeedPostLink.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/FeedPostMediaItem.h b/client/include/FastCommentsClient/model/FeedPostMediaItem.h index 8226384..8a65f1f 100644 --- a/client/include/FastCommentsClient/model/FeedPostMediaItem.h +++ b/client/include/FastCommentsClient/model/FeedPostMediaItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/FeedPostMediaItemAsset.h b/client/include/FastCommentsClient/model/FeedPostMediaItemAsset.h index 67d702d..6b7f56a 100644 --- a/client/include/FastCommentsClient/model/FeedPostMediaItemAsset.h +++ b/client/include/FastCommentsClient/model/FeedPostMediaItemAsset.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/FeedPostStats.h b/client/include/FastCommentsClient/model/FeedPostStats.h index 2646a56..24645f4 100644 --- a/client/include/FastCommentsClient/model/FeedPostStats.h +++ b/client/include/FastCommentsClient/model/FeedPostStats.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/FeedPostsStatsResponse.h b/client/include/FastCommentsClient/model/FeedPostsStatsResponse.h index 0b4552c..d51f17c 100644 --- a/client/include/FastCommentsClient/model/FeedPostsStatsResponse.h +++ b/client/include/FastCommentsClient/model/FeedPostsStatsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/FindCommentsByRangeItem.h b/client/include/FastCommentsClient/model/FindCommentsByRangeItem.h index 55ffa96..1318f6d 100644 --- a/client/include/FastCommentsClient/model/FindCommentsByRangeItem.h +++ b/client/include/FastCommentsClient/model/FindCommentsByRangeItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/FindCommentsByRangeResponse.h b/client/include/FastCommentsClient/model/FindCommentsByRangeResponse.h index 2e77d6c..79edc00 100644 --- a/client/include/FastCommentsClient/model/FindCommentsByRangeResponse.h +++ b/client/include/FastCommentsClient/model/FindCommentsByRangeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/FlagCommentResponse.h b/client/include/FastCommentsClient/model/FlagCommentResponse.h index c907207..7438ec3 100644 --- a/client/include/FastCommentsClient/model/FlagCommentResponse.h +++ b/client/include/FastCommentsClient/model/FlagCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetAuditLogsResponse.h b/client/include/FastCommentsClient/model/GetAuditLogsResponse.h index 55db471..e642eba 100644 --- a/client/include/FastCommentsClient/model/GetAuditLogsResponse.h +++ b/client/include/FastCommentsClient/model/GetAuditLogsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetBannedUsersCountResponse.h b/client/include/FastCommentsClient/model/GetBannedUsersCountResponse.h index a6f0cf2..f6dcd82 100644 --- a/client/include/FastCommentsClient/model/GetBannedUsersCountResponse.h +++ b/client/include/FastCommentsClient/model/GetBannedUsersCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h b/client/include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h index f0a192b..04fa93d 100644 --- a/client/include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h +++ b/client/include/FastCommentsClient/model/GetBannedUsersFromCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse.h b/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse.h index 6f64291..d67e7d7 100644 --- a/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse.h +++ b/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetCommentBanStatusResponse.h b/client/include/FastCommentsClient/model/GetCommentBanStatusResponse.h index ef9a7d6..b9dca9b 100644 --- a/client/include/FastCommentsClient/model/GetCommentBanStatusResponse.h +++ b/client/include/FastCommentsClient/model/GetCommentBanStatusResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetCommentTextResponse.h b/client/include/FastCommentsClient/model/GetCommentTextResponse.h index cb87c78..f0b62ba 100644 --- a/client/include/FastCommentsClient/model/GetCommentTextResponse.h +++ b/client/include/FastCommentsClient/model/GetCommentTextResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h b/client/include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h index e16131f..d9d719b 100644 --- a/client/include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h +++ b/client/include/FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetCommentsForUserResponse.h b/client/include/FastCommentsClient/model/GetCommentsForUserResponse.h index bcbe9ca..e894196 100644 --- a/client/include/FastCommentsClient/model/GetCommentsForUserResponse.h +++ b/client/include/FastCommentsClient/model/GetCommentsForUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h b/client/include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h index 6dbf7f7..9ebee4d 100644 --- a/client/include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h +++ b/client/include/FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h b/client/include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h index 504ef85..1679041 100644 --- a/client/include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h +++ b/client/include/FastCommentsClient/model/GetCommentsResponse_PublicComment_.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetDomainConfigResponse.h b/client/include/FastCommentsClient/model/GetDomainConfigResponse.h index 1b63fb6..ba36dbe 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigResponse.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetDomainConfigsResponse.h b/client/include/FastCommentsClient/model/GetDomainConfigsResponse.h index cacc79d..7012530 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigsResponse.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h index 2f9f348..d71d311 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h index d38a6ef..f7eab4d 100644 --- a/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h +++ b/client/include/FastCommentsClient/model/GetDomainConfigsResponse_anyOf_1.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h b/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h index 4e8b6cf..85ab237 100644 --- a/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h +++ b/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h b/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h index b66fce8..571fe6e 100644 --- a/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h +++ b/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateResponse.h b/client/include/FastCommentsClient/model/GetEmailTemplateResponse.h index 7b5336f..1fc16dc 100644 --- a/client/include/FastCommentsClient/model/GetEmailTemplateResponse.h +++ b/client/include/FastCommentsClient/model/GetEmailTemplateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplatesResponse.h b/client/include/FastCommentsClient/model/GetEmailTemplatesResponse.h index 3fbfb2f..a6bc3fe 100644 --- a/client/include/FastCommentsClient/model/GetEmailTemplatesResponse.h +++ b/client/include/FastCommentsClient/model/GetEmailTemplatesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetEventLogResponse.h b/client/include/FastCommentsClient/model/GetEventLogResponse.h index aba11ce..fd305a3 100644 --- a/client/include/FastCommentsClient/model/GetEventLogResponse.h +++ b/client/include/FastCommentsClient/model/GetEventLogResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetFeedPostsResponse.h b/client/include/FastCommentsClient/model/GetFeedPostsResponse.h index a4ed080..fb959a8 100644 --- a/client/include/FastCommentsClient/model/GetFeedPostsResponse.h +++ b/client/include/FastCommentsClient/model/GetFeedPostsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetGifsSearchResponse.h b/client/include/FastCommentsClient/model/GetGifsSearchResponse.h index 0ebd54f..8f2f253 100644 --- a/client/include/FastCommentsClient/model/GetGifsSearchResponse.h +++ b/client/include/FastCommentsClient/model/GetGifsSearchResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetGifsTrendingResponse.h b/client/include/FastCommentsClient/model/GetGifsTrendingResponse.h index 7acac7e..46f155b 100644 --- a/client/include/FastCommentsClient/model/GetGifsTrendingResponse.h +++ b/client/include/FastCommentsClient/model/GetGifsTrendingResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetHashTagsResponse.h b/client/include/FastCommentsClient/model/GetHashTagsResponse.h index 0091daf..8561c5d 100644 --- a/client/include/FastCommentsClient/model/GetHashTagsResponse.h +++ b/client/include/FastCommentsClient/model/GetHashTagsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetModeratorResponse.h b/client/include/FastCommentsClient/model/GetModeratorResponse.h index 71cabf1..f380c3f 100644 --- a/client/include/FastCommentsClient/model/GetModeratorResponse.h +++ b/client/include/FastCommentsClient/model/GetModeratorResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetModeratorsResponse.h b/client/include/FastCommentsClient/model/GetModeratorsResponse.h index 1347e93..507821f 100644 --- a/client/include/FastCommentsClient/model/GetModeratorsResponse.h +++ b/client/include/FastCommentsClient/model/GetModeratorsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetMyNotificationsResponse.h b/client/include/FastCommentsClient/model/GetMyNotificationsResponse.h index 355e615..92b6fe1 100644 --- a/client/include/FastCommentsClient/model/GetMyNotificationsResponse.h +++ b/client/include/FastCommentsClient/model/GetMyNotificationsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetNotificationCountResponse.h b/client/include/FastCommentsClient/model/GetNotificationCountResponse.h index 19f7d63..94b21fe 100644 --- a/client/include/FastCommentsClient/model/GetNotificationCountResponse.h +++ b/client/include/FastCommentsClient/model/GetNotificationCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetNotificationsResponse.h b/client/include/FastCommentsClient/model/GetNotificationsResponse.h index 656f081..5d23d8f 100644 --- a/client/include/FastCommentsClient/model/GetNotificationsResponse.h +++ b/client/include/FastCommentsClient/model/GetNotificationsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h b/client/include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h index c35b2b6..b77a95c 100644 --- a/client/include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetPageByURLIdAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetPagesAPIResponse.h b/client/include/FastCommentsClient/model/GetPagesAPIResponse.h index f44397d..fe1e5d3 100644 --- a/client/include/FastCommentsClient/model/GetPagesAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetPagesAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h b/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h index 33330a7..87754b4 100644 --- a/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h +++ b/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h b/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h index 55f7a4f..0374462 100644 --- a/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h +++ b/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetPublicFeedPostsResponse.h b/client/include/FastCommentsClient/model/GetPublicFeedPostsResponse.h index 2b9c288..bdb6976 100644 --- a/client/include/FastCommentsClient/model/GetPublicFeedPostsResponse.h +++ b/client/include/FastCommentsClient/model/GetPublicFeedPostsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetPublicPagesResponse.h b/client/include/FastCommentsClient/model/GetPublicPagesResponse.h index 18fce68..81ab995 100644 --- a/client/include/FastCommentsClient/model/GetPublicPagesResponse.h +++ b/client/include/FastCommentsClient/model/GetPublicPagesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetQuestionConfigResponse.h b/client/include/FastCommentsClient/model/GetQuestionConfigResponse.h index 2b7b484..91e884c 100644 --- a/client/include/FastCommentsClient/model/GetQuestionConfigResponse.h +++ b/client/include/FastCommentsClient/model/GetQuestionConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetQuestionConfigsResponse.h b/client/include/FastCommentsClient/model/GetQuestionConfigsResponse.h index 83b74b1..16c3381 100644 --- a/client/include/FastCommentsClient/model/GetQuestionConfigsResponse.h +++ b/client/include/FastCommentsClient/model/GetQuestionConfigsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetQuestionResultResponse.h b/client/include/FastCommentsClient/model/GetQuestionResultResponse.h index c2ba326..c0eb2e5 100644 --- a/client/include/FastCommentsClient/model/GetQuestionResultResponse.h +++ b/client/include/FastCommentsClient/model/GetQuestionResultResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetQuestionResultsResponse.h b/client/include/FastCommentsClient/model/GetQuestionResultsResponse.h index 76984df..92fff28 100644 --- a/client/include/FastCommentsClient/model/GetQuestionResultsResponse.h +++ b/client/include/FastCommentsClient/model/GetQuestionResultsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h b/client/include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h index a56adef..2a8b815 100644 --- a/client/include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h b/client/include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h index 4f61b4b..1d5b0eb 100644 --- a/client/include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetSSOUserByIdAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetSSOUsersResponse.h b/client/include/FastCommentsClient/model/GetSSOUsersResponse.h index 54e4d22..900264b 100644 --- a/client/include/FastCommentsClient/model/GetSSOUsersResponse.h +++ b/client/include/FastCommentsClient/model/GetSSOUsersResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h b/client/include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h index 23ff8e2..8c7d4bd 100644 --- a/client/include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h +++ b/client/include/FastCommentsClient/model/GetSubscriptionsAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h b/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h index f5915d3..ab70690 100644 --- a/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetTenantManualBadgesResponse.h b/client/include/FastCommentsClient/model/GetTenantManualBadgesResponse.h index e96ff2c..0de5295 100644 --- a/client/include/FastCommentsClient/model/GetTenantManualBadgesResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantManualBadgesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetTenantPackageResponse.h b/client/include/FastCommentsClient/model/GetTenantPackageResponse.h index 2ec259c..f79a5bf 100644 --- a/client/include/FastCommentsClient/model/GetTenantPackageResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantPackageResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetTenantPackagesResponse.h b/client/include/FastCommentsClient/model/GetTenantPackagesResponse.h index 1e5e812..d5ff449 100644 --- a/client/include/FastCommentsClient/model/GetTenantPackagesResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantPackagesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetTenantResponse.h b/client/include/FastCommentsClient/model/GetTenantResponse.h index f58e323..1235e12 100644 --- a/client/include/FastCommentsClient/model/GetTenantResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetTenantUserResponse.h b/client/include/FastCommentsClient/model/GetTenantUserResponse.h index f7241a8..c8c6eea 100644 --- a/client/include/FastCommentsClient/model/GetTenantUserResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetTenantUsersResponse.h b/client/include/FastCommentsClient/model/GetTenantUsersResponse.h index 7bdda03..d6166da 100644 --- a/client/include/FastCommentsClient/model/GetTenantUsersResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantUsersResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetTenantsResponse.h b/client/include/FastCommentsClient/model/GetTenantsResponse.h index c72d97b..3ffd5a5 100644 --- a/client/include/FastCommentsClient/model/GetTenantsResponse.h +++ b/client/include/FastCommentsClient/model/GetTenantsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetTicketResponse.h b/client/include/FastCommentsClient/model/GetTicketResponse.h index ee2d47a..3b8d54e 100644 --- a/client/include/FastCommentsClient/model/GetTicketResponse.h +++ b/client/include/FastCommentsClient/model/GetTicketResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetTicketsResponse.h b/client/include/FastCommentsClient/model/GetTicketsResponse.h index ed75b68..878ac12 100644 --- a/client/include/FastCommentsClient/model/GetTicketsResponse.h +++ b/client/include/FastCommentsClient/model/GetTicketsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetTranslationsResponse.h b/client/include/FastCommentsClient/model/GetTranslationsResponse.h index 5e1e885..5f95654 100644 --- a/client/include/FastCommentsClient/model/GetTranslationsResponse.h +++ b/client/include/FastCommentsClient/model/GetTranslationsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetUserInternalProfileResponse.h b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse.h index d8fe849..290ae76 100644 --- a/client/include/FastCommentsClient/model/GetUserInternalProfileResponse.h +++ b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h index c8a763d..23bce1a 100644 --- a/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h +++ b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_profile.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetUserManualBadgesResponse.h b/client/include/FastCommentsClient/model/GetUserManualBadgesResponse.h index 2a29b10..ca5d637 100644 --- a/client/include/FastCommentsClient/model/GetUserManualBadgesResponse.h +++ b/client/include/FastCommentsClient/model/GetUserManualBadgesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetUserNotificationCountResponse.h b/client/include/FastCommentsClient/model/GetUserNotificationCountResponse.h index 9166455..91a6f2f 100644 --- a/client/include/FastCommentsClient/model/GetUserNotificationCountResponse.h +++ b/client/include/FastCommentsClient/model/GetUserNotificationCountResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h b/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h index e4f97f0..b03e54a 100644 --- a/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h +++ b/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetUserResponse.h b/client/include/FastCommentsClient/model/GetUserResponse.h index e4f3e30..64723e6 100644 --- a/client/include/FastCommentsClient/model/GetUserResponse.h +++ b/client/include/FastCommentsClient/model/GetUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetUserTrustFactorResponse.h b/client/include/FastCommentsClient/model/GetUserTrustFactorResponse.h index d3c912d..b96d7f0 100644 --- a/client/include/FastCommentsClient/model/GetUserTrustFactorResponse.h +++ b/client/include/FastCommentsClient/model/GetUserTrustFactorResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetV1PageLikes.h b/client/include/FastCommentsClient/model/GetV1PageLikes.h index 5c668ec..3746d77 100644 --- a/client/include/FastCommentsClient/model/GetV1PageLikes.h +++ b/client/include/FastCommentsClient/model/GetV1PageLikes.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse.h b/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse.h index 9c6adde..011aa25 100644 --- a/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse.h +++ b/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetV2PageReacts.h b/client/include/FastCommentsClient/model/GetV2PageReacts.h index e1325c4..ac72d3f 100644 --- a/client/include/FastCommentsClient/model/GetV2PageReacts.h +++ b/client/include/FastCommentsClient/model/GetV2PageReacts.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetVotesForUserResponse.h b/client/include/FastCommentsClient/model/GetVotesForUserResponse.h index ae3eb4e..9767d02 100644 --- a/client/include/FastCommentsClient/model/GetVotesForUserResponse.h +++ b/client/include/FastCommentsClient/model/GetVotesForUserResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GetVotesResponse.h b/client/include/FastCommentsClient/model/GetVotesResponse.h index 488a212..30ddb2e 100644 --- a/client/include/FastCommentsClient/model/GetVotesResponse.h +++ b/client/include/FastCommentsClient/model/GetVotesResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GifGetLargeResponse.h b/client/include/FastCommentsClient/model/GifGetLargeResponse.h index ff31e00..317a09a 100644 --- a/client/include/FastCommentsClient/model/GifGetLargeResponse.h +++ b/client/include/FastCommentsClient/model/GifGetLargeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GifRating.h b/client/include/FastCommentsClient/model/GifRating.h index 8b0c8ad..496ab58 100644 --- a/client/include/FastCommentsClient/model/GifRating.h +++ b/client/include/FastCommentsClient/model/GifRating.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GifSearchInternalError.h b/client/include/FastCommentsClient/model/GifSearchInternalError.h index 034a32b..ff41d45 100644 --- a/client/include/FastCommentsClient/model/GifSearchInternalError.h +++ b/client/include/FastCommentsClient/model/GifSearchInternalError.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GifSearchResponse.h b/client/include/FastCommentsClient/model/GifSearchResponse.h index 2fe5de7..ce49fd6 100644 --- a/client/include/FastCommentsClient/model/GifSearchResponse.h +++ b/client/include/FastCommentsClient/model/GifSearchResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h b/client/include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h index e01df6f..90347ea 100644 --- a/client/include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h +++ b/client/include/FastCommentsClient/model/GifSearchResponse_images_inner_inner.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/HeaderAccountNotification.h b/client/include/FastCommentsClient/model/HeaderAccountNotification.h index 0a285af..a3fb7a2 100644 --- a/client/include/FastCommentsClient/model/HeaderAccountNotification.h +++ b/client/include/FastCommentsClient/model/HeaderAccountNotification.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/HeaderState.h b/client/include/FastCommentsClient/model/HeaderState.h index b71da96..039e570 100644 --- a/client/include/FastCommentsClient/model/HeaderState.h +++ b/client/include/FastCommentsClient/model/HeaderState.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/IgnoredResponse.h b/client/include/FastCommentsClient/model/IgnoredResponse.h index e6801ad..3f8bfcd 100644 --- a/client/include/FastCommentsClient/model/IgnoredResponse.h +++ b/client/include/FastCommentsClient/model/IgnoredResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ImageContentProfanityLevel.h b/client/include/FastCommentsClient/model/ImageContentProfanityLevel.h index 5343789..a504775 100644 --- a/client/include/FastCommentsClient/model/ImageContentProfanityLevel.h +++ b/client/include/FastCommentsClient/model/ImageContentProfanityLevel.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h b/client/include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h index febe8c4..0090d24 100644 --- a/client/include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h +++ b/client/include/FastCommentsClient/model/ImportedAgentApprovalNotificationFrequency.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ImportedSiteType.h b/client/include/FastCommentsClient/model/ImportedSiteType.h index 5279931..ea80b04 100644 --- a/client/include/FastCommentsClient/model/ImportedSiteType.h +++ b/client/include/FastCommentsClient/model/ImportedSiteType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/LiveEvent.h b/client/include/FastCommentsClient/model/LiveEvent.h index c98ceb5..02c2469 100644 --- a/client/include/FastCommentsClient/model/LiveEvent.h +++ b/client/include/FastCommentsClient/model/LiveEvent.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/LiveEventType.h b/client/include/FastCommentsClient/model/LiveEventType.h index 34d76eb..087214d 100644 --- a/client/include/FastCommentsClient/model/LiveEventType.h +++ b/client/include/FastCommentsClient/model/LiveEventType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/LiveEvent_extraInfo.h b/client/include/FastCommentsClient/model/LiveEvent_extraInfo.h index 5dd9273..3b8b19f 100644 --- a/client/include/FastCommentsClient/model/LiveEvent_extraInfo.h +++ b/client/include/FastCommentsClient/model/LiveEvent_extraInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/MediaAsset.h b/client/include/FastCommentsClient/model/MediaAsset.h index eb14f55..717aad2 100644 --- a/client/include/FastCommentsClient/model/MediaAsset.h +++ b/client/include/FastCommentsClient/model/MediaAsset.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/MentionAutoCompleteMode.h b/client/include/FastCommentsClient/model/MentionAutoCompleteMode.h index 2832853..0d9807f 100644 --- a/client/include/FastCommentsClient/model/MentionAutoCompleteMode.h +++ b/client/include/FastCommentsClient/model/MentionAutoCompleteMode.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/MetaItem.h b/client/include/FastCommentsClient/model/MetaItem.h index 2385213..0b924e1 100644 --- a/client/include/FastCommentsClient/model/MetaItem.h +++ b/client/include/FastCommentsClient/model/MetaItem.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h b/client/include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h index d2c764c..f8c3bec 100644 --- a/client/include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h +++ b/client/include/FastCommentsClient/model/ModerationAPIChildCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationAPIComment.h b/client/include/FastCommentsClient/model/ModerationAPIComment.h index e4971b6..57934fc 100644 --- a/client/include/FastCommentsClient/model/ModerationAPIComment.h +++ b/client/include/FastCommentsClient/model/ModerationAPIComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationAPICommentLog.h b/client/include/FastCommentsClient/model/ModerationAPICommentLog.h index b0247be..4d6dbf5 100644 --- a/client/include/FastCommentsClient/model/ModerationAPICommentLog.h +++ b/client/include/FastCommentsClient/model/ModerationAPICommentLog.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationAPICommentResponse.h b/client/include/FastCommentsClient/model/ModerationAPICommentResponse.h index cdaae0e..266a24e 100644 --- a/client/include/FastCommentsClient/model/ModerationAPICommentResponse.h +++ b/client/include/FastCommentsClient/model/ModerationAPICommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h b/client/include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h index c7528c3..ec94a51 100644 --- a/client/include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h +++ b/client/include/FastCommentsClient/model/ModerationAPICountCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h b/client/include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h index 9a8bee1..d552e20 100644 --- a/client/include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h +++ b/client/include/FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h b/client/include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h index 15283e9..5ca66ba 100644 --- a/client/include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h +++ b/client/include/FastCommentsClient/model/ModerationAPIGetCommentsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h b/client/include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h index 58e032c..d27355e 100644 --- a/client/include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h +++ b/client/include/FastCommentsClient/model/ModerationAPIGetLogsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationCommentSearchResponse.h b/client/include/FastCommentsClient/model/ModerationCommentSearchResponse.h index e00e9c9..3a1a8d5 100644 --- a/client/include/FastCommentsClient/model/ModerationCommentSearchResponse.h +++ b/client/include/FastCommentsClient/model/ModerationCommentSearchResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationExportResponse.h b/client/include/FastCommentsClient/model/ModerationExportResponse.h index 69e4257..21f07af 100644 --- a/client/include/FastCommentsClient/model/ModerationExportResponse.h +++ b/client/include/FastCommentsClient/model/ModerationExportResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationExportStatusResponse.h b/client/include/FastCommentsClient/model/ModerationExportStatusResponse.h index 34c8709..91cc32c 100644 --- a/client/include/FastCommentsClient/model/ModerationExportStatusResponse.h +++ b/client/include/FastCommentsClient/model/ModerationExportStatusResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationFilter.h b/client/include/FastCommentsClient/model/ModerationFilter.h index 0fdee91..639aff0 100644 --- a/client/include/FastCommentsClient/model/ModerationFilter.h +++ b/client/include/FastCommentsClient/model/ModerationFilter.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationPageSearchProjected.h b/client/include/FastCommentsClient/model/ModerationPageSearchProjected.h index 746c4cc..0054109 100644 --- a/client/include/FastCommentsClient/model/ModerationPageSearchProjected.h +++ b/client/include/FastCommentsClient/model/ModerationPageSearchProjected.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationPageSearchResponse.h b/client/include/FastCommentsClient/model/ModerationPageSearchResponse.h index 1c5d447..1039310 100644 --- a/client/include/FastCommentsClient/model/ModerationPageSearchResponse.h +++ b/client/include/FastCommentsClient/model/ModerationPageSearchResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationSiteSearchProjected.h b/client/include/FastCommentsClient/model/ModerationSiteSearchProjected.h index ce30f94..e497051 100644 --- a/client/include/FastCommentsClient/model/ModerationSiteSearchProjected.h +++ b/client/include/FastCommentsClient/model/ModerationSiteSearchProjected.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationSiteSearchResponse.h b/client/include/FastCommentsClient/model/ModerationSiteSearchResponse.h index aacaa3b..bd25047 100644 --- a/client/include/FastCommentsClient/model/ModerationSiteSearchResponse.h +++ b/client/include/FastCommentsClient/model/ModerationSiteSearchResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationSuggestResponse.h b/client/include/FastCommentsClient/model/ModerationSuggestResponse.h index 68ef87e..771d2b3 100644 --- a/client/include/FastCommentsClient/model/ModerationSuggestResponse.h +++ b/client/include/FastCommentsClient/model/ModerationSuggestResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationUserSearchProjected.h b/client/include/FastCommentsClient/model/ModerationUserSearchProjected.h index bc437ea..d551a01 100644 --- a/client/include/FastCommentsClient/model/ModerationUserSearchProjected.h +++ b/client/include/FastCommentsClient/model/ModerationUserSearchProjected.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ModerationUserSearchResponse.h b/client/include/FastCommentsClient/model/ModerationUserSearchResponse.h index d2b2365..fefa56e 100644 --- a/client/include/FastCommentsClient/model/ModerationUserSearchResponse.h +++ b/client/include/FastCommentsClient/model/ModerationUserSearchResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/Moderator.h b/client/include/FastCommentsClient/model/Moderator.h index 4bef2d6..76a8b50 100644 --- a/client/include/FastCommentsClient/model/Moderator.h +++ b/client/include/FastCommentsClient/model/Moderator.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/NotificationAndCount.h b/client/include/FastCommentsClient/model/NotificationAndCount.h index a8d586f..c781ff6 100644 --- a/client/include/FastCommentsClient/model/NotificationAndCount.h +++ b/client/include/FastCommentsClient/model/NotificationAndCount.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/NotificationObjectType.h b/client/include/FastCommentsClient/model/NotificationObjectType.h index 1d017cc..3b58a58 100644 --- a/client/include/FastCommentsClient/model/NotificationObjectType.h +++ b/client/include/FastCommentsClient/model/NotificationObjectType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/NotificationType.h b/client/include/FastCommentsClient/model/NotificationType.h index da12ff5..d103e22 100644 --- a/client/include/FastCommentsClient/model/NotificationType.h +++ b/client/include/FastCommentsClient/model/NotificationType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PageUserEntry.h b/client/include/FastCommentsClient/model/PageUserEntry.h index b54c121..2d93b61 100644 --- a/client/include/FastCommentsClient/model/PageUserEntry.h +++ b/client/include/FastCommentsClient/model/PageUserEntry.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PageUsersInfoResponse.h b/client/include/FastCommentsClient/model/PageUsersInfoResponse.h index 83490d8..2d26a45 100644 --- a/client/include/FastCommentsClient/model/PageUsersInfoResponse.h +++ b/client/include/FastCommentsClient/model/PageUsersInfoResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PageUsersOfflineResponse.h b/client/include/FastCommentsClient/model/PageUsersOfflineResponse.h index cc7b248..25968c5 100644 --- a/client/include/FastCommentsClient/model/PageUsersOfflineResponse.h +++ b/client/include/FastCommentsClient/model/PageUsersOfflineResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PageUsersOnlineResponse.h b/client/include/FastCommentsClient/model/PageUsersOnlineResponse.h index ee7490d..768c1d9 100644 --- a/client/include/FastCommentsClient/model/PageUsersOnlineResponse.h +++ b/client/include/FastCommentsClient/model/PageUsersOnlineResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PagesSortBy.h b/client/include/FastCommentsClient/model/PagesSortBy.h index 7d1abf4..82735c1 100644 --- a/client/include/FastCommentsClient/model/PagesSortBy.h +++ b/client/include/FastCommentsClient/model/PagesSortBy.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PatchDomainConfigParams.h b/client/include/FastCommentsClient/model/PatchDomainConfigParams.h index 3b12dc6..5a1c8f1 100644 --- a/client/include/FastCommentsClient/model/PatchDomainConfigParams.h +++ b/client/include/FastCommentsClient/model/PatchDomainConfigParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PatchDomainConfigResponse.h b/client/include/FastCommentsClient/model/PatchDomainConfigResponse.h index 81f34ed..69d8b97 100644 --- a/client/include/FastCommentsClient/model/PatchDomainConfigResponse.h +++ b/client/include/FastCommentsClient/model/PatchDomainConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PatchPageAPIResponse.h b/client/include/FastCommentsClient/model/PatchPageAPIResponse.h index 480446b..6d62bbb 100644 --- a/client/include/FastCommentsClient/model/PatchPageAPIResponse.h +++ b/client/include/FastCommentsClient/model/PatchPageAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PatchSSOUserAPIResponse.h b/client/include/FastCommentsClient/model/PatchSSOUserAPIResponse.h index 802ed35..58d79bd 100644 --- a/client/include/FastCommentsClient/model/PatchSSOUserAPIResponse.h +++ b/client/include/FastCommentsClient/model/PatchSSOUserAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PendingCommentToSyncOutbound.h b/client/include/FastCommentsClient/model/PendingCommentToSyncOutbound.h index 8d9d562..39374b2 100644 --- a/client/include/FastCommentsClient/model/PendingCommentToSyncOutbound.h +++ b/client/include/FastCommentsClient/model/PendingCommentToSyncOutbound.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h b/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h index 78b03ab..6f2d51c 100644 --- a/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h +++ b/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PreBanSummary.h b/client/include/FastCommentsClient/model/PreBanSummary.h index 71770e0..166d06e 100644 --- a/client/include/FastCommentsClient/model/PreBanSummary.h +++ b/client/include/FastCommentsClient/model/PreBanSummary.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PubSubComment.h b/client/include/FastCommentsClient/model/PubSubComment.h index 1090a32..de0c4e9 100644 --- a/client/include/FastCommentsClient/model/PubSubComment.h +++ b/client/include/FastCommentsClient/model/PubSubComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PubSubCommentBase.h b/client/include/FastCommentsClient/model/PubSubCommentBase.h index b5b0816..9129e74 100644 --- a/client/include/FastCommentsClient/model/PubSubCommentBase.h +++ b/client/include/FastCommentsClient/model/PubSubCommentBase.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PubSubVote.h b/client/include/FastCommentsClient/model/PubSubVote.h index aa7a140..64ff755 100644 --- a/client/include/FastCommentsClient/model/PubSubVote.h +++ b/client/include/FastCommentsClient/model/PubSubVote.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h b/client/include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h index f6e6d5b..c35637d 100644 --- a/client/include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h +++ b/client/include/FastCommentsClient/model/PublicAPIDeleteCommentResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h b/client/include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h index 1bdee2e..ffb5e86 100644 --- a/client/include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h +++ b/client/include/FastCommentsClient/model/PublicAPIGetCommentTextResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h b/client/include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h index 84cad15..6f0fd84 100644 --- a/client/include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h +++ b/client/include/FastCommentsClient/model/PublicAPISetCommentTextResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PublicBlockFromCommentParams.h b/client/include/FastCommentsClient/model/PublicBlockFromCommentParams.h index da6f055..9344ed3 100644 --- a/client/include/FastCommentsClient/model/PublicBlockFromCommentParams.h +++ b/client/include/FastCommentsClient/model/PublicBlockFromCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PublicComment.h b/client/include/FastCommentsClient/model/PublicComment.h index a64adc3..b23facf 100644 --- a/client/include/FastCommentsClient/model/PublicComment.h +++ b/client/include/FastCommentsClient/model/PublicComment.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PublicCommentBase.h b/client/include/FastCommentsClient/model/PublicCommentBase.h index 4f38d05..976d9bb 100644 --- a/client/include/FastCommentsClient/model/PublicCommentBase.h +++ b/client/include/FastCommentsClient/model/PublicCommentBase.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PublicFeedPostsResponse.h b/client/include/FastCommentsClient/model/PublicFeedPostsResponse.h index d641e87..599f449 100644 --- a/client/include/FastCommentsClient/model/PublicFeedPostsResponse.h +++ b/client/include/FastCommentsClient/model/PublicFeedPostsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PublicPage.h b/client/include/FastCommentsClient/model/PublicPage.h index 2385792..d7454e5 100644 --- a/client/include/FastCommentsClient/model/PublicPage.h +++ b/client/include/FastCommentsClient/model/PublicPage.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PublicVote.h b/client/include/FastCommentsClient/model/PublicVote.h index 5cc4f1b..3d842c0 100644 --- a/client/include/FastCommentsClient/model/PublicVote.h +++ b/client/include/FastCommentsClient/model/PublicVote.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PutDomainConfigResponse.h b/client/include/FastCommentsClient/model/PutDomainConfigResponse.h index 9f55c89..e6625e0 100644 --- a/client/include/FastCommentsClient/model/PutDomainConfigResponse.h +++ b/client/include/FastCommentsClient/model/PutDomainConfigResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/PutSSOUserAPIResponse.h b/client/include/FastCommentsClient/model/PutSSOUserAPIResponse.h index cddcac8..f7fd8bb 100644 --- a/client/include/FastCommentsClient/model/PutSSOUserAPIResponse.h +++ b/client/include/FastCommentsClient/model/PutSSOUserAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/QueryPredicate.h b/client/include/FastCommentsClient/model/QueryPredicate.h index 6fb5d30..8c7201b 100644 --- a/client/include/FastCommentsClient/model/QueryPredicate.h +++ b/client/include/FastCommentsClient/model/QueryPredicate.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/QueryPredicate_value.h b/client/include/FastCommentsClient/model/QueryPredicate_value.h index e4330c7..33c4379 100644 --- a/client/include/FastCommentsClient/model/QueryPredicate_value.h +++ b/client/include/FastCommentsClient/model/QueryPredicate_value.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/QuestionConfig.h b/client/include/FastCommentsClient/model/QuestionConfig.h index 4a409d7..a9222ef 100644 --- a/client/include/FastCommentsClient/model/QuestionConfig.h +++ b/client/include/FastCommentsClient/model/QuestionConfig.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/QuestionConfig_customOptions_inner.h b/client/include/FastCommentsClient/model/QuestionConfig_customOptions_inner.h index 5569149..7e11198 100644 --- a/client/include/FastCommentsClient/model/QuestionConfig_customOptions_inner.h +++ b/client/include/FastCommentsClient/model/QuestionConfig_customOptions_inner.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/QuestionDatum.h b/client/include/FastCommentsClient/model/QuestionDatum.h index 5e5f90c..a0444de 100644 --- a/client/include/FastCommentsClient/model/QuestionDatum.h +++ b/client/include/FastCommentsClient/model/QuestionDatum.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/QuestionRenderingType.h b/client/include/FastCommentsClient/model/QuestionRenderingType.h index fca8175..de7b8b5 100644 --- a/client/include/FastCommentsClient/model/QuestionRenderingType.h +++ b/client/include/FastCommentsClient/model/QuestionRenderingType.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/QuestionResult.h b/client/include/FastCommentsClient/model/QuestionResult.h index bd8cd90..b7b444b 100644 --- a/client/include/FastCommentsClient/model/QuestionResult.h +++ b/client/include/FastCommentsClient/model/QuestionResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/QuestionResultAggregationOverall.h b/client/include/FastCommentsClient/model/QuestionResultAggregationOverall.h index 64e01b2..9b39da2 100644 --- a/client/include/FastCommentsClient/model/QuestionResultAggregationOverall.h +++ b/client/include/FastCommentsClient/model/QuestionResultAggregationOverall.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/QuestionSubQuestionVisibility.h b/client/include/FastCommentsClient/model/QuestionSubQuestionVisibility.h index 9ce959f..4e09639 100644 --- a/client/include/FastCommentsClient/model/QuestionSubQuestionVisibility.h +++ b/client/include/FastCommentsClient/model/QuestionSubQuestionVisibility.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/QuestionWhenSave.h b/client/include/FastCommentsClient/model/QuestionWhenSave.h index 02f3cc1..36c73b7 100644 --- a/client/include/FastCommentsClient/model/QuestionWhenSave.h +++ b/client/include/FastCommentsClient/model/QuestionWhenSave.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ReactBodyParams.h b/client/include/FastCommentsClient/model/ReactBodyParams.h index 077145e..7416bfe 100644 --- a/client/include/FastCommentsClient/model/ReactBodyParams.h +++ b/client/include/FastCommentsClient/model/ReactBodyParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ReactFeedPostResponse.h b/client/include/FastCommentsClient/model/ReactFeedPostResponse.h index 185c499..e4092db 100644 --- a/client/include/FastCommentsClient/model/ReactFeedPostResponse.h +++ b/client/include/FastCommentsClient/model/ReactFeedPostResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h b/client/include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h index 591bcc0..f30bfcd 100644 --- a/client/include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h +++ b/client/include/FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/RemoveCommentActionResponse.h b/client/include/FastCommentsClient/model/RemoveCommentActionResponse.h index 85a475d..715ca92 100644 --- a/client/include/FastCommentsClient/model/RemoveCommentActionResponse.h +++ b/client/include/FastCommentsClient/model/RemoveCommentActionResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/RemoveUserBadgeResponse.h b/client/include/FastCommentsClient/model/RemoveUserBadgeResponse.h index 0aa03d2..c2c964f 100644 --- a/client/include/FastCommentsClient/model/RemoveUserBadgeResponse.h +++ b/client/include/FastCommentsClient/model/RemoveUserBadgeResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/RenderEmailTemplateBody.h b/client/include/FastCommentsClient/model/RenderEmailTemplateBody.h index 7d99f5e..a41b65a 100644 --- a/client/include/FastCommentsClient/model/RenderEmailTemplateBody.h +++ b/client/include/FastCommentsClient/model/RenderEmailTemplateBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/RenderEmailTemplateResponse.h b/client/include/FastCommentsClient/model/RenderEmailTemplateResponse.h index 44e4407..4b3d75d 100644 --- a/client/include/FastCommentsClient/model/RenderEmailTemplateResponse.h +++ b/client/include/FastCommentsClient/model/RenderEmailTemplateResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/RenderableUserNotification.h b/client/include/FastCommentsClient/model/RenderableUserNotification.h index 9ff6aac..be50ec5 100644 --- a/client/include/FastCommentsClient/model/RenderableUserNotification.h +++ b/client/include/FastCommentsClient/model/RenderableUserNotification.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h b/client/include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h index fcc1046..e3f04d7 100644 --- a/client/include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h +++ b/client/include/FastCommentsClient/model/RepeatCommentCheckIgnoredReason.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/RepeatCommentHandlingAction.h b/client/include/FastCommentsClient/model/RepeatCommentHandlingAction.h index 8efe1b3..de216f7 100644 --- a/client/include/FastCommentsClient/model/RepeatCommentHandlingAction.h +++ b/client/include/FastCommentsClient/model/RepeatCommentHandlingAction.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ReplaceTenantPackageBody.h b/client/include/FastCommentsClient/model/ReplaceTenantPackageBody.h index 51ce490..f4279f9 100644 --- a/client/include/FastCommentsClient/model/ReplaceTenantPackageBody.h +++ b/client/include/FastCommentsClient/model/ReplaceTenantPackageBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ReplaceTenantUserBody.h b/client/include/FastCommentsClient/model/ReplaceTenantUserBody.h index 6dabe6c..98e63b1 100644 --- a/client/include/FastCommentsClient/model/ReplaceTenantUserBody.h +++ b/client/include/FastCommentsClient/model/ReplaceTenantUserBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/ResetUserNotificationsResponse.h b/client/include/FastCommentsClient/model/ResetUserNotificationsResponse.h index 718c0f8..6bc7937 100644 --- a/client/include/FastCommentsClient/model/ResetUserNotificationsResponse.h +++ b/client/include/FastCommentsClient/model/ResetUserNotificationsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SORT_DIR.h b/client/include/FastCommentsClient/model/SORT_DIR.h index db1cdf1..cc3a4ba 100644 --- a/client/include/FastCommentsClient/model/SORT_DIR.h +++ b/client/include/FastCommentsClient/model/SORT_DIR.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SSOSecurityLevel.h b/client/include/FastCommentsClient/model/SSOSecurityLevel.h index 451665b..149362b 100644 --- a/client/include/FastCommentsClient/model/SSOSecurityLevel.h +++ b/client/include/FastCommentsClient/model/SSOSecurityLevel.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SaveCommentResponseOptimized.h b/client/include/FastCommentsClient/model/SaveCommentResponseOptimized.h index 93b0778..f7f60bb 100644 --- a/client/include/FastCommentsClient/model/SaveCommentResponseOptimized.h +++ b/client/include/FastCommentsClient/model/SaveCommentResponseOptimized.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h b/client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h index e96f0c1..c1cc946 100644 --- a/client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h +++ b/client/include/FastCommentsClient/model/SaveCommentsBulkResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h b/client/include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h index 0a929ee..5315b90 100644 --- a/client/include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h +++ b/client/include/FastCommentsClient/model/SaveCommentsResponseWithPresence.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SearchUsersResponse.h b/client/include/FastCommentsClient/model/SearchUsersResponse.h index 82e5da0..36012e7 100644 --- a/client/include/FastCommentsClient/model/SearchUsersResponse.h +++ b/client/include/FastCommentsClient/model/SearchUsersResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SearchUsersResult.h b/client/include/FastCommentsClient/model/SearchUsersResult.h index 66d74a6..e1b40bd 100644 --- a/client/include/FastCommentsClient/model/SearchUsersResult.h +++ b/client/include/FastCommentsClient/model/SearchUsersResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SearchUsersSectionedResponse.h b/client/include/FastCommentsClient/model/SearchUsersSectionedResponse.h index 1812236..7377eac 100644 --- a/client/include/FastCommentsClient/model/SearchUsersSectionedResponse.h +++ b/client/include/FastCommentsClient/model/SearchUsersSectionedResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SetCommentApprovedResponse.h b/client/include/FastCommentsClient/model/SetCommentApprovedResponse.h index a31e333..60ea175 100644 --- a/client/include/FastCommentsClient/model/SetCommentApprovedResponse.h +++ b/client/include/FastCommentsClient/model/SetCommentApprovedResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SetCommentTextParams.h b/client/include/FastCommentsClient/model/SetCommentTextParams.h index ddee923..1b85cc1 100644 --- a/client/include/FastCommentsClient/model/SetCommentTextParams.h +++ b/client/include/FastCommentsClient/model/SetCommentTextParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SetCommentTextResponse.h b/client/include/FastCommentsClient/model/SetCommentTextResponse.h index 46a4e14..36a496a 100644 --- a/client/include/FastCommentsClient/model/SetCommentTextResponse.h +++ b/client/include/FastCommentsClient/model/SetCommentTextResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SetCommentTextResult.h b/client/include/FastCommentsClient/model/SetCommentTextResult.h index 40ad33e..34fb66e 100644 --- a/client/include/FastCommentsClient/model/SetCommentTextResult.h +++ b/client/include/FastCommentsClient/model/SetCommentTextResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SetUserTrustFactorResponse.h b/client/include/FastCommentsClient/model/SetUserTrustFactorResponse.h index 9c8f648..3512f9e 100644 --- a/client/include/FastCommentsClient/model/SetUserTrustFactorResponse.h +++ b/client/include/FastCommentsClient/model/SetUserTrustFactorResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SizePreset.h b/client/include/FastCommentsClient/model/SizePreset.h index 0d797ab..79d6b21 100644 --- a/client/include/FastCommentsClient/model/SizePreset.h +++ b/client/include/FastCommentsClient/model/SizePreset.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SortDirections.h b/client/include/FastCommentsClient/model/SortDirections.h index 88f05b9..c2fc83a 100644 --- a/client/include/FastCommentsClient/model/SortDirections.h +++ b/client/include/FastCommentsClient/model/SortDirections.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/SpamRule.h b/client/include/FastCommentsClient/model/SpamRule.h index ed9bb53..9694382 100644 --- a/client/include/FastCommentsClient/model/SpamRule.h +++ b/client/include/FastCommentsClient/model/SpamRule.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/TOSConfig.h b/client/include/FastCommentsClient/model/TOSConfig.h index cea9a50..2187108 100644 --- a/client/include/FastCommentsClient/model/TOSConfig.h +++ b/client/include/FastCommentsClient/model/TOSConfig.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/TenantBadge.h b/client/include/FastCommentsClient/model/TenantBadge.h index 63fe2ce..51372cc 100644 --- a/client/include/FastCommentsClient/model/TenantBadge.h +++ b/client/include/FastCommentsClient/model/TenantBadge.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/TenantHashTag.h b/client/include/FastCommentsClient/model/TenantHashTag.h index adb6c89..4406542 100644 --- a/client/include/FastCommentsClient/model/TenantHashTag.h +++ b/client/include/FastCommentsClient/model/TenantHashTag.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/TenantPackage.h b/client/include/FastCommentsClient/model/TenantPackage.h index 66184c1..be30e0c 100644 --- a/client/include/FastCommentsClient/model/TenantPackage.h +++ b/client/include/FastCommentsClient/model/TenantPackage.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UnBlockFromCommentParams.h b/client/include/FastCommentsClient/model/UnBlockFromCommentParams.h index c28ddce..124356c 100644 --- a/client/include/FastCommentsClient/model/UnBlockFromCommentParams.h +++ b/client/include/FastCommentsClient/model/UnBlockFromCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UnblockSuccess.h b/client/include/FastCommentsClient/model/UnblockSuccess.h index 939c6b9..67b7a88 100644 --- a/client/include/FastCommentsClient/model/UnblockSuccess.h +++ b/client/include/FastCommentsClient/model/UnblockSuccess.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdatableCommentParams.h b/client/include/FastCommentsClient/model/UpdatableCommentParams.h index 65ade18..44cce63 100644 --- a/client/include/FastCommentsClient/model/UpdatableCommentParams.h +++ b/client/include/FastCommentsClient/model/UpdatableCommentParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateAPIPageData.h b/client/include/FastCommentsClient/model/UpdateAPIPageData.h index c76b5c6..7daaadc 100644 --- a/client/include/FastCommentsClient/model/UpdateAPIPageData.h +++ b/client/include/FastCommentsClient/model/UpdateAPIPageData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateAPISSOUserData.h b/client/include/FastCommentsClient/model/UpdateAPISSOUserData.h index d2ab9b7..ea7a91d 100644 --- a/client/include/FastCommentsClient/model/UpdateAPISSOUserData.h +++ b/client/include/FastCommentsClient/model/UpdateAPISSOUserData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateAPIUserSubscriptionData.h b/client/include/FastCommentsClient/model/UpdateAPIUserSubscriptionData.h index c39c0ab..f94ec40 100644 --- a/client/include/FastCommentsClient/model/UpdateAPIUserSubscriptionData.h +++ b/client/include/FastCommentsClient/model/UpdateAPIUserSubscriptionData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateDomainConfigParams.h b/client/include/FastCommentsClient/model/UpdateDomainConfigParams.h index 83fcfba..2689667 100644 --- a/client/include/FastCommentsClient/model/UpdateDomainConfigParams.h +++ b/client/include/FastCommentsClient/model/UpdateDomainConfigParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateEmailTemplateBody.h b/client/include/FastCommentsClient/model/UpdateEmailTemplateBody.h index 4391190..6ed02f2 100644 --- a/client/include/FastCommentsClient/model/UpdateEmailTemplateBody.h +++ b/client/include/FastCommentsClient/model/UpdateEmailTemplateBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateFeedPostParams.h b/client/include/FastCommentsClient/model/UpdateFeedPostParams.h index d5206cb..72141ce 100644 --- a/client/include/FastCommentsClient/model/UpdateFeedPostParams.h +++ b/client/include/FastCommentsClient/model/UpdateFeedPostParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateHashTagBody.h b/client/include/FastCommentsClient/model/UpdateHashTagBody.h index ce674dd..c809cff 100644 --- a/client/include/FastCommentsClient/model/UpdateHashTagBody.h +++ b/client/include/FastCommentsClient/model/UpdateHashTagBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateHashTagResponse.h b/client/include/FastCommentsClient/model/UpdateHashTagResponse.h index 2119a2f..4c22ca2 100644 --- a/client/include/FastCommentsClient/model/UpdateHashTagResponse.h +++ b/client/include/FastCommentsClient/model/UpdateHashTagResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateModeratorBody.h b/client/include/FastCommentsClient/model/UpdateModeratorBody.h index 1401952..99da3b6 100644 --- a/client/include/FastCommentsClient/model/UpdateModeratorBody.h +++ b/client/include/FastCommentsClient/model/UpdateModeratorBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateNotificationBody.h b/client/include/FastCommentsClient/model/UpdateNotificationBody.h index 22cf17a..ea03786 100644 --- a/client/include/FastCommentsClient/model/UpdateNotificationBody.h +++ b/client/include/FastCommentsClient/model/UpdateNotificationBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateQuestionConfigBody.h b/client/include/FastCommentsClient/model/UpdateQuestionConfigBody.h index 23710f5..7080996 100644 --- a/client/include/FastCommentsClient/model/UpdateQuestionConfigBody.h +++ b/client/include/FastCommentsClient/model/UpdateQuestionConfigBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateQuestionResultBody.h b/client/include/FastCommentsClient/model/UpdateQuestionResultBody.h index 2791bbe..073a381 100644 --- a/client/include/FastCommentsClient/model/UpdateQuestionResultBody.h +++ b/client/include/FastCommentsClient/model/UpdateQuestionResultBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateSubscriptionAPIResponse.h b/client/include/FastCommentsClient/model/UpdateSubscriptionAPIResponse.h index cc3f1a4..735d8cf 100644 --- a/client/include/FastCommentsClient/model/UpdateSubscriptionAPIResponse.h +++ b/client/include/FastCommentsClient/model/UpdateSubscriptionAPIResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateTenantBody.h b/client/include/FastCommentsClient/model/UpdateTenantBody.h index aee02ad..5cd03ee 100644 --- a/client/include/FastCommentsClient/model/UpdateTenantBody.h +++ b/client/include/FastCommentsClient/model/UpdateTenantBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateTenantPackageBody.h b/client/include/FastCommentsClient/model/UpdateTenantPackageBody.h index be4869e..b964aae 100644 --- a/client/include/FastCommentsClient/model/UpdateTenantPackageBody.h +++ b/client/include/FastCommentsClient/model/UpdateTenantPackageBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateTenantUserBody.h b/client/include/FastCommentsClient/model/UpdateTenantUserBody.h index 82f1cab..709c5c7 100644 --- a/client/include/FastCommentsClient/model/UpdateTenantUserBody.h +++ b/client/include/FastCommentsClient/model/UpdateTenantUserBody.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateUserBadgeParams.h b/client/include/FastCommentsClient/model/UpdateUserBadgeParams.h index df32c1a..ec70f3a 100644 --- a/client/include/FastCommentsClient/model/UpdateUserBadgeParams.h +++ b/client/include/FastCommentsClient/model/UpdateUserBadgeParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h index ce298d9..d3d8b8b 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h index 46d52b5..322bc45 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h index 51524b4..32868fd 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UploadImageResponse.h b/client/include/FastCommentsClient/model/UploadImageResponse.h index 633e51a..0459c16 100644 --- a/client/include/FastCommentsClient/model/UploadImageResponse.h +++ b/client/include/FastCommentsClient/model/UploadImageResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/User.h b/client/include/FastCommentsClient/model/User.h index e5240c6..2e91913 100644 --- a/client/include/FastCommentsClient/model/User.h +++ b/client/include/FastCommentsClient/model/User.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UserBadge.h b/client/include/FastCommentsClient/model/UserBadge.h index be0d96a..ece2048 100644 --- a/client/include/FastCommentsClient/model/UserBadge.h +++ b/client/include/FastCommentsClient/model/UserBadge.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UserBadgeProgress.h b/client/include/FastCommentsClient/model/UserBadgeProgress.h index 3a463a4..e7c180d 100644 --- a/client/include/FastCommentsClient/model/UserBadgeProgress.h +++ b/client/include/FastCommentsClient/model/UserBadgeProgress.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UserNotification.h b/client/include/FastCommentsClient/model/UserNotification.h index 5f018f2..e17d0c4 100644 --- a/client/include/FastCommentsClient/model/UserNotification.h +++ b/client/include/FastCommentsClient/model/UserNotification.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UserNotificationCount.h b/client/include/FastCommentsClient/model/UserNotificationCount.h index dce4c05..ee627f4 100644 --- a/client/include/FastCommentsClient/model/UserNotificationCount.h +++ b/client/include/FastCommentsClient/model/UserNotificationCount.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UserNotificationWriteResponse.h b/client/include/FastCommentsClient/model/UserNotificationWriteResponse.h index 45b03dc..44b0b98 100644 --- a/client/include/FastCommentsClient/model/UserNotificationWriteResponse.h +++ b/client/include/FastCommentsClient/model/UserNotificationWriteResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UserPresenceData.h b/client/include/FastCommentsClient/model/UserPresenceData.h index 5c6a78b..e1b2fd7 100644 --- a/client/include/FastCommentsClient/model/UserPresenceData.h +++ b/client/include/FastCommentsClient/model/UserPresenceData.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UserReactsResponse.h b/client/include/FastCommentsClient/model/UserReactsResponse.h index f0ca58a..b316570 100644 --- a/client/include/FastCommentsClient/model/UserReactsResponse.h +++ b/client/include/FastCommentsClient/model/UserReactsResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UserSearchResult.h b/client/include/FastCommentsClient/model/UserSearchResult.h index 51a7a78..6dd286d 100644 --- a/client/include/FastCommentsClient/model/UserSearchResult.h +++ b/client/include/FastCommentsClient/model/UserSearchResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UserSearchSection.h b/client/include/FastCommentsClient/model/UserSearchSection.h index b3e1cd2..b6dff47 100644 --- a/client/include/FastCommentsClient/model/UserSearchSection.h +++ b/client/include/FastCommentsClient/model/UserSearchSection.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UserSearchSectionResult.h b/client/include/FastCommentsClient/model/UserSearchSectionResult.h index 3c16586..58e7fa6 100644 --- a/client/include/FastCommentsClient/model/UserSearchSectionResult.h +++ b/client/include/FastCommentsClient/model/UserSearchSectionResult.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UserSessionInfo.h b/client/include/FastCommentsClient/model/UserSessionInfo.h index 01684b2..ff08800 100644 --- a/client/include/FastCommentsClient/model/UserSessionInfo.h +++ b/client/include/FastCommentsClient/model/UserSessionInfo.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/UsersListLocation.h b/client/include/FastCommentsClient/model/UsersListLocation.h index 6f498e9..d4a1c81 100644 --- a/client/include/FastCommentsClient/model/UsersListLocation.h +++ b/client/include/FastCommentsClient/model/UsersListLocation.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/VoteBodyParams.h b/client/include/FastCommentsClient/model/VoteBodyParams.h index 3457b83..a48ad45 100644 --- a/client/include/FastCommentsClient/model/VoteBodyParams.h +++ b/client/include/FastCommentsClient/model/VoteBodyParams.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/VoteDeleteResponse.h b/client/include/FastCommentsClient/model/VoteDeleteResponse.h index 7107329..c7e4a53 100644 --- a/client/include/FastCommentsClient/model/VoteDeleteResponse.h +++ b/client/include/FastCommentsClient/model/VoteDeleteResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/VoteResponse.h b/client/include/FastCommentsClient/model/VoteResponse.h index 1007d00..b3530e4 100644 --- a/client/include/FastCommentsClient/model/VoteResponse.h +++ b/client/include/FastCommentsClient/model/VoteResponse.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/VoteResponseUser.h b/client/include/FastCommentsClient/model/VoteResponseUser.h index 6f4e057..df57327 100644 --- a/client/include/FastCommentsClient/model/VoteResponseUser.h +++ b/client/include/FastCommentsClient/model/VoteResponseUser.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/include/FastCommentsClient/model/VoteStyle.h b/client/include/FastCommentsClient/model/VoteStyle.h index 3a21a8c..a783a66 100644 --- a/client/include/FastCommentsClient/model/VoteStyle.h +++ b/client/include/FastCommentsClient/model/VoteStyle.h @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/AnyType.cpp b/client/src/AnyType.cpp index 72017d0..abb0e7a 100644 --- a/client/src/AnyType.cpp +++ b/client/src/AnyType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/ApiClient.cpp b/client/src/ApiClient.cpp index 730469f..a692433 100644 --- a/client/src/ApiClient.cpp +++ b/client/src/ApiClient.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/ApiConfiguration.cpp b/client/src/ApiConfiguration.cpp index 3855b28..0c86730 100644 --- a/client/src/ApiConfiguration.cpp +++ b/client/src/ApiConfiguration.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/ApiException.cpp b/client/src/ApiException.cpp index 921d6a3..63ae197 100644 --- a/client/src/ApiException.cpp +++ b/client/src/ApiException.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/HttpContent.cpp b/client/src/HttpContent.cpp index 403d665..0d55512 100644 --- a/client/src/HttpContent.cpp +++ b/client/src/HttpContent.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/JsonBody.cpp b/client/src/JsonBody.cpp index 6651bc5..16b9b30 100644 --- a/client/src/JsonBody.cpp +++ b/client/src/JsonBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/ModelBase.cpp b/client/src/ModelBase.cpp index 6d3e196..0a705b3 100644 --- a/client/src/ModelBase.cpp +++ b/client/src/ModelBase.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/MultipartFormData.cpp b/client/src/MultipartFormData.cpp index 056dc21..fe3228b 100644 --- a/client/src/MultipartFormData.cpp +++ b/client/src/MultipartFormData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/Object.cpp b/client/src/Object.cpp index 46d0e8a..5ee3811 100644 --- a/client/src/Object.cpp +++ b/client/src/Object.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/api/DefaultApi.cpp b/client/src/api/DefaultApi.cpp index c60ca76..561388f 100644 --- a/client/src/api/DefaultApi.cpp +++ b/client/src/api/DefaultApi.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/api/ModerationApi.cpp b/client/src/api/ModerationApi.cpp index c8473d7..a04e713 100644 --- a/client/src/api/ModerationApi.cpp +++ b/client/src/api/ModerationApi.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/api/PublicApi.cpp b/client/src/api/PublicApi.cpp index 9878be6..f5eaff7 100644 --- a/client/src/api/PublicApi.cpp +++ b/client/src/api/PublicApi.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIAuditLog.cpp b/client/src/model/APIAuditLog.cpp index 4d754c0..27d6424 100644 --- a/client/src/model/APIAuditLog.cpp +++ b/client/src/model/APIAuditLog.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIBanUserChangeLog.cpp b/client/src/model/APIBanUserChangeLog.cpp index 4cfde72..6f2d737 100644 --- a/client/src/model/APIBanUserChangeLog.cpp +++ b/client/src/model/APIBanUserChangeLog.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIBanUserChangedValues.cpp b/client/src/model/APIBanUserChangedValues.cpp index 470f033..a24851f 100644 --- a/client/src/model/APIBanUserChangedValues.cpp +++ b/client/src/model/APIBanUserChangedValues.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIBannedUser.cpp b/client/src/model/APIBannedUser.cpp index 7cde5d2..ba994b4 100644 --- a/client/src/model/APIBannedUser.cpp +++ b/client/src/model/APIBannedUser.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIBannedUserWithMultiMatchInfo.cpp b/client/src/model/APIBannedUserWithMultiMatchInfo.cpp index 2b40e71..42fb5a7 100644 --- a/client/src/model/APIBannedUserWithMultiMatchInfo.cpp +++ b/client/src/model/APIBannedUserWithMultiMatchInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIComment.cpp b/client/src/model/APIComment.cpp index 3f21a2f..f30da34 100644 --- a/client/src/model/APIComment.cpp +++ b/client/src/model/APIComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APICommentBase.cpp b/client/src/model/APICommentBase.cpp index 21af956..6e17116 100644 --- a/client/src/model/APICommentBase.cpp +++ b/client/src/model/APICommentBase.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APICommentBase_meta.cpp b/client/src/model/APICommentBase_meta.cpp index 208f652..6586707 100644 --- a/client/src/model/APICommentBase_meta.cpp +++ b/client/src/model/APICommentBase_meta.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APICommentCommonBannedUser.cpp b/client/src/model/APICommentCommonBannedUser.cpp index 33960a6..f02c17b 100644 --- a/client/src/model/APICommentCommonBannedUser.cpp +++ b/client/src/model/APICommentCommonBannedUser.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APICreateUserBadgeResponse.cpp b/client/src/model/APICreateUserBadgeResponse.cpp index 0bb9ff2..42fc92f 100644 --- a/client/src/model/APICreateUserBadgeResponse.cpp +++ b/client/src/model/APICreateUserBadgeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIDomainConfiguration.cpp b/client/src/model/APIDomainConfiguration.cpp index aaf0bba..3b0c5b7 100644 --- a/client/src/model/APIDomainConfiguration.cpp +++ b/client/src/model/APIDomainConfiguration.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIEmptyResponse.cpp b/client/src/model/APIEmptyResponse.cpp index d82c4e7..b4b19b6 100644 --- a/client/src/model/APIEmptyResponse.cpp +++ b/client/src/model/APIEmptyResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIEmptySuccessResponse.cpp b/client/src/model/APIEmptySuccessResponse.cpp index 327f766..248133b 100644 --- a/client/src/model/APIEmptySuccessResponse.cpp +++ b/client/src/model/APIEmptySuccessResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIError.cpp b/client/src/model/APIError.cpp index c6c68b6..c17fefb 100644 --- a/client/src/model/APIError.cpp +++ b/client/src/model/APIError.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIGetCommentResponse.cpp b/client/src/model/APIGetCommentResponse.cpp index dae82f7..2a5ef2a 100644 --- a/client/src/model/APIGetCommentResponse.cpp +++ b/client/src/model/APIGetCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIGetCommentsResponse.cpp b/client/src/model/APIGetCommentsResponse.cpp index f58d78e..d0109d1 100644 --- a/client/src/model/APIGetCommentsResponse.cpp +++ b/client/src/model/APIGetCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIGetUserBadgeProgressListResponse.cpp b/client/src/model/APIGetUserBadgeProgressListResponse.cpp index 78cd004..a68542c 100644 --- a/client/src/model/APIGetUserBadgeProgressListResponse.cpp +++ b/client/src/model/APIGetUserBadgeProgressListResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIGetUserBadgeProgressResponse.cpp b/client/src/model/APIGetUserBadgeProgressResponse.cpp index 839146d..0de92b9 100644 --- a/client/src/model/APIGetUserBadgeProgressResponse.cpp +++ b/client/src/model/APIGetUserBadgeProgressResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIGetUserBadgeResponse.cpp b/client/src/model/APIGetUserBadgeResponse.cpp index ea6b2de..1bff427 100644 --- a/client/src/model/APIGetUserBadgeResponse.cpp +++ b/client/src/model/APIGetUserBadgeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIGetUserBadgesResponse.cpp b/client/src/model/APIGetUserBadgesResponse.cpp index 1ff9bb3..489e138 100644 --- a/client/src/model/APIGetUserBadgesResponse.cpp +++ b/client/src/model/APIGetUserBadgesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIModerateGetUserBanPreferencesResponse.cpp b/client/src/model/APIModerateGetUserBanPreferencesResponse.cpp index d8b5801..a1a7aa1 100644 --- a/client/src/model/APIModerateGetUserBanPreferencesResponse.cpp +++ b/client/src/model/APIModerateGetUserBanPreferencesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIModerateUserBanPreferences.cpp b/client/src/model/APIModerateUserBanPreferences.cpp index 6849af5..159a67d 100644 --- a/client/src/model/APIModerateUserBanPreferences.cpp +++ b/client/src/model/APIModerateUserBanPreferences.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIPage.cpp b/client/src/model/APIPage.cpp index 7e0ea03..421f40b 100644 --- a/client/src/model/APIPage.cpp +++ b/client/src/model/APIPage.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APISSOUser.cpp b/client/src/model/APISSOUser.cpp index ac0265c..ff6894f 100644 --- a/client/src/model/APISSOUser.cpp +++ b/client/src/model/APISSOUser.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APISaveCommentResponse.cpp b/client/src/model/APISaveCommentResponse.cpp index ede700d..a0036ed 100644 --- a/client/src/model/APISaveCommentResponse.cpp +++ b/client/src/model/APISaveCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIStatus.cpp b/client/src/model/APIStatus.cpp index 334d0b4..abe4a07 100644 --- a/client/src/model/APIStatus.cpp +++ b/client/src/model/APIStatus.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APITenant.cpp b/client/src/model/APITenant.cpp index a4acff9..6fd1127 100644 --- a/client/src/model/APITenant.cpp +++ b/client/src/model/APITenant.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APITenantDailyUsage.cpp b/client/src/model/APITenantDailyUsage.cpp index bb926ea..9c4deed 100644 --- a/client/src/model/APITenantDailyUsage.cpp +++ b/client/src/model/APITenantDailyUsage.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APITicket.cpp b/client/src/model/APITicket.cpp index c4c7650..308bbd5 100644 --- a/client/src/model/APITicket.cpp +++ b/client/src/model/APITicket.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APITicketDetail.cpp b/client/src/model/APITicketDetail.cpp index f3ccdbb..14da51c 100644 --- a/client/src/model/APITicketDetail.cpp +++ b/client/src/model/APITicketDetail.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APITicketFile.cpp b/client/src/model/APITicketFile.cpp index 560f6e6..732c89c 100644 --- a/client/src/model/APITicketFile.cpp +++ b/client/src/model/APITicketFile.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/APIUserSubscription.cpp b/client/src/model/APIUserSubscription.cpp index fd22364..b8c8b43 100644 --- a/client/src/model/APIUserSubscription.cpp +++ b/client/src/model/APIUserSubscription.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AddDomainConfigParams.cpp b/client/src/model/AddDomainConfigParams.cpp index be6879e..904601e 100644 --- a/client/src/model/AddDomainConfigParams.cpp +++ b/client/src/model/AddDomainConfigParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AddDomainConfigResponse.cpp b/client/src/model/AddDomainConfigResponse.cpp index 5495b4b..e46f268 100644 --- a/client/src/model/AddDomainConfigResponse.cpp +++ b/client/src/model/AddDomainConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AddDomainConfigResponse_anyOf.cpp b/client/src/model/AddDomainConfigResponse_anyOf.cpp index 1ea1ba2..3871926 100644 --- a/client/src/model/AddDomainConfigResponse_anyOf.cpp +++ b/client/src/model/AddDomainConfigResponse_anyOf.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AddPageAPIResponse.cpp b/client/src/model/AddPageAPIResponse.cpp index 94ebdb9..f6fcb3a 100644 --- a/client/src/model/AddPageAPIResponse.cpp +++ b/client/src/model/AddPageAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AddSSOUserAPIResponse.cpp b/client/src/model/AddSSOUserAPIResponse.cpp index 8a9377d..4b03dd5 100644 --- a/client/src/model/AddSSOUserAPIResponse.cpp +++ b/client/src/model/AddSSOUserAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AdjustCommentVotesParams.cpp b/client/src/model/AdjustCommentVotesParams.cpp index 8c406fa..7cb8e45 100644 --- a/client/src/model/AdjustCommentVotesParams.cpp +++ b/client/src/model/AdjustCommentVotesParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AdjustVotesResponse.cpp b/client/src/model/AdjustVotesResponse.cpp index 1b312b1..b30cd1b 100644 --- a/client/src/model/AdjustVotesResponse.cpp +++ b/client/src/model/AdjustVotesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregateQuestionResultsResponse.cpp b/client/src/model/AggregateQuestionResultsResponse.cpp index 4d72935..5738147 100644 --- a/client/src/model/AggregateQuestionResultsResponse.cpp +++ b/client/src/model/AggregateQuestionResultsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregateResponse.cpp b/client/src/model/AggregateResponse.cpp index 42b5dcd..c7f60c2 100644 --- a/client/src/model/AggregateResponse.cpp +++ b/client/src/model/AggregateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregateTimeBucket.cpp b/client/src/model/AggregateTimeBucket.cpp index c8d0bf6..8df06c2 100644 --- a/client/src/model/AggregateTimeBucket.cpp +++ b/client/src/model/AggregateTimeBucket.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregationAPIError.cpp b/client/src/model/AggregationAPIError.cpp index 887b3c3..a0fc156 100644 --- a/client/src/model/AggregationAPIError.cpp +++ b/client/src/model/AggregationAPIError.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregationItem.cpp b/client/src/model/AggregationItem.cpp index c4b37b8..4bcb3c6 100644 --- a/client/src/model/AggregationItem.cpp +++ b/client/src/model/AggregationItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregationOpType.cpp b/client/src/model/AggregationOpType.cpp index e9a0c6b..f6c1392 100644 --- a/client/src/model/AggregationOpType.cpp +++ b/client/src/model/AggregationOpType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregationOperation.cpp b/client/src/model/AggregationOperation.cpp index 3e2cc22..5bce9ee 100644 --- a/client/src/model/AggregationOperation.cpp +++ b/client/src/model/AggregationOperation.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregationRequest.cpp b/client/src/model/AggregationRequest.cpp index 4a7a760..db6ee4f 100644 --- a/client/src/model/AggregationRequest.cpp +++ b/client/src/model/AggregationRequest.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregationRequest_sort.cpp b/client/src/model/AggregationRequest_sort.cpp index a951b8a..1cb4e16 100644 --- a/client/src/model/AggregationRequest_sort.cpp +++ b/client/src/model/AggregationRequest_sort.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregationResponse.cpp b/client/src/model/AggregationResponse.cpp index a4b07e2..b0390a0 100644 --- a/client/src/model/AggregationResponse.cpp +++ b/client/src/model/AggregationResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregationResponse_stats.cpp b/client/src/model/AggregationResponse_stats.cpp index 2113ce4..3b6be82 100644 --- a/client/src/model/AggregationResponse_stats.cpp +++ b/client/src/model/AggregationResponse_stats.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AggregationValue.cpp b/client/src/model/AggregationValue.cpp index c7762a7..23ccca4 100644 --- a/client/src/model/AggregationValue.cpp +++ b/client/src/model/AggregationValue.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/AwardUserBadgeResponse.cpp b/client/src/model/AwardUserBadgeResponse.cpp index c915c9a..c08505d 100644 --- a/client/src/model/AwardUserBadgeResponse.cpp +++ b/client/src/model/AwardUserBadgeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BanUserFromCommentResult.cpp b/client/src/model/BanUserFromCommentResult.cpp index 959051e..c348242 100644 --- a/client/src/model/BanUserFromCommentResult.cpp +++ b/client/src/model/BanUserFromCommentResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BanUserUndoParams.cpp b/client/src/model/BanUserUndoParams.cpp index 91201d4..eb26181 100644 --- a/client/src/model/BanUserUndoParams.cpp +++ b/client/src/model/BanUserUndoParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BannedUserMatch.cpp b/client/src/model/BannedUserMatch.cpp index bfce3af..356faf7 100644 --- a/client/src/model/BannedUserMatch.cpp +++ b/client/src/model/BannedUserMatch.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BannedUserMatchType.cpp b/client/src/model/BannedUserMatchType.cpp index f905940..f4be834 100644 --- a/client/src/model/BannedUserMatchType.cpp +++ b/client/src/model/BannedUserMatchType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BannedUserMatch_matchedOnValue.cpp b/client/src/model/BannedUserMatch_matchedOnValue.cpp index 1b6e881..a23214a 100644 --- a/client/src/model/BannedUserMatch_matchedOnValue.cpp +++ b/client/src/model/BannedUserMatch_matchedOnValue.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BillingInfo.cpp b/client/src/model/BillingInfo.cpp index 572c4b7..5f40c36 100644 --- a/client/src/model/BillingInfo.cpp +++ b/client/src/model/BillingInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BlockFromCommentParams.cpp b/client/src/model/BlockFromCommentParams.cpp index 53660b5..72fe369 100644 --- a/client/src/model/BlockFromCommentParams.cpp +++ b/client/src/model/BlockFromCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BlockSuccess.cpp b/client/src/model/BlockSuccess.cpp index 93267ca..4a37ba4 100644 --- a/client/src/model/BlockSuccess.cpp +++ b/client/src/model/BlockSuccess.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BuildModerationFilterParams.cpp b/client/src/model/BuildModerationFilterParams.cpp index b58e2f9..6f60c71 100644 --- a/client/src/model/BuildModerationFilterParams.cpp +++ b/client/src/model/BuildModerationFilterParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BuildModerationFilterResponse.cpp b/client/src/model/BuildModerationFilterResponse.cpp index 509a899..53eaf89 100644 --- a/client/src/model/BuildModerationFilterResponse.cpp +++ b/client/src/model/BuildModerationFilterResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BulkAggregateQuestionItem.cpp b/client/src/model/BulkAggregateQuestionItem.cpp index 3d5413a..29f44e5 100644 --- a/client/src/model/BulkAggregateQuestionItem.cpp +++ b/client/src/model/BulkAggregateQuestionItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BulkAggregateQuestionResultsRequest.cpp b/client/src/model/BulkAggregateQuestionResultsRequest.cpp index dec6370..a58cdfb 100644 --- a/client/src/model/BulkAggregateQuestionResultsRequest.cpp +++ b/client/src/model/BulkAggregateQuestionResultsRequest.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BulkAggregateQuestionResultsResponse.cpp b/client/src/model/BulkAggregateQuestionResultsResponse.cpp index b9cddef..945ba9a 100644 --- a/client/src/model/BulkAggregateQuestionResultsResponse.cpp +++ b/client/src/model/BulkAggregateQuestionResultsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BulkCreateHashTagsBody.cpp b/client/src/model/BulkCreateHashTagsBody.cpp index 89ac4ad..3c9ab18 100644 --- a/client/src/model/BulkCreateHashTagsBody.cpp +++ b/client/src/model/BulkCreateHashTagsBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BulkCreateHashTagsBody_tags_inner.cpp b/client/src/model/BulkCreateHashTagsBody_tags_inner.cpp index 0699819..c46bced 100644 --- a/client/src/model/BulkCreateHashTagsBody_tags_inner.cpp +++ b/client/src/model/BulkCreateHashTagsBody_tags_inner.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BulkCreateHashTagsResponse.cpp b/client/src/model/BulkCreateHashTagsResponse.cpp index dd44c62..deb270d 100644 --- a/client/src/model/BulkCreateHashTagsResponse.cpp +++ b/client/src/model/BulkCreateHashTagsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BulkCreateHashTagsResponse_results_inner.cpp b/client/src/model/BulkCreateHashTagsResponse_results_inner.cpp index 04606c2..22cc100 100644 --- a/client/src/model/BulkCreateHashTagsResponse_results_inner.cpp +++ b/client/src/model/BulkCreateHashTagsResponse_results_inner.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BulkPreBanParams.cpp b/client/src/model/BulkPreBanParams.cpp index b76c1d5..0ed4a29 100644 --- a/client/src/model/BulkPreBanParams.cpp +++ b/client/src/model/BulkPreBanParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/BulkPreBanSummary.cpp b/client/src/model/BulkPreBanSummary.cpp index 12c2591..f8e9c49 100644 --- a/client/src/model/BulkPreBanSummary.cpp +++ b/client/src/model/BulkPreBanSummary.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ChangeCommentPinStatusResponse.cpp b/client/src/model/ChangeCommentPinStatusResponse.cpp index 84bad0a..6f04330 100644 --- a/client/src/model/ChangeCommentPinStatusResponse.cpp +++ b/client/src/model/ChangeCommentPinStatusResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ChangeTicketStateBody.cpp b/client/src/model/ChangeTicketStateBody.cpp index 7772341..7ba236a 100644 --- a/client/src/model/ChangeTicketStateBody.cpp +++ b/client/src/model/ChangeTicketStateBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ChangeTicketStateResponse.cpp b/client/src/model/ChangeTicketStateResponse.cpp index 036d3fb..74899eb 100644 --- a/client/src/model/ChangeTicketStateResponse.cpp +++ b/client/src/model/ChangeTicketStateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CheckBlockedCommentsResponse.cpp b/client/src/model/CheckBlockedCommentsResponse.cpp index 3598c1d..9200e82 100644 --- a/client/src/model/CheckBlockedCommentsResponse.cpp +++ b/client/src/model/CheckBlockedCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CombineQuestionResultsWithCommentsResponse.cpp b/client/src/model/CombineQuestionResultsWithCommentsResponse.cpp index f645336..23fd431 100644 --- a/client/src/model/CombineQuestionResultsWithCommentsResponse.cpp +++ b/client/src/model/CombineQuestionResultsWithCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentData.cpp b/client/src/model/CommentData.cpp index 0b7e86a..ce057a4 100644 --- a/client/src/model/CommentData.cpp +++ b/client/src/model/CommentData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentHTMLRenderingMode.cpp b/client/src/model/CommentHTMLRenderingMode.cpp index a3e57b8..a17f586 100644 --- a/client/src/model/CommentHTMLRenderingMode.cpp +++ b/client/src/model/CommentHTMLRenderingMode.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentLogData.cpp b/client/src/model/CommentLogData.cpp index 4c2f248..23c8de7 100644 --- a/client/src/model/CommentLogData.cpp +++ b/client/src/model/CommentLogData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentLogEntry.cpp b/client/src/model/CommentLogEntry.cpp index 4dfc35a..e4a3121 100644 --- a/client/src/model/CommentLogEntry.cpp +++ b/client/src/model/CommentLogEntry.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentLogType.cpp b/client/src/model/CommentLogType.cpp index f84791a..bf94135 100644 --- a/client/src/model/CommentLogType.cpp +++ b/client/src/model/CommentLogType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentQuestionResultsRenderingType.cpp b/client/src/model/CommentQuestionResultsRenderingType.cpp index 58f8279..149aa7d 100644 --- a/client/src/model/CommentQuestionResultsRenderingType.cpp +++ b/client/src/model/CommentQuestionResultsRenderingType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentQuestionsRequired.cpp b/client/src/model/CommentQuestionsRequired.cpp index 55eea48..8023042 100644 --- a/client/src/model/CommentQuestionsRequired.cpp +++ b/client/src/model/CommentQuestionsRequired.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentTextUpdateRequest.cpp b/client/src/model/CommentTextUpdateRequest.cpp index 26fee3a..ae9b6c7 100644 --- a/client/src/model/CommentTextUpdateRequest.cpp +++ b/client/src/model/CommentTextUpdateRequest.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentThreadDeletionMode.cpp b/client/src/model/CommentThreadDeletionMode.cpp index eb6fd00..b971791 100644 --- a/client/src/model/CommentThreadDeletionMode.cpp +++ b/client/src/model/CommentThreadDeletionMode.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentUserBadgeInfo.cpp b/client/src/model/CommentUserBadgeInfo.cpp index 1301945..3d8ea35 100644 --- a/client/src/model/CommentUserBadgeInfo.cpp +++ b/client/src/model/CommentUserBadgeInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentUserHashTagInfo.cpp b/client/src/model/CommentUserHashTagInfo.cpp index fb93e96..75d9069 100644 --- a/client/src/model/CommentUserHashTagInfo.cpp +++ b/client/src/model/CommentUserHashTagInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentUserMentionInfo.cpp b/client/src/model/CommentUserMentionInfo.cpp index 86cbd15..a6ae035 100644 --- a/client/src/model/CommentUserMentionInfo.cpp +++ b/client/src/model/CommentUserMentionInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommenterNameFormats.cpp b/client/src/model/CommenterNameFormats.cpp index f3d4725..1d70b0e 100644 --- a/client/src/model/CommenterNameFormats.cpp +++ b/client/src/model/CommenterNameFormats.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CommentsByIdsParams.cpp b/client/src/model/CommentsByIdsParams.cpp index 899795b..0fbb8f5 100644 --- a/client/src/model/CommentsByIdsParams.cpp +++ b/client/src/model/CommentsByIdsParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateAPIPageData.cpp b/client/src/model/CreateAPIPageData.cpp index 57064e6..0a20e8a 100644 --- a/client/src/model/CreateAPIPageData.cpp +++ b/client/src/model/CreateAPIPageData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateAPISSOUserData.cpp b/client/src/model/CreateAPISSOUserData.cpp index c38bef2..463fc61 100644 --- a/client/src/model/CreateAPISSOUserData.cpp +++ b/client/src/model/CreateAPISSOUserData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateAPIUserSubscriptionData.cpp b/client/src/model/CreateAPIUserSubscriptionData.cpp index 2883aeb..0a5c165 100644 --- a/client/src/model/CreateAPIUserSubscriptionData.cpp +++ b/client/src/model/CreateAPIUserSubscriptionData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateCommentParams.cpp b/client/src/model/CreateCommentParams.cpp index 13a62c6..bb2b0c4 100644 --- a/client/src/model/CreateCommentParams.cpp +++ b/client/src/model/CreateCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateEmailTemplateBody.cpp b/client/src/model/CreateEmailTemplateBody.cpp index ee2b365..60a64ae 100644 --- a/client/src/model/CreateEmailTemplateBody.cpp +++ b/client/src/model/CreateEmailTemplateBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateEmailTemplateResponse.cpp b/client/src/model/CreateEmailTemplateResponse.cpp index 9a74872..0189f93 100644 --- a/client/src/model/CreateEmailTemplateResponse.cpp +++ b/client/src/model/CreateEmailTemplateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateFeedPostParams.cpp b/client/src/model/CreateFeedPostParams.cpp index f16bf4a..cc5cd18 100644 --- a/client/src/model/CreateFeedPostParams.cpp +++ b/client/src/model/CreateFeedPostParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateFeedPostResponse.cpp b/client/src/model/CreateFeedPostResponse.cpp index 31ca55b..5156252 100644 --- a/client/src/model/CreateFeedPostResponse.cpp +++ b/client/src/model/CreateFeedPostResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateFeedPostsResponse.cpp b/client/src/model/CreateFeedPostsResponse.cpp index d2a24b6..fa009ba 100644 --- a/client/src/model/CreateFeedPostsResponse.cpp +++ b/client/src/model/CreateFeedPostsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateHashTagBody.cpp b/client/src/model/CreateHashTagBody.cpp index 1500a1c..ad8360b 100644 --- a/client/src/model/CreateHashTagBody.cpp +++ b/client/src/model/CreateHashTagBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateHashTagResponse.cpp b/client/src/model/CreateHashTagResponse.cpp index 7a8827e..192c368 100644 --- a/client/src/model/CreateHashTagResponse.cpp +++ b/client/src/model/CreateHashTagResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateModeratorBody.cpp b/client/src/model/CreateModeratorBody.cpp index 15e77d7..82f7490 100644 --- a/client/src/model/CreateModeratorBody.cpp +++ b/client/src/model/CreateModeratorBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateModeratorResponse.cpp b/client/src/model/CreateModeratorResponse.cpp index 91a751f..c29ce32 100644 --- a/client/src/model/CreateModeratorResponse.cpp +++ b/client/src/model/CreateModeratorResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateQuestionConfigBody.cpp b/client/src/model/CreateQuestionConfigBody.cpp index 868556f..58aa450 100644 --- a/client/src/model/CreateQuestionConfigBody.cpp +++ b/client/src/model/CreateQuestionConfigBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateQuestionConfigResponse.cpp b/client/src/model/CreateQuestionConfigResponse.cpp index 8fc4505..2aaa40d 100644 --- a/client/src/model/CreateQuestionConfigResponse.cpp +++ b/client/src/model/CreateQuestionConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateQuestionResultBody.cpp b/client/src/model/CreateQuestionResultBody.cpp index 0fedf7a..85d4160 100644 --- a/client/src/model/CreateQuestionResultBody.cpp +++ b/client/src/model/CreateQuestionResultBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateQuestionResultResponse.cpp b/client/src/model/CreateQuestionResultResponse.cpp index 7ba964a..b241663 100644 --- a/client/src/model/CreateQuestionResultResponse.cpp +++ b/client/src/model/CreateQuestionResultResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateSubscriptionAPIResponse.cpp b/client/src/model/CreateSubscriptionAPIResponse.cpp index 72faaf3..0f74e27 100644 --- a/client/src/model/CreateSubscriptionAPIResponse.cpp +++ b/client/src/model/CreateSubscriptionAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateTenantBody.cpp b/client/src/model/CreateTenantBody.cpp index fece73d..f79c403 100644 --- a/client/src/model/CreateTenantBody.cpp +++ b/client/src/model/CreateTenantBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateTenantPackageBody.cpp b/client/src/model/CreateTenantPackageBody.cpp index d552ab4..47b2df9 100644 --- a/client/src/model/CreateTenantPackageBody.cpp +++ b/client/src/model/CreateTenantPackageBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateTenantPackageResponse.cpp b/client/src/model/CreateTenantPackageResponse.cpp index 46e435d..849a9cc 100644 --- a/client/src/model/CreateTenantPackageResponse.cpp +++ b/client/src/model/CreateTenantPackageResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateTenantResponse.cpp b/client/src/model/CreateTenantResponse.cpp index 82ef119..faede4b 100644 --- a/client/src/model/CreateTenantResponse.cpp +++ b/client/src/model/CreateTenantResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateTenantUserBody.cpp b/client/src/model/CreateTenantUserBody.cpp index bd2e0f7..b8b9f6a 100644 --- a/client/src/model/CreateTenantUserBody.cpp +++ b/client/src/model/CreateTenantUserBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateTenantUserResponse.cpp b/client/src/model/CreateTenantUserResponse.cpp index 0e57b85..4e488ca 100644 --- a/client/src/model/CreateTenantUserResponse.cpp +++ b/client/src/model/CreateTenantUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateTicketBody.cpp b/client/src/model/CreateTicketBody.cpp index c2e6547..c828bef 100644 --- a/client/src/model/CreateTicketBody.cpp +++ b/client/src/model/CreateTicketBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateTicketResponse.cpp b/client/src/model/CreateTicketResponse.cpp index df15854..e2c50bc 100644 --- a/client/src/model/CreateTicketResponse.cpp +++ b/client/src/model/CreateTicketResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateUserBadgeParams.cpp b/client/src/model/CreateUserBadgeParams.cpp index a243824..44b8e69 100644 --- a/client/src/model/CreateUserBadgeParams.cpp +++ b/client/src/model/CreateUserBadgeParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CreateV1PageReact.cpp b/client/src/model/CreateV1PageReact.cpp index 0824871..23db6e1 100644 --- a/client/src/model/CreateV1PageReact.cpp +++ b/client/src/model/CreateV1PageReact.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CustomConfigParameters.cpp b/client/src/model/CustomConfigParameters.cpp index f1771d2..c771be2 100644 --- a/client/src/model/CustomConfigParameters.cpp +++ b/client/src/model/CustomConfigParameters.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/CustomEmailTemplate.cpp b/client/src/model/CustomEmailTemplate.cpp index 24efecf..a885794 100644 --- a/client/src/model/CustomEmailTemplate.cpp +++ b/client/src/model/CustomEmailTemplate.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/DeleteCommentAction.cpp b/client/src/model/DeleteCommentAction.cpp index 34b18ba..a73868f 100644 --- a/client/src/model/DeleteCommentAction.cpp +++ b/client/src/model/DeleteCommentAction.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/DeleteCommentResult.cpp b/client/src/model/DeleteCommentResult.cpp index d307906..f5f91f4 100644 --- a/client/src/model/DeleteCommentResult.cpp +++ b/client/src/model/DeleteCommentResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/DeleteDomainConfigResponse.cpp b/client/src/model/DeleteDomainConfigResponse.cpp index 087f66b..a2c9877 100644 --- a/client/src/model/DeleteDomainConfigResponse.cpp +++ b/client/src/model/DeleteDomainConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/DeleteFeedPostPublicResponse.cpp b/client/src/model/DeleteFeedPostPublicResponse.cpp index df003f8..f203eb8 100644 --- a/client/src/model/DeleteFeedPostPublicResponse.cpp +++ b/client/src/model/DeleteFeedPostPublicResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/DeleteHashTagRequestBody.cpp b/client/src/model/DeleteHashTagRequestBody.cpp index 653dd50..982230b 100644 --- a/client/src/model/DeleteHashTagRequestBody.cpp +++ b/client/src/model/DeleteHashTagRequestBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/DeletePageAPIResponse.cpp b/client/src/model/DeletePageAPIResponse.cpp index 088e36d..7078208 100644 --- a/client/src/model/DeletePageAPIResponse.cpp +++ b/client/src/model/DeletePageAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/DeleteSSOUserAPIResponse.cpp b/client/src/model/DeleteSSOUserAPIResponse.cpp index 62e5ec1..d529318 100644 --- a/client/src/model/DeleteSSOUserAPIResponse.cpp +++ b/client/src/model/DeleteSSOUserAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/DeleteSubscriptionAPIResponse.cpp b/client/src/model/DeleteSubscriptionAPIResponse.cpp index b75b2b0..a6ccdf6 100644 --- a/client/src/model/DeleteSubscriptionAPIResponse.cpp +++ b/client/src/model/DeleteSubscriptionAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/DeletedCommentResultComment.cpp b/client/src/model/DeletedCommentResultComment.cpp index 9b8b81b..4f99401 100644 --- a/client/src/model/DeletedCommentResultComment.cpp +++ b/client/src/model/DeletedCommentResultComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/DigestEmailFrequency.cpp b/client/src/model/DigestEmailFrequency.cpp index 658aa70..1f20eb3 100644 --- a/client/src/model/DigestEmailFrequency.cpp +++ b/client/src/model/DigestEmailFrequency.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/EmailTemplateDefinition.cpp b/client/src/model/EmailTemplateDefinition.cpp index 7ef7a83..e013c40 100644 --- a/client/src/model/EmailTemplateDefinition.cpp +++ b/client/src/model/EmailTemplateDefinition.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/EmailTemplateRenderErrorResponse.cpp b/client/src/model/EmailTemplateRenderErrorResponse.cpp index 53992e3..a2b89df 100644 --- a/client/src/model/EmailTemplateRenderErrorResponse.cpp +++ b/client/src/model/EmailTemplateRenderErrorResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/EventLogEntry.cpp b/client/src/model/EventLogEntry.cpp index e2cc571..c7471a3 100644 --- a/client/src/model/EventLogEntry.cpp +++ b/client/src/model/EventLogEntry.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/FComment.cpp b/client/src/model/FComment.cpp index 5952847..4047b01 100644 --- a/client/src/model/FComment.cpp +++ b/client/src/model/FComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/FComment_meta.cpp b/client/src/model/FComment_meta.cpp index 2d77cae..0dbc65d 100644 --- a/client/src/model/FComment_meta.cpp +++ b/client/src/model/FComment_meta.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/FeedPost.cpp b/client/src/model/FeedPost.cpp index 1c438ac..e7a6e4a 100644 --- a/client/src/model/FeedPost.cpp +++ b/client/src/model/FeedPost.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/FeedPostLink.cpp b/client/src/model/FeedPostLink.cpp index c8cc5c7..49146a0 100644 --- a/client/src/model/FeedPostLink.cpp +++ b/client/src/model/FeedPostLink.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/FeedPostMediaItem.cpp b/client/src/model/FeedPostMediaItem.cpp index 0596eff..7f6b5a0 100644 --- a/client/src/model/FeedPostMediaItem.cpp +++ b/client/src/model/FeedPostMediaItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/FeedPostMediaItemAsset.cpp b/client/src/model/FeedPostMediaItemAsset.cpp index 5164d53..65b4a8a 100644 --- a/client/src/model/FeedPostMediaItemAsset.cpp +++ b/client/src/model/FeedPostMediaItemAsset.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/FeedPostStats.cpp b/client/src/model/FeedPostStats.cpp index af0b779..f764872 100644 --- a/client/src/model/FeedPostStats.cpp +++ b/client/src/model/FeedPostStats.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/FeedPostsStatsResponse.cpp b/client/src/model/FeedPostsStatsResponse.cpp index 006aed5..f3fa096 100644 --- a/client/src/model/FeedPostsStatsResponse.cpp +++ b/client/src/model/FeedPostsStatsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/FindCommentsByRangeItem.cpp b/client/src/model/FindCommentsByRangeItem.cpp index e1b2165..6edd030 100644 --- a/client/src/model/FindCommentsByRangeItem.cpp +++ b/client/src/model/FindCommentsByRangeItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/FindCommentsByRangeResponse.cpp b/client/src/model/FindCommentsByRangeResponse.cpp index d5453ad..baa90bb 100644 --- a/client/src/model/FindCommentsByRangeResponse.cpp +++ b/client/src/model/FindCommentsByRangeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/FlagCommentResponse.cpp b/client/src/model/FlagCommentResponse.cpp index 56b4d42..30000f2 100644 --- a/client/src/model/FlagCommentResponse.cpp +++ b/client/src/model/FlagCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetAuditLogsResponse.cpp b/client/src/model/GetAuditLogsResponse.cpp index 5736bc5..4e1148b 100644 --- a/client/src/model/GetAuditLogsResponse.cpp +++ b/client/src/model/GetAuditLogsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetBannedUsersCountResponse.cpp b/client/src/model/GetBannedUsersCountResponse.cpp index 7799bcc..56586c5 100644 --- a/client/src/model/GetBannedUsersCountResponse.cpp +++ b/client/src/model/GetBannedUsersCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetBannedUsersFromCommentResponse.cpp b/client/src/model/GetBannedUsersFromCommentResponse.cpp index 3df4bdc..5d6c460 100644 --- a/client/src/model/GetBannedUsersFromCommentResponse.cpp +++ b/client/src/model/GetBannedUsersFromCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetCachedNotificationCountResponse.cpp b/client/src/model/GetCachedNotificationCountResponse.cpp index 605c3c3..35fe38b 100644 --- a/client/src/model/GetCachedNotificationCountResponse.cpp +++ b/client/src/model/GetCachedNotificationCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetCommentBanStatusResponse.cpp b/client/src/model/GetCommentBanStatusResponse.cpp index 3a33f16..0923bc2 100644 --- a/client/src/model/GetCommentBanStatusResponse.cpp +++ b/client/src/model/GetCommentBanStatusResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetCommentTextResponse.cpp b/client/src/model/GetCommentTextResponse.cpp index df02428..298c47f 100644 --- a/client/src/model/GetCommentTextResponse.cpp +++ b/client/src/model/GetCommentTextResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetCommentVoteUserNamesSuccessResponse.cpp b/client/src/model/GetCommentVoteUserNamesSuccessResponse.cpp index 5dd1cb5..7701cd0 100644 --- a/client/src/model/GetCommentVoteUserNamesSuccessResponse.cpp +++ b/client/src/model/GetCommentVoteUserNamesSuccessResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetCommentsForUserResponse.cpp b/client/src/model/GetCommentsForUserResponse.cpp index 064f47c..75031ce 100644 --- a/client/src/model/GetCommentsForUserResponse.cpp +++ b/client/src/model/GetCommentsForUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetCommentsResponseWithPresence_PublicComment_.cpp b/client/src/model/GetCommentsResponseWithPresence_PublicComment_.cpp index b05b386..fd0243f 100644 --- a/client/src/model/GetCommentsResponseWithPresence_PublicComment_.cpp +++ b/client/src/model/GetCommentsResponseWithPresence_PublicComment_.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetCommentsResponse_PublicComment_.cpp b/client/src/model/GetCommentsResponse_PublicComment_.cpp index dbe0b77..0fd5f1a 100644 --- a/client/src/model/GetCommentsResponse_PublicComment_.cpp +++ b/client/src/model/GetCommentsResponse_PublicComment_.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetDomainConfigResponse.cpp b/client/src/model/GetDomainConfigResponse.cpp index 76a10b2..980d93f 100644 --- a/client/src/model/GetDomainConfigResponse.cpp +++ b/client/src/model/GetDomainConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetDomainConfigsResponse.cpp b/client/src/model/GetDomainConfigsResponse.cpp index 5dee026..ed3942b 100644 --- a/client/src/model/GetDomainConfigsResponse.cpp +++ b/client/src/model/GetDomainConfigsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetDomainConfigsResponse_anyOf.cpp b/client/src/model/GetDomainConfigsResponse_anyOf.cpp index 33adb8b..bce031c 100644 --- a/client/src/model/GetDomainConfigsResponse_anyOf.cpp +++ b/client/src/model/GetDomainConfigsResponse_anyOf.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetDomainConfigsResponse_anyOf_1.cpp b/client/src/model/GetDomainConfigsResponse_anyOf_1.cpp index 4393df4..b2bc334 100644 --- a/client/src/model/GetDomainConfigsResponse_anyOf_1.cpp +++ b/client/src/model/GetDomainConfigsResponse_anyOf_1.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetEmailTemplateDefinitionsResponse.cpp b/client/src/model/GetEmailTemplateDefinitionsResponse.cpp index e42e459..4508412 100644 --- a/client/src/model/GetEmailTemplateDefinitionsResponse.cpp +++ b/client/src/model/GetEmailTemplateDefinitionsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetEmailTemplateRenderErrorsResponse.cpp b/client/src/model/GetEmailTemplateRenderErrorsResponse.cpp index e3b18bb..0db3b9e 100644 --- a/client/src/model/GetEmailTemplateRenderErrorsResponse.cpp +++ b/client/src/model/GetEmailTemplateRenderErrorsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetEmailTemplateResponse.cpp b/client/src/model/GetEmailTemplateResponse.cpp index 4634b4d..d36cd38 100644 --- a/client/src/model/GetEmailTemplateResponse.cpp +++ b/client/src/model/GetEmailTemplateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetEmailTemplatesResponse.cpp b/client/src/model/GetEmailTemplatesResponse.cpp index e5b1921..abad79f 100644 --- a/client/src/model/GetEmailTemplatesResponse.cpp +++ b/client/src/model/GetEmailTemplatesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetEventLogResponse.cpp b/client/src/model/GetEventLogResponse.cpp index f6999f9..ac170d1 100644 --- a/client/src/model/GetEventLogResponse.cpp +++ b/client/src/model/GetEventLogResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetFeedPostsResponse.cpp b/client/src/model/GetFeedPostsResponse.cpp index ceed365..34e1d63 100644 --- a/client/src/model/GetFeedPostsResponse.cpp +++ b/client/src/model/GetFeedPostsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetGifsSearchResponse.cpp b/client/src/model/GetGifsSearchResponse.cpp index bc74084..0a5c149 100644 --- a/client/src/model/GetGifsSearchResponse.cpp +++ b/client/src/model/GetGifsSearchResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetGifsTrendingResponse.cpp b/client/src/model/GetGifsTrendingResponse.cpp index 3c8f7cf..f3c0622 100644 --- a/client/src/model/GetGifsTrendingResponse.cpp +++ b/client/src/model/GetGifsTrendingResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetHashTagsResponse.cpp b/client/src/model/GetHashTagsResponse.cpp index 8f95ca0..8d483d1 100644 --- a/client/src/model/GetHashTagsResponse.cpp +++ b/client/src/model/GetHashTagsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetModeratorResponse.cpp b/client/src/model/GetModeratorResponse.cpp index c6beb73..592ba8e 100644 --- a/client/src/model/GetModeratorResponse.cpp +++ b/client/src/model/GetModeratorResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetModeratorsResponse.cpp b/client/src/model/GetModeratorsResponse.cpp index 6cd0a7c..37a5cdd 100644 --- a/client/src/model/GetModeratorsResponse.cpp +++ b/client/src/model/GetModeratorsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetMyNotificationsResponse.cpp b/client/src/model/GetMyNotificationsResponse.cpp index 7e71a46..010eb7d 100644 --- a/client/src/model/GetMyNotificationsResponse.cpp +++ b/client/src/model/GetMyNotificationsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetNotificationCountResponse.cpp b/client/src/model/GetNotificationCountResponse.cpp index bf73b7f..b94b197 100644 --- a/client/src/model/GetNotificationCountResponse.cpp +++ b/client/src/model/GetNotificationCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetNotificationsResponse.cpp b/client/src/model/GetNotificationsResponse.cpp index 5933b94..54b9f4f 100644 --- a/client/src/model/GetNotificationsResponse.cpp +++ b/client/src/model/GetNotificationsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetPageByURLIdAPIResponse.cpp b/client/src/model/GetPageByURLIdAPIResponse.cpp index 34b5769..3a542a6 100644 --- a/client/src/model/GetPageByURLIdAPIResponse.cpp +++ b/client/src/model/GetPageByURLIdAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetPagesAPIResponse.cpp b/client/src/model/GetPagesAPIResponse.cpp index 72ff1d6..31177f9 100644 --- a/client/src/model/GetPagesAPIResponse.cpp +++ b/client/src/model/GetPagesAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetPendingWebhookEventCountResponse.cpp b/client/src/model/GetPendingWebhookEventCountResponse.cpp index 03a3d1f..70078b3 100644 --- a/client/src/model/GetPendingWebhookEventCountResponse.cpp +++ b/client/src/model/GetPendingWebhookEventCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetPendingWebhookEventsResponse.cpp b/client/src/model/GetPendingWebhookEventsResponse.cpp index 523f8b1..a59955e 100644 --- a/client/src/model/GetPendingWebhookEventsResponse.cpp +++ b/client/src/model/GetPendingWebhookEventsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetPublicFeedPostsResponse.cpp b/client/src/model/GetPublicFeedPostsResponse.cpp index 2fa3012..c9ca167 100644 --- a/client/src/model/GetPublicFeedPostsResponse.cpp +++ b/client/src/model/GetPublicFeedPostsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetPublicPagesResponse.cpp b/client/src/model/GetPublicPagesResponse.cpp index ae90666..1c9347a 100644 --- a/client/src/model/GetPublicPagesResponse.cpp +++ b/client/src/model/GetPublicPagesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetQuestionConfigResponse.cpp b/client/src/model/GetQuestionConfigResponse.cpp index 6b0c356..1ca8635 100644 --- a/client/src/model/GetQuestionConfigResponse.cpp +++ b/client/src/model/GetQuestionConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetQuestionConfigsResponse.cpp b/client/src/model/GetQuestionConfigsResponse.cpp index b89c029..3a8f32d 100644 --- a/client/src/model/GetQuestionConfigsResponse.cpp +++ b/client/src/model/GetQuestionConfigsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetQuestionResultResponse.cpp b/client/src/model/GetQuestionResultResponse.cpp index 7081061..5bbf353 100644 --- a/client/src/model/GetQuestionResultResponse.cpp +++ b/client/src/model/GetQuestionResultResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetQuestionResultsResponse.cpp b/client/src/model/GetQuestionResultsResponse.cpp index 3345d9f..a0e844d 100644 --- a/client/src/model/GetQuestionResultsResponse.cpp +++ b/client/src/model/GetQuestionResultsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetSSOUserByEmailAPIResponse.cpp b/client/src/model/GetSSOUserByEmailAPIResponse.cpp index 2a05664..0f84a56 100644 --- a/client/src/model/GetSSOUserByEmailAPIResponse.cpp +++ b/client/src/model/GetSSOUserByEmailAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetSSOUserByIdAPIResponse.cpp b/client/src/model/GetSSOUserByIdAPIResponse.cpp index c9bba13..9c01b6c 100644 --- a/client/src/model/GetSSOUserByIdAPIResponse.cpp +++ b/client/src/model/GetSSOUserByIdAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetSSOUsersResponse.cpp b/client/src/model/GetSSOUsersResponse.cpp index 4fc9ba1..0b1dbe1 100644 --- a/client/src/model/GetSSOUsersResponse.cpp +++ b/client/src/model/GetSSOUsersResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetSubscriptionsAPIResponse.cpp b/client/src/model/GetSubscriptionsAPIResponse.cpp index 02a9367..88fbb48 100644 --- a/client/src/model/GetSubscriptionsAPIResponse.cpp +++ b/client/src/model/GetSubscriptionsAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetTenantDailyUsagesResponse.cpp b/client/src/model/GetTenantDailyUsagesResponse.cpp index bf2409f..7736065 100644 --- a/client/src/model/GetTenantDailyUsagesResponse.cpp +++ b/client/src/model/GetTenantDailyUsagesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetTenantManualBadgesResponse.cpp b/client/src/model/GetTenantManualBadgesResponse.cpp index bce1c72..e49a0df 100644 --- a/client/src/model/GetTenantManualBadgesResponse.cpp +++ b/client/src/model/GetTenantManualBadgesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetTenantPackageResponse.cpp b/client/src/model/GetTenantPackageResponse.cpp index 0208744..9c3b54e 100644 --- a/client/src/model/GetTenantPackageResponse.cpp +++ b/client/src/model/GetTenantPackageResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetTenantPackagesResponse.cpp b/client/src/model/GetTenantPackagesResponse.cpp index 9e329f1..38452c6 100644 --- a/client/src/model/GetTenantPackagesResponse.cpp +++ b/client/src/model/GetTenantPackagesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetTenantResponse.cpp b/client/src/model/GetTenantResponse.cpp index 3f50037..6507340 100644 --- a/client/src/model/GetTenantResponse.cpp +++ b/client/src/model/GetTenantResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetTenantUserResponse.cpp b/client/src/model/GetTenantUserResponse.cpp index 32b5fd9..1936342 100644 --- a/client/src/model/GetTenantUserResponse.cpp +++ b/client/src/model/GetTenantUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetTenantUsersResponse.cpp b/client/src/model/GetTenantUsersResponse.cpp index a145094..6c05f76 100644 --- a/client/src/model/GetTenantUsersResponse.cpp +++ b/client/src/model/GetTenantUsersResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetTenantsResponse.cpp b/client/src/model/GetTenantsResponse.cpp index 791613f..3fdc156 100644 --- a/client/src/model/GetTenantsResponse.cpp +++ b/client/src/model/GetTenantsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetTicketResponse.cpp b/client/src/model/GetTicketResponse.cpp index e6a4cc3..b545e24 100644 --- a/client/src/model/GetTicketResponse.cpp +++ b/client/src/model/GetTicketResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetTicketsResponse.cpp b/client/src/model/GetTicketsResponse.cpp index 7d13412..2c90b57 100644 --- a/client/src/model/GetTicketsResponse.cpp +++ b/client/src/model/GetTicketsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetTranslationsResponse.cpp b/client/src/model/GetTranslationsResponse.cpp index 238bd57..e824355 100644 --- a/client/src/model/GetTranslationsResponse.cpp +++ b/client/src/model/GetTranslationsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetUserInternalProfileResponse.cpp b/client/src/model/GetUserInternalProfileResponse.cpp index e3b4f73..7c2e0f0 100644 --- a/client/src/model/GetUserInternalProfileResponse.cpp +++ b/client/src/model/GetUserInternalProfileResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetUserInternalProfileResponse_profile.cpp b/client/src/model/GetUserInternalProfileResponse_profile.cpp index 50df23b..090ac11 100644 --- a/client/src/model/GetUserInternalProfileResponse_profile.cpp +++ b/client/src/model/GetUserInternalProfileResponse_profile.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetUserManualBadgesResponse.cpp b/client/src/model/GetUserManualBadgesResponse.cpp index 8ce889c..3b55d32 100644 --- a/client/src/model/GetUserManualBadgesResponse.cpp +++ b/client/src/model/GetUserManualBadgesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetUserNotificationCountResponse.cpp b/client/src/model/GetUserNotificationCountResponse.cpp index 5884a2c..0142340 100644 --- a/client/src/model/GetUserNotificationCountResponse.cpp +++ b/client/src/model/GetUserNotificationCountResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetUserPresenceStatusesResponse.cpp b/client/src/model/GetUserPresenceStatusesResponse.cpp index 7aaec97..4bf4965 100644 --- a/client/src/model/GetUserPresenceStatusesResponse.cpp +++ b/client/src/model/GetUserPresenceStatusesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetUserResponse.cpp b/client/src/model/GetUserResponse.cpp index d94ef3f..ed069ea 100644 --- a/client/src/model/GetUserResponse.cpp +++ b/client/src/model/GetUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetUserTrustFactorResponse.cpp b/client/src/model/GetUserTrustFactorResponse.cpp index 0358e29..384c914 100644 --- a/client/src/model/GetUserTrustFactorResponse.cpp +++ b/client/src/model/GetUserTrustFactorResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetV1PageLikes.cpp b/client/src/model/GetV1PageLikes.cpp index ea69ef6..031374d 100644 --- a/client/src/model/GetV1PageLikes.cpp +++ b/client/src/model/GetV1PageLikes.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetV2PageReactUsersResponse.cpp b/client/src/model/GetV2PageReactUsersResponse.cpp index 533d098..0be47c0 100644 --- a/client/src/model/GetV2PageReactUsersResponse.cpp +++ b/client/src/model/GetV2PageReactUsersResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetV2PageReacts.cpp b/client/src/model/GetV2PageReacts.cpp index 2ba7a29..6f0b8bf 100644 --- a/client/src/model/GetV2PageReacts.cpp +++ b/client/src/model/GetV2PageReacts.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetVotesForUserResponse.cpp b/client/src/model/GetVotesForUserResponse.cpp index aaa06de..5f735c2 100644 --- a/client/src/model/GetVotesForUserResponse.cpp +++ b/client/src/model/GetVotesForUserResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GetVotesResponse.cpp b/client/src/model/GetVotesResponse.cpp index dbb64a8..49f686a 100644 --- a/client/src/model/GetVotesResponse.cpp +++ b/client/src/model/GetVotesResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GifGetLargeResponse.cpp b/client/src/model/GifGetLargeResponse.cpp index d3976fe..c79a9dc 100644 --- a/client/src/model/GifGetLargeResponse.cpp +++ b/client/src/model/GifGetLargeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GifRating.cpp b/client/src/model/GifRating.cpp index 04bf1da..e313e1c 100644 --- a/client/src/model/GifRating.cpp +++ b/client/src/model/GifRating.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GifSearchInternalError.cpp b/client/src/model/GifSearchInternalError.cpp index 01927f6..c75f001 100644 --- a/client/src/model/GifSearchInternalError.cpp +++ b/client/src/model/GifSearchInternalError.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GifSearchResponse.cpp b/client/src/model/GifSearchResponse.cpp index 55ef3dc..f9eaa96 100644 --- a/client/src/model/GifSearchResponse.cpp +++ b/client/src/model/GifSearchResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/GifSearchResponse_images_inner_inner.cpp b/client/src/model/GifSearchResponse_images_inner_inner.cpp index e00dc1f..3e49a83 100644 --- a/client/src/model/GifSearchResponse_images_inner_inner.cpp +++ b/client/src/model/GifSearchResponse_images_inner_inner.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/HeaderAccountNotification.cpp b/client/src/model/HeaderAccountNotification.cpp index 668caac..66d020a 100644 --- a/client/src/model/HeaderAccountNotification.cpp +++ b/client/src/model/HeaderAccountNotification.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/HeaderState.cpp b/client/src/model/HeaderState.cpp index 99ef68c..f5a4706 100644 --- a/client/src/model/HeaderState.cpp +++ b/client/src/model/HeaderState.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/IgnoredResponse.cpp b/client/src/model/IgnoredResponse.cpp index 7ce10ed..17ccc22 100644 --- a/client/src/model/IgnoredResponse.cpp +++ b/client/src/model/IgnoredResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ImageContentProfanityLevel.cpp b/client/src/model/ImageContentProfanityLevel.cpp index 8424aa3..a0446c0 100644 --- a/client/src/model/ImageContentProfanityLevel.cpp +++ b/client/src/model/ImageContentProfanityLevel.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ImportedAgentApprovalNotificationFrequency.cpp b/client/src/model/ImportedAgentApprovalNotificationFrequency.cpp index 3c7365c..36e6469 100644 --- a/client/src/model/ImportedAgentApprovalNotificationFrequency.cpp +++ b/client/src/model/ImportedAgentApprovalNotificationFrequency.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ImportedSiteType.cpp b/client/src/model/ImportedSiteType.cpp index e714b2e..dc81230 100644 --- a/client/src/model/ImportedSiteType.cpp +++ b/client/src/model/ImportedSiteType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/LiveEvent.cpp b/client/src/model/LiveEvent.cpp index e2adbf1..0694c1e 100644 --- a/client/src/model/LiveEvent.cpp +++ b/client/src/model/LiveEvent.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/LiveEventType.cpp b/client/src/model/LiveEventType.cpp index 90d25d7..9725f96 100644 --- a/client/src/model/LiveEventType.cpp +++ b/client/src/model/LiveEventType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/LiveEvent_extraInfo.cpp b/client/src/model/LiveEvent_extraInfo.cpp index 225324c..a4ef53a 100644 --- a/client/src/model/LiveEvent_extraInfo.cpp +++ b/client/src/model/LiveEvent_extraInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/MediaAsset.cpp b/client/src/model/MediaAsset.cpp index db971ef..5e89efe 100644 --- a/client/src/model/MediaAsset.cpp +++ b/client/src/model/MediaAsset.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/MentionAutoCompleteMode.cpp b/client/src/model/MentionAutoCompleteMode.cpp index 11d4a76..925b7bc 100644 --- a/client/src/model/MentionAutoCompleteMode.cpp +++ b/client/src/model/MentionAutoCompleteMode.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/MetaItem.cpp b/client/src/model/MetaItem.cpp index a1b9af7..8234b61 100644 --- a/client/src/model/MetaItem.cpp +++ b/client/src/model/MetaItem.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationAPIChildCommentsResponse.cpp b/client/src/model/ModerationAPIChildCommentsResponse.cpp index dc89677..711159a 100644 --- a/client/src/model/ModerationAPIChildCommentsResponse.cpp +++ b/client/src/model/ModerationAPIChildCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationAPIComment.cpp b/client/src/model/ModerationAPIComment.cpp index bd82a53..e4aa665 100644 --- a/client/src/model/ModerationAPIComment.cpp +++ b/client/src/model/ModerationAPIComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationAPICommentLog.cpp b/client/src/model/ModerationAPICommentLog.cpp index 2c518a9..6dc29b2 100644 --- a/client/src/model/ModerationAPICommentLog.cpp +++ b/client/src/model/ModerationAPICommentLog.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationAPICommentResponse.cpp b/client/src/model/ModerationAPICommentResponse.cpp index 1a620b2..3b75235 100644 --- a/client/src/model/ModerationAPICommentResponse.cpp +++ b/client/src/model/ModerationAPICommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationAPICountCommentsResponse.cpp b/client/src/model/ModerationAPICountCommentsResponse.cpp index a4fd3cf..89ddb8e 100644 --- a/client/src/model/ModerationAPICountCommentsResponse.cpp +++ b/client/src/model/ModerationAPICountCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationAPIGetCommentIdsResponse.cpp b/client/src/model/ModerationAPIGetCommentIdsResponse.cpp index dcf2493..e85991a 100644 --- a/client/src/model/ModerationAPIGetCommentIdsResponse.cpp +++ b/client/src/model/ModerationAPIGetCommentIdsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationAPIGetCommentsResponse.cpp b/client/src/model/ModerationAPIGetCommentsResponse.cpp index 0e999e3..a05f409 100644 --- a/client/src/model/ModerationAPIGetCommentsResponse.cpp +++ b/client/src/model/ModerationAPIGetCommentsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationAPIGetLogsResponse.cpp b/client/src/model/ModerationAPIGetLogsResponse.cpp index 41198e1..5668f80 100644 --- a/client/src/model/ModerationAPIGetLogsResponse.cpp +++ b/client/src/model/ModerationAPIGetLogsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationCommentSearchResponse.cpp b/client/src/model/ModerationCommentSearchResponse.cpp index 245364b..64f0df7 100644 --- a/client/src/model/ModerationCommentSearchResponse.cpp +++ b/client/src/model/ModerationCommentSearchResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationExportResponse.cpp b/client/src/model/ModerationExportResponse.cpp index 73ef19e..e47ccfa 100644 --- a/client/src/model/ModerationExportResponse.cpp +++ b/client/src/model/ModerationExportResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationExportStatusResponse.cpp b/client/src/model/ModerationExportStatusResponse.cpp index 98a12a0..5c7e4b1 100644 --- a/client/src/model/ModerationExportStatusResponse.cpp +++ b/client/src/model/ModerationExportStatusResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationFilter.cpp b/client/src/model/ModerationFilter.cpp index 2062ad4..209803c 100644 --- a/client/src/model/ModerationFilter.cpp +++ b/client/src/model/ModerationFilter.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationPageSearchProjected.cpp b/client/src/model/ModerationPageSearchProjected.cpp index b939b72..e7ea27d 100644 --- a/client/src/model/ModerationPageSearchProjected.cpp +++ b/client/src/model/ModerationPageSearchProjected.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationPageSearchResponse.cpp b/client/src/model/ModerationPageSearchResponse.cpp index 3cf8433..0067a55 100644 --- a/client/src/model/ModerationPageSearchResponse.cpp +++ b/client/src/model/ModerationPageSearchResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationSiteSearchProjected.cpp b/client/src/model/ModerationSiteSearchProjected.cpp index 1be5a5f..ca8fa45 100644 --- a/client/src/model/ModerationSiteSearchProjected.cpp +++ b/client/src/model/ModerationSiteSearchProjected.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationSiteSearchResponse.cpp b/client/src/model/ModerationSiteSearchResponse.cpp index 524d048..b11a513 100644 --- a/client/src/model/ModerationSiteSearchResponse.cpp +++ b/client/src/model/ModerationSiteSearchResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationSuggestResponse.cpp b/client/src/model/ModerationSuggestResponse.cpp index 54fa30f..3bbd571 100644 --- a/client/src/model/ModerationSuggestResponse.cpp +++ b/client/src/model/ModerationSuggestResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationUserSearchProjected.cpp b/client/src/model/ModerationUserSearchProjected.cpp index 3eeda75..79b81f8 100644 --- a/client/src/model/ModerationUserSearchProjected.cpp +++ b/client/src/model/ModerationUserSearchProjected.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ModerationUserSearchResponse.cpp b/client/src/model/ModerationUserSearchResponse.cpp index 6966b6a..8f6a66f 100644 --- a/client/src/model/ModerationUserSearchResponse.cpp +++ b/client/src/model/ModerationUserSearchResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/Moderator.cpp b/client/src/model/Moderator.cpp index 9f5e68c..d809516 100644 --- a/client/src/model/Moderator.cpp +++ b/client/src/model/Moderator.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/NotificationAndCount.cpp b/client/src/model/NotificationAndCount.cpp index 1e0d5d2..282bbb5 100644 --- a/client/src/model/NotificationAndCount.cpp +++ b/client/src/model/NotificationAndCount.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/NotificationObjectType.cpp b/client/src/model/NotificationObjectType.cpp index d58ba1f..b17ae9a 100644 --- a/client/src/model/NotificationObjectType.cpp +++ b/client/src/model/NotificationObjectType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/NotificationType.cpp b/client/src/model/NotificationType.cpp index 9fc0ba4..9e4c4ac 100644 --- a/client/src/model/NotificationType.cpp +++ b/client/src/model/NotificationType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PageUserEntry.cpp b/client/src/model/PageUserEntry.cpp index f3505f3..04dfd27 100644 --- a/client/src/model/PageUserEntry.cpp +++ b/client/src/model/PageUserEntry.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PageUsersInfoResponse.cpp b/client/src/model/PageUsersInfoResponse.cpp index 273597c..64d40eb 100644 --- a/client/src/model/PageUsersInfoResponse.cpp +++ b/client/src/model/PageUsersInfoResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PageUsersOfflineResponse.cpp b/client/src/model/PageUsersOfflineResponse.cpp index 12f83f9..f78686e 100644 --- a/client/src/model/PageUsersOfflineResponse.cpp +++ b/client/src/model/PageUsersOfflineResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PageUsersOnlineResponse.cpp b/client/src/model/PageUsersOnlineResponse.cpp index 474d958..70bf26e 100644 --- a/client/src/model/PageUsersOnlineResponse.cpp +++ b/client/src/model/PageUsersOnlineResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PagesSortBy.cpp b/client/src/model/PagesSortBy.cpp index 20d28c3..90e97d1 100644 --- a/client/src/model/PagesSortBy.cpp +++ b/client/src/model/PagesSortBy.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PatchDomainConfigParams.cpp b/client/src/model/PatchDomainConfigParams.cpp index 2435da2..e01897b 100644 --- a/client/src/model/PatchDomainConfigParams.cpp +++ b/client/src/model/PatchDomainConfigParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PatchDomainConfigResponse.cpp b/client/src/model/PatchDomainConfigResponse.cpp index e3a9872..ae6b3df 100644 --- a/client/src/model/PatchDomainConfigResponse.cpp +++ b/client/src/model/PatchDomainConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PatchPageAPIResponse.cpp b/client/src/model/PatchPageAPIResponse.cpp index 4442260..168d2c4 100644 --- a/client/src/model/PatchPageAPIResponse.cpp +++ b/client/src/model/PatchPageAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PatchSSOUserAPIResponse.cpp b/client/src/model/PatchSSOUserAPIResponse.cpp index 606c4a8..aa3fdc7 100644 --- a/client/src/model/PatchSSOUserAPIResponse.cpp +++ b/client/src/model/PatchSSOUserAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PendingCommentToSyncOutbound.cpp b/client/src/model/PendingCommentToSyncOutbound.cpp index 13421ca..942fc26 100644 --- a/client/src/model/PendingCommentToSyncOutbound.cpp +++ b/client/src/model/PendingCommentToSyncOutbound.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PostRemoveCommentResponse.cpp b/client/src/model/PostRemoveCommentResponse.cpp index f3b6257..99f1262 100644 --- a/client/src/model/PostRemoveCommentResponse.cpp +++ b/client/src/model/PostRemoveCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PreBanSummary.cpp b/client/src/model/PreBanSummary.cpp index 04c73a8..76bbad1 100644 --- a/client/src/model/PreBanSummary.cpp +++ b/client/src/model/PreBanSummary.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PubSubComment.cpp b/client/src/model/PubSubComment.cpp index 3945286..c694faf 100644 --- a/client/src/model/PubSubComment.cpp +++ b/client/src/model/PubSubComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PubSubCommentBase.cpp b/client/src/model/PubSubCommentBase.cpp index eddd073..7cdf0e3 100644 --- a/client/src/model/PubSubCommentBase.cpp +++ b/client/src/model/PubSubCommentBase.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PubSubVote.cpp b/client/src/model/PubSubVote.cpp index 7fabc6d..ac04d7d 100644 --- a/client/src/model/PubSubVote.cpp +++ b/client/src/model/PubSubVote.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PublicAPIDeleteCommentResponse.cpp b/client/src/model/PublicAPIDeleteCommentResponse.cpp index a93e539..76d0447 100644 --- a/client/src/model/PublicAPIDeleteCommentResponse.cpp +++ b/client/src/model/PublicAPIDeleteCommentResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PublicAPIGetCommentTextResponse.cpp b/client/src/model/PublicAPIGetCommentTextResponse.cpp index 726bf6c..23e926a 100644 --- a/client/src/model/PublicAPIGetCommentTextResponse.cpp +++ b/client/src/model/PublicAPIGetCommentTextResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PublicAPISetCommentTextResponse.cpp b/client/src/model/PublicAPISetCommentTextResponse.cpp index 56e84e8..c84f1b4 100644 --- a/client/src/model/PublicAPISetCommentTextResponse.cpp +++ b/client/src/model/PublicAPISetCommentTextResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PublicBlockFromCommentParams.cpp b/client/src/model/PublicBlockFromCommentParams.cpp index 32e1f65..4f5ea10 100644 --- a/client/src/model/PublicBlockFromCommentParams.cpp +++ b/client/src/model/PublicBlockFromCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PublicComment.cpp b/client/src/model/PublicComment.cpp index 5d373bc..1c196a1 100644 --- a/client/src/model/PublicComment.cpp +++ b/client/src/model/PublicComment.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PublicCommentBase.cpp b/client/src/model/PublicCommentBase.cpp index 635c6ac..9248cdc 100644 --- a/client/src/model/PublicCommentBase.cpp +++ b/client/src/model/PublicCommentBase.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PublicFeedPostsResponse.cpp b/client/src/model/PublicFeedPostsResponse.cpp index 915debe..a698b86 100644 --- a/client/src/model/PublicFeedPostsResponse.cpp +++ b/client/src/model/PublicFeedPostsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PublicPage.cpp b/client/src/model/PublicPage.cpp index d011e2c..a677455 100644 --- a/client/src/model/PublicPage.cpp +++ b/client/src/model/PublicPage.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PublicVote.cpp b/client/src/model/PublicVote.cpp index 5640031..dfddfa5 100644 --- a/client/src/model/PublicVote.cpp +++ b/client/src/model/PublicVote.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PutDomainConfigResponse.cpp b/client/src/model/PutDomainConfigResponse.cpp index a9bfd98..6088360 100644 --- a/client/src/model/PutDomainConfigResponse.cpp +++ b/client/src/model/PutDomainConfigResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/PutSSOUserAPIResponse.cpp b/client/src/model/PutSSOUserAPIResponse.cpp index bc05511..21d9be2 100644 --- a/client/src/model/PutSSOUserAPIResponse.cpp +++ b/client/src/model/PutSSOUserAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QueryPredicate.cpp b/client/src/model/QueryPredicate.cpp index 24a951c..49f2509 100644 --- a/client/src/model/QueryPredicate.cpp +++ b/client/src/model/QueryPredicate.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QueryPredicate_value.cpp b/client/src/model/QueryPredicate_value.cpp index f32ad05..b9ea334 100644 --- a/client/src/model/QueryPredicate_value.cpp +++ b/client/src/model/QueryPredicate_value.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionConfig.cpp b/client/src/model/QuestionConfig.cpp index db085b8..f976069 100644 --- a/client/src/model/QuestionConfig.cpp +++ b/client/src/model/QuestionConfig.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionConfig_customOptions_inner.cpp b/client/src/model/QuestionConfig_customOptions_inner.cpp index 2402114..1c5b7ae 100644 --- a/client/src/model/QuestionConfig_customOptions_inner.cpp +++ b/client/src/model/QuestionConfig_customOptions_inner.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionDatum.cpp b/client/src/model/QuestionDatum.cpp index 2ee7d07..0ac3726 100644 --- a/client/src/model/QuestionDatum.cpp +++ b/client/src/model/QuestionDatum.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionRenderingType.cpp b/client/src/model/QuestionRenderingType.cpp index 06cb1d0..9979f4f 100644 --- a/client/src/model/QuestionRenderingType.cpp +++ b/client/src/model/QuestionRenderingType.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionResult.cpp b/client/src/model/QuestionResult.cpp index d1a9a59..2428a1a 100644 --- a/client/src/model/QuestionResult.cpp +++ b/client/src/model/QuestionResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionResultAggregationOverall.cpp b/client/src/model/QuestionResultAggregationOverall.cpp index 6e72bab..2eb3840 100644 --- a/client/src/model/QuestionResultAggregationOverall.cpp +++ b/client/src/model/QuestionResultAggregationOverall.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionSubQuestionVisibility.cpp b/client/src/model/QuestionSubQuestionVisibility.cpp index 6b88ce4..a188431 100644 --- a/client/src/model/QuestionSubQuestionVisibility.cpp +++ b/client/src/model/QuestionSubQuestionVisibility.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/QuestionWhenSave.cpp b/client/src/model/QuestionWhenSave.cpp index 8d2af58..bedde47 100644 --- a/client/src/model/QuestionWhenSave.cpp +++ b/client/src/model/QuestionWhenSave.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ReactBodyParams.cpp b/client/src/model/ReactBodyParams.cpp index c604bc8..7e0ce50 100644 --- a/client/src/model/ReactBodyParams.cpp +++ b/client/src/model/ReactBodyParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ReactFeedPostResponse.cpp b/client/src/model/ReactFeedPostResponse.cpp index 7e865c0..3e39a9b 100644 --- a/client/src/model/ReactFeedPostResponse.cpp +++ b/client/src/model/ReactFeedPostResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp b/client/src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp index dc4efb5..60e078b 100644 --- a/client/src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp +++ b/client/src/model/Record_string__before_string_or_null__after_string_or_null___value.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/RemoveCommentActionResponse.cpp b/client/src/model/RemoveCommentActionResponse.cpp index e294b8f..a6f5008 100644 --- a/client/src/model/RemoveCommentActionResponse.cpp +++ b/client/src/model/RemoveCommentActionResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/RemoveUserBadgeResponse.cpp b/client/src/model/RemoveUserBadgeResponse.cpp index 830c859..fdacf8d 100644 --- a/client/src/model/RemoveUserBadgeResponse.cpp +++ b/client/src/model/RemoveUserBadgeResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/RenderEmailTemplateBody.cpp b/client/src/model/RenderEmailTemplateBody.cpp index 783aff2..147809f 100644 --- a/client/src/model/RenderEmailTemplateBody.cpp +++ b/client/src/model/RenderEmailTemplateBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/RenderEmailTemplateResponse.cpp b/client/src/model/RenderEmailTemplateResponse.cpp index 394d352..d4e73fd 100644 --- a/client/src/model/RenderEmailTemplateResponse.cpp +++ b/client/src/model/RenderEmailTemplateResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/RenderableUserNotification.cpp b/client/src/model/RenderableUserNotification.cpp index 15d469d..4ec52e7 100644 --- a/client/src/model/RenderableUserNotification.cpp +++ b/client/src/model/RenderableUserNotification.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/RepeatCommentCheckIgnoredReason.cpp b/client/src/model/RepeatCommentCheckIgnoredReason.cpp index cd26e6e..2393761 100644 --- a/client/src/model/RepeatCommentCheckIgnoredReason.cpp +++ b/client/src/model/RepeatCommentCheckIgnoredReason.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/RepeatCommentHandlingAction.cpp b/client/src/model/RepeatCommentHandlingAction.cpp index 9417c30..ada11d0 100644 --- a/client/src/model/RepeatCommentHandlingAction.cpp +++ b/client/src/model/RepeatCommentHandlingAction.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ReplaceTenantPackageBody.cpp b/client/src/model/ReplaceTenantPackageBody.cpp index 38a1d46..f8cdff9 100644 --- a/client/src/model/ReplaceTenantPackageBody.cpp +++ b/client/src/model/ReplaceTenantPackageBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ReplaceTenantUserBody.cpp b/client/src/model/ReplaceTenantUserBody.cpp index ea8bc37..e82ef11 100644 --- a/client/src/model/ReplaceTenantUserBody.cpp +++ b/client/src/model/ReplaceTenantUserBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/ResetUserNotificationsResponse.cpp b/client/src/model/ResetUserNotificationsResponse.cpp index 459ea31..797a4a5 100644 --- a/client/src/model/ResetUserNotificationsResponse.cpp +++ b/client/src/model/ResetUserNotificationsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SORT_DIR.cpp b/client/src/model/SORT_DIR.cpp index a2d789c..b92a434 100644 --- a/client/src/model/SORT_DIR.cpp +++ b/client/src/model/SORT_DIR.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SSOSecurityLevel.cpp b/client/src/model/SSOSecurityLevel.cpp index e5aa765..0f7e7d3 100644 --- a/client/src/model/SSOSecurityLevel.cpp +++ b/client/src/model/SSOSecurityLevel.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SaveCommentResponseOptimized.cpp b/client/src/model/SaveCommentResponseOptimized.cpp index 82a7f76..331abe0 100644 --- a/client/src/model/SaveCommentResponseOptimized.cpp +++ b/client/src/model/SaveCommentResponseOptimized.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SaveCommentsBulkResponse.cpp b/client/src/model/SaveCommentsBulkResponse.cpp index 3080875..62a0341 100644 --- a/client/src/model/SaveCommentsBulkResponse.cpp +++ b/client/src/model/SaveCommentsBulkResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SaveCommentsResponseWithPresence.cpp b/client/src/model/SaveCommentsResponseWithPresence.cpp index c62513d..7dbe10d 100644 --- a/client/src/model/SaveCommentsResponseWithPresence.cpp +++ b/client/src/model/SaveCommentsResponseWithPresence.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SearchUsersResponse.cpp b/client/src/model/SearchUsersResponse.cpp index 073be8b..d9e604a 100644 --- a/client/src/model/SearchUsersResponse.cpp +++ b/client/src/model/SearchUsersResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SearchUsersResult.cpp b/client/src/model/SearchUsersResult.cpp index e7a311d..82e28fa 100644 --- a/client/src/model/SearchUsersResult.cpp +++ b/client/src/model/SearchUsersResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SearchUsersSectionedResponse.cpp b/client/src/model/SearchUsersSectionedResponse.cpp index 8851b18..cf13cd8 100644 --- a/client/src/model/SearchUsersSectionedResponse.cpp +++ b/client/src/model/SearchUsersSectionedResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SetCommentApprovedResponse.cpp b/client/src/model/SetCommentApprovedResponse.cpp index d5167fa..a514ae0 100644 --- a/client/src/model/SetCommentApprovedResponse.cpp +++ b/client/src/model/SetCommentApprovedResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SetCommentTextParams.cpp b/client/src/model/SetCommentTextParams.cpp index 5e75da9..9a49db4 100644 --- a/client/src/model/SetCommentTextParams.cpp +++ b/client/src/model/SetCommentTextParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SetCommentTextResponse.cpp b/client/src/model/SetCommentTextResponse.cpp index e66405b..e4ab983 100644 --- a/client/src/model/SetCommentTextResponse.cpp +++ b/client/src/model/SetCommentTextResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SetCommentTextResult.cpp b/client/src/model/SetCommentTextResult.cpp index 065bd14..6363a17 100644 --- a/client/src/model/SetCommentTextResult.cpp +++ b/client/src/model/SetCommentTextResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SetUserTrustFactorResponse.cpp b/client/src/model/SetUserTrustFactorResponse.cpp index 5fa72e1..f6a15f4 100644 --- a/client/src/model/SetUserTrustFactorResponse.cpp +++ b/client/src/model/SetUserTrustFactorResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SizePreset.cpp b/client/src/model/SizePreset.cpp index d6b388e..43526fc 100644 --- a/client/src/model/SizePreset.cpp +++ b/client/src/model/SizePreset.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SortDirections.cpp b/client/src/model/SortDirections.cpp index b641ade..7d09bb0 100644 --- a/client/src/model/SortDirections.cpp +++ b/client/src/model/SortDirections.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/SpamRule.cpp b/client/src/model/SpamRule.cpp index 245c698..7cd802e 100644 --- a/client/src/model/SpamRule.cpp +++ b/client/src/model/SpamRule.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/TOSConfig.cpp b/client/src/model/TOSConfig.cpp index 1c6b448..7da97c3 100644 --- a/client/src/model/TOSConfig.cpp +++ b/client/src/model/TOSConfig.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/TenantBadge.cpp b/client/src/model/TenantBadge.cpp index 7d989b4..16a54c3 100644 --- a/client/src/model/TenantBadge.cpp +++ b/client/src/model/TenantBadge.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/TenantHashTag.cpp b/client/src/model/TenantHashTag.cpp index f867c02..bb89744 100644 --- a/client/src/model/TenantHashTag.cpp +++ b/client/src/model/TenantHashTag.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/TenantPackage.cpp b/client/src/model/TenantPackage.cpp index 2b0cece..0d66590 100644 --- a/client/src/model/TenantPackage.cpp +++ b/client/src/model/TenantPackage.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UnBlockFromCommentParams.cpp b/client/src/model/UnBlockFromCommentParams.cpp index 20eb278..9c53cf4 100644 --- a/client/src/model/UnBlockFromCommentParams.cpp +++ b/client/src/model/UnBlockFromCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UnblockSuccess.cpp b/client/src/model/UnblockSuccess.cpp index 2bc97ba..fc49a03 100644 --- a/client/src/model/UnblockSuccess.cpp +++ b/client/src/model/UnblockSuccess.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdatableCommentParams.cpp b/client/src/model/UpdatableCommentParams.cpp index b74b15b..af5a45e 100644 --- a/client/src/model/UpdatableCommentParams.cpp +++ b/client/src/model/UpdatableCommentParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateAPIPageData.cpp b/client/src/model/UpdateAPIPageData.cpp index 00b66fe..45458a6 100644 --- a/client/src/model/UpdateAPIPageData.cpp +++ b/client/src/model/UpdateAPIPageData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateAPISSOUserData.cpp b/client/src/model/UpdateAPISSOUserData.cpp index f735b69..d68c824 100644 --- a/client/src/model/UpdateAPISSOUserData.cpp +++ b/client/src/model/UpdateAPISSOUserData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateAPIUserSubscriptionData.cpp b/client/src/model/UpdateAPIUserSubscriptionData.cpp index 0b095b3..baaa8f3 100644 --- a/client/src/model/UpdateAPIUserSubscriptionData.cpp +++ b/client/src/model/UpdateAPIUserSubscriptionData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateDomainConfigParams.cpp b/client/src/model/UpdateDomainConfigParams.cpp index 9c8d68a..f6fe924 100644 --- a/client/src/model/UpdateDomainConfigParams.cpp +++ b/client/src/model/UpdateDomainConfigParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateEmailTemplateBody.cpp b/client/src/model/UpdateEmailTemplateBody.cpp index 9368b9c..462871a 100644 --- a/client/src/model/UpdateEmailTemplateBody.cpp +++ b/client/src/model/UpdateEmailTemplateBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateFeedPostParams.cpp b/client/src/model/UpdateFeedPostParams.cpp index a0c146e..1c1ca85 100644 --- a/client/src/model/UpdateFeedPostParams.cpp +++ b/client/src/model/UpdateFeedPostParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateHashTagBody.cpp b/client/src/model/UpdateHashTagBody.cpp index d45a877..e77397d 100644 --- a/client/src/model/UpdateHashTagBody.cpp +++ b/client/src/model/UpdateHashTagBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateHashTagResponse.cpp b/client/src/model/UpdateHashTagResponse.cpp index f8a0f2c..3923e60 100644 --- a/client/src/model/UpdateHashTagResponse.cpp +++ b/client/src/model/UpdateHashTagResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateModeratorBody.cpp b/client/src/model/UpdateModeratorBody.cpp index 360ef05..3cf6e67 100644 --- a/client/src/model/UpdateModeratorBody.cpp +++ b/client/src/model/UpdateModeratorBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateNotificationBody.cpp b/client/src/model/UpdateNotificationBody.cpp index 3e29e95..36b3dc5 100644 --- a/client/src/model/UpdateNotificationBody.cpp +++ b/client/src/model/UpdateNotificationBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateQuestionConfigBody.cpp b/client/src/model/UpdateQuestionConfigBody.cpp index 35c4920..fee6e76 100644 --- a/client/src/model/UpdateQuestionConfigBody.cpp +++ b/client/src/model/UpdateQuestionConfigBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateQuestionResultBody.cpp b/client/src/model/UpdateQuestionResultBody.cpp index d493d70..a86ee67 100644 --- a/client/src/model/UpdateQuestionResultBody.cpp +++ b/client/src/model/UpdateQuestionResultBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateSubscriptionAPIResponse.cpp b/client/src/model/UpdateSubscriptionAPIResponse.cpp index d7a6793..3e312eb 100644 --- a/client/src/model/UpdateSubscriptionAPIResponse.cpp +++ b/client/src/model/UpdateSubscriptionAPIResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateTenantBody.cpp b/client/src/model/UpdateTenantBody.cpp index ba715f3..c4a96e8 100644 --- a/client/src/model/UpdateTenantBody.cpp +++ b/client/src/model/UpdateTenantBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateTenantPackageBody.cpp b/client/src/model/UpdateTenantPackageBody.cpp index afbdfb9..fdfb6f7 100644 --- a/client/src/model/UpdateTenantPackageBody.cpp +++ b/client/src/model/UpdateTenantPackageBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateTenantUserBody.cpp b/client/src/model/UpdateTenantUserBody.cpp index 2a217cc..edb97bd 100644 --- a/client/src/model/UpdateTenantUserBody.cpp +++ b/client/src/model/UpdateTenantUserBody.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateUserBadgeParams.cpp b/client/src/model/UpdateUserBadgeParams.cpp index 0d72f81..06e708f 100644 --- a/client/src/model/UpdateUserBadgeParams.cpp +++ b/client/src/model/UpdateUserBadgeParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp b/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp index a4047e4..b28400a 100644 --- a/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp +++ b/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp b/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp index 56aae1b..76e6c29 100644 --- a/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp +++ b/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UpdateUserNotificationStatusResponse.cpp b/client/src/model/UpdateUserNotificationStatusResponse.cpp index 241383e..e713d2d 100644 --- a/client/src/model/UpdateUserNotificationStatusResponse.cpp +++ b/client/src/model/UpdateUserNotificationStatusResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UploadImageResponse.cpp b/client/src/model/UploadImageResponse.cpp index 1bc6547..966c7a3 100644 --- a/client/src/model/UploadImageResponse.cpp +++ b/client/src/model/UploadImageResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/User.cpp b/client/src/model/User.cpp index f4dd76a..cd70031 100644 --- a/client/src/model/User.cpp +++ b/client/src/model/User.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UserBadge.cpp b/client/src/model/UserBadge.cpp index 02af3c9..c5faee3 100644 --- a/client/src/model/UserBadge.cpp +++ b/client/src/model/UserBadge.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UserBadgeProgress.cpp b/client/src/model/UserBadgeProgress.cpp index 1bc40de..f324dcc 100644 --- a/client/src/model/UserBadgeProgress.cpp +++ b/client/src/model/UserBadgeProgress.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UserNotification.cpp b/client/src/model/UserNotification.cpp index bdabe6b..23b38b6 100644 --- a/client/src/model/UserNotification.cpp +++ b/client/src/model/UserNotification.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UserNotificationCount.cpp b/client/src/model/UserNotificationCount.cpp index ce11d80..8c1a0d0 100644 --- a/client/src/model/UserNotificationCount.cpp +++ b/client/src/model/UserNotificationCount.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UserNotificationWriteResponse.cpp b/client/src/model/UserNotificationWriteResponse.cpp index 7e991eb..744314a 100644 --- a/client/src/model/UserNotificationWriteResponse.cpp +++ b/client/src/model/UserNotificationWriteResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UserPresenceData.cpp b/client/src/model/UserPresenceData.cpp index d7f054c..5ff2fd4 100644 --- a/client/src/model/UserPresenceData.cpp +++ b/client/src/model/UserPresenceData.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UserReactsResponse.cpp b/client/src/model/UserReactsResponse.cpp index 208a28e..5d7af5f 100644 --- a/client/src/model/UserReactsResponse.cpp +++ b/client/src/model/UserReactsResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UserSearchResult.cpp b/client/src/model/UserSearchResult.cpp index d019ce8..9e5b2d4 100644 --- a/client/src/model/UserSearchResult.cpp +++ b/client/src/model/UserSearchResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UserSearchSection.cpp b/client/src/model/UserSearchSection.cpp index 37627d1..060bcb5 100644 --- a/client/src/model/UserSearchSection.cpp +++ b/client/src/model/UserSearchSection.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UserSearchSectionResult.cpp b/client/src/model/UserSearchSectionResult.cpp index 99c182d..1a80846 100644 --- a/client/src/model/UserSearchSectionResult.cpp +++ b/client/src/model/UserSearchSectionResult.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UserSessionInfo.cpp b/client/src/model/UserSessionInfo.cpp index 4df1252..bee2be8 100644 --- a/client/src/model/UserSessionInfo.cpp +++ b/client/src/model/UserSessionInfo.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/UsersListLocation.cpp b/client/src/model/UsersListLocation.cpp index 62861ce..0497138 100644 --- a/client/src/model/UsersListLocation.cpp +++ b/client/src/model/UsersListLocation.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/VoteBodyParams.cpp b/client/src/model/VoteBodyParams.cpp index dd494af..2c3b524 100644 --- a/client/src/model/VoteBodyParams.cpp +++ b/client/src/model/VoteBodyParams.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/VoteDeleteResponse.cpp b/client/src/model/VoteDeleteResponse.cpp index f703dfc..17e2a09 100644 --- a/client/src/model/VoteDeleteResponse.cpp +++ b/client/src/model/VoteDeleteResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/VoteResponse.cpp b/client/src/model/VoteResponse.cpp index 597d98f..aa51a2d 100644 --- a/client/src/model/VoteResponse.cpp +++ b/client/src/model/VoteResponse.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/VoteResponseUser.cpp b/client/src/model/VoteResponseUser.cpp index d77363d..0cff7aa 100644 --- a/client/src/model/VoteResponseUser.cpp +++ b/client/src/model/VoteResponseUser.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/client/src/model/VoteStyle.cpp b/client/src/model/VoteStyle.cpp index 955e441..ebf116e 100644 --- a/client/src/model/VoteStyle.cpp +++ b/client/src/model/VoteStyle.cpp @@ -4,7 +4,7 @@ * * The version of the OpenAPI document: 0.0.0 * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/docs/Models/AddDomainConfigResponse.md b/docs/Models/AddDomainConfigResponse.md index 97695db..a3f431a 100644 --- a/docs/Models/AddDomainConfigResponse.md +++ b/docs/Models/AddDomainConfigResponse.md @@ -3,10 +3,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | | **status** | [**oas_any_type_not_mapped**](.md) | | [default to null] | -| **configuration** | [**oas_any_type_not_mapped**](.md) | | [default to null] | +| **configuration** | [**oas_any_type_not_mapped**](.md) | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/AggregateResponse.md b/docs/Models/AggregateResponse.md index b86525d..5dffec9 100644 --- a/docs/Models/AggregateResponse.md +++ b/docs/Models/AggregateResponse.md @@ -4,10 +4,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **data** | [**List**](AggregationItem.md) | | [default to null] | +| **data** | [**List**](AggregationItem.md) | | [optional] [default to null] | | **stats** | [**AggregationResponse_stats**](AggregationResponse_stats.md) | | [optional] [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | | **validResourceNames** | **List** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/BulkCreateHashTagsResponse_results_inner.md b/docs/Models/BulkCreateHashTagsResponse_results_inner.md index ebc3e61..5fe21d7 100644 --- a/docs/Models/BulkCreateHashTagsResponse_results_inner.md +++ b/docs/Models/BulkCreateHashTagsResponse_results_inner.md @@ -4,9 +4,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **hashTag** | [**TenantHashTag**](TenantHashTag.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | +| **hashTag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | | **secondaryCode** | **String** | | [optional] [default to null] | | **bannedUntil** | **Long** | | [optional] [default to null] | | **maxCharacterLength** | **Integer** | | [optional] [default to null] | diff --git a/docs/Models/GetDomainConfigResponse.md b/docs/Models/GetDomainConfigResponse.md index a630399..8f7fe86 100644 --- a/docs/Models/GetDomainConfigResponse.md +++ b/docs/Models/GetDomainConfigResponse.md @@ -3,10 +3,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **configuration** | [**oas_any_type_not_mapped**](.md) | | [default to null] | +| **configuration** | [**oas_any_type_not_mapped**](.md) | | [optional] [default to null] | | **status** | [**oas_any_type_not_mapped**](.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/GetDomainConfigsResponse.md b/docs/Models/GetDomainConfigsResponse.md index 7efaaa9..cf4b958 100644 --- a/docs/Models/GetDomainConfigsResponse.md +++ b/docs/Models/GetDomainConfigsResponse.md @@ -3,10 +3,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **configurations** | [**oas_any_type_not_mapped**](.md) | | [default to null] | +| **configurations** | [**oas_any_type_not_mapped**](.md) | | [optional] [default to null] | | **status** | [**oas_any_type_not_mapped**](.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/GetGifsSearchResponse.md b/docs/Models/GetGifsSearchResponse.md index 58479a7..45eb9c8 100644 --- a/docs/Models/GetGifsSearchResponse.md +++ b/docs/Models/GetGifsSearchResponse.md @@ -3,9 +3,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **images** | [**List**](array.md) | | [default to null] | +| **images** | [**List**](array.md) | | [optional] [default to null] | | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **code** | **String** | | [default to null] | +| **code** | **String** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/GetGifsTrendingResponse.md b/docs/Models/GetGifsTrendingResponse.md index 7de48e7..b9eb2cb 100644 --- a/docs/Models/GetGifsTrendingResponse.md +++ b/docs/Models/GetGifsTrendingResponse.md @@ -3,9 +3,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **images** | [**List**](array.md) | | [default to null] | +| **images** | [**List**](array.md) | | [optional] [default to null] | | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **code** | **String** | | [default to null] | +| **code** | **String** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/PatchDomainConfigResponse.md b/docs/Models/PatchDomainConfigResponse.md index e3e80cf..26e1e7f 100644 --- a/docs/Models/PatchDomainConfigResponse.md +++ b/docs/Models/PatchDomainConfigResponse.md @@ -3,10 +3,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **configuration** | [**oas_any_type_not_mapped**](.md) | | [default to null] | +| **configuration** | [**oas_any_type_not_mapped**](.md) | | [optional] [default to null] | | **status** | [**oas_any_type_not_mapped**](.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/PutDomainConfigResponse.md b/docs/Models/PutDomainConfigResponse.md index 5334437..b66c223 100644 --- a/docs/Models/PutDomainConfigResponse.md +++ b/docs/Models/PutDomainConfigResponse.md @@ -3,10 +3,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **configuration** | [**oas_any_type_not_mapped**](.md) | | [default to null] | +| **configuration** | [**oas_any_type_not_mapped**](.md) | | [optional] [default to null] | | **status** | [**oas_any_type_not_mapped**](.md) | | [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/SaveCommentsBulkResponse.md b/docs/Models/SaveCommentsBulkResponse.md index 5ae5bd1..5fe2cb7 100644 --- a/docs/Models/SaveCommentsBulkResponse.md +++ b/docs/Models/SaveCommentsBulkResponse.md @@ -4,11 +4,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **comment** | [**APIComment**](APIComment.md) | | [default to null] | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [default to null] | +| **comment** | [**APIComment**](APIComment.md) | | [optional] [default to null] | +| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] [default to null] | | **moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **reason** | **String** | | [default to null] | -| **code** | **String** | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | | **secondaryCode** | **String** | | [optional] [default to null] | | **bannedUntil** | **Long** | | [optional] [default to null] | | **maxCharacterLength** | **Integer** | | [optional] [default to null] | diff --git a/docs/Models/SearchUsersResult.md b/docs/Models/SearchUsersResult.md index 002076d..b21ee07 100644 --- a/docs/Models/SearchUsersResult.md +++ b/docs/Models/SearchUsersResult.md @@ -4,8 +4,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **sections** | [**List**](UserSearchSectionResult.md) | | [default to null] | -| **users** | [**List**](UserSearchResult.md) | | [default to null] | +| **sections** | [**List**](UserSearchSectionResult.md) | | [optional] [default to null] | +| **users** | [**List**](UserSearchResult.md) | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md index 0789dae..43874ef 100644 --- a/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md +++ b/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -4,9 +4,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **matchedCount** | **Long** | | [default to null] | -| **modifiedCount** | **Long** | | [default to null] | -| **note** | **String** | | [default to null] | +| **matchedCount** | **Long** | | [optional] [default to null] | +| **modifiedCount** | **Long** | | [optional] [default to null] | +| **note** | **String** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md b/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md index ec28c6c..3e93cbd 100644 --- a/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md +++ b/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -4,9 +4,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **matchedCount** | **Long** | | [default to null] | -| **modifiedCount** | **Long** | | [default to null] | -| **note** | **String** | | [default to null] | +| **matchedCount** | **Long** | | [optional] [default to null] | +| **modifiedCount** | **Long** | | [optional] [default to null] | +| **note** | **String** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/UpdateUserNotificationStatusResponse.md b/docs/Models/UpdateUserNotificationStatusResponse.md index 7d2baea..8f1a2ce 100644 --- a/docs/Models/UpdateUserNotificationStatusResponse.md +++ b/docs/Models/UpdateUserNotificationStatusResponse.md @@ -4,9 +4,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **matchedCount** | **Long** | | [default to null] | -| **modifiedCount** | **Long** | | [default to null] | -| **note** | **String** | | [default to null] | +| **matchedCount** | **Long** | | [optional] [default to null] | +| **modifiedCount** | **Long** | | [optional] [default to null] | +| **note** | **String** | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/update.sh b/update.sh index 411aa96..d4d9f17 100755 --- a/update.sh +++ b/update.sh @@ -1,5 +1,14 @@ #!/bin/bash +# FastComments openapi-generator build. The released cpp-restsdk generator silently +# drops operations whose response types it can't model (the entire Moderation API and +# several Public API methods), so cpp must use this build, which also has the nested +# map fix. Just a jar; downloaded on demand. +JAR_URL="https://github.com/winrid/openapi-generator/releases/download/fastcomments-build-20260619/openapi-generator-cli.jar" +JAR_FILE="./openapi-generator-cli.jar" + +[ -f "$JAR_FILE" ] || wget -q "$JAR_URL" -O "$JAR_FILE" + rm -rf ./client if wget -q http://localhost:3001/js/swagger.json -O ./openapi.json; then @@ -10,7 +19,7 @@ else SPEC_FILE="./openapi.json" fi -npx --yes @openapitools/openapi-generator-cli generate \ +java -jar "$JAR_FILE" generate \ -i "$SPEC_FILE" \ -g cpp-restsdk \ -o ./client \ @@ -21,7 +30,7 @@ echo "Generated C++ client in ./client" # Generate markdown documentation echo "Generating markdown documentation..." rm -rf ./docs -npx --yes @openapitools/openapi-generator-cli generate \ +java -jar "$JAR_FILE" generate \ -i "$SPEC_FILE" \ -g markdown \ -o ./docs